/* ========================================
   CSS Variables - 赤と白のチームカラー
======================================== */
:root {
  --primary-red: #dc143c;
  --dark-red: #a01020;
  --light-red: #ff6b6b;
  --white: #ffffff;
  --off-white: #fafafa;
  --light-gray: #f5f5f5;
  --gray: #666666;
  --dark-gray: #333333;
  --black: #1a1a1a;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Base Styles
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--dark-gray);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.sp-only {
  display: none;
}

/* ========================================
   Header
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logo a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-red);
  letter-spacing: 0.1em;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.2em;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.main-nav a {
  font-weight: 600;
  color: var(--dark-gray);
  padding: var(--spacing-xs) 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: var(--primary-red);
}

.main-nav a:hover::after {
  width: 100%;
}

/* ========================================
   Hero Section — 動画フルスクリーン
======================================== */

/* ロゴ画像 */
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  mix-blend-mode: multiply; /* 黒背景を白ヘッダーに溶け込ませる */
  transition: opacity 0.3s;
}
.logo a:hover .logo-img {
  opacity: 0.7;
}
.logo a {
  display: flex;
  align-items: center;
}

/* ヒーロー全体ラッパー */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #111;
  margin-top: 70px;
}

/* 動画（ループ背景） */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}

/* グラデーションオーバーレイ */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.1) 35%,
    rgba(0, 0, 0, 0.65) 100%
  );
  pointer-events: none;
}

/* ========================================
   ヒーロー内コンテンツ: 左右分割レイアウト
======================================== */
.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end; /* 下揃え */
  justify-content: space-between;
  padding: 0 6% 4%;
  gap: 2rem;
  z-index: 2;
}

/* ── 左: メインキャッチ ── */
.hero-left {
  flex: 1;
  min-width: 0;
}

.hero-catch {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
  margin: 0;
}
.hero-catch span {
  display: block;
}

/* ── 右: NEXT EVENT カード群 ── */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 260px;
  max-width: 320px;
}

/* NEXT EVENT ラベル */
.hero-next-label {
  font-family: "Bebas Neue", "Noto Sans JP", sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  letter-spacing: 0.45em;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.2rem;
}
.hero-next-label::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
}

/* 各イベントカード */
.hero-event-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 0.35rem 2rem 0.35rem 0.6rem;
  transition: background 0.3s;
  text-decoration: none;
  color: #fff;
  display: block;
  position: relative;
}

.hero-event-category {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--light-red);
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.hero-event-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 0.2rem;
}
.hero-event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.2rem;
}
.hero-event-date,
.hero-event-location {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}
/* hidden 属性を display:flex の上書きから守る */
.hero-event-location[hidden] {
  display: none;
}
.hero-event-date i,
.hero-event-location i {
  font-size: 0.72rem;
  color: var(--light-red);
  flex-shrink: 0;
}
.hero-event-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-size: 0.65rem;
  padding: 0.3rem;
  transition: color 0.2s;
  line-height: 1;
}
.hero-event-toggle:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* カード内スケジュールリスト (3件以下) */
.hero-schedule-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
}
.hero-schedule-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.2rem 0;
}
.hs-time {
  flex-shrink: 0;
  color: var(--light-red);
  font-weight: 600;
  min-width: 3rem;
}
.hs-venue {
  flex: 1;
}

/* アクセスカウンター */
.fc2-counter {
  text-align: center;
  padding: 1rem 0;
}

/* ========================================
   Photo Loop Section
======================================== */
.photo-loop-section {
  padding: var(--spacing-md) 0;
  background: var(--white);
  overflow: hidden;
}

.photo-track-wrapper {
  overflow: hidden;
}

.photo-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: photoScroll 25s linear infinite;
}

.photo-track:hover {
  animation-play-state: paused;
}

.photo-item {
  flex-shrink: 0;
  width: 320px;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes photoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ========================================
   YouTube 埋め込みセクション
======================================== */
.youtube-section {
  padding: var(--spacing-xl) 0;
  background: var(--black);
}

.youtube-heading {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.youtube-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.6em;
  color: #c9a227;
  margin-bottom: 0.5rem;
}

.youtube-main {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}

.youtube-song-title {
  font-size: clamp(4rem, 11vw, 7.5rem);
  font-weight: 900;
  letter-spacing: 0.25em;
  text-indent: 0.25em; /* letter-spacing の末尾スペース分を補正して中央揃え */
  text-align: center;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.youtube-song-roman {
  text-align: center;
  text-indent: 0.45em; /* letter-spacing の末尾スペース分を補正して中央揃え */
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  letter-spacing: 0.45em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.4em;
}

.youtube-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}
.youtube-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* SNS アイコン画像サイズ（下の .sns-icon img ルールで管理） */

/* ========================================
   Responsive — Hero
======================================== */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 5% 10%;
    gap: 1.5rem;
  }
  .hero-right {
    max-width: 100%;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .hero-event-card {
    flex: 1 1 45%;
    min-width: 0;
  }
  .hero-next-label {
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .hero-video-section {
    margin-top: 60px;
    min-height: 600px; /* スマホでは少し高さを確保 */
  }
  .logo-img {
    height: 40px;
  }

  /* スマホではテキストを少し小さく */
  .hero-catch {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
    line-height: 1.3;
  }

  /* スマホでは縦並びに、上部に余裕を持たせる */
  .hero-inner {
    padding: 15% 4% 2%; /* 上部のpaddingを増やす */
    gap: 2rem;
  }

  .hero-right {
    flex-direction: column; /* スマホは縦並び */
    width: 100%;
    gap: 0.15rem;
  }

  .hero-event-card {
    flex: none;
    width: 100%;
  }

  .hero-next-label {
    width: 100%;
    flex: none;
    margin-bottom: 0.1rem;
  }
}

/* ========================================
   Section Titles
======================================== */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.title-ja {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--primary-red);
  margin-bottom: var(--spacing-xs);
}

.title-en {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.3em;
}

/* ========================================
   News Section
======================================== */
.news-section {
  padding: var(--spacing-xl) 0;
  background: var(--white);
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.news-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 168px;
  background: var(--off-white);
  border-left: 4px solid var(--primary-red);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.news-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow);
}

