/*
Theme Name: まちページ｜LP
Description: まちページ サービスサイト用LP（2タブ・イラスト多用）
Author: Spinworks
Version: 2.2.0
Text Domain: machi-page-lp
*/

/* Hallmark · pre-emit critique: P5 H4 E5 S4 R5 V4
 * audit-led optimization (non-destructive) · genre: playful/editorial · theme: warm-washi (custom, preserved)
 * macrostructure preserved: Tabbed problem→proof→pricing LP · display: Zen Maru Gothic (rounded) · accent: 焼き orange
 * fixes: focus-visible rings · prefers-reduced-motion · named easings · font-weight 800→700 (face lacks 800) · ink-faint AA contrast
 */

/* ============ トークン ============ */
:root {
  --paper:      #FEFDFA;
  --paper-2:    #F7F3EB;
  --card:       #FFFFFF;
  --ink:        #2E2B25;
  --ink-soft:   #6E685D;
  --ink-faint:  #7E776A;
  --line:       #E7DECC;

  /* 町内会＝緑 / 連合＝藍紫。--theme系はタブで切替 */
  --town:       #2E7D5B;  --town-dark:#1C5C40; --town-tint:#E6F1EA; --town-tint2:#F1F8F3;
  --fed:        #5A4FB0;  --fed-dark: #3A3187; --fed-tint: #ECEAF8; --fed-tint2: #F5F3FC;

  --accent:     #E0703A;  --accent-dark:#BE5526; --accent-tint:#FCE9DD;
  --sun:        #F2B441;
  --sky:        #CBE6F1;

  --theme:      var(--town);
  --theme-dark: var(--town-dark);
  --theme-tint: var(--town-tint);
  --theme-tint2:var(--town-tint2);

  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 18px 40px -24px rgba(60,48,30,.45);
  --shadow-sm:0 8px 22px -16px rgba(60,48,30,.5);

  --font-disp: "Zen Maru Gothic", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-round:"Zen Maru Gothic", sans-serif;

  /* 名前付きイージング（ブラウザ既定 ease は使わない） */
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ============ ベース ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(242,180,65,.07), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(90,79,176,.06), transparent 40%),
    var(--paper);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1,h2,h3 { font-family: var(--font-disp); font-weight: 700; line-height: 1.4; margin: 0; letter-spacing: .01em; word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0; }

.wrap { width: min(1080px, 92vw); margin-inline: auto; }
.narrow { width: min(760px, 92vw); margin-inline: auto; }

/* ============ ヘッダー ============ */
.site-header {
  position: static; z-index: 100;
  background: rgba(251,247,239,.86);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1080px, 92vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { border-radius: 10px; }
.brand-text { font-family: var(--font-disp); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.btn-nav {
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .92rem; padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 6px 16px -8px var(--accent-dark); transition: transform .15s, box-shadow .15s;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px var(--accent-dark); }

/* ============ マストヘッド + タブ ============ */
.masthead {
  text-align: center; padding: 24px 0;
  min-height: calc(100vh - 154px);
  min-height: calc(100dvh - 154px);
  display: flex; flex-direction: column; justify-content: center;
}
.masthead .eyebrow {
  display: inline-block; font-family: var(--font-round); font-weight: 700; font-size: .82rem;
  color: var(--town-dark); background: var(--town-tint); padding: 5px 16px; border-radius: 999px;
  letter-spacing: .04em;
}
.masthead h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.85rem); margin: 18px 0 10px;
}
.masthead h1 .hl { color: var(--town); }
.masthead .lead { color: var(--ink-soft); font-size: 1.02rem; max-width: 620px; margin: 0 auto; }

.tabbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251,247,239,.92); backdrop-filter: blur(8px);
  padding: 14px 0; margin-top: 0; border-bottom: 1px solid var(--line);
}
.tabbar-inner {
  width: min(680px, 92vw); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  background: var(--paper-2); padding: 7px; border-radius: 999px;
}
.tab-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border: none; cursor: pointer; background: transparent;
  font-family: var(--font-round); font-weight: 700; font-size: 1rem; color: var(--ink-soft);
  padding: 13px 10px; border-radius: 999px;
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.tab-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.tab-btn[data-tab="town"].active { background: var(--town); color: #fff; box-shadow: 0 8px 18px -10px var(--town-dark); }
.tab-btn[data-tab="fed"].active  { background: var(--fed);  color: #fff; box-shadow: 0 8px 18px -10px var(--fed-dark); }
.tab-btn:not(.active):hover { color: var(--ink); }

/* ============ ペイン（テーマ切替の根） ============ */
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: paneIn .45s var(--ease-out) both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px);} to { opacity:1; transform:none;} }
.pane-town { --theme: var(--town); --theme-dark: var(--town-dark); --theme-tint: var(--town-tint); --theme-tint2: var(--town-tint2); }
.pane-fed  { --theme: var(--fed);  --theme-dark: var(--fed-dark);  --theme-tint: var(--fed-tint);  --theme-tint2: var(--fed-tint2); }

/* ============ セクション共通 ============ */
section { padding: 64px 0; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-kicker {
  font-family: var(--font-round); font-weight: 700; font-size: .82rem; letter-spacing: .08em;
  color: var(--theme); margin-bottom: 10px;
}
.sec-title { font-size: clamp(1.45rem, 3.4vw, 2.05rem); }
.sec-title .hl {
  background: linear-gradient(transparent 62%, var(--theme-tint) 62%);
  padding: 0 .1em;
}
.sec-sub { color: var(--ink-soft); margin-top: 14px; font-size: 1rem; }

/* 節目のセクション（機能・料金）だけは左寄せ・大きめ・アクセント罫。
   全セクションが中央寄せ一辺倒だとページのリズムが単調になるため、意図的に緩急をつける。
   ラベルは見出しの真上に積む（左ラベル／右見出しの2段組みにはしない）。 */
.sec-head--major { text-align: left; margin-bottom: 44px; }
.sec-head--major .sec-kicker { display: inline-flex; align-items: center; gap: 10px; }
.sec-head--major .sec-kicker::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: var(--accent); flex-shrink: 0;
}
.sec-head--major .sec-title { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.sec-head--major .sec-sub { max-width: 660px; }

/* 帯（テーマ色地）のセクションは余白を広く取り、地の色とあわせて“段落”のリズムを作る */
section[style*="tint2"] { padding: 84px 0; }

/* ============ ボタン ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  text-decoration: none; font-weight: 700; font-family: var(--font-round);
  border: none; cursor: pointer; border-radius: 999px;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
  font-size: 1.02rem; padding: 16px 30px;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px var(--accent-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--theme-dark); box-shadow: inset 0 0 0 2px var(--theme); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--theme-tint2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ ヒーロー（タブ内） ============ */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-title { font-size: clamp(1.9rem, 4.8vw, 3.1rem); line-height: 1.3; }
.hero-title .hl { color: var(--theme); }
.hero-lead { color: var(--ink-soft); margin: 20px 0 26px; font-size: 1.05rem; }
.price-tag {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--theme); color: #fff; padding: 12px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-round); box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.price-tag .yen { font-size: 1rem; opacity: .9; }
.price-tag .num { font-size: 2rem; font-weight: 700; line-height: 1; }
.price-tag .unit { font-size: 1rem; opacity: .9; }
.price-tag .free { font-size: .9rem; background: rgba(255,255,255,.22); padding: 3px 10px; border-radius: 999px; margin-left: 6px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--theme-dark); font-weight: 700; font-size: .85rem;
  font-family: var(--font-round); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
}
.badge svg { width: 16px; height: 16px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 24px 36px rgba(60,48,30,.16)); }

