html, body {
  height: 100%;
  font-family: "Yu Mincho", "游明朝", "YuMincho", serif;
  background-color: #f8f7f3;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 3;
  letter-spacing: 0.075em;
}


.section-heading {
  font-size: 2rem; /* もしくは 32px 相当 */
  font-weight: bold;
  color: #1e2d3a;
  margin-bottom: 1em;
  text-align: left;
}


/* 共通セクションヘッダー */
.section-header {
  background: #1c2a33;
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
}

#home {
  padding: 70px 0 0; /* 上だけ70px, 左右と下は0 */
  max-width: none;
  margin: 0;
  width: 100%;
}

/* HOME専用 */
.home-header-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;

  opacity: 0;
  transform: translate(20px, 20px);
  animation: fadeInImage 1.5s ease-out forwards;
}

@keyframes fadeInImage {
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* ホーム全体 */
#home.home-header {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  padding-top: 70px; /* ナビの高さ */
  background-color: #1c2a33;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}


/* 中央に配置する用のラッパー */
.home-header-content {
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;

  /* 💡 アニメーションなし（中央配置の安定化のため） */
  opacity: 1;
  transform: none;
}

#home.home-header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 42, 51, 0);
  z-index: 1;
  animation: darkenOverlay 1s ease-in 1.6s forwards;
}

@keyframes darkenOverlay {
  to {
    background: rgba(0, 0, 0, 0.35); /* ← 少し暗くする */
  }
}

.home-header h1,
.home-header p {
  opacity: 0;
  animation: fadeInText 1s ease-in 2.4s forwards;
  text-align: center;
}

/* キャッチコピーとタイトルの間に余白 */
.home-header h1 {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-top: 1.2em;     /* ← ここでキャッチコピーとの間をあける */
  margin-bottom: 2em;  /* ← pとの間の余白 */
  letter-spacing: 0.1em; /* ← これ追加 */
}

/* タイトル下のサブキャプション */
.home-header p {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  line-height: 1.5; /* 必要に応じて0.9や1.1など微調整可 */
  margin: 0;           /* ← これ追加：不要な空間を除く */
}

/* これを後ろに置く（上書き） */
.home-header p.home-catch {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5em;
  color: white;
  margin-top: 5em; /* ← ここを増やして下に押し下げる */
}


@keyframes fadeInText {
  to {
    opacity: 1;
  }
}

.home-catch {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1em;
  opacity: 0;
  animation: fadeInText 1s ease-in 1.5s forwards;
}


/* HOME下の通常セクション（説明＋ボタン） */
#home-main {
  display: block;           /* ← 非表示防止の保険 */
  max-width: 1200px;
  margin: 10px auto;
  padding: 10px;
  text-align: center;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* キャッチコピー */
.catch-text {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1em;
}

/* ホーム下に表示するbioのプレビュー */
.bio-preview {
  flex: 1;                    /* ← 左側が柔軟に幅とる */
  width: 100%;                 /* ← 横幅いっぱいに */
  max-width: 1200px;            /* ← コンテンツ幅の上限 */
  margin: 1em auto 0 auto;     /* ← 上だけ余白、左右は中央揃え */
  margin-bottom: 3em;  /* ← 必要な余白量に応じて調整（例：3em） */
  padding: 0px;            
  text-align: left;            /* ← テキスト左揃え */
  animation: fadeInText 1s ease-in 3s forwards;
}

.bio-preview-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin-top: 0;
  padding: 0 40px;
}

.bio-more-button {
  width: 120px;
  height: 120px;
  border: 2px solid #1c2a33;
  border-radius: 50%;
  background-color: transparent;
  color: #1c2a33;
  text-align: center;
  display: flex;                 /* ← テキストを中央にするため */
  align-items: center;           /* ← 縦方向の中央揃え */
  justify-content: center;       /* ← 横方向の中央揃え */
  line-height: 120px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
  line-height: normal;           /* ← これが重要！ */
  white-space: nowrap;           /* ← テキストを1行にする */
  margin-top: 2em; /* 👈← ここが距離調整の候補 */
}

.bio-more-button:hover {
  background-color: #1c2a33;
  color: white;
}

.bio-preview .bio-subtitle {
  font-size: 1.2em;
  font-weight: bold;
  color: #1e2d3a;
  margin-bottom: 0.5em;
}

