/* ==========================================================================
   共通の骨組み（案A・案Bで共通）
   配置・余白の基本・メニューの開閉・ボタンの大きさ・フォーカス表示など。
   色・書体・装飾は、各案の style.css が変数で上書きします。
   ========================================================================== */

:root {
  /* 色（各案で上書き） */
  --bg: #ffffff;
  --bg-alt: #f3f3f3;
  --card: #ffffff;
  --ink: #1a1a1a;
  --muted: #555555;
  --accent: #b3261e;
  --accent-dark: #8e1b15;
  --accent-ink: #ffffff;
  --line: #cccccc;
  --focus: #1b4db1;
  --focus-on-dark: #ffd66b;
  --header-bg: #ffffff;
  --footer-bg: #1a1a1a;
  --footer-ink: #f0f0f0;
  --band: #2f7d32;
  --insta: #1f6fae;
  /* 書体 */
  --font-body: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-head: var(--font-body);
  /* 形・余白 */
  --radius: 8px;
  --radius-sm: 4px;
  --radius-btn: 4px;
  --section-pad: 64px;
  --container: 1080px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--bg); text-decoration: none;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }
main:focus { outline: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.noscript, .load-error, .render-error { padding: 24px 20px; }

/* ---------- 仮の表示（確認中・入力してください） ---------- */
.tbd {
  text-decoration: underline dashed;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  font-weight: 700; font-size: 1rem; line-height: 1.4; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { width: 100%; min-height: 46px; padding: 6px 16px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 600px) {
  .btn { width: auto; }
  .btn-row { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
.sns-item { display: flex; flex-direction: column; gap: 6px; }
.sns-item .sns-item-desc { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.7; color: var(--ink); white-space: pre-line; text-wrap: balance; }
.guide-actions .btn-row { align-items: flex-start; }
.guide-actions .sns-item, .sns-cta .sns-item { max-width: 360px; text-align: center; }

.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-band { background: var(--band); color: #fff; border-color: var(--band); }
.btn-insta { background: var(--insta); color: #fff; border-color: var(--insta); }
.btn-band:hover, .btn-insta:hover { filter: brightness(.88); }
.btn-map { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-map:hover { background: var(--ink); color: var(--bg); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
}
.header-inner {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  height: var(--header-h);
  padding: 0 12px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; min-height: 44px; text-decoration: none;
}
.brand .media-logo { flex: none; width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.brand-name { font-weight: 700; font-size: 1.0625rem; white-space: nowrap; }
@media (max-width: 359px) {
  .header-inner { padding: 0 8px; gap: 6px; }
  .brand { gap: 6px; }
  .brand .media-logo { width: 32px; height: 32px; }
  .brand-name { font-size: .9375rem; letter-spacing: 0 !important; }
  .menu-toggle { padding: 6px 8px; gap: 6px; }
}
.brand-sub { display: none; font-size: .75rem; color: var(--muted); }
@media (min-width: 600px) { .brand-sub { display: block; } }

.menu-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 6px 12px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; font-size: .875rem; font-weight: 700;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; content: "";
  transition: transform .2s, opacity .2s;
}
.menu-bars { position: relative; }
.menu-bars::before { position: absolute; top: -6px; left: 0; }
.menu-bars::after { position: absolute; top: 6px; left: 0; }
.menu-toggle.is-open .menu-bars { background: transparent; }
.menu-toggle.is-open .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: 4px 20px 20px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
}
.site-nav.is-open { display: block; }
.nav-list a {
  display: flex; align-items: center; min-height: 48px; padding: 8px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500;
}
.nav-sns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    position: static; display: flex; align-items: center; gap: 16px;
    max-height: none; overflow: visible; padding: 0; border: 0; box-shadow: none; background: transparent;
  }
  .nav-list { display: flex; gap: 2px; }
  .nav-list a { min-height: 44px; padding: 6px 10px; border: 0; font-size: .9375rem; white-space: nowrap; }
  .nav-sns { flex-direction: row; margin: 0; gap: 8px; }
  .nav-sns .btn { width: auto; }
}

/* 英語の表示：曜日の名前（Thursday など）が折り返さないように、列を広げる */
html[lang="en"] .summary-times li { grid-template-columns: 5.6em 1fr; }
html[lang="en"] .day-group { grid-template-columns: 6.4em 1fr; }
html[lang="en"] .summary-day, html[lang="en"] .day-name { white-space: nowrap; }

/* 言語の切り替えボタン（ENGLISH / 日本語） */
.header-actions { flex: none; display: flex; align-items: center; gap: 6px; }
.lang-toggle {
  min-height: 44px; padding: 6px 9px;
  background: transparent; color: inherit; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; font: inherit; font-size: .75rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
@media (max-width: 480px) { .menu-toggle { padding: 6px 10px; gap: 6px; } }
@media (min-width: 1100px) { .header-actions { order: 3; } .lang-toggle { padding: 6px 14px; font-size: .8125rem; } }

/* ---------- セクション共通 ---------- */
.section { padding: var(--section-pad) 0; scroll-margin-top: calc(var(--header-h) + 4px); }
.venue-card, .section { scroll-margin-top: calc(var(--header-h) + 12px); }
.section-head { margin-bottom: 32px; }
.section-title { font-family: var(--font-head); line-height: 1.4; }
.section-lead { margin-top: 12px; color: var(--muted); }
.sub-title { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.5; margin-bottom: 16px; }

/* ---------- トップ ---------- */
.hero-inner { display: grid; gap: 28px; }
.section-title, .hero-catch, .venue-title, .purpose-title { word-break: auto-phrase; text-wrap: balance; }
.hero-catch { font-family: var(--font-head); font-size: clamp(1.75rem, 7vw, 3rem); line-height: 1.4; }
.hero-lead { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips-note { margin-top: 8px; font-size: .8125rem; color: var(--muted); line-height: 1.6; }
.hero-text .btn-row { margin-top: 24px; }
.hero-photo .media { aspect-ratio: 4 / 3; }
.hero-summary { margin-top: 36px; }
.summary-title { font-family: var(--font-head); font-size: 1.125rem; margin-bottom: 14px; }
.summary-list { display: grid; gap: 16px; }
.summary-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; }
.summary-times { display: grid; gap: 4px; margin: 6px 0 8px; }
.summary-times li { display: grid; grid-template-columns: 3.4em 1fr; gap: 0 8px; align-items: baseline; }
.summary-day { font-weight: 700; }
.summary-time-list { display: flex; flex-wrap: wrap; gap: 0 16px; }
.summary-time { white-space: nowrap; }
.summary-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
@media (min-width: 700px) { .summary-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
}

/* ---------- 道場紹介 ---------- */
.about-top { display: grid; gap: 28px; }
.about-intro p + p { margin-top: 1em; }
.fact { padding: 10px 0; border-bottom: 1px solid var(--line); }
.fact dt { font-weight: 700; }
@media (min-width: 480px) {
  .fact { display: grid; grid-template-columns: 10.5em 1fr; gap: 12px; }
}
.purposes-wrap { margin-top: 44px; }
.purposes { display: grid; gap: 16px; }
.purpose-card { padding: 22px 22px 24px; }
.purpose-title { font-family: var(--font-head); font-size: 1.1875rem; line-height: 1.5; }
.purpose-text { margin-top: 8px; font-size: .9375rem; color: var(--muted); }
.manners { margin-top: 36px; padding: 22px 24px; }
.manners-title { font-family: var(--font-head); font-size: 1.125rem; margin-bottom: 6px; }
@media (min-width: 900px) {
  .about-top { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .purposes { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ---------- 稽古日程・会場 ---------- */
.venue-grid { display: grid; gap: 24px; align-items: start; }
.venue-card { padding: 24px 20px; min-width: 0; }
.venue-head { margin-bottom: 16px; }
.venue-no { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; }
.venue-title { font-family: var(--font-head); font-size: 1.375rem; line-height: 1.5; }
.venue-name-note { font-size: .9375rem; color: var(--muted); }
.venue-club { margin-top: 4px; font-weight: 700; }
.schedule { margin: 8px 0 20px; }
.day-group { display: grid; grid-template-columns: 3.6em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.day-group:last-child { border-bottom: 1px solid var(--line); }
.day-name { font-weight: 700; font-size: 1.125rem; line-height: 1.5; }
.slot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding: 4px 0; }
.slot-time { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.slot-target { font-size: .875rem; color: var(--muted); }
.info-row { display: grid; grid-template-columns: 5.2em 1fr; gap: 8px; padding: 8px 0; }
.info-row dt { font-weight: 700; font-size: .9375rem; }
.info-row dd { min-width: 0; overflow-wrap: anywhere; }
.info-sub { display: block; font-size: .8125rem; color: var(--muted); }
.venue-actions { margin-top: 14px; }
.venue-note { margin-top: 14px; font-size: .9375rem; }
.venue-alt { margin-top: 22px; padding: 18px 16px; }
.alt-label { font-size: .8125rem; font-weight: 700; }
.alt-title { font-family: var(--font-head); font-size: 1.125rem; line-height: 1.5; }
@media (min-width: 600px) { .venue-card { padding: 28px 28px; } }
@media (min-width: 900px) { .venue-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ---------- 料金 ---------- */
.fees-wrap { max-width: 720px; margin: 0 auto; }
.fee-main { padding: 28px 20px; text-align: center; }
.fee-label { font-weight: 700; }
.fee-amount { font-family: var(--font-head); font-size: clamp(2.5rem, 12vw, 3.75rem); font-weight: 700; line-height: 1.3; }
.fee-plans { display: grid; gap: 14px; margin-top: 14px; }
.fee-plan { padding: 16px 12px; background: rgba(255,255,255,.6); border: 1px solid var(--line); }
.fee-plan-venue { font-weight: 700; }
.fee-plan .fee-amount { font-size: clamp(2rem, 9vw, 2.75rem); }
.fee-plan-note { font-size: .9375rem; color: var(--muted); }
.fee-note, .fee-plan-note { word-break: keep-all; word-break: auto-phrase; overflow-wrap: anywhere; }
@media (min-width: 700px) { .fee-plans { grid-template-columns: 1fr 1fr; } }
.fee-note { margin-top: 6px; font-size: .9375rem; color: var(--muted); }
.fee-table { width: 100%; margin-top: 28px; border-collapse: collapse; }
.fee-table th, .fee-table td { padding: 14px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.fee-table thead th { font-size: .875rem; color: var(--muted); }
.fee-table td { width: 60%; text-align: right; word-break: keep-all; word-break: auto-phrase; overflow-wrap: anywhere; }
.fee-table th { min-width: 7em; }
.fee-table thead th:last-child { text-align: right; }
@media (max-width: 359px) { .fee-table td { width: 68%; } .fee-table th, .fee-table td { padding-left: 6px; padding-right: 6px; } }
.fee-item { display: block; font-weight: 700; }
.fee-item-note { display: block; font-size: .8125rem; font-weight: 400; color: var(--muted); line-height: 1.6; }
.fees-note { margin-top: 16px; font-size: .875rem; color: var(--muted); }

/* ---------- 指導者 ---------- */
.instructor-grid { display: grid; gap: 28px; }
.instructor-photo { width: 100%; max-width: 320px; margin: 0 auto; }
.media-portrait { aspect-ratio: 4 / 5; }
.instructor-name { font-family: var(--font-head); font-size: 1.75rem; line-height: 1.4; }
.instructor-role { font-weight: 700; }
.instructor-affiliation { font-size: .9375rem; color: var(--muted); }
.instructor-facts { margin-top: 16px; }
.career { display: grid; gap: 4px; }
.instructor-message { margin-top: 20px; padding: 18px 20px; }
.message-title { font-family: var(--font-head); font-size: 1rem; margin-bottom: 4px; }
@media (min-width: 900px) {
  .instructor-grid { grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
  .instructor-photo { max-width: none; margin: 0; }
}

/* ---------- はじめての方へ ---------- */
.steps { display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; align-items: start; }
.step-no { grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; font-weight: 700; font-size: 1.25rem; }
.step-title { font-family: var(--font-head); font-size: 1.1875rem; line-height: 1.5; align-self: center; }
.step-text { grid-column: 2; margin-top: 4px; font-size: .9375rem; }
.guide-actions { margin-top: 28px; text-align: center; }
.guide-action-lead { margin-bottom: 14px; font-weight: 700; }
.guide-actions .btn-row { justify-content: center; }
.guide-cols { display: grid; gap: 40px; margin-top: 48px; }
.belongings-list .fact { grid-template-columns: 1fr; }
.small-note { margin-top: 12px; font-size: .875rem; color: var(--muted); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 10px 4px; cursor: pointer; font-weight: 700; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; flex: none; font-weight: 400; }
.faq-item[open] summary::after { content: "－"; }
.faq-a { padding: 0 4px 18px; font-size: .9375rem; }
@media (min-width: 480px) { .belongings-list .fact { grid-template-columns: 10.5em 1fr; } }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step { display: block; padding: 26px 22px; }
  .step-no { margin-bottom: 12px; }
  .guide-cols { grid-template-columns: 1fr 1.2fr; gap: 56px; }
}

/* ---------- 活動の様子 ---------- */
.records { display: grid; gap: 8px; margin-bottom: 40px; }
.record { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 18px; }
.record-date { font-weight: 700; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery-item figcaption { margin-top: 6px; font-size: .8125rem; color: var(--muted); line-height: 1.6; }
.media-gallery { aspect-ratio: 4 / 3; }
.sns-cta { margin-top: 40px; text-align: center; }
.sns-cta p { margin-bottom: 16px; }
.sns-cta .btn-row { justify-content: center; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; } }

/* ---------- お問い合わせ ---------- */
.contact-grid { display: grid; gap: 36px; align-items: start; }
.sns-cards { display: grid; gap: 14px; }
.sns-card { display: flex; flex-direction: column; gap: 2px; min-height: 56px; padding: 18px 20px; text-decoration: none; }
.sns-card-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.sns-card-desc { font-size: .9375rem; }
.sns-card-url { font-size: .8125rem; overflow-wrap: anywhere; opacity: .9; }
.contact-list { margin-top: 20px; }
.contact-note { margin-top: 20px; font-size: .9375rem; }
.contact-grid.no-form { max-width: 760px; margin: 0 auto; }
.contact-grid.form-only { max-width: 640px; margin: 0 auto; }
@media (min-width: 700px) { .no-form .sns-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .contact-grid:not(.no-form):not(.form-only) { grid-template-columns: 1fr 1.1fr; gap: 56px; } }

.contact-form { padding: 24px 20px; }
.form-lead { margin-bottom: 16px; font-size: .9375rem; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 4px; font-weight: 700; font-size: .9375rem; }
.req { margin-left: 4px; font-size: .75rem; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px;
  font-size: 1rem; background: #fff; color: #1a1a1a;
  border: 1px solid #8a8a8a; border-radius: var(--radius-sm);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- フッター ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 48px 0 28px; }
.footer-inner { display: grid; gap: 24px; }
.footer-name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; }
.footer-note, .footer-org, .footer-club { font-size: .875rem; opacity: .9; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 10px 4px 0; font-size: .9375rem; }
.copyright { font-size: .8125rem; opacity: .85; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25); }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; gap: 28px 40px; }
  .footer-inner nav { grid-column: 1 / -1; }
  .copyright { grid-column: 1 / -1; }
}

/* ---------- 写真・プレースホルダ共通 ---------- */
.media { position: relative; overflow: hidden; width: 100%; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-logo { aspect-ratio: 1 / 1; }
.ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center;
}
.ph-mark { display: grid; place-items: center; line-height: 1; }
.ph-text { font-size: .875rem; font-weight: 700; letter-spacing: .1em; }

/* ---------- ふりがな ---------- */
.instructor-name rt, .facts rt { font-size: .5em; font-weight: 500; letter-spacing: .08em; }
.instructor-name .name-part + .name-part { margin-left: .4em; }

/* ---------- トップ全体の背景写真 ---------- */
.hero { --hero-veil: rgba(255, 255, 255, .82); }
.hero > .hero-bg { position: absolute; top: 0; left: 0; right: 0; height: 460px; background-repeat: no-repeat; background-size: cover; background-position: center 90%; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); }
.hero > .hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-veil); }
.hero-photo-link { display: block; color: inherit; text-decoration: none; }
