/* ============================================================
   剣道スクールGRIT
   色・文字の基本設定はここ（:root）でまとめて変えられます
   ============================================================ */
:root {
  --sumi: #16171a;       /* 墨色 */
  --sumi-2: #24262b;
  --ink: #1d1e21;        /* 本文の文字色 */
  --muted: #5c5e63;
  --white: #ffffff;
  --washi: #f6f4ef;      /* 生成り（やわらかい白） */
  --rule: #e2ddd3;
  --shu: #cc0000;        /* 赤（前のサイトの赤。ボタン・強調のみ） */
  --shu-dark: #a30000;
  --grit-red: #cc0000;   /* 前のサイトの赤（「選ばれる理由」で使用） */
  --grit-red-dark: #9e0606;

  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --gutter: 20px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sp { display: inline; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 写真の仮枠（写真が入ると自動で置き換わる） ---------- */
.photo {
  position: relative;
  overflow: hidden;
  background: #8a8b8e repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.05) 14px 28px);
}
.photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.25) brightness(.82) contrast(1.05); /* 暗めのトーンでそろえる */
}
.photo-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: 13px; line-height: 1.6; letter-spacing: .08em;
}
.photo.has-photo .photo-label { display: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(22,23,26,.86);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--white);
}
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand-sub { font-size: 9px; letter-spacing: .32em; opacity: .7; margin-bottom: 4px; }
.brand-logo { font-family: var(--serif); font-weight: 900; font-size: 24px; letter-spacing: .18em; }
.logo-img { height: 32px; width: auto; }

/* ---------- LINEボタン（サイトで一番目立つ要素） ---------- */
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px;
  width: 100%; max-width: 420px;
  padding: 0 16px;
  background: var(--shu);
  color: var(--white);
  border-radius: 4px;
  font-weight: 700; font-size: 16px; letter-spacing: .04em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(204,0,0,.28);
  transition: background .2s, transform .2s;
}
.btn-line:hover { background: var(--shu-dark); }
.btn-line:active { transform: translateY(1px); }
.line-icon { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-line--sm {
  display: none; /* スマホでは下部固定ボタンを使うので非表示 */
  min-height: 40px; width: auto; padding: 0 16px; font-size: 14px; box-shadow: none;
}
.btn-line--sm .line-icon { width: 18px; height: 18px; }
.btn-note { margin-top: 10px; font-size: 13px; opacity: .75; }

/* スマホ：画面下に固定 */
.line-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--rule);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.line-bar.is-shown { transform: none; }
.line-bar .btn-line { max-width: none; min-height: 54px; box-shadow: none; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--sumi);
  color: var(--white);
  padding: calc(var(--header-h) + 40px) 0 48px;
  overflow: hidden;
}
.hero-photo { position: absolute; inset: -15% 0; } /* 上下に余裕を持たせて、ゆっくり動かしても隙間が出ないように */
.hero-photo .photo-label { align-items: flex-start; padding-top: calc(var(--header-h) + 20px); }
.hero::after { /* 文字を読みやすくする暗いグラデーション */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,23,26,.35) 0%, rgba(22,23,26,.55) 45%, rgba(22,23,26,.94) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.hero-eyebrow { font-size: 12px; letter-spacing: .36em; opacity: .75; margin-bottom: 18px; }
.hero-title { font-family: var(--serif); font-weight: 700; }
.hero-lead { display: block; font-size: 18px; letter-spacing: .2em; margin-bottom: 12px; color: #eee; }
.hero-main { display: block; font-size: 34px; line-height: 1.45; letter-spacing: .06em; }
.hero-concept { margin-top: 20px; font-size: 15px; line-height: 1.9; opacity: .9; }

.hero-info {
  margin: 28px 0 28px;
  border-top: 1px solid rgba(255,255,255,.25);
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.hero-info div { display: flex; gap: 16px; padding: 12px 0; align-items: baseline; }
.hero-info div + div { border-top: 1px solid rgba(255,255,255,.12); }
.hero-info dt {
  flex: none; font-size: 12px; letter-spacing: .2em;
  padding: 2px 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 2px;
}
.hero-info dd { font-size: 17px; font-weight: 500; }
.hero-info small { font-size: 13px; opacity: .8; font-weight: 400; }

/* ---------- 限定プレオープンのお知らせ ---------- */
.preopen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.preopen-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--shu); color: var(--white);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; white-space: nowrap;
}
.preopen-tag::before { /* 実施中を示す小さな点（ゆっくり点滅） */
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--white);
  animation: preopen-blink 1.6s ease-in-out infinite;
}
@keyframes preopen-blink { 50% { opacity: .25; } }
.preopen-text { font-size: 15px; line-height: 1.7; }
.preopen-text strong { color: #ff6b62; font-weight: 700; }
.preopen-text small { display: block; margin-top: 2px; font-size: 12px; opacity: .75; }
.preopen--hero { margin-top: 22px; }
/* プレオープンの記事へのリンク */
.preopen-more {
  display: inline-flex; align-items: center; min-height: 32px;
  font-size: 14px; font-weight: 700; color: #ff6b62; text-decoration: underline; text-underline-offset: 4px;
}
.preopen-more:hover { color: var(--white); }
.preopen--hero .preopen-more { flex-basis: 100%; }
.preopen-box-more { margin-top: 14px; }
.preopen--final { justify-content: center; margin-top: 18px; }
.preopen--final .preopen-text strong { color: inherit; }

.preopen-box {
  margin-bottom: 24px; padding: 24px 20px; text-align: center;
  background: var(--sumi); color: var(--white); border-radius: 6px;
  border-top: 3px solid var(--shu);
}
.preopen-box .preopen-tag { margin-bottom: 12px; }
.preopen-box-title { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.6; }
.preopen-box-title strong { color: #ff4d43; font-size: 1.35em; margin-left: 4px; }
.preopen-box-text { margin-top: 8px; font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.8); }
.preopen-box-notes { display: inline-block; margin-top: 12px; text-align: left; font-size: 13px; color: rgba(255,255,255,.7); }
.preopen-box-notes li { position: relative; padding-left: 1.2em; line-height: 1.8; }
.preopen-box-notes li::before { content: "※"; position: absolute; left: 0; }
@media (min-width: 768px) {
  .preopen-box { padding: 32px; }
  .preopen-box-title { font-size: 26px; }
}

/* ---------- セクション共通 ---------- */
.section { padding: 88px 0; }
.sec-head { margin-bottom: 44px; }
.sec-en {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .3em; color: var(--shu); font-weight: 700;
  margin-bottom: 10px;
}
.sec-en::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.sec-title { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.5; letter-spacing: .08em; }
.sec-lead { margin-top: 14px; color: var(--muted); }
.sec-head--light { color: var(--white); }

/* ---------- こんな方へ ---------- */
.worries { display: grid; gap: 12px; }
.worries li {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 16px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--sumi);
  background: var(--white);
  font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: .04em;
}
.worry-mark {
  flex: none;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sumi); color: var(--white);
  font-size: 15px;
}
.for-you-body { margin-top: 36px; font-size: 16px; }
.for-you-strong {
  margin-top: 14px;
  font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: .08em;
}
.for-you-strong::after { content: ""; display: block; width: 40px; height: 2px; background: var(--shu); margin-top: 14px; }
.for-you-photo { margin-top: 40px; aspect-ratio: 4 / 3; }