/* ============ カード/グリッド ============ */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.feat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat-ico {
  width: 56px; height: 56px; border-radius: 16px; background: var(--theme-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feat-ico svg { width: 30px; height: 30px; }
.feat-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feat-card p { color: var(--ink-soft); font-size: .94rem; line-height: 1.75; }

/* 二層構造図 */
.layers { background: var(--theme-tint2); border-radius: var(--radius); padding: 36px; }
.layers-art svg { width: 100%; height: auto; }

/* 問題提起 */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.problem-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.problem-list li {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm); padding: 16px 20px; box-shadow: var(--shadow-sm);
  font-size: .98rem; display: flex; gap: 12px; align-items: flex-start;
}
.problem-list li svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.problem-note { margin-top: 24px; font-family: var(--font-disp); font-weight: 700; font-size: 1.12rem; color: var(--ink); line-height: 1.7; }
.problem-note .hl { background: linear-gradient(transparent 60%, var(--sun) 60%); }

/* 原因（3カード） */
.cause-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 18px; }
.cause-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.cause-num { font-family: var(--font-round); font-weight: 700; color: var(--accent); font-size: .9rem; }
.cause-card svg { width: 72px; height: 72px; margin: 8px auto 14px; }
.cause-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cause-card p { color: var(--ink-soft); font-size: .92rem; }
.cause-concl { text-align: center; margin-top: 30px; font-family: var(--font-disp); font-size: 1.2rem; font-weight: 700; line-height: 1.7; }
.cause-concl .hl { color: var(--theme); }

/* 3ステップ */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.step3 { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); position: relative; }
.step3 .n { width: 30px; height: 30px; border-radius: 50%; background: var(--theme); color: #fff; font-family: var(--font-round); font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: .9rem; }
.step3 svg { width: 100%; height: auto; max-width: 130px; margin: 0 auto 10px; }
.step3 p { font-size: .92rem; font-weight: 700; font-family: var(--font-round); }

/* 料金 */
.price-box { background: #fff; border: 2px solid var(--theme); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); text-align: center; }
.price-box .big { font-family: var(--font-round); font-weight: 700; }
.price-box .big .num { font-size: 3.2rem; color: var(--theme); line-height: 1; }
.price-box .big .yen, .price-box .big .unit { font-size: 1.2rem; color: var(--theme-dark); }
.price-incl { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; text-align: left; max-width: 440px; margin-inline: auto; }
.price-incl li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.price-incl li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--theme); margin-top: 3px; }
.price-conv { margin-top: 20px; background: var(--theme-tint); color: var(--theme-dark); font-weight: 700; font-family: var(--font-round); padding: 12px 18px; border-radius: var(--radius-sm); display: inline-block; }