.news-badge {
  background: var(--primary-red);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.news-badge--info,
.news-badge--media    { background: #2a7bbf; }   /* 動画・写真：水色に近い青 */
.news-badge--report   { background: #b8860b; }   /* 活動報告：暗めの黄色    */
.news-badge--greeting { background: #707070; }   /* ご挨拶：グレー          */
.news-badge--event    { background: var(--primary-red); } /* イベント：赤    */
.news-badge--party    { background: #e07820; }   /* 宴会：オレンジ          */
.news-badge--notice   { background: #28903c; }   /* お知らせ：緑            */
.news-badge--sns      { background: #8040a8; }   /* SNS：紫                 */

/* サムネ付きカード — 常に横並び */
.news-item--has-thumb {
  flex-direction: row;
}

.news-item-thumb {
  width: 140px;
  aspect-ratio: 5 / 6;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
  background: #f0f0f0;
  border-radius: 0;
  display: block;
}

.news-item-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  gap: 0.3rem;
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 5.5rem; /* バッジ分の余白（絶対配置と重ならないよう） */
}

/* バッジはカード全体の右上に固定（サムネ有無で位置がぶれない） */
.news-item .news-badge {
  position: absolute;
  right: 1rem;
  top: 0.75rem;
}

.news-text {
  flex: 1;
  font-weight: 600;
  color: var(--dark-gray);
}

/* ========================================
   About Section
======================================== */
.about-section {
  padding: var(--spacing-xl) 0;
  background: var(--light-gray);
}

.about-lead {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: var(--spacing-lg);
  color: var(--dark-gray);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.feature-card {
  background-color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
}

.feature-card-link {
  display: inline-block;
  color: var(--primary-red);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.feature-card-link:hover {
  text-decoration: underline;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-red);
  margin: 0;
  line-height: 1.3;
}

.feature-card p {
  color: var(--gray);
  line-height: 1.6;
  font-size: 0.9rem;
  margin: 0;
  word-break: break-all;
}

.btn-center {
  text-align: center;
  padding: var(--spacing-md);
}

/* ========================================
   CTA Section（お問い合わせ）
======================================== */
.cta-section {
  padding: var(--spacing-xl) 0;
  background: var(--light-gray);
}

.cta-cards {
  display: flex;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: var(--shadow);
  background-color: var(--white);
  color: var(--dark-gray);
  width: 100%;
}

.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cta-performance {
  background-color: var(--white);
  color: var(--dark-gray);
}

.cta-card-icon {
  font-size: 3.2rem;
  color: var(--primary-red);
  margin-bottom: var(--spacing-sm);
}

.cta-card h3 {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--primary-red);
  margin-bottom: 0.75rem;
}

.cta-card p {
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: var(--spacing-sm);
  flex: 1;
}

.cta-btn {
  display: inline-block;
  margin-top: auto;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-red);
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 2px;
}

/* ========================================
   Content Section
======================================== */
.content-section {
  padding: var(--spacing-xl) 0;
  background: var(--white);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.content-card {
  background: var(--off-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.content-card:hover {
  background: var(--white);
  border-color: var(--primary-red);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.content-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.content-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: var(--spacing-xs);
}

.content-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ========================================
   Schedule Section
======================================== */
.schedule-section {
  padding: var(--spacing-xl) 0;
  background: var(--light-gray);
}

.schedule-placeholder {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.schedule-placeholder p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: var(--spacing-md);
}

.btn-primary {
  display: inline-block;
  background: var(--primary-red);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-primary:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary-red);
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  border: 2px solid var(--primary-red);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-red);
  color: var(--white);
  transform: translateY(-2px);
}

.page-header-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--primary-red);
  margin-bottom: 0.25rem;
}

.page-header-en {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.2em;
}

/* ========================================
   Family Page - Member Styles
======================================== */
.family-page {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
}

.page-header {
  background: linear-gradient(
    135deg,
    var(--off-white) 0%,
    var(--light-gray) 100%
  );
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.page-title {
  margin-bottom: var(--spacing-md);
}

.page-description {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
}

.year-nav {
  background: var(--white);
  border-bottom: 2px solid var(--light-gray);
  position: sticky;
  top: 70px;
  z-index: 100;
}

.year-nav .container {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
}

.year-link {
  padding: var(--spacing-md);
  font-weight: 700;
  color: var(--gray);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.year-link:hover,
.year-link.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
}

.member-section {
  padding: var(--spacing-xl) 0;
}

.member-group-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-red);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 3px solid var(--primary-red);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--spacing-md);
}

.member-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.member-avatar {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--light-gray);
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.member-card:hover .member-avatar img {
  transform: scale(1.05);
}

.member-info {
  padding: var(--spacing-md);
  text-align: center;
}

.member-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 0.3rem;
}

.member-role {
  font-size: 0.9rem;
  color: var(--primary-red);
  font-weight: 600;
}

/* ========================================
   Modal
======================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2001;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2002;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--primary-red);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
}

.modal-image {
  width: 100%;
}

.modal-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.modal-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-red);
}

.modal-role {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.detail-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-xs);
}

.detail-item p {
  color: var(--gray);
  line-height: 1.7;
}

/* ========================================
   Footer
======================================== */
.site-footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section {
  min-width: 0;
}

.footer-section h3,
.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  white-space: nowrap;
}

.footer-section p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-text {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.3s ease;
  display: block;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--light-red);
}

/* フッター SNS アイコン */
.footer-sns {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
  flex-shrink: 0;
}

.footer-sns-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.footer-sns-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.copyright {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.active {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-sm) 0;
  }

  .main-nav a {
    display: block;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--light-gray);
  }

  .members-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-sm);
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  /* ② 演舞依頼カード縦長修正 */
  .cta-section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .cta-cards {
    padding: 0 var(--spacing-md);
  }

  .cta-card {
    padding: 2rem 1.5rem 1.75rem;
  }

  .cta-card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
  }

  .cta-card h3 {
    font-size: 1.2rem;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .cta-card p {
    font-size: 0.9rem;
    word-break: normal;
    overflow-wrap: break-word;
    margin-bottom: 1.25rem;
  }

  .cta-btn {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--primary-red);
    color: #fff;
    border-radius: 6px;
    border-bottom: none;
    font-size: 1rem;
    text-align: center;
  }

  /* ③ YouTube動画を大きく */
  .youtube-wrap {
    padding: 0;
  }

  /* ④ お知らせ縦レイアウト */
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 1rem 1.25rem;
  }
  /* サムネ付きは常に横並みを維持 */
  .news-item--has-thumb {
    flex-direction: row;
    align-items: stretch;
    padding: 0;
  }
  .news-item--has-thumb .news-item-thumb {
    width: 130px;
  }
  .news-item-date {
    font-size: 0.78rem;
    color: var(--gray);
    font-weight: 500;
  }

  .news-item .news-badge {
    font-size: 0.78rem;
    padding: 0.18rem 0.7rem;
  }

  .news-item .news-text {
    min-width: 0;
    word-break: normal;
    overflow-wrap: break-word;
    font-size: 0.97rem;
    margin: 0.1rem 0;
  }

  .news-item .news-link {
    font-size: 0.82rem;
    margin-left: 0;
    margin-top: 0.1rem;
  }

  /* ⑤ フォトループ画像を小さく */
  .photo-item {
    width: 220px;
    height: 150px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }

  .footer-section h3,
  .footer-section h4 {
    white-space: normal;
  }

  .footer-links {
    align-items: center;
  }

  .footer-links a {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ========================================
   Additional Styles - Organization & Recruit Pages
======================================== */
.page-main {
  margin-top: 70px;
  min-height: calc(100vh - 200px);
}
.content-section-detail {
  padding: 4rem 0;
  background: var(--white);
}
.detail-content {
  max-width: 900px;
  margin: 0 auto;
}
.content-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--primary-red);
  margin: 3rem 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-red);
}
.content-text {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 2rem;
}
.thought-grid,
.recruit-targets,
.role-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.thought-card,
.target-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border: 2px solid var(--light-gray);
  text-align: center;
  transition: all 0.3s;
}
.thought-card:hover,
.target-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-3px);
}
.thought-icon,
.target-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.thought-card h4,
.target-card h4 {
  font-size: 1.2rem;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}
