/* =========================================================
   合気道道場サイト 共通スタイル
   - デザイントークンは :root で一括管理(色・余白・フォント)
   - 多ページ共通のヘッダー/フッター/レイアウト
   ※ 道場名・色は後から変更しやすいよう変数化しています
   ========================================================= */

:root {
  /* 色(和の落ち着いた配色。変更はここだけでOK) */
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-text: #2b2b2b;
  --color-muted: #6b6b6b;
  --color-primary: #1f3a5f;      /* 紺 */
  --color-primary-dark: #142840;
  --color-accent: #9b2d20;       /* 朱 */
  --color-border: #e6e1da;

  /* タイポ */
  --font-base: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

  /* レイアウト */
  --maxw: 1080px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }

.container { width: 90%; max-width: var(--maxw); margin: 0 auto; }
.section { padding: 92px 0; }
.section--alt { background: var(--color-surface); }

h1, h2, h3 { font-family: var(--font-base); line-height: 1.5; color: var(--color-primary-dark); font-weight: 600; letter-spacing: .04em; }
.section-title { font-size: 1.7rem; text-align: center; margin: 0 0 14px; font-weight: 600; }
.section-title::after { content: ""; display: block; width: 44px; height: 1px; background: var(--color-accent); margin: 18px auto 0; }
.section-lead { text-align: center; color: var(--color-muted); margin: 0 auto 52px; max-width: 760px; line-height: 2.05; }

/* ===== ヘッダー / ナビ ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1.25; text-decoration: none; }
.brand-emblem { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: inline-flex; flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand-sub { font-family: var(--font-sans); font-size: .95rem; color: var(--color-text); letter-spacing: .02em; }
.brand-name { font-family: var(--font-base); font-weight: 700; font-size: 1.5rem; color: var(--color-primary-dark); letter-spacing: .06em; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--color-text); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-accent); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* ===== ヒーロー ===== */
/* トップのメインビジュアル(写真スライドショー)
   1枚目と、公開前候補の正座写真を切り替えます */
.hero { position: relative; overflow: hidden; background: var(--color-primary-dark); color: #fff; }
.hero-slides, .hero-overlay { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease-in-out; z-index: 0;
}
/* 前の写真を下に残したまま、新しい写真を上でフェードイン=切替時の暗転を防ぐ */
.hero-slide.is-prev { opacity: 1; transition: none; z-index: 1; }
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide--seiza { background-position: center center; }
.hero-overlay { background: linear-gradient(180deg, rgba(15,13,11,.50), rgba(15,13,11,.64)); z-index: 3; }
.hero-content { position: relative; z-index: 4; text-align: center; padding: 132px 0; }
.hero h1 { color: #fff; font-size: 2.1rem; margin: 0 0 20px; font-weight: 500; letter-spacing: .08em; line-height: 1.7; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.hero p { font-size: 1.05rem; margin: 0; color: #fff; opacity: .95; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.hero .hero-local-copy {
  position: absolute; left: max(5%, calc((100% - var(--maxw)) / 2)); bottom: 20px; z-index: 5;
  max-width: min(34rem, 42%); padding-left: 12px; border-left: 2px solid rgba(255,255,255,.8);
  font-size: .88rem; line-height: 1.6; text-align: left; letter-spacing: .04em;
}
/* 写真と被らない、下のボタン帯 */
.hero-cta { background: var(--color-primary-dark); text-align: center; padding: 22px 16px; }
.hero-cta .btn { margin: 6px 5px; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s; }
.hero-dot.is-active { background: #fff; }

/* ===== 地域・初心者向けの入口 ===== */
.local-intro {
  padding: 52px 0; background: var(--color-surface);
  border-bottom: 1px solid var(--color-border); text-align: center;
}
.local-intro .container { max-width: 820px; }
.local-intro__label {
  margin: 0 0 8px; color: var(--color-accent); font-weight: 700;
  font-size: .84rem; letter-spacing: .12em;
}
.local-intro h2 { margin: 0 0 18px; font-size: 1.65rem; }
.local-intro p { margin: 10px auto 0; max-width: 760px; text-align: left; }
.local-intro__links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px 24px; margin-top: 22px;
}
.local-intro__links a { font-weight: 700; text-underline-offset: 4px; }

/* ===== 最新日程・体験案内 ===== */
.schedule-summary {
  max-width: 800px; margin: 0 auto; padding: 28px 32px;
  border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent);
  border-radius: var(--radius); background: var(--color-surface); box-shadow: var(--shadow);
}
.schedule-summary h3 { margin: 0 0 10px; }
.schedule-summary p { margin: 0; }
.fact-list { margin: 16px 0 0; padding-left: 1.25em; }
.fact-list li + li { margin-top: 5px; }

.experience-card { max-width: 820px; margin: 0 auto; text-align: center; }
.experience-card > h3 { margin-top: 0; }
.experience-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin: 24px 0; text-align: left;
}
.experience-facts > div {
  display: grid; grid-template-columns: 7.5em 1fr; gap: 10px;
  padding: 16px; border: 1px solid var(--color-border); border-radius: 4px;
  background: #fbfaf8;
}
.experience-facts strong { color: var(--color-primary-dark); }
.experience-facts span { min-width: 0; }
.experience-facts small { color: var(--color-muted); }
.experience-note { color: var(--color-muted); font-size: .94rem; }
.text-link { display: inline-block; margin: 8px 10px; font-weight: 600; }

