@charset "UTF-8";
/* ==========================================================================
   一般社団法人 発酵菌活生活推進協会 — site.css
   配色は現行Wixサイトの実測値を基調に、WCAG AAA (7:1) を満たすよう補正済み。
   contrast_check.py により全38組の実測が 7:1 以上であることを確認。
   ========================================================================== */

/* ---------- 1. デザイントークン ---------- */
:root {
  /* 基調色（現行サイト実測: 紺 rgb(11,47,91) / 金茶 rgb(100,88,68) 系） */
  --navy:        #0B2F5B;
  --navy-dark:   #082343;
  --navy-light:  #16447C;
  --gold:        #A69376;   /* 装飾罫のみ。文字色には使わない */
  --gold-deep:   #7A6748;

  /* 文字色（すべて 7:1 以上を実測確認） */
  --ink:         #2E2A22;   /* 本文 */
  --ink-muted:   #4F4739;   /* 補助文 */
  --heading:     #0B2F5B;   /* 見出し */
  --brown:       #4A3E28;   /* 小見出し・強調 */
  --link:        #0B3F73;
  --on-dark:     #FFFFFF;

  /* 面色 */
  --paper:       #FBF9F5;
  --white:       #FFFFFF;
  --line:        #DCD5C7;
  --line-soft:   #EBE6DC;

  /* ページ別の淡色トーン（現行の各ページ背景色を淡色化して継承） */
  --tone-home:    #EAF2FA;  /* 現行 rgb(67,156,230) 系 */
  --tone-purpose: #FDF8DC;  /* 現行 rgb(255,243,105) 系 */
  --tone-nintei:  #FBEEF4;  /* 現行 rgb(252,207,232) 系 */
  --tone-mine:    #EEF2E4;  /* 現行 rgb(122,143,86) 系 */
  --tone-gaiyou:  #F3F5E3;  /* 現行 rgb(225,230,157) 系 */

  --alert:       #8C1B1B;

  /* タイポ（本文 18px 以上） */
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3",
             "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体",
             Meiryo, メイリオ, sans-serif;
  --fs-body:  1.125rem;  /* 18px */
  --lh-body:  1.95;

  --wrap: 1080px;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(11, 47, 91, .09);
}

/* ---------- 2. リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt" 1;
  text-size-adjust: 100%;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--navy-dark); }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #0B3F73;
  outline-offset: 2px;
}
h1, h2, h3, h4 { line-height: 1.45; color: var(--heading); margin: 0 0 .6em; }
p { margin: 0 0 1.4em; }
ul, ol { margin: 0 0 1.4em; padding-left: 1.4em; }
li { margin-bottom: .5em; }
table { border-collapse: collapse; }

/* ---------- 3. スキップリンク ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .8em 1.4em; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- 4. ヘッダー / ナビ ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 1.2rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 244px; height: auto; }
.brand-fallback { font-weight: 700; color: var(--navy); font-size: 1.15rem; line-height: 1.35; }
.header-actions { display: flex; align-items: center; gap: .6rem; }

.btn-member {
  display: inline-block; background: var(--navy); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: .55em 1.2em; border-radius: var(--radius);
  border: 2px solid var(--navy);
}
.btn-member:hover { background: var(--navy-dark); color: #fff; }

.nav-toggle {
  display: none; background: var(--navy); color: #fff; border: 0;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: .55em 1em; border-radius: var(--radius); cursor: pointer;
}

.site-nav { background: var(--navy); }
.site-nav ul {
  max-width: var(--wrap); margin: 0 auto; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap;
}
.site-nav a {
  display: block; color: #fff; text-decoration: none;
  padding: .95em 1.15em; font-size: 1.0625rem; font-weight: 500;
  border-right: 1px solid rgba(255, 255, 255, .22);
}
.site-nav li:first-child a { border-left: 1px solid rgba(255, 255, 255, .22); }
.site-nav a:hover { background: var(--navy-light); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--navy-dark); font-weight: 700; }
.site-nav a[aria-current="page"]::after {
  content: ""; display: block; height: 3px; background: var(--gold);
  margin-top: .45em; border-radius: 2px;
}

/* ---------- 5. ヒーロー ---------- */
.hero {
  position: relative; min-height: 62vh;
  display: grid; align-content: center; justify-items: center; text-align: center;
  background: var(--navy-dark) center/cover no-repeat;
  padding: 5rem 1.2rem;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 18, 36, .62), rgba(4, 18, 36, .72));
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  color: #fff; font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 700;
  margin: 0 0 .5em; text-shadow: 0 2px 14px rgba(0, 0, 0, .85);
  letter-spacing: .04em;
}
.hero .hero-rule { width: min(520px, 80%); height: 2px; background: rgba(255, 255, 255, .85); margin: 0 auto 1.3em; border: 0; }
.hero p {
  color: #fff; font-size: clamp(1.05rem, 2.4vw, 1.55rem); margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9); letter-spacing: .03em;
}