.symbol-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin: 2rem 0;
}
.symbol-item {
  background: var(--light-gray);
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
}
.color-display {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}
.color-box {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.color-box.red {
  background: var(--primary-red);
}
.color-box.white {
  background: var(--white);
  border: 2px solid var(--gray);
}
.camellia-symbol {
  width: 120px;
  height: 120px;
  margin: 2rem auto;
  background: radial-gradient(circle, #ff6b6b 0%, #dc143c 50%, #a01020 100%);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(220, 20, 60, 0.4);
}
.timeline {
  margin: 2rem 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-left: 3px solid var(--primary-red);
  padding-left: 2rem;
  margin-left: 2rem;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 2rem;
  width: 15px;
  height: 15px;
  background: var(--primary-red);
  border-radius: 50%;
}
.timeline-date {
  font-weight: 700;
  color: var(--primary-red);
}
.cta-section {
  text-align: center;
  background: var(--light-gray);
  padding: 4rem;
  border-radius: 8px;
  margin: 4rem 0;
}
.cta-section h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-red);
  margin-bottom: 1rem;
}
.org-chart {
  margin: 4rem 0;
  padding: 2rem;
}
.org-level {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.org-box {
  background: var(--white);
  border: 2px solid var(--primary-red);
  border-radius: 8px;
  padding: 2rem;
  min-width: 180px;
  text-align: center;
  transition: all 0.3s;
}
.org-box:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.org-box.org-president,
.org-box.org-vice {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: var(--white);
}
.org-box.org-members {
  background: var(--light-gray);
  border-style: dashed;
}
.org-title {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.org-role {
  font-size: 0.85rem;
  opacity: 0.9;
}
.org-connector {
  text-align: center;
  padding: 1rem 0;
}
.org-connector::before {
  content: "↓";
  font-size: 2rem;
  color: var(--primary-red);
}
.role-card {
  background: var(--off-white);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-red);
}
.role-badge {
  display: inline-block;
  background: var(--primary-red);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}
.role-list {
  list-style: none;
  margin-top: 1rem;
}
.role-list li {
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}
.role-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary-red);
}
.recruit-header {
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--dark-red) 100%
  );
  color: var(--white);
}
.recruit-hero {
  background: linear-gradient(135deg, var(--light-gray), var(--off-white));
  padding: 4rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 3rem;
}
.recruit-hero h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-red);
  margin-bottom: 2rem;
}
.recruit-info {
  background: var(--light-gray);
  padding: 3rem;
  border-radius: 8px;
  margin: 2rem 0;
}
.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 3rem 0;
}
.flow-step {
  background: var(--white);
  border: 2px solid var(--primary-red);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  min-width: 150px;
  flex: 1;
  max-width: 200px;
}
.flow-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: var(--primary-red);
  color: var(--white);
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.flow-arrow {
  font-size: 1.5rem;
  color: var(--primary-red);
  font-weight: 700;
}
.faq-list {
  margin: 2rem 0;
}
.faq-item {
  background: var(--off-white);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-red);
}
.faq-q {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 1rem;
}
.faq-a {
  line-height: 1.8;
}
.schedule-list {
  margin: 2rem 0;
}
.schedule-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--off-white);
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-red);
}
.schedule-date {
  font-weight: 700;
  color: var(--primary-red);
  font-size: 1.1rem;
}
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}
.contact-card {
  background: var(--light-gray);
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
}
.contact-card h3 {
  font-size: 1.3rem;
  color: var(--primary-red);
  margin-bottom: 2rem;
}
.contact-card a.btn-primary {
  color: #ffffff;
  text-decoration: none;
}
.sns-section {
  padding: 3rem 0;
  background: var(--white);
}
.sns-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.sns-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 1.25rem 1rem;
  border-radius: 8px;
  min-width: 80px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.sns-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
/* コンテナは全アイコン共通サイズ（高さ統一でテキスト位置を揃える） */
.sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}
/* 円形アイコンは36px表示（コンテナ中央に配置） */
.sns-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
/* YouTubeはPNG内の余白が多いため画像を大きくして実際のロゴサイズを他と揃える */
.sns-link.youtube .sns-icon img {
  width: 56px;
  height: 56px;
}
.sns-name {
  font-weight: 700;
  font-size: 0.78rem;
}
.has-submenu {
  position: relative;
}
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  min-width: 200px;
  z-index: 1000;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
}
.has-submenu:hover .submenu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li {
  margin: 0;
}
.submenu a {
  display: block;
  padding: 1rem 2rem;
  color: var(--dark-gray);
  transition: all 0.3s;
}
.submenu a::before {
  display: none;
}
.submenu a:hover {
  background: var(--light-gray);
  color: var(--primary-red);
}
.news-link {
  color: var(--primary-red);
  font-weight: 700;
  margin-left: auto;
  white-space: nowrap;
}

/* お知らせ日付 */
.news-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* ページネーション */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.news-page-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray);
  background: var(--white);
  border: 2px solid #ddd;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.news-page-btn:hover:not(:disabled) {
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.news-page-btn.is-active {
  color: var(--white);
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.news-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* =============================================
   お知らせ詳細モーダル
============================================= */
.news-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.news-modal.is-open {
  display: flex;
}
.news-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.news-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  max-width: 680px;
  width: 92%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.news-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: rgba(0,0,0,0.12);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s;
}
.news-modal-close:hover { background: rgba(0,0,0,0.35); }
.news-modal-img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #f0f0f0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.news-modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.news-modal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.news-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1.4;
  margin: 0;
}
.news-modal-detail {
  font-size: 0.9rem;
  color: var(--dark-gray);
  line-height: 1.8;
  margin: 0;
}
.news-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--primary-red);
  color: #fff;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s;
}
.news-modal-link:hover { background: var(--dark-red); }
@media (max-width: 768px) {
  /* スマホ: サブメニューは is-open がない限り非表示 */
  .main-nav .submenu {
    position: static !important;
    display: none !important;
    box-shadow: none;
    background: var(--light-gray);
    padding-left: 2rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  /* JS で .is-open が付いたら展開 */
  .main-nav .has-submenu.is-open > .submenu {
    display: block !important;
  }
  /* スマホ: 親メニュー（チーム紹介・コンテンツ）はクリックで展開 */
  .submenu-toggle {
    cursor: pointer !important;
    pointer-events: auto !important;
    color: var(--dark-gray) !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
  /* ▽/△ インジケーター（デスクトップの下線アニメ ::after を上書き） */
  .submenu-toggle::after {
    content: '▼' !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    font-size: 0.7rem;
    transition: none !important;
    opacity: 0.6;
  }
  .submenu-toggle.is-open::after {
    content: '▲' !important;
  }
  .flow-steps {
    flex-direction: column;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .timeline-item {
    grid-template-columns: 1fr;
  }
  .org-level {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================================
   Overview Page (風舞人とは)
======================================== */

/* ページヒーローヘッダー */
.page-hero-header {
  position: relative;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 4rem;
  margin-top: 70px;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.page-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.page-hero-en {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.35em;
}

.ov-breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--spacing-sm);
}

.ov-breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.ov-breadcrumb a:hover {
  color: var(--white);
}
.ov-breadcrumb strong {
  color: var(--white);
}

/* セクション共通 */
.ov-section {
  padding: var(--spacing-xl) 0;
  background: var(--white);
}

.ov-section--gray {
  background: var(--light-gray);
}

.ov-section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.ov-title-ja {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  color: var(--primary-red);
  margin-bottom: 0.25rem;
}

.ov-title-en {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.3em;
}

/* ① Aboutセクション */
.ov-about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.ov-lead {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--dark-gray);
}

.ov-info-box {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  border-left: 4px solid var(--primary-red);
}

.ov-info-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: var(--spacing-sm);
}

.ov-info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 1rem;
  font-size: 0.9rem;
}

.ov-info-list dt {
  font-weight: 700;
  color: var(--primary-red);
  white-space: nowrap;
  padding-top: 0.1rem;
  width: 4em;
  text-align: justify;
  text-align-last: justify;
}

.ov-info-list dd {
  color: var(--dark-gray);
  line-height: 1.7;
  min-height: 1.5rem;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 0.4rem;
}

/* ② コンセプトカード */
.ov-concept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.ov-concept-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--spacing-md) var(--spacing-sm);
  text-align: center;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.ov-concept-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.ov-concept-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto var(--spacing-sm);
}