/* ===== ボタン ===== */
.btn {
  display: inline-block; padding: 13px 34px; border-radius: 2px;
  background: var(--color-accent); color: #fff; text-decoration: none;
  font-weight: 600; letter-spacing: .06em; transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn--ghost { background: transparent; border: 1px solid rgba(255,255,255,.75); color: #fff; margin-left: 10px; }

/* ===== カード ===== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 34px; }
.card h3 { margin-top: 0; letter-spacing: .03em; }

/* ===== ページ見出し(下層ページ用) ===== */
.page-head { background: var(--color-primary-dark); color:#fff; padding: 76px 0; text-align:center; }
.page-head h1 { color:#fff; margin:0; font-weight:500; letter-spacing:.12em; }

/* ===== テーブル(稽古日程・料金) ===== */
table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
th, td { border: 1px solid var(--color-border); padding: 12px 14px; text-align: left; }
th { background: var(--color-primary); color: #fff; }

/* ===== フッター ===== */
.site-footer { background: var(--color-primary-dark); color: #d8dee6; padding: 40px 0; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer .container { display:flex; flex-wrap:wrap; justify-content: space-between; gap: 20px; }
.site-footer small { color:#9fb0c4; }

/* ===== 注記(プレースホルダ) ===== */
.placeholder { background: #fff7e6; border: 1px dashed #e0b760; padding: 14px 16px; border-radius: var(--radius); color: #7a5b16; font-size: .9rem; }

/* ===== レスポンシブ ===== */
@media (max-width: 800px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4%; border-top: 1px solid var(--color-border); }
  .nav-toggle { display: block; }
  .hero-content { padding: 92px 0; }
  .hero h1 { font-size: 1.55rem; }
  .hero .hero-local-copy {
    left: 5%; right: auto; bottom: 46px; max-width: 72%; padding-left: 9px;
    font-size: .78rem; line-height: 1.5;
  }
  .schedule-summary { padding: 22px 20px; }
  .experience-facts { grid-template-columns: 1fr; }
  .experience-facts > div { grid-template-columns: 7em 1fr; }
  .brand-text { flex-direction: column; align-items: flex-start; gap: 2px; }
  .brand-name { font-size: 1.25rem; }
  .brand-sub { font-size: .72rem; }
  .local-intro { padding: 40px 0; }
  .local-intro h2 { font-size: 1.35rem; }
  .local-intro__links { justify-content: flex-start; text-align: left; }
}

/* =========================================================
   道場紋章(emblem)ユーティリティ
   - 透かし背景: <section class="section section--emblem"> を付けるだけ
   - ロゴ表示:   <img class="emblem-logo" src="assets/images/emblem_circle.png" alt="道場の紋章">
   画像はすでに薄く加工済み(_soft=8% / _watermark=15%)。濃さは画像差し替えで調整。
   ========================================================= */
.section--emblem { position: relative; }
.section--emblem::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../assets/images/emblem_watermark_soft.png') center / min(58%, 440px) no-repeat;
  pointer-events: none;
}
.section--emblem > * { position: relative; } /* 文字を透かしの上に */

.emblem-logo { width: 56px; height: 56px; border-radius: 50%; }

/* 稽古カレンダー(Googleカレンダー埋め込み)レスポンシブ枠 */
.calendar-embed {
  width: 100%; max-width: 800px; margin: 0 auto;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; background: var(--color-surface);
}
.calendar-embed iframe { display: block; width: 100%; height: 600px; border: 0; }
.calendar-embed--placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 320px; padding: 24px; text-align: center; color: var(--color-muted);
  background: repeating-linear-gradient(45deg, #fbfaf8, #fbfaf8 10px, #f4f1ec 10px, #f4f1ec 20px);
}
@media (max-width: 800px) { .calendar-embed iframe { height: 460px; } }

/* アクセスのGoogleマップ埋め込み */
.map-embed {
  width: 100%; margin: 0 auto;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; background: var(--color-surface);
}
.map-embed iframe { display: block; width: 100%; height: 280px; border: 0; }

/* 関連団体バナー(テキスト型・外部リンク) */
.linkbanners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.linkbanner { display: block; text-decoration: none; border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent); border-radius: var(--radius); padding: 24px 28px; background: var(--color-surface); transition: box-shadow .2s, transform .2s; }
.linkbanner:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.linkbanner .lb-name { display: block; font-family: var(--font-base); font-size: 1.15rem; color: var(--color-primary-dark); font-weight: 700; letter-spacing: .03em; }
.linkbanner .lb-desc { display: block; color: var(--color-muted); font-size: .9rem; margin-top: 8px; line-height: 1.7; }
.linkbanner .lb-ext { display: inline-block; color: var(--color-accent); font-size: .85rem; margin-top: 12px; font-weight: 600; }
@media (max-width: 800px) { .linkbanners { grid-template-columns: 1fr; } }