/* ---------- 6. ページ見出し帯 ---------- */
.page-head { background: var(--navy); color: #fff; padding: 2.6rem 1.2rem; text-align: center; }
.page-head h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0; }
.page-head p { color: #fff; margin: .7em 0 0; font-size: 1.0625rem; opacity: .96; }

/* ---------- 7. レイアウト ---------- */
main { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.2rem; }
.section { padding: 3.4rem 0; }
.section--tone-home    { background: var(--tone-home); }
.section--tone-purpose { background: var(--tone-purpose); }
.section--tone-nintei  { background: var(--tone-nintei); }
.section--tone-mine    { background: var(--tone-mine); }
.section--tone-gaiyou  { background: var(--tone-gaiyou); }
.section--white        { background: var(--white); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.9rem; box-shadow: var(--shadow);
  margin-bottom: 1.7rem;
}
.card > :last-child { margin-bottom: 0; }

h2.sec-title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); text-align: center; margin-bottom: 1.6rem;
}
h2.sec-title::after {
  content: ""; display: block; width: 74px; height: 3px;
  background: var(--gold); margin: .55em auto 0; border-radius: 2px;
}
h3 { font-size: 1.3rem; color: var(--brown); margin-top: 2rem; }
h4 { font-size: 1.15rem; color: var(--brown); }

.lead { font-size: 1.2rem; }
.note { color: var(--ink-muted); font-size: 1rem; }
.center { text-align: center; }
.alert { color: var(--alert); font-weight: 700; }

/* 箇条: 星付き（現行の ★ 表記を踏襲） */
.star-list { list-style: none; padding: 0; }
.star-list li {
  background: var(--white); border-left: 6px solid var(--gold);
  padding: 1rem 1.2rem; margin-bottom: .9rem; border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow); font-weight: 700; color: var(--brown);
}

/* 定義表（協会概要など） */
.def-table { width: 100%; background: var(--white); border: 1px solid var(--line); }
.def-table th, .def-table td {
  border-bottom: 1px solid var(--line-soft); padding: 1.05rem 1.15rem;
  text-align: left; vertical-align: top; font-size: 1.0625rem;
}
.def-table th {
  width: 12em; background: #F4F1EA; color: var(--brown);
  font-weight: 700; white-space: nowrap;
}
.def-table tr:last-child th, .def-table tr:last-child td { border-bottom: 0; }

/* CTA ボタン */
.btn {
  display: inline-block; background: var(--navy); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 1.0625rem;
  padding: .85em 1.9em; border-radius: var(--radius);
  border: 2px solid var(--navy); cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--navy-dark); color: #fff; }
.btn--ghost { background: var(--white); color: var(--navy); }
.btn--ghost:hover { background: #EAF0F8; color: var(--navy-dark); }
.btn--lg { font-size: 1.15rem; padding: 1em 2.4em; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.8rem; }

/* ---------- 8. カードグリッド ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.7rem 1.5rem;
  display: flex; flex-direction: column;
}
.tile h3 { margin-top: 0; color: var(--heading); font-size: 1.25rem; }
.tile p { font-size: 1.0625rem; }
.tile .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 9. 認定校 / 講師カード ---------- */
.school {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.9rem 1.7rem; margin-bottom: 1.6rem;
}
.school h3 { margin-top: 0; font-size: 1.35rem; color: var(--heading); }
.school dl { display: grid; grid-template-columns: 8.5em 1fr; gap: .5em 1em; margin: 1.2em 0 0; }
.school dt { font-weight: 700; color: var(--brown); }
.school dd { margin: 0; overflow-wrap: anywhere; }

.teacher {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.7rem 1.5rem; margin-bottom: 1.4rem;
}
.teacher .city {
  display: inline-block; background: var(--navy); color: #fff;
  font-size: .95rem; font-weight: 700; padding: .25em .9em;
  border-radius: 999px; margin-bottom: .7rem;
}
.teacher h3 { margin: 0 0 .2em; font-size: 1.3rem; }
.teacher .kana { color: var(--ink-muted); font-size: 1rem; margin: 0 0 1em; }
.teacher p:last-child { margin-bottom: 0; }

.teacher--photo { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: start; }
.teacher-photo {
  width: 200px; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}
.teacher-text > :last-child { margin-bottom: 0; }
@media (max-width: 620px) {
  .teacher--photo { grid-template-columns: 1fr; }
  .teacher-photo { width: 160px; }
}

/* ---------- 10. 都道府県マップ（講師一覧） ---------- */
.pref-region { margin-bottom: 2.2rem; }
.pref-region h3 { margin: 0 0 .9rem; font-size: 1.2rem; }
.pref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; }
.pref-grid a {
  display: block; text-align: center; text-decoration: none;
  background: var(--white); border: 2px solid var(--navy); color: var(--navy);
  border-radius: var(--radius); padding: .8em .4em; font-weight: 700; font-size: 1.0625rem;
}
.pref-grid a:hover { background: var(--navy); color: #fff; }
.pref-grid a[data-empty="1"] {
  border-color: var(--line); color: var(--ink-muted); font-weight: 500;
}
.pref-grid a[data-empty="1"]:hover { background: #EFEBE2; color: var(--ink); }

/* ---------- 11. フォーム ---------- */
.form { max-width: 720px; margin: 0 auto; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-weight: 700; color: var(--brown); margin-bottom: .45em; font-size: 1.0625rem; }
.req { color: var(--alert); font-weight: 700; margin-left: .35em; }
.opt { color: var(--ink-muted); font-weight: 500; margin-left: .35em; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--white); border: 2px solid #9A927F; border-radius: var(--radius);
  padding: .75em .85em;
}
.field textarea { min-height: 11em; resize: vertical; }
.field .hint { color: var(--ink-muted); font-size: 1rem; margin: .4em 0 0; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); }
.field-inline { display: flex; align-items: flex-start; gap: .6em; }
.field-inline input[type="checkbox"] { width: 1.35em; height: 1.35em; margin-top: .35em; flex: 0 0 auto; }
.field-inline label { margin: 0; font-weight: 500; color: var(--ink); }