.ov-concept-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.ov-concept-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ③ 4大活動カード */
.ov-activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.ov-activity-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.ov-activity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.ov-activity-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.5rem;
  color: rgba(220, 20, 60, 0.1);
  position: absolute;
  top: 0.25rem;
  right: 0.75rem;
  line-height: 1;
  pointer-events: none;
}

.ov-activity-icon {
  font-size: 1.8rem;
  color: var(--primary-red);
  margin-bottom: 0.75rem;
}

.ov-activity-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 0.5rem;
}

.ov-activity-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ④ 演舞テーマの歴史 */
.ov-history-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: var(--spacing-md);
}

.ov-history-table-wrap {
  max-width: 700px;
  margin: 0 auto;
  overflow-x: auto;
}

.ov-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.ov-history-table thead th {
  background: var(--primary-red);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

.ov-history-table tbody td {
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid #e0e0e0;
  color: var(--dark-gray);
}

/* テーマ・曲名列（2列目）は最小幅を確保 */
.ov-history-table th:nth-child(2),
.ov-history-table td:nth-child(2) {
  min-width: 12em;
}

.ov-video-link {
  color: #ff0000;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
}

.ov-video-link:hover {
  opacity: 0.75;
}

.ov-history-table tbody tr:nth-child(even) td {
  background: var(--white);
}

.ov-history-table tbody tr:nth-child(odd) td {
  background: var(--off-white);
}

.ov-history-current td {
  background: #fff0f3 !important;
  font-weight: 700;
  color: var(--primary-red) !important;
}

/* ⑤ 一緒に踊りませんか？ */
.ov-recruit-cta {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  text-align: center;
}

.ov-recruit-inner h3 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.ov-recruit-inner p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
  margin-bottom: var(--spacing-md);
}

.ov-recruit-inner .btn-primary {
  background: var(--white);
  color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ov-recruit-inner .btn-primary:hover {
  background: var(--off-white);
  color: var(--dark-red);
}

/* レスポンシブ */
@media (max-width: 900px) {
  .ov-about-inner {
    grid-template-columns: 1fr;
  }
  .ov-concept-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ov-activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page-hero-header {
    min-height: 260px;
    padding: 5rem 0 3rem;
  }
  .ov-concept-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  /* 並び順: チームカラー→シンボル→伝統芸能→宴会 */
  /* HTML順: 1=宴会 2=チームカラー 3=シンボル 4=伝統芸能 */
  .ov-concept-card:nth-child(1) { order: 4; }
  .ov-concept-card:nth-child(2) { order: 1; }
  .ov-concept-card:nth-child(3) { order: 2; }
  .ov-concept-card:nth-child(4) { order: 3; }
  /* コンセプトカード: 縦並び維持でコンパクトに */
  .ov-concept-card {
    padding: 0.9rem 1rem 0.75rem;
  }
  .ov-concept-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .ov-concept-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }
  .ov-concept-card p {
    font-size: 0.82rem;
    line-height: 1.5;
  }
  .ov-activity-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  .ov-history-table-wrap {
    font-size: 0.85rem;
    overflow-x: visible;
  }
  .ov-history-table thead th,
  .ov-history-table tbody td {
    padding: 0.55rem 0.6rem;
  }

  /* 4大活動カード: アイコン・名前・番号を横1行に */
  .ov-activity-card {
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.6rem;
  }
  .ov-activity-icon {
    font-size: 1.3rem;
    margin-bottom: 0;
    order: 1;
    flex-shrink: 0;
  }
  .ov-activity-card h3 {
    order: 2;
    flex: 1;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
  }
  .ov-activity-num {
    position: static;
    font-size: 2rem;
    order: 3;
    margin-left: auto;
  }
  .ov-activity-card p {
    order: 4;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    margin-bottom: 0;
  }
}

/* テーマ・曲名の改行: PC非表示 / スマホ表示 */
.ov-br-sp {
  display: none;
}
@media (max-width: 600px) {
  .ov-br-sp {
    display: block;
  }
}

/* ========================================
   Organization Page - 組織図
======================================== */

/* 約束事セクション */
.org-rules-list {
  max-width: 800px;
  margin: 0 auto;
}

.org-rules-important {
  background: #fff5f7;
  border-left: 4px solid var(--primary-red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.org-rules-important p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-gray);
  line-height: 1.8;
  margin: 0;
}

.org-rule-star {
  color: var(--primary-red);
  font-size: 1rem;
  margin-right: 0.4rem;
}

.org-rules-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.org-rules-items li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.7;
}

.org-rule-circle {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--primary-red);
  font-size: 1.1rem;
}

/* ========================================
   風舞人21士カード
======================================== */
.org21-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.org21-card {
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid var(--primary-red, #dc143c);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.org21-highlight {
  box-shadow: 0 0 0 3px var(--primary-red), 0 4px 20px rgba(220,20,60,0.25);
  transform: scale(1.02);
}
.octree-role:hover,
.octree-name:hover,
.octree-tag:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.org21-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.org21-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-red, #dc143c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.org21-title-wrap {
  flex: 1;
  min-width: 0;
}

.org21-num {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #aaa;
  line-height: 1;
  margin-bottom: 0.1rem;
}

.org21-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black, #1a1a1a);
  margin: 0;
  line-height: 1.2;
}

.org21-duties {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #f0f0f0;
  padding-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.org21-duties li {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.5;
  padding-left: 0.8em;
  position: relative;
}

.org21-duties li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary-red, #dc143c);
  font-weight: 700;
}

@media (max-width: 900px) {
  .org21-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .org21-grid {
    grid-template-columns: 1fr;
  }
}

/* 組織図チャート（上から下ツリー）*/
.org-chart-note {
  text-align: center;
  font-size: 0.83rem;
  color: var(--gray);
  margin-bottom: var(--spacing-lg);
}

.octree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* 統括カード群（総長・副長）*/
.octree-root {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* カード共通 */
.octree-card {
  background: var(--white);
  border: 2px solid var(--primary-red);
  border-radius: var(--radius);
  padding: 0.65rem 1.1rem;
  text-align: center;
  min-width: 180px;
  max-width: 240px;
}

.octree-card--chief {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.octree-card--core {
  background: #fff0f3;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.octree-core-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--primary-red);
  letter-spacing: 0.08em;
  border: 1px solid var(--primary-red);
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 1rem;
  margin-bottom: 0.3rem;
  opacity: 0.85;
}

.octree-card--member {
  border-color: #ccc;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 0.9rem;
}

.octree-role {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.octree-card--chief .octree-role {
  color: rgba(255, 255, 255, 0.8);
}

.octree-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark-gray);
  line-height: 1.4;
}

.octree-card--chief .octree-name {
  color: var(--white);
}
.octree-card--member .octree-role {
  color: var(--gray);
  font-weight: 600;
}
.octree-card--member .octree-name {
  font-size: 0.82rem;
  color: var(--gray);
  font-weight: 400;
}

/* 縦線 */
.octree-vline {
  width: 2px;
  height: 20px;
  background: var(--primary-red);
  margin: 0 auto;
}

/* 副長→コアファミリー行 */
.octree-core-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  width: 100%;
}