.bio-preview .bio-paragraph {
  font-size: 1em;
  line-height: 2;
  color: #333;
}

/* ボタンだけを右に寄せるラッパー */
#home-main .button-wrapper {
  display: flex;
  justify-content: flex-end;
  padding-right: 80px;
  width: 100%;
  box-sizing: border-box;
}

#home-main .overlay-links.horizontal {
  position: static;  /* ← これを明示しておくと確実 */
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 20px;
  margin-top: 2em;
}

.overlay-links.horizontal a {
  background: #2e3e4e;
  color: #fff;
  padding: 8px 24px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.95em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.overlay-links.horizontal a:hover {
  background: #1c2a33;
  transform: scale(1.08);
}


.nav-wrapper {
  display: flex;
  align-items: center;   /* ← 垂直方向の中央揃え */
  justify-content: center;
  height: 70px;
  padding: 0 40px;
  background-color: rgba(28, 42, 51, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari対策 */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

nav a {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  padding: 4px 15px;
  font-size: 18px;
  position: relative;
  display: inline-block; /* アニメーションの基準に必要 */
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
  transform: scaleX(0);         /* ← 初期状態：横幅ゼロ */
  transform-origin: center;       /* ← 真ん中から伸びる */
  transition: transform 0.3s ease;
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: white;
  transform: scaleX(1);         /* ← ホバーやアクティブでにゅーっと */
}

nav a:hover::after {
  transform: scaleX(1);         /* ← ホバーやアクティブでにゅーっと */
}

.social-icons {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  display: flex;
  gap: 24px;
}

.social-icons a {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: cover;
  filter: invert(100%);
  transition: transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.1);
}
.social-icons .youtube {
  background-image: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/youtube.svg');
}
.social-icons .amazonprime {
  background-image: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/amazon.svg');
}
.social-icons .instagram {
  background-image: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/instagram.svg');
}
.social-icons .twitter {
  background-image: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/x.svg');
}

.lang-switch-inline {
  font-size: 1rem !important;
  color: white;
  margin-left: 16px;
  display: none !important;
  position: relative;
  top: 7px; /* ← この値を調整して縦位置を下げる */
}

.lang-switch-inline a {
  font-size: 12px !important; /* ← nav a に勝つ */
  color: white;
  text-decoration: none;
  padding: 0 4px ;  
  transition: opacity 0.3s;
}

.lang-switch-inline a:hover {
  opacity: 0.6;
}

.lang-switch-inline a::after {
  display: none !important;
  content: none !important;
}


section {
  max-width: 960px;
  margin: 100px auto;
  padding: 40px 20px;
}

section h2.section-heading {
  text-align: left;
  margin-top: 0;
}

h2 {
  color: #1c2a33;
  margin-bottom: 32px;
  text-align: center;
}

.home-flex {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.home-image {
  width: 50%;
  max-width: 480px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  overflow: hidden;
}

.home-overlay-wrap {
  width: 50%;
  max-width: 480px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  overflow: hidden;
  position: relative;
}

.home-image img,
.home-overlay-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.overlay-text {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-weight: bold;
  font-size: 1.5em;
  text-align: center;
  line-height: 1.6;
  white-space: nowrap;
  animation: fadeInUp 1.5s ease-out both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.overlay-links {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
  flex-wrap: wrap;
  align-items: center;
}

.overlay-links a {
  background: #2e3e4e;
  color: #fff;
  padding: 6px 20px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.95em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.overlay-links a:hover {
  background: #1c2a33;
  transform: scale(1.08);
}


.scroll-down-arrow {
  opacity: 0;
  animation: fadeInText 1s ease-in 3.0s forwards;  /* ← 少し遅いタイミング＆演出で表示 */
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5em;
  text-align: center;
  cursor: pointer;
  z-index: 3;            /* ← 背景より前に出す */
  position: relative;    /* ← これ重要！ */
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.concept-wrapper {
  margin-top: 60px;
  text-align: center;
  padding: 0 40px; /* bio-preview-wrapper に合わせる */
  max-width: 1200px; /* bio-preview と同じにする */
  margin-left: auto;
  margin-right: auto;
  text-align: left; /* 見出しの整合性が必要なら */
}

.concept-wrapper .section-heading {
  font-size: 1.2em;
}

.concept-video-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1em;
  margin-bottom: 4em;  /* ← この行を追加 or 調整 */
}

.concept-video-wrapper video {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
  justify-content: center;
}
.video-note {
  font-size: 0.9rem;
  color: #555;
  margin-top: 1em;
  text-align: center;
  font-style: italic;
}

.bio-text {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  line-height: 2.2;
  letter-spacing: 0.05em;
}

.bio-subtitle {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 2em;
  color: #1e2d3a;
}

.bio-progress {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  border-radius: 50%;
  --step: 0;
  background: conic-gradient(
    #e6e6ea 0deg calc(360deg * var(--step) / 8),
    #406882 0deg
  );
  vertical-align: middle;
}

/* カスタムプロパティで段階制御 */
.bio-progress[data-step="0"] {
  background: #406882; /* ← 完全なグレーの塗りなし円 */
}
.bio-progress[data-step="1"] { --step: 1; }
.bio-progress[data-step="2"] { --step: 2; }
.bio-progress[data-step="3"] { --step: 3; }
.bio-progress[data-step="4"] { --step: 4; }
.bio-progress[data-step="5"] { --step: 5; }
.bio-progress[data-step="6"] { --step: 6; }
.bio-progress[data-step="7"] { --step: 7; }
.bio-progress[data-step="8"] { --step: 8; }

.bio-paragraph {
  margin-top: 1em;
  font-size: 1.05em;
  line-height: 2;
  color: #333;
}

.bio-intro-with-photo {
  display: flex;
  flex-wrap: wrap;
  gap: 4em;
  margin-bottom: 3em;
}

.bio-text-block {
  flex: 2;
  min-width: 300px;
}

.bio-text p:last-of-type {
  margin-bottom: 2em;
}

.bold,
 strong {
  font-weight: bold;
  color: #1c2a33 ; /* 必要なら色指定 */
}


.bio-photo-block {
  flex: 1;
  min-width: 250px;
  /* 中央揃えをここで実現 */
  display: flex;
  align-items: flex-start; /* ← 中央揃え→上寄せ */
  margin-top: 7em; /* ← 好みに応じて増減（例：1em〜3em） */
}

.bio-photo-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .bio-intro-with-photo {
    flex-direction: column;
  }
  .bio-photo-block, 
  .bio-text-block {
    width: 100%;
    display: block;
  }
  .bio-photo-block {
    margin-top: 0em; /* 1〜2emくらいで詰め感調整できます */
  }
}

.bio-story-box {
  font-family: 'Yuji Syuku', "Yu Mincho", "游明朝", serif;
  background-color: rgba(250, 240, 245, 0.6);  /* ほんのりピンク + 透明感 */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);  padding: 1.5em 3em;
  margin: 2em auto 1em auto;
  width: auto;           /* ← これが効くことも */
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);  /* ← 影をかなり控えめに */
  max-width: 860px;
  line-height: 1.9;
  font-weight: normal; /* ← これで太字にならない */
  color: #333;
  box-sizing: border-box;
  display: block;         /* ← 必ずブロック要素に */
}

.bio-story-heading {
  font-size: 1rem;  /* ← 小さめに */
  font-weight: normal;
  color: #1c2a33;
  margin-bottom: 0.5em;
}

.bio-story-text {
  font-size: 1em;  /* ← 小さくして主張を抑える */
  letter-spacing: 0.03em;
}

.bio-divider-decorated {
  text-align: center;
  margin: 3em auto 3em auto;  /* 上は本文との余白、下はボックスとの距離 */
  position: relative;
}

.bio-divider-decorated::before {
  content: "";
  display: block;
  width: 100%;
  max-width: 960px;
  height: 1px;
  background-color: #ccc;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.5;
}

.bio-divider-decorated .decor {
  display: inline-block;
  position: relative;
  background-color: #f8f7f3;  /* ← 背景に合わせるときれいに馴染む */
  padding: 0 0.5em;
  font-size: 1.2em;
  color: #999;
  z-index: 1;
}


.gallery {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.gallery img {
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
}

.column-item {
  display: flex;
  align-items: center; /* ← これが重要！ */
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;  /* news と合わせる */
  transition: opacity 0.3s;
}

.column-item:hover {
  opacity: 1; 
}

.column-thumb {
  display: flex;             /* ← 明示的にflexにする */
  align-items: center;       /* ← 画像の上下中央に配置 */
  height: 100px;             /* 画像と同じ高さにして中央揃え */
}

.column-thumb img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  display: block;            /* ← これが地味に効く！ */
}

.column-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  /* ← 中央 → 上寄せに修正 */
  margin-top: 4px;
  border-radius: 8px;
}

.column-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.column-tags .tag {
  font-size: 0.9rem;
  padding: 1px 10px;
  line-height: 1.2;        /* 行間を詰める */
  background-color: #e7e7e7;
  color: #333;
  border-radius: 4px;
  pointer-events: none;
}

.column-tags .tag:hover {
  background-color: #f3f3f3; /* ← 通常と同じにする */
  color: #333;
  cursor: default;
  text-decoration: none;
}

.column-tags .tag.active {
  background-color: #a3b18a; /* ← 少し明るめの紺 */
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); /* ふわっとした影 */
  border-radius: 6px;
  transition: all 0.3s ease;
}

