/* 順武館 — 黒・白・朱。スマホ表示を主に組む */
:root {
  --ink: #111;
  --text: #222;
  --muted: #666;
  --paper: #fff;
  --alt: #f5f3ef;
  --line: #ddd8cf;
  --red: #b3261e;
  --wrap: 960px;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px; line-height: 1.8; -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ヘッダー */
.hdr { position: sticky; top: 0; z-index: 10; background: var(--ink); color: #fff; }
.hdr__in { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hdr__logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: .15em; }
.hdr__logo img { border-radius: 50%; background: #fff; }
.hdr__toggle { width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; }
.hdr__toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }
.hdr__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hdr__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.gnav { display: none; width: 100%; flex-direction: column; padding: 8px 0 12px; }
.gnav.is-open { display: flex; }
.gnav a { color: #fff; text-decoration: none; padding: 10px 4px; border-top: 1px solid #333; }
@media (min-width: 900px) {
  .hdr__toggle { display: none; }
  .gnav { display: flex; width: auto; flex-direction: row; padding: 0; gap: 4px; }
  .gnav a { border: 0; padding: 8px 10px; font-size: 14px; }
  .gnav a:hover { color: #f3b8b3; }
}

/* ヒーロー */
.hero { background: #000; color: #fff; display: grid; }
.hero__img { width: 100%; max-width: 580px; margin: 0 auto; }
.hero__txt { padding: 24px var(--gutter) 40px; text-align: center; }
.hero__sub { margin: 0; letter-spacing: .3em; font-size: 14px; color: #ccc; }
.hero h1 { margin: 4px 0 8px; font-size: 48px; letter-spacing: .3em; font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; text-indent: .3em; }
.hero__catch { margin: 0 0 24px; font-size: 18px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; padding: 0 max(0px, calc((100% - var(--wrap)) / 2)); }
  .hero__txt { text-align: left; }
  .hero h1 { text-indent: 0; font-size: 64px; }
}

/* ヒーロー（背景動画あり）：動画の上に暗い膜をかけ、文字を中央に重ねる */
.hero--video { position: relative; display: flex; align-items: center; justify-content: center; min-height: min(72vh, 640px); padding: 0; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 暗幕＋グレーの格子（ガレージ都農のHPと同じ方式）。格子は動画のタイル（横32×縦18）の境目にそろえる。
   動画は object-fit: cover で中央合わせなので、1枚の大きさは「幅÷32」と「高さ÷18」の大きい方（--cell は site.js が設定） */
.hero--video { --mosaic-alpha: .4; --cell: 3.125vw; }
.hero--video::after { content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(128,132,140,var(--mosaic-alpha)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,132,140,var(--mosaic-alpha)) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4) 40%, rgba(0,0,0,.62));
  background-size: var(--cell) var(--cell), var(--cell) var(--cell), auto;
  /* 横線：縦18枚なので中心が境目／縦線：横32枚なので中心が境目 */
  background-position: 0 calc(50% + var(--cell) / 2), calc(50% + var(--cell) / 2) 0, 0 0; }
.hero--video .hero__txt { position: relative; z-index: 1; text-align: center; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero--video .hero__sub { color: #eee; }
.hero--video h1 { text-indent: .3em; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } .hero--video { background: #000; } }
.about__board { background: #000; border-radius: 6px; margin-bottom: 20px; }
.about__board .hero__img { max-width: 480px; }

/* ボタン */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; text-align: center; }
.btn--cta { background: var(--red); color: #fff; border: 0; font-size: 16px; font-family: inherit; cursor: pointer; }
.btn--cta:hover { filter: brightness(1.12); }
.btn--cta:disabled { opacity: .5; cursor: default; filter: none; }

/* セクション */
.sec { padding: 56px 0; }
.sec--alt { background: var(--alt); }
.sec--dark { background: var(--ink); color: #fff; }
.sec__ttl { margin: 0 0 24px; font-size: 26px; line-height: 1.4; font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
.sec__ttl span { display: block; font-family: Georgia, serif; font-size: 13px; letter-spacing: .25em; color: var(--red); }
.sec--dark .sec__ttl span { color: #f3b8b3; }
.sec p { margin: 0 0 12px; }
.sub { margin: 32px 0 12px; font-size: 18px; border-left: 4px solid var(--red); padding-left: 10px; }
.note, .empty { color: var(--muted); font-size: 14px; }
.more { margin-top: 16px; }

/* 道場だより：カード */
.posts { display: grid; gap: 20px; }
@media (min-width: 700px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; color: var(--text); text-decoration: none; transition: box-shadow .2s; }
.post:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.post:hover .post__ttl { color: var(--red); }
.post__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--alt); }
.post__img--none { display: flex; align-items: center; justify-content: center; }
.post__img--none img { opacity: .35; }
.post__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 12px 16px 0; margin: 0; }
.post__ttl { padding: 4px 16px 0; font-weight: 700; font-size: 17px; line-height: 1.5; }
.post__ex { padding: 6px 16px 16px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; color: #fff; background: #555; }
.badge--info { background: #555; }
.badge--taikai { background: var(--red); }
.badge--gyoji { background: #2f5d50; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); text-decoration: none; font-size: 14px; }
.chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 道場だより：記事 */
.wrap--narrow { max-width: 760px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.article__head { margin: 8px 0 24px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.article__head .post__meta { padding: 0; }
.article__head h1 { margin: 8px 0 0; font-size: 26px; line-height: 1.5; font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
.article__body p { margin: 0 0 1.2em; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 24px 0; }
.gallery--one { grid-template-columns: 1fr; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.gallery--one img { aspect-ratio: auto; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery--one { grid-template-columns: 1fr; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0 8px; }
.pager a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; }
.pager a span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.pager__next { text-align: right; }

/* 所属団体・道場案内 */
.orgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.orgs li, .orgs a { display: flex; align-items: center; gap: 12px; min-height: 64px; font-weight: 700; }
.orgs li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 16px; }
.orgs a { flex: 1; color: var(--text); text-decoration: none; }
.orgs a:hover span { color: var(--red); text-decoration: underline; }
.orgs img { width: 48px; height: 48px; object-fit: contain; flex: none; }
@media (min-width: 700px) { .orgs { grid-template-columns: repeat(3, 1fr); } }
.info { display: grid; grid-template-columns: 4em 1fr; gap: 4px 12px; margin: 12px 0 16px; }
.info dt { font-weight: 700; }
.info dd { margin: 0; }
.map { position: relative; padding-top: 62%; border-radius: 6px; overflow: hidden; background: #e8e4dc; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) { .map { padding-top: 40%; } }

/* 稽古時間 */
.cards { display: grid; gap: 16px; margin: 16px 0; }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 6px; padding: 20px; }
.card__name { font-size: 20px; font-weight: 700; margin-bottom: 4px !important; }
.card__time { color: var(--muted); }
.card__time strong { color: var(--ink); font-size: 24px; }
.notes { margin: 0; padding-left: 1.2em; font-size: 14px; color: var(--muted); }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }

/* 指導者 */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: center; }
.people img, .people__noimg { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; }
.people__noimg { display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 48px; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.people__role { display: block; font-size: 13px; color: var(--red); font-weight: 700; }
.people__name { display: block; font-size: 18px; font-weight: 700; letter-spacing: .1em; }
@media (min-width: 900px) { .people { grid-template-columns: repeat(4, 1fr); } }

/* よくある質問 */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--red); margin-right: 8px; font-family: Georgia, serif; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 12px; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 16px 14px; margin: 0; }

/* お問い合わせ */
.cform { background: #fff; color: var(--text); border-radius: 8px; padding: 20px; margin: 16px auto 0; display: grid; gap: 16px; max-width: 640px; }
.cform label, .cform fieldset { display: block; margin: 0; border: 0; padding: 0; }
.cform__h { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; padding: 0; }
.cform .req, .cform .opt { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 3px; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.cform .req { background: var(--red); color: #fff; }
.cform .opt { background: var(--alt); color: var(--muted); }
.cform input:not([type="radio"]), .cform textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #bbb5aa; border-radius: 6px; background: #fff; }
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.cform__kind label { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; padding: 6px 0; font-size: 16px; }
.cform__kind input { width: 20px; height: 20px; accent-color: var(--red); }
.cform__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .btn { justify-self: stretch; }
@media (min-width: 700px) { .cform .btn { justify-self: end; min-width: 200px; } .cform__status { text-align: right; } }
.cform__status { margin: 0; font-size: 14px; color: var(--muted); }
.cform__status.is-ok { color: #1b6b35; font-weight: 700; }
.cform__status.is-ng { color: var(--red); font-weight: 700; }

/* フッター */
.ftr { background: #000; color: #bbb; padding: 32px 0; font-size: 14px; text-align: center; }
.ftr p { margin: 0 0 8px; }
.ftr__name { color: #fff; font-weight: 700; }
.ftr__sns a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; }
.ftr__credit { margin: 12px 0 0 !important; font-size: 12px; color: #888; }
.ftr__credit a { color: #bbb; }
.ig-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