/*
 * 各コアグループ
 * padding-top でブランチ線のスペースを確保する。
 * position: relative を基準に ::before/::after を配置するため、
 * padding-top は group 側に置く（row 側に置くと top:0 がずれる）
 */
.octree-core-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 22px;
}

/*
 * 横線：各グループが自分の担当範囲を描画
 * - 先頭グループ : 右半分のみ（left: 50%）
 * - 末尾グループ : 左半分のみ（right: 50%）
 * - 中間グループ : 全幅＋両隣の gap 半分まで伸ばす（gap:1rem → ±0.5rem）
 * → グループ数が何個になっても自動で伸縮
 */
.octree-core-group:not(:only-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: -0.5rem;  /* gap(1rem)の半分だけ左に伸ばして隣グループとつなぐ */
  right: -0.5rem;
  height: 2px;
  background: var(--primary-red);
}
.octree-core-group:first-child:not(:only-child)::before { left: 50%; }
.octree-core-group:last-child:not(:only-child)::before  { right: 50%; }

/* 縦線：横線 → コアカード */
.octree-core-group::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 22px;
  background: var(--primary-red);
}

/* コアカード → メンバーの縦線 */
.octree-members-conn {
  width: 2px;
  height: 18px;
  background: var(--primary-red);
  margin: 0 auto;
}

/* メンバー行：縦積み（横スクロール不要、人数増減に対応） */
.octree-members {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.4rem;
}

/* 各メンバーアイテム：縦並びで全幅 */
.octree-member-item {
  width: 100%;
  display: flex;
  justify-content: stretch;
}

/* メンバー名タグ一覧 */
.octree-member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: 0.3rem;
  justify-content: center;
}

/* 個人タグ */
.octree-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--dark-gray);
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  white-space: nowrap;
  background: var(--white);
}

/* レスポンシブ：スマホは縦積み＋左インデント */
@media (max-width: 900px) {
  .org-rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .octree-root .octree-card {
    min-width: 0;
    max-width: 280px;
    width: 100%;
  }

  .octree-core-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-top: 0;
    width: 100%;
  }

  /* 横線・縦コネクタを非表示（スマホは左ボーダーでインデント表現） */
  .octree-core-group::before,
  .octree-core-group::after {
    display: none;
  }

  .octree-core-group {
    padding-top: 0;
    align-items: stretch;
  }

  .octree-members-conn {
    display: none;
  }

  /* メンバー行：縦積み＋左ボーダーでインデント */
  .octree-members {
    flex-direction: column;
    padding-top: 0;
    padding-left: 1.25rem;
    margin-left: 0.75rem;
    margin-top: 0.5rem;
    border-left: 3px solid var(--primary-red);
    gap: 0.5rem;
  }

  .octree-member-item {
    justify-content: flex-start;
    padding-top: 0;
  }

  .octree-card--member {
    max-width: 100%;
  }

  /* スマホでは横線・縦線の代わりに vline を非表示 */
  .octree-vline {
    display: none;
  }

}

@media (max-width: 600px) {
  .org-rules-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
  }
  .octree-card {
    min-width: 0;
    width: 100%;
  }
}

/* ========================================
   Recruit Page - メンバー募集
======================================== */

/* 募集要項：画像 + テキスト横並び */
.rec-bosyu-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.rec-bosyu-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

.rec-bosyu-text {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  border-left: 4px solid var(--primary-red);
}

.rec-info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 1rem;
  font-size: 0.92rem;
}

.rec-info-list dt {
  font-weight: 700;
  color: var(--primary-red);
  white-space: nowrap;
  padding-top: 0.1rem;
  width: 4em;
  text-align: justify;
  text-align-last: justify;
}

.rec-info-list dd {
  color: var(--dark-gray);
  line-height: 1.7;
  min-height: 1.5rem;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 0.4rem;
}

/* 入会までの流れ：4ステップ */
.rec-flow-grid {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
}

.rec-flow-card {
  flex: 1;
  max-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--spacing-md) var(--spacing-sm);
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.rec-flow-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.rec-flow-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.5rem;
  color: rgba(220, 20, 60, 0.08);
  position: absolute;
  top: 0.2rem;
  right: 0.6rem;
  line-height: 1;
  pointer-events: none;
}

.rec-flow-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary-red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto var(--spacing-sm);
}

.rec-flow-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 0.4rem;
}

.rec-flow-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
}

.rec-flow-arrow {
  flex: 0 0 auto;
  padding: 0 0.75rem;
  font-size: 1.4rem;
  color: var(--primary-red);
  padding-bottom: 1rem;
}

/* レスポンシブ - 募集ページ */
@media (max-width: 900px) {
  .rec-bosyu-wrap {
    grid-template-columns: 1fr;
  }
  .rec-flow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
  }
  .rec-flow-arrow {
    display: none;
  }
  .rec-flow-card {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .rec-flow-grid {
    grid-template-columns: 1fr;
  }
  .rec-flow-card {
    text-align: left;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.75rem;
  }
  .rec-flow-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin: 0;
    order: 1;
    flex-shrink: 0;
  }
  .rec-flow-card h3 {
    order: 2;
    flex: 1;
    margin-bottom: 0;
  }
  .rec-flow-num {
    position: static;
    font-size: 2rem;
    order: 3;
    margin-left: auto;
  }
  .rec-flow-card p {
    order: 4;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    margin-bottom: 0;
  }
}

/* ========================================
   Lightbox - 画像拡大表示
======================================== */
.lightbox-trigger {
  display: block;
  cursor: zoom-in;
}

.lightbox-trigger img {
  transition: opacity 0.2s;
}

.lightbox-trigger:hover img {
  opacity: 0.85;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
  padding: 0;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ========================================
   Family Page - ファミリー紹介
======================================== */

/* 年度タブ */
.fam-year-nav {
  background: var(--white);
  border-bottom: 2px solid #eee;
  overflow: hidden;
}

.fam-year-tabs-wrapper {
  display: flex;
  align-items: stretch;
}

.fam-year-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.fam-year-tabs::-webkit-scrollbar {
  display: none;
}

/* PC用矢印ボタン: スマホでは非表示 */
.fam-year-arrow {
  display: none;
}
@media (min-width: 769px) {
  .fam-year-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    flex-shrink: 0;
    background: var(--white);
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.4rem;
    color: var(--gray);
    cursor: pointer;
    transition:
      color 0.2s,
      background 0.2s;
    padding: 0;
    line-height: 1;
  }
  .fam-year-arrow:hover {
    color: var(--primary-red);
    background: #fafafa;
  }
  .fam-year-arrow:disabled {
    opacity: 0.25;
    cursor: default;
  }
  .fam-year-arrow--prev {
    border-right: 1px solid #eee;
  }
  .fam-year-arrow--next {
    border-left: 1px solid #eee;
  }
}

.fam-year-btn {
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}

.fam-year-btn:hover {
  color: var(--primary-red);
}

.fam-year-btn.is-active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
}