.column-title a {
  font-size: 1.1rem; /* または 17px くらいでもOK */
  font-weight: normal; /* ← 標準に戻す */
  line-height: 1.7;  /* ゆとりを持たせる */
  font-family: "游明朝", serif;
  margin-top: 8px;
  display: inline-block;
  color: #111;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.column-title a:hover {
  text-decoration: underline;
  opacity: 0.6;  /* ← 半透明に */
}



.news-section {
  padding: 40px 20px 60px;
  margin: 100px auto; /* ← ここで他と揃える */
  max-width: 960px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.news-item {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #ddd;
  padding-bottom: 16px;
  transition: opacity 0.3s;
}

.news-item:hover {
  opacity: 0.7;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 6px;
}

.news-date {
  font-family: "游明朝", serif;
}

.news-title {
  font-size: 1.1rem;
  line-height: 1.6;
  font-family: "游明朝", serif;
}


footer {
  text-align: center;
  padding: 15px 20px;
  background-color: rgba(28, 42, 51, 1.0);
  color: white;
  font-size: 14px;
  margin-top: auto; /* ← フッターを一番下にくっつける */
  height: 40px;                     /* ← 固定高さ */
}

footer p {
  margin: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

input,
textarea,
button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

button {
  background-color: #2e3e4e;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #1c2a33;
}



/* Worksセクション全体 */
.works-section {
  max-width: 960px;           /* bioと横幅を揃える */
  margin: 100px auto;
  padding: 40px 20px;
  text-align: center;
}

/* セクション見出し */
.works-section .section-heading {
  font-size: 2rem;
  color: #1c2a33;
  margin-bottom: 40px;
  text-align: left;
}

/* グリッドレイアウト */
.works-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

/* 各作品アイテム */
.work-item {
  text-align: center;
  color: #333; /* bioのテキスト色と統一 */
  width: calc(50% - 20px); /* 2列にする（gapの分引く） */
  text-align: left;
  text-decoration: none;
  display: block;
}

/* サムネイル画像 */
.work-thumbnail {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  margin-bottom: 0.3em;
}

.work-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 中央を切り取って均一に表示 */
  display: block;
}

/* ホバー時の拡大演出 */
.work-thumbnail:hover {
  transform: scale(1.03);
}

/* 作品タイトル */
.work-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
  color: #1e2d3a;
  line-height: 1.1;  /* ← 行間を詰める */
}

