/* =========================================================
   北大バンド研究会（番犬） サイト共通スタイル
   2026/11 全面改訂
   ---------------------------------------------------------
   色・文字はここの変数を変えれば全ページに反映されます
   ========================================================= */
:root {
  --paper: #ffffff;
  --ink: #222222;
  --muted: #625e6c;
  --orange: #ff5c20;      /* 番犬オレンジ：ボタン・アクセント */
  --orange-text: #c4410d; /* 白地の上の文字リンク用（読みやすい濃さ） */
  --stage: #2f2266;       /* ステージ照明の紫：ライブ情報とフッター */
  --mist: #f4f2f8;        /* 区切り用の薄い背景 */
  --line: #e2dfe9;
  --display: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --wrap: 1080px;
  --prose: 680px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; border: 0; }
a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
b, strong { font-weight: 700; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.prose { max-width: var(--prose); }
.prose p + p { margin-top: 1em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- ヘッダー ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.site-logo img { width: 168px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 0; display: block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-logo img { width: 140px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 46px; height: 46px; padding: 0 9px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 20px rgba(0, 0, 0, .08); padding: 8px 20px 16px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--orange-text); }
}

/* ---------- トップ：メイン写真と入部案内 ---------- */
.hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 45%; }
@media (max-width: 760px) {
  .hero img { aspect-ratio: auto; }
}
.join { padding: 36px 0 44px; text-align: center; }
.join-catch { font-family: var(--display); font-size: clamp(22px, 4vw, 32px); line-height: 1.5; margin-bottom: 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--orange);
  background: var(--orange); color: #fff; font-weight: 700; text-decoration: none;
}
.btn:hover { background: #e94d14; border-color: #e94d14; }
.btn--ghost { background: transparent; color: var(--orange-text); }
.btn--ghost:hover { background: #fff1ea; border-color: var(--orange); }

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
.section--mist { background: var(--mist); }
.section-title { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.4; margin-bottom: 28px; }
.section-lead { color: var(--muted); margin: -16px 0 28px; }
.more { margin-top: 28px; font-weight: 700; }
@media (max-width: 760px) {
  .section { padding: 52px 0; }
}

/* ---------- 次のライブ（チケット） ---------- */
.section--stage { background: var(--stage); color: #fff; }
.section--stage .section-title { color: #fff; }
.ticket-list { display: grid; gap: 28px; }
.ticket {
  --notch: 14px;
  --stub: 260px;
  display: grid; grid-template-columns: 1fr var(--stub);
  background: var(--paper); color: var(--ink); border-radius: 14px;
  /* 切り取り線の上下に半円の切り欠きを入れる */
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-main { padding: 32px 36px; }
.ticket-name { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3vw, 28px); line-height: 1.4; margin-bottom: 18px; }
.ticket-info { display: grid; grid-template-columns: 4em 1fr; gap: 6px 12px; margin-bottom: 18px; }
.ticket-info dt { font-weight: 700; color: var(--muted); }
.ticket-stub {
  border-left: 2px dashed var(--line); padding: 24px;
  display: flex; align-items: center; justify-content: center;
}
.ticket-stub img { width: 100%; border-radius: 6px; }
.ticket-stub .mascot { width: 150px; border-radius: 0; }
@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .ticket-main { padding: 26px 22px; }
  .ticket-stub { border-left: 0; border-top: 2px dashed var(--line); padding: 20px 22px 24px; }
  .ticket-stub img { max-width: 320px; }
  .ticket-stub .mascot { width: 110px; }
}
.stage-note { margin-top: 24px; color: #ddd6f7; }
.stage-note a { color: #ffd0bd; }

/* ---------- 番犬について（トップ） ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-grid img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about-grid img { border-radius: 10px; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 写真の並び ---------- */
.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.photo-row img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 760px) {
  .photo-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- お知らせ ---------- */
.news-list { border-top: 1px solid var(--line); max-width: 860px; }
.news-list li { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.news-list li.loading-text { display: block; }
.loading-text { color: var(--muted); padding: 16px 0; }
@media (max-width: 560px) {
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- 見学・入部の流れ ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 24px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-size: 30px; line-height: 1; color: var(--orange); margin-bottom: 12px; }
.steps h3 { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}
.sns-list { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 概要の表 ---------- */
.facts { display: grid; grid-template-columns: 9em 1fr; border-top: 1px solid var(--line); max-width: var(--prose); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 6.5em 1fr; }
}

/* ---------- 下層ページ ---------- */
.page-head { background: var(--mist); padding: 56px 0 48px; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 5vw, 42px); line-height: 1.3; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: var(--prose); }
.block + .block { margin-top: 64px; }
.block h2 { font-family: var(--display); font-weight: 400; font-size: clamp(21px, 3vw, 26px); line-height: 1.4; margin-bottom: 18px; }
.block h3 { font-weight: 700; font-size: 18px; margin: 28px 0 8px; }
.figure-wide { margin-top: 28px; max-width: 860px; }
.figure-wide img { border-radius: 10px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.map { margin-top: 20px; max-width: 860px; }
.map iframe { width: 100%; height: 320px; border-radius: 10px; }
.map-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 860px; margin-top: 20px; }
.map-pair iframe { width: 100%; height: 280px; border-radius: 10px; }
@media (max-width: 760px) { .map-pair { grid-template-columns: 1fr; } }

/* ---------- 年間予定の表 ---------- */
.year-table { width: 100%; max-width: var(--prose); border-collapse: collapse; }
.year-table th, .year-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.year-table thead th { font-size: 14px; color: var(--muted); border-bottom: 2px solid var(--ink); }
.year-table tbody th { width: 5em; font-weight: 700; }
.plain-list li { padding-left: 1.2em; position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .9em; width: .55em; height: 2px; background: var(--orange); }

/* ---------- よくある質問 ---------- */
.faq { max-width: var(--prose); }
.faq dt { font-weight: 700; font-size: 18px; padding: 22px 0 8px 2.2em; position: relative; border-top: 1px solid var(--line); line-height: 1.6; }
.faq dt::before { content: "Q"; font-family: var(--display); color: var(--orange); position: absolute; left: 0; top: 20px; font-size: 22px; }
.faq dd { padding: 0 0 22px 2.2em; }

/* ---------- ギャラリー ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------- ライブラリ ---------- */
.lib-years { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.lib-years button {
  padding: 8px 20px; border: 2px solid var(--orange); border-radius: 999px;
  color: var(--orange-text); font-weight: 700; cursor: pointer; background: var(--paper);
}
.lib-years button[aria-selected="true"] { background: var(--orange); color: #fff; }
.lib-toc { background: var(--mist); border-radius: 10px; padding: 16px 20px; margin-bottom: 36px; }
.lib-toc summary { font-weight: 700; cursor: pointer; }
.lib-toc ol { margin-top: 10px; columns: 2; column-gap: 32px; }
.lib-toc li { break-inside: avoid; }
@media (max-width: 560px) { .lib-toc ol { columns: 1; } }
.lib-event { margin-bottom: 44px; max-width: 860px; }
.lib-event-title { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.4; margin-bottom: 14px; }
.lib-event-date { font-family: var(--body); font-size: 15px; color: var(--muted); margin-left: 12px; }
.lib-band { border-bottom: 1px solid var(--line); }
.lib-band summary { padding: 10px 0; cursor: pointer; font-weight: 700; }
.lib-band ul { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 0 14px 1.1em; }
.lib-none { color: var(--muted); }

/* ---------- フッター ---------- */
.site-footer { background: var(--stage); color: #fff; padding: 52px 0 32px; }
.site-footer .wrap { display: grid; grid-template-columns: 140px 1fr; gap: 32px; align-items: center; }
.site-footer .mascot { width: 140px; }
.footer-name { font-family: var(--display); font-size: 22px; line-height: 1.4; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0; }
.footer-links a { color: #fff; }
.copyright { font-size: 13px; color: #cfc8ee; }
@media (max-width: 560px) {
  .site-footer .wrap { grid-template-columns: 1fr; justify-items: start; }
  .site-footer .mascot { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