/* ========================================
   Schedule / Calendar
======================================== */
/* 案内バナー */
.cal-info-banner {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border: 2px solid var(--primary-red);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.cal-info-welcome {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 900;
  color: var(--primary-red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cal-info-list li {
  font-size: 0.92rem;
  color: var(--dark-gray);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.cal-info-list li i {
  color: var(--primary-red);
  flex-shrink: 0;
  margin-top: 0.1em;
}

.cal-info-list a {
  color: var(--primary-red);
  font-weight: 700;
  text-decoration: underline;
}

/* カレンダー枠 */
.cal-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

/* 横スクロール対応ラッパー */
.cal-frame-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.cal-iframe {
  display: block;
  width: 100%;
  min-width: 600px;
  height: 680px;
  border: none;
}

@media (max-width: 768px) {
  .cal-iframe {
    height: 560px;
  }
  .cal-info-banner {
    padding: 1.25rem;
  }
}

.cal-click-note {
  text-align: right;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.4rem;
}

@media (max-width: 600px) {
  /* iframeをスケールダウンして横スクロールを消す */
  .cal-frame-wrap {
    overflow: hidden;
  }
  .cal-iframe {
    transform-origin: top left;
    transform: scale(0.6);
    width: calc(100% / 0.6);
    min-width: 0;
  }
  /* scaleはレイアウトに影響しないため高さを手動補正 */
  .cal-wrap {
    height: calc(560px * 0.6);
    overflow: hidden;
  }
}

/* ========================================
   Contact Page
======================================== */
.contact-lead {
  text-align: center;
  font-size: 1.05rem;
  color: var(--dark-gray);
  line-height: 1.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.contact-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--white);
}

.contact-card-icon--blue {
  background: #2a7bbf;
}
.contact-card-icon--red {
  background: var(--primary-red);
}

.contact-card-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--dark-gray);
}

.contact-card-desc {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.8;
  flex: 1;
}

.contact-card-note {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--primary-red);
  font-weight: 700;
}

.contact-card-btn {
  margin-top: 0.5rem;
  width: 100%;
  text-align: center;
  color: #ffffff;
}

.contact-card-btn:hover,
.contact-card-btn:visited {
  color: #ffffff;
}

/* メール代替 */
.contact-email-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
}

.contact-email-icon {
  font-size: 2.5rem;
  color: var(--primary-red);
  flex-shrink: 0;
}

.contact-email-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 0.35rem;
}

.contact-email-body p {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.contact-email-addr {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-red);
  text-decoration: none;
  word-break: break-all;
}

.contact-email-addr:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-email-wrap {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
  }
}

/* 旧サイトへCTA（2025年以前タブ） */
.fam-old-site-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  gap: 1.75rem;
  text-align: center;
}

.fam-old-site-cta p {
  color: var(--gray);
  font-size: 1rem;
}

/* メンバーグリッド */
.fam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 120px);
  gap: var(--spacing-sm);
  justify-content: center;
  align-items: start;
}

/* メンバーカード */
.fam-card {
  width: 100%;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: var(--shadow);
}

.fam-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* 白椿（男性）：赤背景・白テキスト */
.fam-card--shiro .fam-card-photo {
  background: var(--primary-red);
}

.fam-card--shiro .fam-card-info {
  background: var(--primary-red);
}

.fam-card--shiro .fam-card-name,
.fam-card--shiro .fam-card-role {
  color: var(--white);
}

/* 赤椿（女性）：白背景・赤テキスト */
.fam-card--aka .fam-card-photo {
  background: var(--white);
}

.fam-card--aka .fam-card-info {
  background: var(--white);
}

.fam-card--aka .fam-card-name {
  color: var(--primary-red);
}

.fam-card--aka .fam-card-role {
  color: var(--gray);
}

.fam-card-photo {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fam-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* デフォルト家紋画像は枠いっぱいに表示 */
.fam-card-photo img.fam-card-logo-img--kamon {
  object-fit: fill;
}

.fam-card-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.fam-card--aka .fam-card-icon {
  color: rgba(220, 20, 60, 0.3);
}

.fam-card-info {
  padding: 0.5rem 0.5rem 0.6rem;
  text-align: center;
}

.fam-card-name {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fam-card-role {
  font-size: 0.7rem;
  opacity: 0.8;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* =====================
   メンバーモーダル
===================== */
.fam-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.fam-modal-overlay.is-open {
  display: flex;
}

.fam-modal-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 440px;
  max-height: 90vh;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42% 58%;
  grid-template-rows: 1fr auto;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.6);
}

.fam-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.2s;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.fam-modal-close:hover {
  opacity: 1;
}

/* 左パネル（赤：共通） */
.fam-modal-left {
  background: var(--primary-red);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  grid-row: 1;
  overflow: hidden;
}

/* 右パネル（白） */
.fam-modal-right {
  background: var(--white);
  padding: 1.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  grid-row: 1;
  overflow: hidden;
}

/* ヘッダーラベル（黄色） */
.fam-modal-header-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #ffd700;
  margin-bottom: 0.2rem;
}

.fam-modal-header-label--dark {
  color: var(--primary-red);
}

/* 風舞人名（大きく） */
.fam-modal-name {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

/* 写真エリア */
.fam-modal-photo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fam-modal-photo {
  width: 100%;
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.fam-modal-photo-placeholder {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.4);
}

/* 役職 */
.fam-modal-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* メッセージ */
.fam-modal-message {
  font-size: 0.88rem;
  line-height: 2;
  color: var(--dark-gray);
  white-space: pre-line;
  flex: 1;
  overflow-y: auto;
}

/* 椿アイコン（背景画像） */
.fam-modal-kamon {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 105px;
  height: 105px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.35;
}

/* 下段インフォバー */
.fam-modal-bottom {
  background: #1a1a1a;
  grid-column: 1 / -1;
  grid-row: 2;
  padding: 0.65rem 1.25rem;
}

.fam-modal-info-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}

.fam-modal-info-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #ffd700;
  min-width: 65px;
  flex-shrink: 0;
}

.fam-modal-info-val {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.fam-modal-brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.4rem;
}

/* レスポンシブ - ファミリーページ */
@media (max-width: 480px) {
  .fam-grid {
    grid-template-columns: repeat(auto-fill, 90px);
    gap: 0.5rem;
  }
  .fam-card-photo {
    height: 90px;
  }
}

@media (max-width: 640px) {
  .fam-modal-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
    max-height: 85vh;
    overflow-y: auto;
  }
  .fam-modal-left {
    grid-row: 1;
    min-height: unset;
  }
  .fam-modal-photo-wrap {
    flex: none;
    height: 180px;
  }
  .fam-modal-right {
    grid-row: 2;
    grid-column: 1;
  }
  .fam-modal-bottom {
    grid-row: 3;
    grid-column: 1;
  }
  .fam-modal-kamon {
    width: 75px;
    height: 75px;
    opacity: 0.35;
  }
}

/* =============================================
   写真ライトボックス
   ============================================= */
.fam-photo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.fam-photo-lightbox.is-open {
  display: flex;
}

.fam-photo-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.fam-photo-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.fam-photo-lightbox-close:hover {
  opacity: 1;
}

/* =============================================
   活動報告
   ============================================= */

.report-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-red, #dc143c) #f0f0f0;
}
.report-table-wrap::-webkit-scrollbar {
  height: 6px;
}
.report-table-wrap::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}
.report-table-wrap::-webkit-scrollbar-thumb {
  background: var(--primary-red, #dc143c);
  border-radius: 3px;
}

.report-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.92rem;
}

.report-table thead tr {
  background: var(--primary-red, #c8102e);
  color: #fff;
}

.report-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.report-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  color: #333;
}

.report-table tbody tr:last-child td {
  border-bottom: none;
}

.report-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.report-table tbody tr:hover {
  background: #fff5f5;
}