/* 年などの補足情報 */
.work-year {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0;  /* ← 念のため追加：上マージンなしに */
  line-height: 1;  /* ← さらに詰める */
}


#works,
#column,
#news {
  padding-bottom: 200px; /* ← フッターの高さ＋ちょっと余裕 */
}


/* ハンバーガーアイコン */
.hamburger {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1001;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  background: white;
  margin: 5px 0;
  border-radius: 2px;
}

/* ハンバーガーを表示（モバイル） */
@media screen and (max-width: 1200px) {
  .hamburger {
    display: block;
  }

  /* PC用navを非表示にする */
  .nav-wrapper nav {
    display: none;
  }

  /* PC用SNSを非表示にする */
  .social-icons.desktop {
    display: none;
  }
}

/* モバイルメニュー（.mobile-menu） */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 20px;
  height: calc(100vh - 70px); /* ← ナビバーの高さを引いた残り */
  max-height: calc(100vh - 100px); /* ← ナビと余白を除いた高さ */
  background-color: rgba(28, 42, 51, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari対応 */
  padding: 0; /* ← paddingをmenu-contentに移動 */
  padding-bottom: 0;  /* ← 念のため確認 */
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: auto;
  max-width: 260px; /* ← SNS込みで幅確保しつつコンパクトに */
  display: none;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
  overflow-y: auto; /* ← 内容が多い場合スクロール可能に */
}