/* honeypot（画面外・スクリーンリーダー対象外） */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-status { margin-top: 1.3rem; padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 700; display: none; }
.form-status.is-ok  { display: block; background: #E6F2E6; border: 2px solid #1E6B2E; color: #14501F; }
.form-status.is-err { display: block; background: #FBEAEA; border: 2px solid #8C1B1B; color: #7A1616; }

.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }

/* ---------- 12. 動画教材 ---------- */
.lesson { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.6rem; }
.lesson h3 { margin-top: 0; }
.lesson video { width: 100%; background: #000; border-radius: 4px; }

/* ---------- 13. ストア ---------- */
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem; display: flex; flex-direction: column;
}
.product img { border: 1px solid var(--line-soft); border-radius: 4px; margin-bottom: 1rem; align-self: center; }
.product h3 { margin: 0 0 .35em; font-size: 1.2rem; }
.product .price { font-size: 1.45rem; font-weight: 700; color: var(--brown); margin: 0 0 .3em; }
.product .tax { font-size: .95rem; color: var(--ink-muted); margin: 0 0 1rem; }
.product .qty { display: flex; align-items: center; gap: .6rem; margin: auto 0 1rem; }
.product .qty label { font-weight: 700; color: var(--brown); }
.product .qty input { width: 6em; font: inherit; font-size: 1.0625rem; padding: .5em; border: 2px solid #9A927F; border-radius: var(--radius); }

.cart-summary { background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); padding: 1.6rem; margin-top: 2rem; }
.cart-summary table { width: 100%; }
.cart-summary th, .cart-summary td { padding: .55em .4em; border-bottom: 1px solid var(--line-soft); text-align: left; }
.cart-summary td.num, .cart-summary th.num { text-align: right; white-space: nowrap; }
.cart-summary tfoot td { font-weight: 700; font-size: 1.2rem; border-bottom: 0; }

/* ---------- 14. フッター ---------- */
.site-footer { background: var(--navy-dark); color: #fff; padding: 3rem 1.2rem 2rem; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin: 0 0 .8em; }
.site-footer p, .site-footer li { font-size: 1rem; line-height: 1.85; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-copy { max-width: var(--wrap); margin: 2.4rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .28); text-align: center; font-size: .95rem; }

/* ---------- 15. 補助 ---------- */
.breadcrumb { font-size: 1rem; padding: 1rem 0 0; color: var(--ink-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4em; padding: 0; margin: 0; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .5em; color: var(--ink-muted); }
.back-link { display: inline-block; margin-top: 2rem; font-weight: 700; }

.error-page { text-align: center; padding: 5rem 1.2rem; }
.error-page h1 { font-size: clamp(2.4rem, 7vw, 4rem); }

/* ---------- 16. レスポンシブ ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
  .site-nav li:first-child a { border-left: 0; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .brand img { width: 200px; }
  .grid-2col { grid-template-columns: 1fr; }
  .school dl { grid-template-columns: 1fr; gap: .15em; }
  .school dt { margin-top: .6em; }
}
@media (max-width: 560px) {
  :root { --fs-body: 1.125rem; --lh-body: 1.9; }
  .card { padding: 1.5rem 1.15rem; }
  .section { padding: 2.6rem 0; }
  .brand img { width: 150px; }
  .header-inner { padding: .6rem .8rem; gap: .5rem; }
  .header-actions { gap: .4rem; }
  .btn-member, .nav-toggle { font-size: .9rem; padding: .5em .7em; white-space: nowrap; }
  .def-table th { width: auto; display: block; border-bottom: 0; padding-bottom: .3rem; }
  .def-table td { display: block; padding-top: .3rem; }
  .pref-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .site-nav, .btn-member, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; }
}