/* 月別カラー（デスクトップ: 左ボーダー＋薄い背景） */
.report-table tbody tr.report-month-01,
.report-table tbody tr.report-month-01:nth-child(even) { background: #eef6fd; border-left: 3px solid #6aaee8; }
.report-table tbody tr.report-month-02,
.report-table tbody tr.report-month-02:nth-child(even) { background: #fef3e2; border-left: 3px solid #e0a030; }
.report-table tbody tr.report-month-03,
.report-table tbody tr.report-month-03:nth-child(even) { background: #fdeef5; border-left: 3px solid #e874a8; }
.report-table tbody tr.report-month-04,
.report-table tbody tr.report-month-04:nth-child(even) { background: #fff0f5; border-left: 3px solid #f08ab4; }
.report-table tbody tr.report-month-05,
.report-table tbody tr.report-month-05:nth-child(even) { background: #edf9ee; border-left: 3px solid #5cb85c; }
.report-table tbody tr.report-month-06,
.report-table tbody tr.report-month-06:nth-child(even) { background: #e8f0fd; border-left: 3px solid #4a8fd4; }
.report-table tbody tr.report-month-07,
.report-table tbody tr.report-month-07:nth-child(even) { background: #e8f8fb; border-left: 3px solid #2ab3c9; }
.report-table tbody tr.report-month-08,
.report-table tbody tr.report-month-08:nth-child(even) { background: #fdf9e3; border-left: 3px solid #d4a800; }
.report-table tbody tr.report-month-09,
.report-table tbody tr.report-month-09:nth-child(even) { background: #fdf3e3; border-left: 3px solid #e07b2a; }
.report-table tbody tr.report-month-10,
.report-table tbody tr.report-month-10:nth-child(even) { background: #fdeee8; border-left: 3px solid #d45f40; }
.report-table tbody tr.report-month-11,
.report-table tbody tr.report-month-11:nth-child(even) { background: #f5ece3; border-left: 3px solid #a07840; }
.report-table tbody tr.report-month-12,
.report-table tbody tr.report-month-12:nth-child(even) { background: #eef4fd; border-left: 3px solid #5b9bd5; }

.report-td-date {
  white-space: nowrap;
  color: #666;
  font-size: 0.87rem;
}

/* 場所列 */
.report-td-location {
  font-size: 0.85rem;
  color: #555;
  min-width: 15em;
}

/* 隊長・副隊長列（7・8・9列目）: 改行なし・全角10文字分幅 */
.report-table th:nth-child(7),
.report-table td:nth-child(7),
.report-table th:nth-child(8),
.report-table td:nth-child(8),
.report-table th:nth-child(9),
.report-table td:nth-child(9) {
  white-space: nowrap;
  min-width: 10em;
  width: 10em;
}

/* モバイル用まとめセルはデスクトップで非表示 */
.report-td-members { display: none !important; }

/* 名前タグ（モバイルの隊長・副隊長） */
.report-name-tag {
  display: inline-block;
  background: #eee;
  color: #444;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15em 0.65em;
  border-radius: 20px;
  white-space: nowrap;
}
.report-name-tag--leader::before {
  content: '★';
  font-size: 0.65em;
  margin-right: 0.2em;
  color: var(--primary-red, #dc143c);
  vertical-align: middle;
}

/* ========================================
   活動報告 スマホ: カードレイアウト
======================================== */
@media (max-width: 700px) {
  .report-table-wrap {
    overflow-x: visible;
    box-shadow: none;
    border-radius: 0;
  }

  .report-table,
  .report-table tbody,
  .report-table tr,
  .report-table td {
    display: block;
    width: 100%;
  }
  .report-table { min-width: 0; } /* デスクトップの min-width: 700px を解除 */
  .report-table thead { display: none; }

  /* カード */
  .report-table tr {
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 0.6rem;
    cursor: pointer;
    padding: 0.5rem 0.85rem 0.45rem;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
  }
  .report-table tbody tr:nth-child(even) { background: #fff; }
  .report-table tbody tr:hover { background: #fff5f5; }

  /* 月別カラー（モバイルカード: 全周ボーダー＋薄い背景） */
  .report-table tbody tr.report-month-01,
  .report-table tbody tr.report-month-01:nth-child(even) { background: #eef6fd; border: 1px solid #6aaee8; }
  .report-table tbody tr.report-month-02,
  .report-table tbody tr.report-month-02:nth-child(even) { background: #fef3e2; border: 1px solid #e0a030; }
  .report-table tbody tr.report-month-03,
  .report-table tbody tr.report-month-03:nth-child(even) { background: #fdeef5; border: 1px solid #e874a8; }
  .report-table tbody tr.report-month-04,
  .report-table tbody tr.report-month-04:nth-child(even) { background: #fff0f5; border: 1px solid #f08ab4; }
  .report-table tbody tr.report-month-05,
  .report-table tbody tr.report-month-05:nth-child(even) { background: #edf9ee; border: 1px solid #5cb85c; }
  .report-table tbody tr.report-month-06,
  .report-table tbody tr.report-month-06:nth-child(even) { background: #e8f0fd; border: 1px solid #4a8fd4; }
  .report-table tbody tr.report-month-07,
  .report-table tbody tr.report-month-07:nth-child(even) { background: #e8f8fb; border: 1px solid #2ab3c9; }
  .report-table tbody tr.report-month-08,
  .report-table tbody tr.report-month-08:nth-child(even) { background: #fdf9e3; border: 1px solid #d4a800; }
  .report-table tbody tr.report-month-09,
  .report-table tbody tr.report-month-09:nth-child(even) { background: #fdf3e3; border: 1px solid #e07b2a; }
  .report-table tbody tr.report-month-10,
  .report-table tbody tr.report-month-10:nth-child(even) { background: #fdeee8; border: 1px solid #d45f40; }
  .report-table tbody tr.report-month-11,
  .report-table tbody tr.report-month-11:nth-child(even) { background: #f5ece3; border: 1px solid #a07840; }
  .report-table tbody tr.report-month-12,
  .report-table tbody tr.report-month-12:nth-child(even) { background: #eef4fd; border: 1px solid #5b9bd5; }

  /* 全セル共通 */
  .report-table td {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.18rem 0;
    border: none;
    min-width: 0;
    width: auto;
    white-space: normal;
    font-size: 0.84rem;
  }
  /* ラベル列: 固定幅＋均等割り付け（"隊長・副隊長" 7文字基準） */
  .report-table td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 700;
    color: #bbb;
    width: 7em;
    flex-shrink: 0;
    text-align: justify;
    text-align-last: justify;
  }

  /* 日にち: カードヘッダー */
  .report-table td:first-child {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-red, #dc143c);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.4rem;
    margin-bottom: 0.1rem;
    /* 右側に種類タグのスペースを確保 */
    padding-right: 6rem;
  }
  .report-table td:first-child::before { display: none; }

  /* イベント名: ラベル非表示 */
  .report-td-event { font-size: 0.92rem; font-weight: 700; min-width: 0; }
  .report-td-event::before { display: none; }

  /* デフォルト: 詳細行を折りたたむ */
  .report-td-location,
  .report-td-members,
  .report-table td:nth-child(5),
  .report-table td:nth-child(6) {
    display: none !important;
  }

  /* 展開時: 詳細行を表示 */
  .report-table tr.is-open .report-td-location,
  .report-table tr.is-open td:nth-child(5),
  .report-table tr.is-open td:nth-child(6) {
    display: flex !important;
  }
  .report-table tr.is-open .report-td-members {
    display: flex !important;
  }

  /* 展開インジケーター（イベント名の右に矢印） */
  .report-td-event::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    color: #ccc;
    font-size: 0.85rem;
    transition: transform 0.2s;
    flex-shrink: 0;
  }
  .report-table tr.is-open .report-td-event::after {
    transform: rotate(180deg);
  }

  /* 場所 */
  .report-td-location { min-width: 0; }

  /* 種類タグ: 右上に絶対配置 */
  .report-table td:nth-child(4) {
    position: absolute;
    top: 0.55rem;
    right: 0.75rem;
    width: auto;
    padding: 0;
  }
  .report-table td:nth-child(4)::before { display: none; }

  /* デスクトップ用の隊長・副隊長セルを隠す */
  .report-table td:nth-child(7),
  .report-table td:nth-child(8),
  .report-table td:nth-child(9) { display: none; }

  /* モバイル用まとめセル: ラベルと同行にタグを並べる */
  .report-td-members {
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.18rem 0;
  }
  .report-td-members::before {
    width: 7em;
    flex-shrink: 0;
    align-self: center;
    text-align: justify;
    text-align-last: justify;
  }
  .report-members-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
  }

  /* Photo・Blog */
  .report-table td:nth-child(5),
  .report-table td:nth-child(6) {
    min-width: 0;
    width: auto;
  }
}

/* 種類タグ */
.report-type-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  white-space: nowrap;
  color: #fff;
}
.report-type--event   { background: var(--primary-red, #dc143c); }
.report-type--iventer { background: #27ae60; }
.report-type--enkai   { background: #e67e22; }
.report-type--other   { background: #95a5a6; }

.report-td-event {
  font-weight: 600;
  color: #222;
  min-width: 15em
}

.report-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.report-link:hover {
  opacity: 0.75;
}

.report-link--photo {
  background: #e8f4fd;
  color: #1a73e8;
}

.report-link--blog {
  background: #fff0e8;
  color: #e06c00;
}

.report-link-none {
  color: #bbb;
  font-size: 0.88rem;
}

/* =============================================
   SNS
   ============================================= */

.sns-daily-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
  margin: -0.75rem 0 1.5rem;
}

.sns-intro {
  text-align: center;
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.sns-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.sns-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 460px;
}

.sns-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.sns-card-header i {
  font-size: 1.4rem;
}

.sns-card--instagram .sns-card-header {
  background: linear-gradient(135deg, #405de6 0%, #833ab4 40%, #e1306c 70%, #fd1d1d 100%);
}

.sns-card--tiktok .sns-card-header {
  background: #010101;
}

.sns-card--youtube .sns-card-header {
  background: #ff0000;
}

.sns-card--x .sns-card-header {
  background: #000;
}

.sns-card-body {
  flex: 1;
  padding: 1rem;
}

.sns-card-footer {
  padding: 1rem;
  border-top: 1px solid #f0f0f0;
}

.sns-follow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.sns-follow-btn:hover {
  opacity: 0.82;
}

.sns-follow-btn--instagram {
  background: linear-gradient(135deg, #833ab4, #e1306c, #fd1d1d);
  color: #fff;
}

.sns-follow-btn--tiktok {
  background: #010101;
  color: #fff;
}

.sns-follow-btn--youtube {
  background: #ff0000;
  color: #fff;
}

.sns-follow-btn--x {
  background: #000;
  color: #fff;
}

/* プロフィール行 */
.sns-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 1rem;
}

.sns-profile-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  color: #fff;
}

.sns-card--instagram .sns-profile-icon {
  background: linear-gradient(135deg, #405de6, #e1306c, #fd1d1d);
}

.sns-card--tiktok .sns-profile-icon {
  background: #010101;
}

.sns-card--youtube .sns-profile-icon {
  background: #ff0000;
}

.sns-profile-handle {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--dark-gray);
  margin: 0;
}

.sns-profile-name {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0.15rem 0 0;
}

/* CTA ビジュアル (Instagram / TikTok / YouTube) */
.sns-cta-visual {
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem;
  color: var(--gray);
}

.sns-cta-visual > i {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.sns-card--instagram .sns-cta-visual > i { color: #e1306c; }
.sns-card--tiktok   .sns-cta-visual > i { color: #010101; }
.sns-card--youtube  .sns-cta-visual > i { color: #ff0000; }

.sns-cta-visual p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

/* フォロワー数などの手動入力欄 */
.sns-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.6rem 1rem;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.sns-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.sns-stat-num {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark-gray);
}

.sns-stat-label {
  font-size: 0.75rem;
  color: var(--gray);
}

/* YouTube 動画埋め込み */
.sns-card-body--embed {
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 外部埋め込みをカード幅内に収める */
.sns-card-body--embed .instagram-media,
.sns-card-body--embed .tiktok-embed,
.sns-card-body--embed .twitter-tweet {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
.sns-card-body--embed iframe {
  max-width: 100% !important;
  width: 100% !important;
}

.sns-yt-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.sns-yt-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sns-yt-subscribe {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 0.25rem;
}

/* Instagram iframe */
.sns-ig-iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
}

/* X フォローボタン */
.sns-x-follow {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

/* X ツイート埋め込み */
.sns-tweet-wrap {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.sns-tweet-wrap .twitter-tweet {
  margin: 0 auto !important;
}

/* X タイムライン */
.sns-timeline-wrap {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}

@media (max-width: 960px) {
  .sns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sns-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   動画館・写真館
   ============================================= */

/* 動画グリッド */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 320px);
  gap: 1.5rem;
  justify-content: center;
}

.video-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 16:9 アスペクト比 */
.video-card-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-card-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card-body {
  padding: 0.85rem 1rem;
}

.video-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

/* 写真グリッド */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);
  gap: 1.5rem;
  justify-content: center;
}

.photo-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.photo-card-thumb {
  background: linear-gradient(135deg, #c8102e 0%, #8b0b1f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.photo-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.photo-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

.photo-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--primary-red, #c8102e);
  font-weight: 600;
}

/* レスポンシブ - 動画・写真（カード幅より画面が小さい場合は全幅） */
@media (max-width: 380px) {
  .video-grid,
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* =============================================
   スマホ上書き（後方グローバル規則を再上書き）
   ============================================= */
@media (max-width: 768px) {
  /* CTAセクション */
  .cta-section {
    padding: 2.5rem var(--spacing-md);
    border-radius: 0;
    margin: 0;
  }

  .cta-cards {
    padding: 0;
  }

  .cta-card {
    padding: 2rem 1.5rem 1.75rem;
  }

  .cta-card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
  }

  .cta-card h3 {
    font-size: 1.2rem;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .cta-card p {
    font-size: 0.9rem;
    word-break: normal;
    overflow-wrap: break-word;
    margin-bottom: 1.25rem;
  }

  .cta-btn {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--primary-red);
    color: #fff;
    border-radius: 6px;
    border-bottom: none;
    font-size: 1rem;
    text-align: center;
  }

  /* お知らせ縦レイアウト */
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 1rem 1.25rem;
  }
  /* サムネ付きは常に横並みを維持 */
  .news-item--has-thumb {
    flex-direction: row;
    align-items: stretch;
    padding: 0;
  }
  .news-item--has-thumb .news-item-thumb {
    width: 130px;
  }
  .news-item-date {
    font-size: 0.78rem;
    color: var(--gray);
    font-weight: 500;
  }

  .news-item .news-badge {
    font-size: 0.78rem;
    padding: 0.18rem 0.7rem;
  }

  .news-item .news-text {
    word-break: normal;
    overflow-wrap: break-word;
    font-size: 0.97rem;
    margin: 0.1rem 0;
  }

  .news-item .news-link {
    font-size: 0.82rem;
    margin-left: 0;
  }
}