.mobile-menu.open {
  display: flex;
}

/* ナビとSNSを上下に分ける */
.mobile-menu .menu-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 12px 16px; /* ← 内側に余白を移動 */
  padding-bottom: 0;  /* ← これも上書きで確認 */
  flex-grow: 1; /* これ重要！ */
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px; /* ← 間隔を縮小 */
}

.mobile-menu nav a {
  font-size: 14px; /* ← 小さめで収まりよく */
  padding: 2px 0;
  white-space: nowrap;
  color: white;
  text-decoration: none;
}

.mobile-sns-links {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-sns-links a {
  font-size: 11px !important;
  color: white;
  text-decoration: none;
}

.mobile-sns-links a:hover {
  text-decoration: none;
}

.mobile-linebreak {
  display: none;
}

.mobile-linebreak::after {
  content: "";
  display: none;
}


.lang-switch-inline.mobile-lang {
  display: none !important;
  align-items: left;
  font-size: 12px;
  color: white;
  margin-top: 12px;
}

.lang-switch-inline.mobile-lang a{
  display: inline;
  text-align: left;
  font-size: 12px !important;
  color: white;
  margin-top: 12px;
  padding-left: 2px;     /* ← 左に少し余白を追加してもいい */
  padding: 0 1px;
  margin: 0;
}

.lang-switch-inline.mobile-lang .lang-separator {
  font-size: 12px;
  padding: 0 1px;
}


@media screen and (max-width: 800px) {
  .home-header h1 {
    font-size: 1rem; /* ← 少し小さめに調整 */
    line-height: 1.3;
  }
  .home-header p {
    font-size: 1rem; /* ← サブキャッチも調整 */
  }
  .home-header p.home-catch {
    font-size: 1.4rem; /* ← キャッチコピーも縮小 */
  }
  .mobile-linebreak {
    display: block;  /* ← これだけで改行されます！ */
    height: 0;              /* ← 空要素の高さ調整 */
    line-height: 0;         /* ← 空行ができないように */
  }

  .bio-preview-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    gap: 0;
  }

  .bio-more-button {
    width: 100px;
    height: 100px;
    border-radius: 50px;
    font-size: 1rem;
    margin-top: 0; /* こちらも確認 */
  }

  .concept-wrapper {
    padding: 0 20px; /* ← bio-preview-wrapper に合わせて */
  }
  .video-note {
    font-size: 0.7rem;
  }


  /* ↓ 全体共通のセクション見出しを小さくする */
  .section-heading {
    font-size: 1.6rem; /* ← PCではおそらく1.6rem〜2remだったはず */
  }

  /* biographyセクション全体 */
  #biography {
    font-size: 0.9rem;
  }

  .bio-paragraph{
    font-size: 0.95rem;
    margin-bottom: 2em
  }

  .bio-story-text {
    font-size: 0.95rem;
  }

  /* ↓ biography内の見出しを小さくする */
  .bio-subtitle {
    font-size: 1.3rem;  /* ← 以前より小さめに */
    margin-top: 1em;
  }
  .bio-intro-with-photo {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 0em;
  }

  #works 
  .section-heading {
    font-size: 1.6rem !important;
  }
  .works-list {
    flex-direction: column;
    gap: 1.5rem; /* 項目間の余白を調整（必要に応じて） */
  }

  .work-item {
    width: 100%;      /* 横幅いっぱいに */
    max-width: 100%;  /* 必要なら制限を解除 */
  }
 }

  /* newsセクション */
  #news {
    font-size: 0.9rem;
  }

  .news-title {
    font-size: 1rem;
  }

  .news-date {
    font-size: 0.85rem;
  }

  /* contactセクション */
  #contact {
    font-size: 0.9rem;
  }

  .contact-text,
  .contact-form label,
  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 0.9rem;
  }
}



/* 最初はホーム以外を非表示にする */
section:not(#home):not(#home-main) {
  display: none;
}