/* ---------- 選ばれる理由 ---------- */
.reasons { position: relative; background: var(--sumi); color: var(--white); overflow: hidden; }
.reasons-bg { position: absolute; inset: 0; background: none; opacity: .18; }
.reasons-bg img { filter: grayscale(1) brightness(.7); }
.reasons .container { position: relative; }
.reason-list { display: grid; gap: 16px; }
/* 黒地に赤いカード（前のサイトの色合いに寄せる） */
.reasons { background: #0f0f10; }
.reasons .sec-en { color: #ff3333; } /* 黒地でも読めるよう少し明るい赤 */
.reasons .sec-title::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 14px; background: var(--grit-red); }
.reason {
  position: relative;
  padding: 30px 24px 28px;
  background: linear-gradient(155deg, var(--grit-red) 0%, var(--grit-red-dark) 100%);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  overflow: hidden;
}
.reason-no {
  display: block;
  font-family: var(--serif); font-weight: 900; font-size: 40px; line-height: 1;
  color: rgba(255,255,255,.4);
  margin-bottom: 12px;
}
.reason-title { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: .06em; margin-bottom: 12px; color: var(--white); }
.reason p { color: rgba(255,255,255,.94); }
.reason-note { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.8) !important; }

/* ---------- 保護者の方へ ---------- */
.parents { background: var(--washi); }
.assure { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.assure-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 20px;
  background: var(--white);
}
.assure-icon {
  flex: none; width: 44px; height: 44px;
  fill: none; stroke: var(--sumi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.assure-item h3 { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 4px; }
.assure-item p { font-size: 15px; color: var(--muted); line-height: 1.8; }

.cta { margin-top: 56px; text-align: center; }
.cta-text { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.8; margin-bottom: 22px; }

.container--narrow { max-width: 800px; }
.global-nav { display: none; }

/* ---------- 主催挨拶 ---------- */
.message-name { margin-top: 16px; font-size: 14px; color: var(--muted); letter-spacing: .1em; }
.message-name span { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); margin-left: 4px; }
.story { position: relative; }
.chapter { position: relative; padding: 0 0 52px 28px; border-left: 1px solid var(--rule); }
.chapter::before { /* 時間の流れを示す点 */
  content: ""; position: absolute; left: -5px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--sumi);
}
.chapter:last-child { padding-bottom: 0; }
.chapter-no { font-family: var(--serif); font-size: 13px; letter-spacing: .3em; color: var(--muted); margin-bottom: 6px; }
.chapter-title { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.6; letter-spacing: .05em; margin-bottom: 16px; }
.chapter p + p { margin-top: 1em; }
.chapter-voice { font-family: var(--serif); font-weight: 700; font-size: 18px; padding-left: 14px; border-left: 2px solid var(--shu); }
.chapter--promise::before { background: var(--shu); }
.keyline {
  margin: 8px 0 28px;
  padding: 32px 0;
  border-top: 1px solid var(--sumi); border-bottom: 1px solid var(--sumi);
}
.keyline p { font-family: var(--serif); font-weight: 900; font-size: 23px; line-height: 1.7; letter-spacing: .04em; }
.nb { display: inline-block; } /* 言葉の途中で改行させない */

/* ---------- 指導者紹介 ---------- */
.leaders { background: var(--washi); }
.leader-list { display: grid; gap: 28px; }
.leader { background: var(--white); border: 1px solid var(--rule); }
.leader-photo { aspect-ratio: 1 / 1; }
.leader-photo img { filter: grayscale(.15) contrast(1.03); }
.leader-body { padding: 24px 22px 28px; }
.leader-role { font-size: 13px; color: var(--shu); font-weight: 700; letter-spacing: .08em; }
.leader-name { font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: .12em; margin: 4px 0 16px; }
.leader-career { border-top: 1px solid var(--rule); padding-top: 12px; }
.leader-career li { position: relative; padding-left: 16px; font-size: 15px; line-height: 2; color: var(--muted); }
.leader-career li::before { content: ""; position: absolute; left: 0; top: .95em; width: 7px; height: 1px; background: var(--muted); }
.leader-msg { margin: 20px 0 0; padding: 18px 18px; background: var(--washi); border-left: 2px solid var(--sumi); }
.leader-msg-label { font-size: 12px; letter-spacing: .2em; color: var(--muted); margin-bottom: 4px; }

/* ---------- 料金プラン ---------- */
.plan-list { display: grid; gap: 20px; }
.plan { padding: 32px 18px; border: 1px solid var(--rule); background: var(--white); }
.plan--main { border: 2px solid var(--sumi); }
.plan-title { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .08em; margin-bottom: 18px; }
.plan-fees div { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.plan-fees div:first-child { border-top: 1px solid var(--rule); }
.plan-fees dt { font-weight: 500; }
.plan-fees dd { font-family: var(--serif); font-weight: 700; font-size: 28px; letter-spacing: .02em; }
.plan-fees dd span { font-family: var(--sans); font-weight: 400; font-size: 13px; margin-left: 2px; }
.plan-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.plan-text { margin: 14px 0 20px; }
.plan-text--small { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; width: 100%; max-width: 420px; padding: 0 24px;
  border: 1px solid var(--sumi); border-radius: 4px;
  font-weight: 700; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--sumi); color: var(--white); }

/* ---------- 入会の流れ ---------- */
.flow { background: var(--washi); }
.flow-list { display: grid; gap: 14px; counter-reset: flow; }
.flow-step { position: relative; padding: 26px 22px 24px; background: var(--white); border: 1px solid var(--rule); }
.flow-step + .flow-step::before { /* 下向きの矢印 */
  content: ""; position: absolute; top: -12px; left: 50%;
  width: 10px; height: 10px; margin-left: -5px;
  border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted);
  transform: rotate(45deg); background: var(--washi);
}
.flow-no { font-family: var(--serif); font-weight: 900; font-size: 15px; color: var(--shu); letter-spacing: .1em; }
.flow-step h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; margin: 4px 0 8px; }
.flow-step p { font-size: 15px; color: var(--muted); }

/* ---------- よくある質問 ---------- */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  position: relative;
  list-style: none; cursor: pointer;
  padding: 20px 44px 20px 40px;
  font-weight: 700; line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q"; position: absolute; left: 4px; top: 18px;
  font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--shu);
}
.faq-item summary::after { /* ＋／－ */
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--sumi), var(--sumi)) center / 14px 2px no-repeat,
    linear-gradient(var(--sumi), var(--sumi)) center / 2px 14px no-repeat;
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 8px 24px 40px; color: var(--muted); font-size: 15px; }

/* ---------- アクセス ---------- */
.access-grid { display: grid; gap: 24px; }
.access-info div { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.access-info div:first-child { border-top: 1px solid var(--rule); }
.access-info dt { flex: none; width: 3em; font-size: 14px; color: var(--muted); padding-top: 2px; }
.access-info dd { font-weight: 700; font-size: 17px; }
.access-info small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.access-map { aspect-ratio: 4 / 3; background: #e9e7e2; }
.access-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.6); }
.access-link { margin-top: 16px; }
.access-link a { font-weight: 700; text-underline-offset: 4px; }

/* ---------- 最後のLINE誘導 ---------- */
.final-cta { padding: 96px 0; background: var(--sumi); color: var(--white); text-align: center; }
.final-lead { font-family: var(--serif); letter-spacing: .3em; font-size: 15px; opacity: .7; margin-bottom: 18px; }
.final-title { font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 1.6; letter-spacing: .06em; }
.final-text { margin: 20px 0 32px; font-size: 15px; opacity: .85; }

