@font-face {
  font-family: 'LINESeedJP';
  src: url('../fonts/LINESeedJP_OTF_Th.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  font-family: 'LINESeedJP', sans-serif;
  font-weight: 100;
  background-color:transparent;

  scroll-behavior: smooth;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
}

.container {
  max-width: 800px;
  width: 90%;
  background-color: transparent;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

/* ===== TOPに戻るボタン ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  opacity: 0.4;
  transition: opacity 0.3s;
  width: 48px;
  height: 48px;
}

.back-to-top:hover {
  opacity: 0.8;
}

.back-to-top img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== ヘッダーとナビゲーション ===== */
.header {
  margin-bottom: 10px;
}

.nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 100;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav a:hover {
  color: #007bff;
}

h1, h2, h3 {
  font-weight: 100;
  color: #333;
  margin-bottom: 10px;
}

.section {
  margin: 10px 0;
  scroll-margin-top: 100px;
}

.project {
  margin: 10px 0;
}

.work-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.contact {
  text-align: center;
  margin-top: 30px;
}

/* ===== Contactリンクの見た目調整 ===== */
.contact a {
  color: inherit;
  text-decoration: none;
}

.contact a:hover {
  opacity: 0.7;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
  .contact {
    margin-bottom: 10px; /* もともとmargin-bottomが無いなら追加して明示的に詰める */
  }

  #projects {
    margin-top: 0px; /* セクション上部の余白を消す */
  }
}

@media (max-width: 480px) {
  .contact {
    margin-bottom: 5px;
  }

  #projects {
    margin-top: 0px;
  }
}

/* ===== Info セクション ===== */
.info {
  text-align: center;
  margin-top: 30px;
}

.info p {
  font-size: 1rem;
  margin: 10px 0;
}

.lang-toggle {
  margin-top: 10px;
}

.lang-btn {
  background-color: rgba(0, 0, 0, 0.015); /* ← グレーに透明度10% */
  color: #333;
  border: none;
  padding: 6px 12px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 100; /* ← 細文字 */
  font-family: 'LINESeedJP', sans-serif; /* ← 確実に効かせる */
  border-radius: 4px;
  transition: background-color 0.3s, opacity 0.3s;
}

.lang-btn:hover {
  opacity: 0.6;
}

.lang-btn.active {
  background-color: #333;
  color: #fff;
}

#scroll-indicator {
  position: fixed;
  top: auto;
  bottom: 100px;
  left: 100px;
  transform: none;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.scroll-main {
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.5);
}

.scroll-sub {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {

  .back-to-top {
    width: 36px;
    height: 36px;
    right: 20px;
    bottom: 20px;
  }

  .back-to-top img {
    width: 100%;
    height: auto;
    opacity: 0.2;
  }

  #scroll-indicator {
    mix-blend-mode: difference;
  color: white;
    left: 20px;
    bottom: 20px; /* ← 元の250pxから下げて120pxに */
  }

  .scroll-main {
    font-size: 1.2rem; /* ← 小さめに変更 */
    /*text-shadow:
    0 0 2px rgba(255, 255, 255, 0.6),
    0 0 4px rgba(0, 0, 0, 0.3);      /* 黒い影で読みやすく */
    
  }

  .scroll-sub {
    font-size: 0.7rem; /* ← さらに控えめに */
    /*text-shadow:
    0 0 2px rgba(255, 255, 255, 0.6),
    0 0 4px rgba(0, 0, 0, 0.3);      /* 黒い影で読みやすく */
  }

  .scroll-main.light,
  .scroll-sub.light {
    color: white;
  }

  .scroll-main.dark,
  .scroll-sub.dark {
    color: black;
  }
}

#gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    #ffffff 0%,
    #ffffff 45%,
    #f3f0fa 50%,
    #e5e3f0 54%,
    #d8d2eb 58%,
    #c8c5e0 63%,
    #f8dada 70%,
    #ffd0d0 75%,
    #ffc0a5 82%,
    #ffb09a 88%,
    #ff9c6a 100%
  );
  background-size: 100% 300%;
  background-repeat: no-repeat;
  background-position: 0% 0%;
  transition: background-position 0.1s linear;
}