.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 30px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: .92rem; }
.cmp-table th, .cmp-table td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp-table thead th { background: var(--paper-2); font-family: var(--font-round); font-weight: 700; }
.cmp-table thead th.mine { background: var(--theme); color: #fff; }
.cmp-table td:first-child, .cmp-table th:first-child { text-align: left; font-weight: 700; }
.cmp-table td.mine { background: var(--theme-tint2); font-weight: 700; color: var(--theme-dark); }
.cmp-table tbody tr:last-child td { border-bottom: none; }

/* フロー */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.flow-step { text-align: center; position: relative; }
.flow-step .ring { width: 64px; height: 64px; border-radius: 50%; background: var(--theme-tint); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; border: 2px solid var(--theme); }
.flow-step .ring svg { width: 32px; height: 32px; }
.flow-step .lbl { font-family: var(--font-round); font-weight: 700; font-size: .9rem; }
.flow-step .desc { font-size: .8rem; color: var(--ink-soft); margin-top: 4px; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 32px; right: -5px; width: 10px; height: 10px; border-top: 2px solid var(--theme); border-right: 2px solid var(--theme); transform: rotate(45deg); }

/* やめるとき */
.quit { background: var(--theme-tint2); border: 1px dashed var(--theme); border-radius: var(--radius); padding: 30px 34px; margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.quit svg { width: 96px; height: 96px; }
.quit h3 { font-size: 1.15rem; margin-bottom: 10px; }
.quit ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 7px; }
.quit li { display: flex; gap: 9px; align-items: flex-start; font-size: .95rem; }
.quit li svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; color: var(--theme); }
.quit .small { color: var(--ink-soft); font-size: .9rem; margin-top: 12px; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q { display: flex; gap: 12px; align-items: center; padding: 18px 22px; cursor: pointer; font-weight: 700; font-family: var(--font-round); list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .qmark { width: 26px; height: 26px; border-radius: 7px; background: var(--theme-tint); color: var(--theme-dark); display: flex; align-items: center; justify-content: center; font-family: var(--font-disp); font-weight: 700; flex-shrink: 0; }
.faq-q .chev { margin-left: auto; transition: transform .2s; color: var(--theme); }
details[open] .faq-q .chev { transform: rotate(180deg); }
.faq-a { padding: 0 22px 20px 60px; color: var(--ink-soft); font-size: .95rem; }

/* 資料DL（中間CV） */
.leadmag { background: linear-gradient(135deg, var(--theme) 0%, var(--theme-dark) 100%); color: #fff; border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; box-shadow: var(--shadow); }
.leadmag h3 { color: #fff; font-size: 1.4rem; margin-bottom: 12px; }
.leadmag p { opacity: .92; font-size: .96rem; }
.leadmag .doc-art svg { width: 150px; height: auto; }
.leadmag .dl-form { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.leadmag input { flex: 1; min-width: 200px; border: none; border-radius: 999px; padding: 13px 20px; font-family: var(--font-body); font-size: .95rem; }
.leadmag .btn { background: var(--sun); color: #5a3d00; }

/* 事例 */
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.case-shot { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.case-shot svg { width: 100%; height: auto; }
.case h3 { font-size: 1.3rem; margin-bottom: 12px; }
.case p { color: var(--ink-soft); font-size: .96rem; }

/* クロージング */
.closing { text-align: center; background: var(--theme-tint2); border-radius: var(--radius); padding: 54px 36px; }
.closing .mission { font-family: var(--font-disp); font-size: 1.25rem; font-weight: 700; line-height: 1.85; max-width: 640px; margin: 0 auto 8px; }
.closing .mission .hl { color: var(--theme); }
.closing .sub { color: var(--ink-soft); margin: 14px auto 28px; max-width: 560px; }

/* 相談フォーム */
.cform { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); max-width: 620px; margin: 28px auto 0; text-align: left; }
.cform label { display: block; font-weight: 700; font-family: var(--font-round); font-size: .9rem; margin: 0 0 6px; }
.cform .field { margin-bottom: 18px; }
.cform input, .cform select, .cform textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: var(--font-body); font-size: .98rem; background: var(--paper);
}
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--theme); }
.cform .btn { width: 100%; }
.cform .priv { color: var(--ink-faint); font-size: .82rem; text-align: center; margin-top: 14px; }

/* タブ間送客 */
.cross-link { text-align: center; padding: 30px 0 8px; }
.cross-link a { font-family: var(--font-round); font-weight: 700; color: var(--theme-dark); text-decoration: none; border-bottom: 2px solid var(--theme); padding-bottom: 2px; }

/* ============ フッター ============ */
.site-footer { background: #22372E; color: #D9E4DC; padding: 50px 0 30px; margin-top: 20px; }
.footer-inner { width: min(1080px, 92vw); margin-inline: auto; display: grid; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-name { font-family: var(--font-disp); font-weight: 700; font-size: 1.2rem; color: #fff; }
.footer-tagline { width: 100%; color: #9DB3A6; font-size: .9rem; margin-top: 4px; }
.footer-meta p { font-size: .86rem; color: #9DB3A6; margin-bottom: 5px; }
.footer-company { color: #D9E4DC !important; font-weight: 700; }
.footer-sample a { color: #BFD8C9; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: .8rem; color: #7E9488; }

/* ============ スマホ追従CTA ============ */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 95; display: none; gap: 8px; padding: 10px 12px; background: rgba(251,247,239,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.sticky-cta a { flex: 1; text-align: center; font-family: var(--font-round); font-weight: 700; font-size: .92rem; padding: 13px 8px; border-radius: 999px; text-decoration: none; }
.sticky-cta .s-primary { background: var(--accent); color: #fff; }
.sticky-cta .s-ghost { background: #fff; color: var(--town-dark); border: 1.5px solid var(--town); }

/* ============ リビール ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.show { opacity: 1; transform: none; }

/* ============ アクセシビリティ（Hallmark最適化） ============ */
/* キーボード操作時のみフォーカスリングを出す（マウスクリックでは出さない） */
a:focus-visible,
button:focus-visible,
.tab-btn:focus-visible,
.btn:focus-visible,
.btn-nav:focus-visible,
.wz-btn:focus-visible,
.wz-plan:focus-visible,
.wz-sw:focus-visible,
summary:focus-visible,
.cross-link a:focus-visible,
.cform input:focus-visible,
.cform select:focus-visible,
.cform textarea:focus-visible,
.wz-field input:focus-visible,
.wz-field select:focus-visible,
.wz-field textarea:focus-visible {
  outline: 3px solid var(--theme);
  outline-offset: 3px;
}
/* テーマ色の帯（資料DL）上ではリングを白に */
.leadmag input:focus-visible,
.leadmag .btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* 「視差効果を減らす」設定を尊重（酔い・めまい対策） */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .tab-pane.active { animation: none; }
  .btn:hover, .btn-nav:hover, .feat-card:hover, .wz-btn:hover,
  .btn-primary:hover, .btn-ghost:hover { transform: none; }
}

/* ============ レスポンシブ ============ */
@media (max-width: 860px) {
  .hero-grid, .problem-grid, .case, .leadmag { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin-inline: auto; }
  .flow { grid-template-columns: 1fr 1fr; gap: 22px; }
  .flow-step:not(:last-child)::after { display: none; }
  .steps3 { grid-template-columns: 1fr; }
  .quit { grid-template-columns: 1fr; text-align: center; }
  .quit svg { margin-inline: auto; }
  .quit ul { text-align: left; max-width: 320px; margin-inline: auto; }
  .leadmag .doc-art { display: none; }
  .cmp-table { font-size: .82rem; }
  .cmp-table th, .cmp-table td { padding: 11px 7px; }
}
@media (max-width: 620px) {
  section { padding: 48px 0; }
  section[style*="tint2"] { padding: 58px 0; }
  .sec-head--major { margin-bottom: 30px; }
  .header-nav .btn-nav { display: none; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 70px; }
  .flow { grid-template-columns: 1fr; }
  .tab-btn { font-size: .82rem; gap: 6px; padding: 12px 6px; }
  .tab-btn svg { width: 18px; height: 18px; }
  .tabbar-inner { gap: 6px; }
  /* スマホ: ヘッダー64 + タブ約86 + 追従CTA約70 を差し引いて、タブを画面内に収める */
  .masthead { min-height: calc(100vh - 220px); min-height: calc(100dvh - 220px); padding: 16px 0; }
}

/* ============================================================ */
/* 作成ウィザード（page-create.php）                            */
/* ============================================================ */
.wz-page { min-height: 100vh; padding: 40px 0 80px; }
.wz-shell { width: min(680px, 92vw); margin-inline: auto; }
.wz-back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-family: var(--font-round); margin-bottom: 18px; }
.wz-back-link:hover { color: var(--theme-dark); }

.wz-head { text-align: center; margin-bottom: 22px; }
.wz-head h1 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
.wz-head p { color: var(--ink-soft); margin-top: 8px; font-size: .95rem; }

/* 進捗バー */
.wz-progress { display: flex; align-items: center; gap: 6px; margin-bottom: 26px; }
.wz-pdot { flex: 1; height: 6px; border-radius: 999px; background: var(--paper-2); transition: background .3s; }
.wz-pdot.done { background: var(--theme); }
.wz-pdot.current { background: var(--theme); opacity: .55; }
.wz-pcount { text-align: center; font-family: var(--font-round); font-weight: 700; font-size: .82rem; color: var(--theme-dark); margin-bottom: 18px; }

/* カード */
.wz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.wz-step { display: none; }
.wz-step.active { display: block; animation: paneIn .35s ease both; }
.wz-step h2 { font-size: 1.25rem; margin-bottom: 6px; }
.wz-step .wz-lead { color: var(--ink-soft); font-size: .92rem; margin-bottom: 22px; }

/* フィールド */
.wz-field { margin-bottom: 20px; }
.wz-field label { display: block; font-family: var(--font-round); font-weight: 700; font-size: .92rem; margin-bottom: 7px; }
.wz-field .opt { color: var(--ink-faint); font-weight: 400; font-size: .82rem; }
.wz-field input, .wz-field textarea, .wz-field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: var(--font-body); font-size: 1rem; background: var(--paper);
}
.wz-field input:focus, .wz-field textarea:focus, .wz-field select:focus { outline: none; border-color: var(--theme); background: #fff; }
.wz-field textarea { min-height: 110px; resize: vertical; }
.wz-field .hint, .wz-field .wz-hint { color: var(--ink-faint); font-size: .82rem; margin-top: 6px; }
.wz-field .err { color: var(--accent-dark); font-size: .82rem; margin-top: 6px; display: none; }
.wz-field.invalid input, .wz-field.invalid textarea, .wz-field.invalid select { border-color: var(--accent); }
.wz-field.invalid .err { display: block; }
.wz-slug-wrap { display: flex; align-items: center; gap: 0; }
.wz-slug-pre { background: var(--paper-2); border: 1.5px solid var(--line); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 12px 12px; font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
.wz-slug-wrap input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* プラン選択カード */
.wz-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wz-plan { border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; cursor: pointer; text-align: center; transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out); background: #fff; }
.wz-plan svg { width: 40px; height: 40px; margin: 0 auto 10px; }
.wz-plan h3 { font-size: 1.05rem; }
.wz-plan p { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.wz-plan.sel-town { border-color: var(--town); background: var(--town-tint2); }
.wz-plan.sel-fed { border-color: var(--fed); background: var(--fed-tint2); }

/* 配色スウォッチ */
.wz-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px,1fr)); gap: 12px; }
.wz-sw { border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; text-align: center; font-family: var(--font-round); font-weight: 700; font-size: .8rem; }
.wz-sw .dot { width: 100%; height: 34px; border-radius: 8px; margin-bottom: 8px; }
.wz-sw.sel { border-color: var(--ink); }

/* 役員行 */
.wz-officer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.wz-officer input { padding: 10px 12px; }
.wz-officer .rm { background: var(--paper-2); border: none; border-radius: var(--radius-sm); cursor: pointer; padding: 0 12px; color: var(--ink-soft); }
.wz-add { background: var(--theme-tint); color: var(--theme-dark); border: none; border-radius: 999px; font-family: var(--font-round); font-weight: 700; padding: 9px 18px; cursor: pointer; font-size: .88rem; margin-top: 6px; }

/* 確認 */
.wz-review { list-style: none; padding: 0; margin: 0 0 8px; }
.wz-review li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.wz-review li .k { color: var(--ink-soft); flex-shrink: 0; }
.wz-review li .v { text-align: right; font-weight: 500; }
.wz-note { background: var(--theme-tint2); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .88rem; color: var(--theme-dark); margin-top: 16px; display: flex; gap: 10px; }
.wz-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

/* ナビ */
.wz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.wz-btn { font-family: var(--font-round); font-weight: 700; border: none; cursor: pointer; border-radius: 999px; padding: 14px 28px; font-size: 1rem; transition: transform .15s, box-shadow .15s; }
.wz-btn-next { background: var(--theme); color: #fff; box-shadow: 0 10px 22px -12px var(--theme-dark); }
.wz-btn-next:hover { transform: translateY(-2px); }
.wz-btn-prev { background: #fff; color: var(--ink-soft); box-shadow: inset 0 0 0 1.5px var(--line); }
.wz-btn-submit { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px var(--accent-dark); }
.wz-btn-submit:hover { transform: translateY(-2px); }
.wz-nav .wz-btn:only-child { margin-left: auto; }

@media (max-width: 560px) {
  .wz-card { padding: 22px 18px; }
  .wz-officer { grid-template-columns: 1fr 1fr; }
  .wz-officer .rm { grid-column: 1 / -1; padding: 8px; }
  .wz-plans { grid-template-columns: 1fr; }
}