/* ---------- フッター ---------- */
.site-footer { padding: 48px 0 32px; background: #0e0f11; color: rgba(255,255,255,.8); text-align: center; }
.site-footer .brand { align-items: center; color: var(--white); }
.footer-info { margin-top: 18px; font-size: 14px; }
.sns { display: flex; justify-content: center; gap: 16px; margin: 22px 0 28px; }
.sns a { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; transition: border-color .2s; }
.sns a:hover { border-color: var(--white); }
.sns svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sns .dot { fill: var(--white); stroke: none; }
.copyright { font-size: 12px; letter-spacing: .1em; opacity: .6; }

/* ---------- ブログ（一覧カード） ---------- */
.post-grid { display: grid; gap: 20px; }
.post-card a { display: block; height: 100%; background: var(--white); border: 1px solid var(--rule); text-decoration: none; transition: border-color .25s, transform .3s var(--ease, ease); }
.post-card a:hover { border-color: var(--sumi); }
.post-card-img { aspect-ratio: 16 / 10; }
.post-card-img img { transition: transform .6s var(--ease, ease); }
.post-card a:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 18px 18px 22px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.post-meta > * { white-space: nowrap; }
.post-cat { padding: 1px 10px; border: 1px solid var(--shu); color: var(--shu); font-size: 12px; font-weight: 700; border-radius: 2px; }
.post-card-title { margin-top: 10px; font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.6; }
.post-card-desc { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 写真がない記事：墨色の地に「GRIT」 */
.post-noimg { position: absolute; inset: 0; display: grid; place-items: center; background: var(--sumi); }
.post-noimg span { font-family: var(--serif); font-weight: 900; font-size: 28px; letter-spacing: .3em; color: rgba(255,255,255,.18); }
/* スマホ：写真を左に小さく置いた横長のカードにして、一覧を見渡しやすく */
@media (max-width: 767px) {
  .post-grid { gap: 12px; }
  .post-card a { display: grid; grid-template-columns: 112px 1fr; }
  .post-card-img { aspect-ratio: 1 / 1; }
  .post-card-body { padding: 12px 14px; }
  .post-card-title { margin-top: 6px; font-size: 16px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .post-card-desc { display: none; }
  .post-meta { gap: 8px; font-size: 12px; }
  .post-cat { padding: 0 8px; font-size: 11px; }
  .post-card .post-noimg span { font-size: 15px; letter-spacing: .2em; }
}
.post-grid:empty::after { content: "記事はまだありません。"; color: var(--muted); }
.blog-latest { background: var(--washi); }
.blog-more { margin-top: 28px; text-align: right; }
.blog-more a { font-weight: 700; text-underline-offset: 4px; }

/* ---------- ブログ（下層ページ共通） ---------- */
.page-sub .site-header { background: var(--sumi); }
.page-head { padding: calc(var(--header-h) + 56px) 0 8px; background: var(--white); }
.section--tight { padding-top: 40px; }

/* ---------- ブログ（カテゴリー） ---------- */
/* カテゴリーの切り替え：スマホでは横にスクロールできる */
.blog-nav {
  display: flex; gap: 8px; margin-top: 28px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 4px;
}
.blog-nav::-webkit-scrollbar { display: none; }
.blog-nav a {
  flex: none; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px;
  font-size: 14px; text-decoration: none; white-space: nowrap; background: var(--white);
  transition: border-color .2s, background .2s, color .2s;
}
.blog-nav a:hover { border-color: var(--sumi); }
.blog-nav a.is-current { background: var(--sumi); border-color: var(--sumi); color: var(--white); }
.blog-section + .blog-section { margin-top: 64px; }
.blog-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--sumi); }
.blog-section-title { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: .06em; }
.blog-section-more { flex: none; font-size: 14px; font-weight: 700; text-decoration: none; }
.blog-section-more:hover { color: var(--shu); }
.blog-empty { color: var(--muted); }
.page-head .breadcrumb { margin-bottom: 24px; }
a.post-cat { text-decoration: none; }
.related { background: var(--washi); padding: 64px 0; }
.related:not(:has(li)) { display: none; } /* 関連記事がないときは隠す */
.related-title { font-family: var(--serif); font-weight: 700; font-size: 21px; margin-bottom: 24px; }

/* ---------- ブログ（記事ページ） ---------- */
.container--article { max-width: 760px; }
.post { padding: calc(var(--header-h) + 28px) 0 72px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { color: inherit; }
.post-title { margin-top: 14px; font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.6; letter-spacing: .04em; }
.post-cover { margin: 28px calc(var(--gutter) * -1) 36px; aspect-ratio: 16 / 9; }
.post-body { font-size: 16px; line-height: 2; }
.post-body > * + * { margin-top: 1.4em; }
.post-body h2 { margin-top: 2.4em; padding-bottom: 10px; border-bottom: 1px solid var(--sumi); font-family: var(--serif); font-size: 21px; line-height: 1.6; }
.post-body h3 { margin-top: 2em; padding-left: 12px; border-left: 3px solid var(--shu); font-size: 18px; line-height: 1.6; }
.post-body a { color: var(--shu); text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: .4em; }
.post-body figure { margin: 2em 0; }
.post-body figure img { width: 100%; height: auto; }
.post-body figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.post-body blockquote { margin: 2em 0; padding: 18px 20px; background: var(--washi); border-left: 2px solid var(--sumi); font-family: var(--serif); }
.post-cta { margin-top: 56px; padding: 32px 22px; background: var(--washi); text-align: center; }
.post-cta-title { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.post-cta-text { margin: 10px 0 22px; font-size: 14px; color: var(--muted); }
.post-back { margin-top: 32px; }
.post-back a { font-weight: 700; text-underline-offset: 4px; }

/* ---------- スクロールでふわっと表示 ---------- */
:root { --ease: cubic-bezier(.22, .61, .36, 1); }
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms); /* 並んだ項目は少しずつずらして表示 */
}
.reveal.is-in { opacity: 1; transform: none; }

/* 見出し横の赤い線がスッと伸びる */
.sec-head .sec-en::before { width: 0; transition: width .8s var(--ease) .2s; }
.sec-head.is-in .sec-en::before { width: 28px; }

/* 主催挨拶の核心の一文：上下の線が左から引かれる */
.keyline { position: relative; border-color: transparent; }
.keyline::before, .keyline::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--sumi);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .3s;
}
.keyline::before { top: 0; }
.keyline::after { bottom: 0; }
.is-in .keyline::before, .is-in .keyline::after { transform: scaleX(1); }

/* 主催挨拶：読み進めると点が朱色に灯る */
.chapter::before { transition: background .6s ease .3s, box-shadow .6s ease .3s; }
.chapter.is-in::before { background: var(--shu); box-shadow: 0 0 0 4px rgba(204,0,0,.15); }

