/* ============================================================
   型18 手仕事の工芸品・体験教室（地域の作り手団体）／方向A「余白のギャラリー型」
   2026-08-20 新規作成。型3・型15・型16・型17 からの流用は無し。
   見た目の言語:
     型3  … 明朝／角3px／大判の情景写真（施主向け）
     型15 … 太ゴシック／角10px／影／顔写真（BtoC・BtoB改修）
     型16 … 直角／罫線のみ／表が主役（同業者向け）
     型17 … 中央揃え／角20px／ビフォーアフター2枚並び／料金表
     型18 … 生成り紙／細い明朝／余白で仕切る（罫線と影を使わない）／正方形の商品グリッド
   既知バグの回避: KB-001 / KB-002 / KB-010 / KB-011 / KB-013 / KB-014
   ============================================================ */

:root {
  --paper: #faf7f0;
  --paper-deep: #f2ece0;
  --ink: #2b2723;
  --ink-soft: #6b6257;
  --line: #ddd4c4;
  --accent: #6b7d4b;
  --accent-dark: #4c5c33;
  --accent-tint: #eff2e6;
  --sans: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", serif;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 2.05; color: var(--ink); background: var(--paper); overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.6; margin: 0; font-weight: 500; font-family: var(--serif); letter-spacing: .05em; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: .5em; }

.inner { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }

.demo-bar { background: var(--ink); color: #e8e1d5; font-size: 0.8125rem; line-height: 1.7; padding: .55rem 0; font-family: var(--sans); }
.demo-bar .inner { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.demo-bar a { color: #cbd8ac; }

/* ヘッダー */
.header { position: sticky; top: 0; z-index: 40; background: rgba(250,247,240,.97); }
.header-inner { width: min(100% - 1.8rem, 1240px); margin-inline: auto; display: flex; align-items: center; gap: 1rem; min-height: 62px; }
.brand { display: block; text-decoration: none; color: inherit; padding: .5rem 0; min-width: 0; flex-shrink: 1; }
.brand .name { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; letter-spacing: .08em; }
.brand small { display: block; font-size: 0.75rem; color: var(--ink-soft); line-height: 1.5; letter-spacing: .04em; }
.gnav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.gnav a { display: block; text-decoration: none; color: var(--ink); font-size: 0.9375rem; padding: .6rem 0; letter-spacing: .04em; }
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--accent-dark); }
.header-actions { display: flex; align-items: center; gap: .8rem; margin-left: auto; }
.tel-link { text-decoration: none; color: var(--ink); text-align: right; line-height: 1.25; }
.tel-link b { display: block; font-family: var(--serif); font-size: 1.2rem; letter-spacing: .02em; }
.tel-link small { display: block; font-size: 0.75rem; color: var(--ink-soft); }
.btn-head { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-size: 0.875rem; padding: .7rem 1.2rem; white-space: nowrap; letter-spacing: .04em; }
.btn-head:hover { background: var(--accent-dark); }
.nav-toggle { display: none; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.nav-toggle::before, .nav-toggle::after, .nav-toggle span { content: ""; position: absolute; left: 11px; width: 22px; height: 1px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle::before { top: 15px; } .nav-toggle span { top: 21px; } .nav-toggle::after { top: 27px; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

/* ヒーロー（KB-001: 絶対配置なし） */
.hero { background: var(--paper-deep); }
.hero-grid { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 4rem 0; }
.hero .kicker { font-size: 0.8125rem; letter-spacing: .2em; color: var(--accent-dark); margin: 0 0 1.2rem; }
.hero h1 { font-size: clamp(1.5rem, 4.4vw, 2.2rem); font-weight: 500; letter-spacing: .1em; line-height: 1.8; margin-bottom: 1.4rem; }
.hero p.sub { color: var(--ink-soft); margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-media img, .hero-media .ph { width: 100%; }
.hero-media .ph { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; text-align: center; background: #e8e0d0; color: var(--ink-soft); font-size: 0.8125rem; padding: 1.4rem; }

.btn { display: inline-block; text-decoration: none; font-size: 1rem; padding: .95rem 2rem; line-height: 1.4; letter-spacing: .06em; border: 1px solid var(--accent); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-line { background: transparent; color: var(--accent-dark); }
.btn-line:hover { background: var(--accent-tint); }

/* セクション */
.section { padding: 5rem 0; }
.section.deep { background: var(--paper-deep); }
.section.ink { background: var(--ink); color: #e8e1d5; }
.section.ink h2, .section.ink h3 { color: #fff; }
.section.ink p { color: #c9c0b3; }
.section-head { margin-bottom: 3rem; }
.section-head .eyebrow { display: block; font-size: 0.75rem; letter-spacing: .22em; color: var(--accent-dark); margin-bottom: .8rem; }
.section.ink .section-head .eyebrow { color: #cbd8ac; }
.section-head h2 { font-size: clamp(1.35rem, 3.6vw, 1.85rem); font-weight: 500; letter-spacing: .1em; }
.section-head p { margin: 1.2rem 0 0; color: var(--ink-soft); max-width: 46em; }
.section.ink .section-head p { color: #c9c0b3; }

/* 商品グリッド（この型の主役。罫線も影も使わず、余白で仕切る） */
.goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2.6rem 1.8rem; }
.good { }
.good img, .good .ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: #ece5d8; }
.good .ph { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink-soft); font-size: 0.8125rem; padding: 1rem; }
.good h3 { font-size: 1.05rem; margin: 1rem 0 .4rem; font-weight: 500; }
.good .meta { font-size: 0.8125rem; color: var(--ink-soft); margin: 0 0 .5rem; line-height: 1.8; }
.good .price { font-family: var(--serif); font-size: 1.1rem; margin: 0; letter-spacing: .02em; }
.good .price small { font-size: 0.75rem; color: var(--ink-soft); font-family: var(--sans); }

/* 文章と写真 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split + .split { margin-top: 4rem; }
.split.rev .split-text { order: 2; }
.split-media img, .split-media .ph { width: 100%; }
.split-media .ph { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; text-align: center; background: #ece5d8; color: var(--ink-soft); font-size: 0.8125rem; padding: 1.2rem; }
.split-text h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 1rem; }

/* 手順 */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 2rem; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.4rem; }
.steps li::before { content: counter(st, decimal-leading-zero); font-family: var(--serif); font-size: 1.5rem; color: var(--accent); line-height: 1.3; }
.steps h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: .3rem; }
.steps p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }

/* 表（KB-013） */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 0.9375rem; }
.table-wrap th, .table-wrap td { border-bottom: 1px solid var(--line); padding: .9rem 1.1rem; text-align: left; vertical-align: top; }
.table-wrap thead th, .table-wrap thead td { background: var(--paper-deep); font-weight: 500; font-family: var(--serif); white-space: nowrap; }
.table-wrap tbody th { font-weight: 500; white-space: nowrap; width: 14em; color: var(--ink-soft); }
.table-wrap td.yen { font-family: var(--serif); white-space: nowrap; }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.table-note { font-size: 0.8125rem; color: var(--ink-soft); margin: .8rem 0 0; }

/* 店舗 */
.shops { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.4rem; }
.shop h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: .2rem; }
.shop .tag { display: inline-block; font-size: 0.75rem; letter-spacing: .1em; color: #fff; background: var(--accent); padding: .1rem .6rem; margin-bottom: .7rem; }
.shop p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0 0 .5rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.2rem 0; list-style: none; font-size: 1rem; font-family: var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "問"; color: var(--accent); margin-right: .8rem; font-size: 0.8125rem; }
.faq .a { padding: 0 0 1.3rem 1.9rem; color: var(--ink-soft); font-size: 0.9375rem; }

.note { background: #fff; border-left: 3px solid var(--accent); padding: 1.3rem 1.5rem; font-size: 0.9375rem; }
.note h3 { font-size: 1rem; font-weight: 500; margin-bottom: .6rem; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

.cta { background: var(--ink); color: #e8e1d5; }
.cta .inner { padding: 4rem 0; }
.cta h2 { font-size: clamp(1.3rem, 3.8vw, 1.8rem); font-weight: 500; letter-spacing: .1em; margin-bottom: 1rem; color: #fff; }
.cta p { max-width: 42em; color: #c9c0b3; }
.cta .hero-cta { margin-top: 1.8rem; }
.cta .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.cta .btn-line { color: #e8e1d5; border-color: #6d655a; }

/* フォーム */
.form { display: grid; gap: 1.3rem; max-width: 660px; }
.field label { display: block; font-size: 0.9375rem; margin-bottom: .4rem; }
.field .req { font-size: 0.75rem; background: var(--accent); color: #fff; padding: .1rem .5rem; margin-left: .5rem; vertical-align: 2px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .8rem .9rem; border: 1px solid #bdb3a4; background: #fff; color: var(--ink); }
.field textarea { min-height: 8.5em; }
.form-note { font-size: 0.8125rem; color: var(--ink-soft); }

.footer { background: var(--ink); color: #c9c0b3; padding: 3.4rem 0 1.6rem; font-size: 0.9375rem; }
.footer a { color: #c9c0b3; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.4rem; }
.footer h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: .7rem; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom { border-top: 1px solid #453f38; margin-top: 2.6rem; padding-top: 1.2rem; font-size: 0.75rem; color: #968d81; }

.sp-bar { display: none; }

@media (max-width: 1040px) {
  .gnav { position: fixed; inset: 62px 0 auto 0; height: calc(100dvh - 62px); background: var(--paper); padding: 1.4rem 1.4rem 6rem; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
  .gnav.open { opacity: 1; visibility: visible; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a { padding: 1rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  /* KB-002 */
  .header-actions { margin-left: auto; }
  .nav-toggle { display: block; }
  .btn-head { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2.8rem 0; }
  .split { grid-template-columns: 1fr; gap: 1.6rem; }
  .split.rev .split-text { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; line-height: 1.95; }
  .inner, .hero-grid { width: calc(100% - 2rem); }
  .section { padding: 3.2rem 0; }
  .brand .name { font-size: 0.9375rem; }
  .brand small { display: none; }
  .tel-link b { font-size: 1.05rem; }
  .tel-link small { display: none; }
  .goods { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.8rem 1.2rem; }
  .sp-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); border-top: 1px solid var(--line); }
  .sp-bar a { flex: 1; text-align: center; text-decoration: none; font-size: 0.9375rem; padding: .95rem .4rem; color: var(--accent-dark); }
  .sp-bar a + a { background: var(--accent); color: #fff; }
  body { padding-bottom: 3.6rem; }
  .footer { padding-bottom: 4.6rem; }
}
/* KB-014 */
@media (max-width: 380px) {
  .header-inner { gap: .5rem; }
  .tel-link { display: none; }
  .brand .name { font-size: 0.875rem; }
}
body.nav-open { overflow: hidden; }

/* grid / flex の子は既定が min-width:auto なので、中に置いた表（.table-wrap の
   min-width:480px）が親を押し広げ、ページ全体が横にはみ出す。
   表を横スクロールにする改修の巻き添えで起きるやつ（layout-check の「ページ横はみ出し」）。 */
.feature, .feature-text, .feature-media,
.split, .split-text, .split-media,
.cards, .card, .works, .work-card, .goods, .good,
.symptoms, .symptom, .cases, .case, .ba-set, .ba,
.reasons, .reason, .shops, .shop, .voices, .voice,
.menu-list, .tiles, .steps, .flow, .form, .field { min-width: 0; }