/* ヒーロー：ページを開いたときに上から順に表示 */
.hero-photo { animation: hero-zoom 2.4s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: none; } }
.hero-inner > * { animation: hero-in 1s var(--ease) both; }
.hero-inner > :nth-child(1) { animation-delay: .15s; }
.hero-inner > :nth-child(2) { animation-delay: .3s; }
.hero-inner > :nth-child(3) { animation-delay: .5s; }
.hero-inner > :nth-child(4) { animation-delay: .65s; }
.hero-inner > :nth-child(5) { animation-delay: .75s; }
.hero-inner > :nth-child(6) { animation-delay: .9s; }
.hero-inner > :nth-child(7) { animation-delay: 1s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ヘッダー：一番上では透明、スクロールすると墨色に */
.site-header { transition: background .4s ease, backdrop-filter .4s ease; }
.site-header.is-top { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* LINEボタン：触れたときに少し浮く */
.btn-line { transition: background .2s, transform .25s var(--ease), box-shadow .25s; }
@media (hover: hover) {
  .btn-line:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(204,0,0,.34); }
}

/* よくある質問：開いたときに答えがふわっと出る */
.faq-item[open] p { animation: faq-open .4s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ヒーロー：オープニングの後、画面に入ったときに演出を始める */
.hero-photo, .hero-inner > * { animation-play-state: paused; }
.hero.is-in .hero-photo, .hero.is-in .hero-inner > * { animation-play-state: running; }

/* ============================================================
   オープニング演出
   光の筋が走る → GRITの文字が1文字ずつ登場 → 赤い一閃 → 「やり抜く力」のテロップ
   → スクロールするとGRITが手前に迫りながら消えて、サイトが始まる
   ============================================================ */
.intro {
  --o: 1.35s; /* 日本刀の一太刀のあとに始める（塊が落ちていく途中から重ねる） */
  position: relative;
  height: 100vh; height: 100svh;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 55%, #24252a 0%, #0b0b0c 70%);
  color: var(--white);
  overflow: hidden;
}
.no-intro .intro { display: none; }

/* 光の筋（赤と白の細い線が横切る） */
.intro-streaks { position: absolute; inset: 0; pointer-events: none; }
.intro-streaks i {
  position: absolute; left: 0; height: 2px; width: 46%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  opacity: 0;
  animation: streak 1.6s var(--ease) both;
}
.intro-streaks i:nth-child(odd) { background: linear-gradient(90deg, transparent, var(--grit-red), transparent); height: 3px; }
.intro-streaks i:nth-child(1) { top: 22%; animation-delay: calc(var(--o) + .05s); }
.intro-streaks i:nth-child(2) { top: 31%; animation-delay: calc(var(--o) + .25s); width: 30%; }
.intro-streaks i:nth-child(3) { top: 40%; animation-delay: calc(var(--o) + .12s); }
.intro-streaks i:nth-child(4) { top: 47%; animation-delay: calc(var(--o) + .4s); width: 60%; }
.intro-streaks i:nth-child(5) { top: 56%; animation-delay: calc(var(--o) + .2s); }
.intro-streaks i:nth-child(6) { top: 64%; animation-delay: calc(var(--o) + .5s); width: 26%; }
.intro-streaks i:nth-child(7) { top: 72%; animation-delay: calc(var(--o) + .32s); }
.intro-streaks i:nth-child(8) { top: 80%; animation-delay: calc(var(--o) + .6s); width: 38%; }
@keyframes streak {
  0% { transform: translateX(-110%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(240%); opacity: 0; }
}

.intro-inner { position: relative; text-align: center; will-change: transform, opacity; }
.intro-en {
  font-size: 12px; letter-spacing: .5em; text-indent: .5em; opacity: 0;
  animation: fade-up .8s var(--ease) calc(var(--o) + .3s) both;
}
.intro-logo {
  position: relative;
  display: flex; justify-content: center; gap: .05em; /* 4文字を必ず1行に */
  margin: 10px 0 22px;
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(84px, 25vw, 240px); line-height: 1;
}
.intro-logo span {
  display: inline-block;
  animation: letter-in 1s var(--ease) both;
}
.intro-logo span:nth-child(1) { animation-delay: calc(var(--o) + .45s); }
.intro-logo span:nth-child(2) { animation-delay: calc(var(--o) + .6s); }
.intro-logo span:nth-child(3) { animation-delay: calc(var(--o) + .75s); }
.intro-logo span:nth-child(4) { animation-delay: calc(var(--o) + .9s); }
@keyframes letter-in {
  0% { opacity: 0; transform: translateY(40px) scale(1.3); filter: blur(14px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
/* 竹刀を振り抜いたような赤い一閃 */
.intro-slash {
  position: absolute; left: -8%; right: -8%; top: 52%;
  height: 6px; margin-top: -3px;
  background: linear-gradient(90deg, transparent, var(--grit-red) 20%, #ff4a3d 50%, var(--grit-red) 80%, transparent);
  box-shadow: 0 0 24px rgba(204,0,0,.8);
  transform: rotate(-8deg) scaleX(0); transform-origin: left center;
  animation: slash .9s var(--ease) calc(var(--o) + 1.5s) both;
}
@keyframes slash {
  0% { transform: rotate(-8deg) scaleX(0); opacity: 1; }
  45% { transform: rotate(-8deg) scaleX(1); opacity: 1; }
  100% { transform: rotate(-8deg) scaleX(1); opacity: 0; }
}
/* テロップ：赤い帯が走ってから文字が現れる */
.intro-telop {
  position: relative; display: inline-block;
  padding: 6px 22px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(20px, 5.6vw, 34px); letter-spacing: .4em; text-indent: .4em;
}
.intro-telop::before {
  content: ""; position: absolute; inset: 0; background: var(--grit-red);
  transform: scaleX(0); transform-origin: left;
  animation: band 1.1s var(--ease) calc(var(--o) + 1.95s) both;
}
@keyframes band {
  0% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(1); transform-origin: left; }
  46% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(1); transform-origin: right; }
}
.intro-telop span { position: relative; display: inline-block; animation: telop-text .6s var(--ease) calc(var(--o) + 2.35s) both; }
@keyframes telop-text { from { opacity: 0; transform: translateY(60%); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }

/* 登場が終わった後も、うっすら光が流れ続けて止まって見えないように */
.intro::before, .intro::after {
  content: ""; position: absolute; left: 0; width: 34%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  opacity: 0;
  animation: streak-loop 7s linear calc(var(--o) + 3.2s) infinite, fade-in 1s ease calc(var(--o) + 3.2s) forwards;
}
.intro::before { top: 30%; }
.intro::after { top: 70%; background: linear-gradient(90deg, transparent, rgba(204,0,0,.9), transparent); animation-delay: calc(var(--o) + 6.2s), calc(var(--o) + 6.2s); }
@keyframes fade-in { to { opacity: 1; } }

/* スクロールの案内 */
.intro-scroll {
  position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom));
  width: max-content; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .4em; text-indent: .4em; text-decoration: none;
  color: rgba(255,255,255,.8);
  animation: fade-up .8s var(--ease) calc(var(--o) + 3s) backwards; /* 終了後はスクロールでの薄れ方を優先 */
}
.intro-scroll i { position: relative; width: 1px; height: 56px; background: rgba(255,255,255,.2); overflow: hidden; }
.intro-scroll i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%;
  background: var(--white);
  animation: scroll-line 1.8s ease-in-out infinite;
}
@keyframes scroll-line { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 日本刀の一太刀（オープニングの最初、約1.7秒） ----------
   0.00秒〜：黒い漆のような板に「GRIT」の文字。左上で、構えた刃に光が走る
   0.30秒〜：左上から右下へ、日本刀で一撃（0.2秒）。切っ先の光が切り口に沿って走る
   0.50秒　：斬れた瞬間、画面が一瞬赤く光って震える
   0.62秒〜：上の塊が切り口に沿ってずり落ち、文字がずれて、赤く焼けた断面が見える
   0.85秒〜：上の塊が奥へ傾きながら落ち、少し遅れて下の塊も落ちる
   切り口の形と、ずり落ちる向きは、画面の大きさに合わせて js/main.js で計算している */
@property --w { syntax: "<percentage>"; inherits: true; initial-value: -20%; }
.intro-cut { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
@keyframes cut-done { to { visibility: hidden; } }
.cut-defs { position: absolute; }

.intro-cut { perspective: 1100px; perspective-origin: 50% 40%; }

/* 斬られる板：黒い漆のような面に、細い刷毛目と、輪郭だけの「GRIT」 */
.cut-face {
  position: absolute; inset: 25%; /* 割れる塊は画面の2倍の大きさなので、板の絵を画面の位置に合わせる */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%, rgba(255,255,255,.07), transparent 70%),
    repeating-linear-gradient(100deg, rgba(255,255,255,.018) 0 1px, transparent 1px 5px),
    #0b0b0d;
  color: rgba(255,255,255,.5);
}
.cut-cover .cut-face { inset: 0; }
.cut-face-en { font-size: 11px; letter-spacing: .5em; text-indent: .5em; }
.cut-face-logo {
  font-family: var(--serif); font-weight: 900; line-height: 1;
  font-size: clamp(96px, 30vw, 300px); letter-spacing: .04em;
  color: rgba(255,255,255,.13);
  text-shadow: 0 1px 0 rgba(255,255,255,.12), 0 -1px 0 rgba(0,0,0,.6); /* 板に彫り込んだような文字 */
}

/* 斬る前は、継ぎ目のない一枚の板として見せる（斬れた瞬間に二つの塊に入れ替わる） */
.cut-cover { position: absolute; inset: 0; animation: cover-off 0s linear .5s forwards; }
@keyframes cover-off { to { visibility: hidden; } }

/* 二つの塊（切り口の曲線で分ける） */
/* 塊は画面の2倍の大きさにしておき、ずれたり傾いたりしても塊の外側の端が画面に入らないようにする */
.cut-half { position: absolute; inset: -50%; }
.cut-half > i { position: absolute; inset: 0; }
.cut-body { background: #0b0b0d; } /* 板の絵の外側も同じ色で塗り、ずれても裏が見えないように */
.cut-a > i { -webkit-clip-path: url(#cut-clip-a); clip-path: url(#cut-clip-a); }
.cut-b > i { -webkit-clip-path: url(#cut-clip-b); clip-path: url(#cut-clip-b); }
/* 塊が傾くと、光の当たり方が変わって暗くなる */
.cut-body::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; }
.cut-a .cut-body::after { animation: shade 1.15s linear .5s both; }
.cut-b .cut-body::after { animation: shade 1.15s linear .62s both; }
@keyframes shade { 0%, 30% { opacity: 0; } 100% { opacity: .65; } }

/* 断面（板の厚み）：上の塊の切り口の下に、赤く焼けた断面がのぞく */
.cut-edge {
  background: linear-gradient(180deg, #ff5a4f, #cc0000 40%, #3a0000);
  transform: translateY(0);
  animation: edge-show 1.15s linear .5s both;
}
@keyframes edge-show {
  0%, 10% { transform: translateY(0); }
  28%     { transform: translateY(9px); }
  100%    { transform: translateY(14px); }
}

/* 上の塊：震える → 切り口に沿ってずり落ちる → 奥へ傾きながら落ちる */
.cut-a { transform-origin: 55% 45%; animation: slice-a 1.15s linear .5s both; }
@keyframes slice-a {
  0%   { transform: none; animation-timing-function: ease-out; }
  4%   { transform: translate(4px, -3px); }
  8%   { transform: translate(-3px, 2px); }
  11%  { transform: translate(0, 0); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  /* ずり落ちる（切り口の向きに、ほんの少し）。ここで文字がずれて「斬れた」と分かる */
  28%  { transform: translate(calc(var(--tx, 60px) * .25), calc(var(--ty, 120px) * .25)); animation-timing-function: cubic-bezier(.5, 0, .9, .4); }
  /* 落ちる（重さで加速しながら、奥へ傾き、少し回る） */
  100% { transform: translate(calc(var(--tx, 60px) * .9), calc(var(--ty, 120px) * .9 + 105vh)) rotateX(38deg) rotateZ(9deg); }
}
/* 下の塊：震える → 少し遅れて、反対向きに傾きながら落ちる */
.cut-b { transform-origin: 45% 55%; animation: slice-b 1.15s linear .5s both; }
@keyframes slice-b {
  0%   { transform: none; animation-timing-function: ease-out; }
  4%   { transform: translate(-4px, 3px); }
  8%   { transform: translate(3px, -2px); }
  11%  { transform: translate(0, 0); }
  40%  { transform: translate(0, 0); animation-timing-function: cubic-bezier(.5, 0, .9, .4); }
  100% { transform: translate(calc(var(--tx, 60px) * -.15), 105vh) rotateX(-28deg) rotateZ(-6deg); }
}
/* 斬れた瞬間から、切り口の線だけが赤く焼けたように光る（塊の外側のふちは光らせない） */
.cut-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0;
  filter: drop-shadow(0 0 6px rgba(204,0,0,.9)); animation: line-on .12s ease-out .48s both; }
.cut-line path { fill: none; stroke: #ff3b30; stroke-width: 2; vector-effect: non-scaling-stroke; }
@keyframes line-on { to { opacity: 1; } }

/* 刃が通った所だけを見せていく（左上から右下へ一気に） */
.cut-wipe {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  clip-path: polygon(-20% -20%, var(--w) -20%, -20% var(--w));
}
.intro-cut { animation: cut-done 0s linear 1.8s forwards, cut-swing .2s cubic-bezier(.3, .6, .25, 1) .3s both; }
@keyframes cut-swing { from { --w: -20%; } to { --w: 260%; } }

/* 剣閃：赤い残光と、白く鋭い芯。斬った直後から先に芯が消え、残光がゆっくり消える */
.cut-trail-glow path { fill: var(--grit-red); }
.cut-trail-glow { filter: blur(10px); opacity: .95; animation: trail-fade .55s ease-out .52s forwards; }
.cut-trail-core path { fill: #fff3f1; }
.cut-trail-core { filter: drop-shadow(0 0 3px #ff8a80); animation: trail-fade .3s ease-out .5s forwards; }
@keyframes trail-fade { to { opacity: 0; } }

/* 構えた刃に光が走る（左上） */
.cut-glint {
  position: absolute; left: 3%; top: 2%; width: 120px; height: 2px; margin: -1px 0 0 -60px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: rotate(35deg) scaleX(0); opacity: 0;
  filter: drop-shadow(0 0 6px #fff);
  animation: glint .3s ease-out .08s both;
}
@keyframes glint {
  0% { transform: rotate(35deg) scaleX(0); opacity: 0; }
  40% { transform: rotate(35deg) scaleX(1); opacity: 1; }
  100% { transform: rotate(35deg) scaleX(.2); opacity: 0; }
}
/* 切っ先の光 */
.cut-tip {
  position: absolute; left: 0; top: 0; width: 90px; height: 90px; margin: -45px 0 0 -45px; z-index: 2;
  background: radial-gradient(circle, #fff 0 6%, rgba(255,140,130,.9) 14%, rgba(204,0,0,.45) 34%, transparent 66%);
  opacity: 0; will-change: transform, opacity;
}

/* 斬れた瞬間、切り口に沿って赤い光が広がる */
.cut-flash {
  position: absolute; inset: 0; opacity: 0; z-index: 1;
  background: #ff2a1f; mix-blend-mode: screen;  /* 画面全体が一瞬だけ赤く光る */
  animation: cut-flash .5s ease-out .47s;
}
@keyframes cut-flash { 0% { opacity: 0; } 12% { opacity: .12; } 100% { opacity: 0; } }

/* オープニングからヒーローへ、境目を作らずに溶け込ませる */
html:not(.no-intro) .hero::after {
  background: linear-gradient(180deg, #0b0b0c 0%, rgba(22,23,26,.45) 22%, rgba(22,23,26,.55) 50%, rgba(22,23,26,.94) 100%);
}

/* オープニング中はヘッダーを隠す */
.site-header.on-intro { opacity: 0; pointer-events: none; }
.site-header { transition: background .4s ease, opacity .5s ease; }

/* ============================================================
   スマホ・タブレット用メニュー（右上の「≡」から全画面で開く）
   ============================================================ */
.menu-btn {
  position: relative; z-index: 2;
  width: 44px; height: 44px; margin-left: 12px; margin-right: -10px;
  border: 0; background: none; color: var(--white); cursor: pointer;
}
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { top: 21.5px; transform: rotate(35deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21.5px; transform: rotate(-35deg); }
.site-header .btn-line--sm { margin-left: auto; }

.drawer {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: #0b0b0c; color: var(--white);
  clip-path: circle(0 at calc(100% - 32px) 30px);
  visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s linear .7s;
  overflow-y: auto;
}
.menu-open .drawer { clip-path: circle(150% at calc(100% - 32px) 30px); visibility: visible; transition: clip-path .7s var(--ease); }
.menu-open, .menu-open body { overflow: hidden; } /* メニューを開いている間は後ろのページを止める */
.menu-open .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .line-bar { transform: translateY(110%); }

.drawer-nav li {
  border-bottom: 1px solid rgba(255,255,255,.12);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s var(--ease);
}
.menu-open .drawer-nav li { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * 60ms); }
.drawer-nav a {
  display: flex; align-items: baseline; gap: 18px; padding: 16px 4px;
  font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .08em;
  text-decoration: none;
}
.drawer-no { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--shu); }
.drawer-foot { margin-top: 32px; opacity: 0; transition: opacity .5s ease; }
.menu-open .drawer-foot { opacity: 1; transition-delay: .55s; }
.drawer-foot .btn-line { max-width: none; }
.drawer-sns { display: flex; justify-content: center; gap: 28px; margin-top: 20px; font-size: 14px; letter-spacing: .1em; }
.drawer-sns a { color: rgba(255,255,255,.75); text-underline-offset: 4px; }

/* 上部メニューが1行に収まる横幅（1240px〜）では、全画面メニューの代わりに上部メニューを出す */
@media (min-width: 1240px) {
  .menu-btn, .drawer { display: none; }
  .site-header .btn-line--sm { margin-left: 0; }
  .global-nav { display: flex; gap: 26px; margin-left: auto; margin-right: 28px; }
  .global-nav a { font-size: 14px; text-decoration: none; opacity: .85; letter-spacing: .06em; white-space: nowrap; }
  .global-nav a:hover { opacity: 1; }
}

/* ---------- ショップ ---------- */
.product-grid { display: grid; gap: 20px; }
.product { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); }
.product-img { aspect-ratio: 1 / 1; }
.product-img img { filter: none; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 24px; }
.product-name { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.6; }
.product-price { margin-top: 6px; font-family: var(--serif); font-weight: 700; font-size: 24px; }
.product-price small { font-family: var(--sans); font-weight: 400; font-size: 12px; margin-left: 2px; color: var(--muted); }
.product-desc { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.product-btn {
  display: flex; align-items: center; justify-content: center; margin-top: auto; padding-top: 0;
  min-height: 52px; margin-top: 18px; border-radius: 4px;
  background: var(--sumi); color: var(--white); font-weight: 700; letter-spacing: .1em; text-decoration: none;
  transition: background .2s;
}
.product-btn:hover { background: var(--shu); }
.product-btn.is-disabled { background: var(--rule); color: var(--muted); cursor: default; }
/* 商品が0件のときの「準備中」 */
.shop-soon { display: none; padding: 56px 20px; text-align: center; background: var(--washi); }
.shop-empty .shop-soon { display: block; }
.shop-empty .product-grid { display: none; }
.shop-soon-en { font-size: 12px; font-weight: 700; letter-spacing: .4em; color: var(--shu); }
.shop-soon-title { margin-top: 10px; font-family: var(--serif); font-weight: 700; font-size: 24px; }
.shop-soon-text { margin: 12px 0 28px; color: var(--muted); }
.shop-notes { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.shop-notes li { position: relative; padding-left: 1.2em; line-height: 1.9; }
.shop-notes li::before { content: "※"; position: absolute; left: 0; }
.shop-notes a { color: inherit; text-underline-offset: 3px; }
/* スマホは2列（一般的なネットショップと同じ見せ方） */
@media (max-width: 767px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 12px 12px 14px; }
  .product-name { font-size: 15px; line-height: 1.5; }
  .product-price { font-size: 18px; }
  .product-desc { font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product-btn { min-height: 44px; margin-top: 12px; font-size: 14px; }
  .product .post-noimg span { font-size: 16px; letter-spacing: .2em; }
}
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

/* 購入完了ページ */
.thanks { padding-bottom: 96px; }
.thanks-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.thanks-links .btn-outline { width: auto; flex: 1 1 200px; }

/* 特定商取引法に基づく表記 */
.legal-list div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.legal-list div:first-child { border-top: 1px solid var(--rule); }
.legal-list dt { font-weight: 700; font-size: 15px; }
.legal-list dd { margin-top: 4px; color: var(--muted); font-size: 15px; }
.legal-list dd.is-tbd { color: var(--shu); } /* 未記入（公開前に必ず埋める） */
@media (min-width: 768px) {
  .legal-list div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
  .legal-list dd { margin-top: 0; }
}
.footer-legal { margin-top: 16px; font-size: 12px; }
.footer-legal a { color: rgba(255,255,255,.6); text-underline-offset: 3px; }

/* 404ページ */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; gap: 12px; padding: 40px var(--gutter); text-align: center; background: #0b0b0c; color: var(--white); }
.notfound-code { font-family: var(--serif); font-weight: 900; font-size: 96px; line-height: 1; color: var(--shu); }
.notfound-title { font-family: var(--serif); font-weight: 700; font-size: 22px; }
.notfound-text { color: rgba(255,255,255,.7); font-size: 15px; margin-bottom: 16px; }
.notfound-btn { border-color: rgba(255,255,255,.6); color: var(--white); }

/* フッターのページ内リンク */
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 24px auto 0; max-width: 560px; font-size: 13px; }
.footer-nav a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   全体のアニメーション（追加分）
   ============================================================ */
/* 見出しの文字が下からせり上がる */
.sec-head .sec-title { clip-path: inset(0 0 100% 0); transform: translateY(.5em); transition: clip-path 1s var(--ease) .1s, transform 1s var(--ease) .1s; }
.sec-head.is-in .sec-title { clip-path: inset(0 0 -20% 0); transform: none; }

/* 写真の枠：墨色の幕が横に開いて現れる */
.for-you-photo::after, .leader-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: var(--sumi);
  transform-origin: right; transition: transform 1.1s var(--ease) .2s;
}
.for-you-photo.is-in::after, .is-in .leader-photo::after { transform: scaleX(0); }

/* 「選ばれる理由」のカード：少し下から、傾きを戻しながら */
.reason.reveal { transform: translateY(36px) rotate(1.5deg); }
.reason.reveal.is-in { transform: none; }

/* 最後のLINE誘導：背景に赤い光の筋をゆっくり流す */
.final-cta { position: relative; overflow: hidden; }
.final-cta::before, .final-cta::after {
  content: ""; position: absolute; left: 0; height: 2px; width: 40%;
  background: linear-gradient(90deg, transparent, var(--grit-red), transparent);
  animation: streak-loop 6s linear infinite; opacity: .7;
}
.final-cta::before { top: 22%; }
.final-cta::after { top: 78%; animation-delay: 3s; }
.final-cta .container { position: relative; z-index: 1; }
@keyframes streak-loop { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* 動きを減らす設定の端末では、アニメーションをすべて止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .sec-head .sec-en::before { width: 28px; }
  .keyline::before, .keyline::after { transform: none; }
  .sec-head .sec-title { clip-path: none; transform: none; }
  .for-you-photo::after, .leader-photo::after { display: none; }
  html { scroll-behavior: auto; }
}

/* スマホで下部固定ボタンに隠れないよう余白を確保 */
.site-footer { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }

/* ============================================================
   タブレット（768px〜）
   ============================================================ */
@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 72px; }
  .sp { display: none; }

  .btn-line { padding: 0 28px; font-size: 17px; letter-spacing: .06em; }
  .btn-line--sm { display: inline-flex; padding: 0 16px; font-size: 14px; }
  .line-bar { display: none; }
  .site-footer { padding-bottom: 32px; }

  .hero { align-items: center; padding-bottom: 80px; }
  .hero-main { font-size: 48px; }
  .hero-lead { font-size: 22px; }
  .hero-concept { font-size: 16px; }
  .hero-info { display: flex; gap: 40px; border: none; margin: 36px 0; }
  .hero-info div { padding: 0; border: none !important; }

  .section { padding: 120px 0; }
  .sec-title { font-size: 34px; }

  .worries { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .worries li { flex-direction: column; text-align: center; padding: 32px 18px; border-left: 1px solid var(--rule); border-top: 3px solid var(--sumi); }

  .reason-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .reason { padding: 36px 32px; }

  .assure { grid-template-columns: repeat(2, 1fr); }
  .assure-item { padding: 28px 28px; }

  .chapter { padding-left: 44px; padding-bottom: 64px; }
  .chapter-title { font-size: 24px; }
  .keyline p { font-size: 32px; }

  .leader { display: grid; grid-template-columns: 240px 1fr; }
  .leader-photo { aspect-ratio: auto; min-height: 300px; }
  .leader-body { padding: 32px 36px; }

  .plan-list { grid-template-columns: 1fr 1fr; align-items: start; }
  .plan { padding: 40px 36px; }

  .flow-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .flow-step + .flow-step::before { top: 50%; left: -18px; margin: -5px 0 0; transform: rotate(-45deg); }

  .access-grid { grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }

  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .post-title { font-size: 32px; }
  .post-cover { margin-left: 0; margin-right: 0; }
  .post-cta { padding: 40px 32px; }
  .page-head { padding-top: calc(var(--header-h) + 80px); }

  .final-cta { padding: 128px 0; }
  .final-title { font-size: 36px; }
}

/* ============================================================
   PC（1080px〜）
   ============================================================ */
@media (min-width: 1080px) {
  .hero-main { font-size: 58px; }

  .for-you .container { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .for-you .sec-head, .for-you .worries { grid-column: 1 / -1; }
  .for-you-body { align-self: center; }
  .for-you-photo { margin-top: 36px; }

  .reason-list { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .reason { padding: 30px 22px; }
  .reason-title { font-size: 19px; }
  .reason p { font-size: 15px; }

  .assure { grid-template-columns: repeat(4, 1fr); }
  .assure-item { flex-direction: column; gap: 14px; }


  .leader-list { grid-template-columns: repeat(3, 1fr); }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .leader { display: block; }
  .leader-photo { aspect-ratio: 4 / 5; min-height: 0; }
  .leader-body { padding: 28px 28px 32px; }
}

/* ヘッダーに隠れないよう、メニューから飛んだときの位置を調整 */
section[id] { scroll-margin-top: var(--header-h); }

/* GRIT PERSONAL CONSULTING への案内バナー（トップページ） */
.oc-banner { display: block; margin-top: 36px; padding: 24px 20px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: var(--white); text-align: center; text-decoration: none; transition: background .2s, border-color .2s; }
.oc-banner:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.oc-banner-tag { display: inline-block; padding: 3px 12px; background: var(--shu); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.oc-banner-title { display: block; margin-top: 12px; font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .06em; }
.oc-banner-text { display: block; margin-top: 8px; font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.8); }
.oc-banner-more { display: inline-block; margin-top: 12px; font-weight: 700; border-bottom: 1px solid currentColor; }


/* ---------- オンライン指導ページ（強化版） ---------- */
.btn-sub {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; width: 100%; max-width: 420px; padding: 0 16px;
  border: 1.5px solid var(--sumi); border-radius: 4px;
  color: var(--sumi); font-weight: 700; font-size: 16px; letter-spacing: .04em;
  text-decoration: none; transition: background .2s, color .2s;
}
.btn-sub:hover { background: var(--sumi); color: var(--white); }
.hero-cta { margin-top: 28px; display: grid; gap: 12px; justify-items: start; }
.hero-cta .btn-note { margin: 2px 0 0; }
.hero-creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-creds li {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 14px;
  border: 1px solid var(--rule); border-left: 3px solid var(--shu); background: var(--white);
  font-size: 12px; letter-spacing: .06em; color: var(--muted);
}
.hero-creds strong { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: .04em; }

.voices { display: grid; gap: 14px; }
.voice p {
  position: relative; max-width: 88%;
  padding: 16px 20px; background: var(--white); border: 1px solid var(--rule);
  border-radius: 18px 18px 18px 4px;
  font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.7; letter-spacing: .03em;
}
.voice:nth-child(even) p { margin-left: auto; border-radius: 18px 18px 4px 18px; background: var(--washi); }
.answer { margin-top: 34px; padding: 24px 22px; background: var(--sumi); color: var(--white); border-left: 3px solid var(--shu); }
.answer-lead { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .06em; margin-bottom: 10px; }
.answer p:last-child { color: rgba(255,255,255,.9); font-size: 15px; }

.achieve { background: var(--sumi); color: var(--white); }
.achieve .sec-en { color: #ff3333; }
.achieve-lead { color: rgba(255,255,255,.8); }
.achieve-grid { display: grid; gap: 16px; }
.achieve-card { padding: 24px 20px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.achieve-school { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .08em; margin-bottom: 12px; }
.achieve-school small { display: block; margin-top: 4px; font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: .06em; color: rgba(255,255,255,.65); }
.achieve-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; }
.achieve-list strong { font-family: var(--serif); font-weight: 700; font-size: 18px; color: #ff6b62; white-space: nowrap; }

.leader-promise { margin: 0 0 16px; padding: 12px 14px; background: var(--washi); border-left: 3px solid var(--shu); font-weight: 700; font-size: 15px; line-height: 1.8; }
.leader-achv-title { margin: 18px 0 6px; font-size: 13px; letter-spacing: .2em; color: var(--muted); }

.rules { background: var(--white); }
.rules-grid { display: grid; gap: 12px; }
.rule { padding: 20px 18px; border: 1px solid var(--rule); border-top: 3px solid var(--sumi); background: var(--white); }
.rule h3 { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: .04em; margin-bottom: 6px; }
.rule p { font-size: 15px; color: var(--muted); }
.rules-note { margin-top: 20px; font-size: 14px; color: var(--muted); }

.final-btns { display: grid; gap: 12px; justify-items: center; }
.final-sub { border-color: rgba(255,255,255,.55); color: var(--white); }
.final-sub:hover { background: rgba(255,255,255,.12); color: var(--white); }
.flow-no { white-space: nowrap; }

@media (min-width: 720px) {
  .achieve-grid { grid-template-columns: 1fr 1fr; }
  .rules-grid { grid-template-columns: 1fr 1fr; }
  .voice p { max-width: 60%; }
  .hero-cta { grid-auto-flow: column; justify-content: start; align-items: center; }
  .hero-cta .btn-note { grid-column: 1 / -1; }
}


/* ---------- 目指す剣道（ストーリー） ---------- */
.story { background: var(--washi); }
.story-hook { padding: 30px 22px; background: var(--sumi); color: var(--white); border-left: 3px solid var(--shu); }
.story-hook-sub { font-size: 12px; letter-spacing: .24em; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.story-hook-main { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.7; letter-spacing: .04em; }
.story-hook-text { margin-top: 16px; color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.95; }
.story-list { margin-top: 28px; display: grid; gap: 16px; }
.story-item { position: relative; padding: 26px 22px 24px; background: var(--white); border: 1px solid var(--rule); }
.story-no { position: absolute; top: 14px; right: 18px; font-family: var(--serif); font-weight: 900; font-size: 34px; color: var(--rule); line-height: 1; }
.story-label { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--shu); margin-bottom: 6px; }
.story-title { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.6; letter-spacing: .03em; margin-bottom: 12px; padding-right: 36px; }
.story-item p + p { margin-top: 10px; }
.story-close { margin-top: 28px; text-align: center; }
.story-close-lead { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: .06em; }
.story-close-lead::after { content: ""; display: block; width: 40px; height: 2px; background: var(--shu); margin: 14px auto 0; }
.story-points { margin: 20px auto 0; max-width: 460px; display: grid; gap: 8px; text-align: left; }
.story-points li { position: relative; padding: 12px 14px 12px 36px; background: var(--white); border: 1px solid var(--rule); font-weight: 700; font-size: 15px; }
.story-points li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--shu); border-radius: 50%; }
.story-close-text { margin: 20px 0 22px; font-size: 15px; color: var(--muted); }
@media (min-width: 720px) {
  .story-list { grid-template-columns: repeat(3, 1fr); }
}
.page-sub .plan-fees dt { white-space: nowrap; margin-right: 12px; }
.page-sub .plan--main .plan-fees dd { text-align: right; }
.page-sub .plan--main .plan-fees dd span { display: block; margin: 4px 0 0; white-space: nowrap; }
.plan-list .plan:not(.plan--main) .plan-fees dd { text-align: right; }
.plan-list .plan:not(.plan--main) .plan-fees dd span { display: block; margin: 4px 0 0; white-space: nowrap; }

.legal-title { margin: 34px 0 10px; font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.legal-title:first-of-type { margin-top: 0; }


/* ============================================================
   主催挨拶：スクロールで回りながら組み上がる演出（2026-11-09）
   js/message-3d.js が #message に is-3d を付けたときだけ有効。
   付かない端末（動きを減らす設定・WebGL非対応など）は、上の縦並びのまま表示される。
   ============================================================ */
.msg-canvas { display: none; }

#message.is-3d { padding: 0; background: #0b0c0e; color: var(--white); }
#message.is-3d .msg-pin {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh;
  background:
    radial-gradient(ellipse 70% 40% at 50% 26%, rgba(204,0,0,.22), rgba(204,0,0,0) 70%),
    radial-gradient(ellipse at 50% 30%, #18191d 0%, #0b0c0e 72%);
}
#message.is-3d .msg-canvas {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
}
#message.is-3d .msg-canvas.is-ready { opacity: 1; }

/* 文字は3Dの手前に重ねる（スマホは下半分に暗い下地を敷いて読みやすく） */
#message.is-3d .msg-pin::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64%; z-index: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11,12,14,.96) 0%, rgba(11,12,14,.9) 50%, rgba(11,12,14,0) 100%);
}
#message.is-3d .msg-inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + 14px); padding-bottom: 22px;
}
#message.is-3d .sec-head { margin-bottom: 0; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 12px; } /* スマホは見出しを1行に */
#message.is-3d .sec-en { display: none; color: #ff4d4d; margin-bottom: 4px; }
#message.is-3d .sec-title { color: var(--white); font-size: 20px; line-height: 1.4; }
#message.is-3d .message-name { margin: 0; color: rgba(255,255,255,.7); font-size: 12px; }
#message.is-3d .message-name span { color: var(--white); font-size: 15px; }

#message.is-3d .story {
  position: relative; display: grid; margin-top: auto; background: transparent;
}
#message.is-3d .msg-progress {
  grid-area: 1 / 1; display: flex; align-items: center; margin-bottom: 8px;
  font-family: var(--serif); font-size: 12px; line-height: 1.4; letter-spacing: .2em; color: var(--white);
}
#message.is-3d .msg-progress li { display: flex; align-items: center; }
#message.is-3d .msg-progress li + li::before { content: ""; width: 18px; height: 1px; margin: 0 10px; background: currentColor; opacity: .45; }

#message.is-3d .chapter {
  grid-area: 2 / 1; align-self: start; padding: 0; border: 0;
  transition: none; transition-delay: 0s;     /* 動きはスクロール量で決める（時間では動かさない） */
}
#message.is-3d .chapter::before { display: none; }
#message.is-3d .chapter-no { color: #ff4d4d; font-size: 12px; margin-bottom: 2px; }
#message.is-3d .chapter-title { color: var(--white); font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
#message.is-3d .chapter p { color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.62; }
#message.is-3d .chapter p + p { margin-top: .5em; }
#message.is-3d .chapter-voice { color: var(--white); font-size: 16px; }
#message.is-3d .keyline { margin: 0 0 8px; padding: 11px 0; border-color: transparent; }
#message.is-3d .keyline::before, #message.is-3d .keyline::after { background: var(--white); }
#message.is-3d .keyline p { color: var(--white); font-size: 19px; line-height: 1.55; }

/* 演出中は下部のLINEバーを隠す（js/message-3d.js が切り替える）。演出が終われば元通り表示される */
.line-bar.is-stage-hidden { transform: translateY(110%); }

@media (min-width: 900px) {
  #message.is-3d .msg-pin {
    background:
      radial-gradient(ellipse 42% 62% at 74% 50%, rgba(204,0,0,.22), rgba(204,0,0,0) 70%),
      radial-gradient(ellipse at 70% 45%, #18191d 0%, #0b0c0e 74%);
  }
  #message.is-3d .msg-pin::after { display: none; }
  #message.is-3d .msg-inner { max-width: 1240px; padding-bottom: 40px; }
  #message.is-3d .sec-head { display: block; }
  #message.is-3d .sec-en { display: flex; }
  #message.is-3d .sec-title { font-size: 34px; }
  #message.is-3d .message-name { margin-top: 6px; font-size: 14px; }
  #message.is-3d .message-name span { font-size: 20px; }
  #message.is-3d .story { width: min(520px, 42vw); margin-top: 0; flex: 1; align-content: center; }
  #message.is-3d .msg-progress { margin-bottom: 24px; font-size: 13px; }
  #message.is-3d .msg-progress li + li::before { width: 22px; margin: 0 12px; }
  #message.is-3d .chapter-no { font-size: 13px; margin-bottom: 4px; }
  #message.is-3d .chapter-title { font-size: 28px; margin-bottom: 18px; }
  #message.is-3d .chapter p { font-size: 17px; line-height: 1.95; }
  #message.is-3d .chapter-voice { font-size: 20px; }
  #message.is-3d .keyline { margin-bottom: 12px; padding: 24px 0; }
  #message.is-3d .keyline p { font-size: 28px; }
}

/* ============================================================
   主催挨拶：章の中の「場面」（2026-11-09）
   ・元の縦並び：場面は上から順に並ぶだけ
   ・is-3d：場面を同じ位置に重ね、スクロールに合わせて1つずつ切り替える
   ============================================================ */
.scene + .scene { margin-top: 1.4em; }
.chapter-results { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 1em; }
.chapter-results li {
  padding: 2px 10px; border: 1px solid var(--rule); font-size: 16px; line-height: 1.6; font-weight: 700;
}

#message.is-3d .scenes { display: grid; }
#message.is-3d .scene { grid-area: 1 / 1; align-self: start; }
#message.is-3d .scene + .scene { margin-top: 0; }
#message.is-3d .chapter-results { gap: 4px 6px; margin-bottom: .6em; }
#message.is-3d .chapter-results li { padding: 0 8px; border-color: rgba(255,255,255,.35); color: var(--white); }

@media (min-width: 900px) {
  #message.is-3d .chapter-results { gap: 8px 10px; margin-bottom: 1em; }
  #message.is-3d .chapter-results li { padding: 3px 12px; }
  /* 場面ごとの文章は短いので、PCでは大きめにして読みやすくする */
  #message.is-3d .chapter p { font-size: 19px; line-height: 1.95; }
  #message.is-3d .chapter-voice { font-size: 22px; }
  #message.is-3d .chapter-results li { font-size: 17px; }
}

/* ============================================================
   主催挨拶：「全文を読む」リンクと、全文ページ（/message/）（2026-11-09）
   ============================================================ */
.msg-more { margin-top: 1.4em; }
.msg-more-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid currentColor; font-weight: 700; font-size: 16px; letter-spacing: .06em;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.msg-more-link:hover { background: var(--sumi); color: var(--white); border-color: var(--sumi); }
#message.is-3d .msg-more { margin-top: .7em; }
#message.is-3d .msg-more-link { color: var(--white); border-color: #ff4d4d; }
#message.is-3d .msg-more-link:hover { background: #ff4d4d; border-color: #ff4d4d; }

.message-full { padding-top: 32px; }
.message-back { margin-top: 48px; text-align: center; }

@media (min-width: 900px) {
  #message.is-3d .msg-more-link { font-size: 17px; }
}

/* 料金プラン：2つのカードの行の高さ・ボタンの位置をそろえる（2026-11-10。2列になる画面のみ。スマホは縦並びのまま） */
@media (min-width: 768px) {
  .plan-list { align-items: stretch; }
  .plan { display: flex; flex-direction: column; }
  .plan:not(.plan--main) { padding: 41px 37px; }          /* 太い枠(2px)との1pxのズレを埋める */
  .plan .btn-line { margin-top: auto; }                  /* ボタンを下にそろえる */
  .plan-note + .btn-line, .plan-text + .btn-line { margin-top: auto; }
  .plan-note:last-of-type { margin-bottom: 20px; }
}
@media (min-width: 960px) {
  /* オンラインの金額行も1行にして、直接指導コースと同じ高さにする */
  .plan-list .plan:not(.plan--main) .plan-fees dd span { display: inline; margin: 0 0 0 2px; }
}

/* 申込みの流れが6ステップ（2段）のとき、2段目の先頭には矢印を出さない（2026-11-10） */
@media (min-width: 768px) {
  #flow .flow-step:nth-child(3n+1)::before { display: none; }
}
