/* ユーキとラテ：Brain のサムネと同じ色（クリーム地×深緑）・文字はゴシック */
:root {
  --cream: #FBF5E8; --cream-2: #F3EBD8; --paper: #FFFDF7;
  --green: #2F5D34; --green-deep: #1F4A20; --green-soft: #E4EBDD;
  --ink: #2B2A26; --ink-soft: #6B665A; --line: #E2D9C4;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; letter-spacing: .02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }
.nw { display: inline-block; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; letter-spacing: .05em; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--green-deep); }
.btn.ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn svg { width: 18px; height: 18px; }

/* ヘッダー（スマホはハンバーガー） */
.hd { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hd .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; object-fit: contain; object-position: top; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-weight: 700; font-size: 19px; letter-spacing: .04em; }
.brand-name small { margin-top: 4px; font-size: 10px; color: var(--ink-soft); letter-spacing: .08em; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav .btn { color: #fff; padding: 10px 22px; font-size: 14px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 820px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { margin-top: 14px; border: 0; padding: 14px; font-size: 16px; }
}

/* 登録フォーム（モックでは送信しない） */
.form { display: grid; gap: 12px; }
.form input[type=email], .form input[type=text] { width: 100%; padding: 14px 16px; border: 1px solid #CFC5AE; border-radius: 10px; background: #fff; font: inherit; font-size: 16px; }
.form .check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.form .check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); }
.form .btn { width: 100%; padding: 16px; font-size: 17px; }
.form .note { margin: 0; font-size: 12px; color: var(--ink-soft); text-align: center; }

.ft { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.ft .row { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ft a { color: var(--ink-soft); }
.sns-ft { display: flex; gap: 16px; margin: 0 0 14px; padding: 0; list-style: none; }
.sns-ft a { display: inline-flex; padding: 2px; }
.sns-ft a:hover { color: var(--green-deep); }
.sns-ft svg { width: 18px; height: 18px; fill: currentColor; }

.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 6px; background: var(--green); color: var(--cream); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.hero h1 { margin: 0 0 20px; font-weight: 700; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.3; letter-spacing: .02em; }
.hero .lead { margin: 0 0 24px; color: var(--ink-soft); font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.stats li { padding: 14px 14px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.stats small { display: block; font-size: 11px; color: var(--ink-soft); line-height: 1.5; }
.stats b { display: block; margin-top: 4px; font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--green-deep); }
.stats b span { font-weight: 500; font-size: 13px; margin-left: 2px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; min-height: 380px; padding: 24px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.hero-art .yuuki { width: 200px; }
.hero-art .latte { width: 104px; margin-left: -8px; }
.hero-art::before { content: ""; position: absolute; left: 24px; right: 24px; bottom: 26px; height: 14px; border-radius: 50%; background: rgba(43,42,38,.08); }

.sec { padding: 64px 0; }
.sec.alt { background: var(--paper); border-block: 1px solid var(--line); }
.label { margin: 0 0 6px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.sec h2 { margin: 0 0 12px; font-weight: 700; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.4; }
.sec .intro { margin: 0 0 28px; color: var(--ink-soft); max-width: 40em; }

/* 主役：無料診断＋実録 */
.offer { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; padding: 32px; border-radius: 20px; background: var(--green-deep); color: var(--cream); }
.offer h2 { color: #fff; }
.offer .label { color: #B9D3A8; }
.offer .intro { color: #E7E1CF; }
.offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.offer li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; }
.offer li svg { width: 20px; height: 20px; margin-top: 4px; color: #B9D3A8; }
.offer .form-card { padding: 24px; border-radius: 16px; background: var(--cream); color: var(--ink); }
.offer .form-card h3 { margin: 0 0 14px; font-size: 17px; }

.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.story div { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.story b { display: block; color: var(--green); font-size: 12px; letter-spacing: .1em; }
.story h3 { margin: 6px 0 6px; font-size: 17px; line-height: 1.6; }
.story p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }

/* やったこと */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; padding: 24px; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; }
.card .ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--green-soft); color: var(--green); margin-bottom: 14px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; }
.card p { margin: 0 0 16px; font-size: 14px; color: var(--ink-soft); }
.card a { margin-top: auto; font-weight: 700; font-size: 14px; text-decoration: none; }

/* 教材 */
.books { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.book { display: grid; grid-template-columns: 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); }
.book img { aspect-ratio: 1280 / 670; object-fit: cover; width: 100%; }
.book div { padding: 18px 20px 20px; }
.book .tag { display: inline-block; padding: 2px 10px; border-radius: 4px; background: var(--green-soft); color: var(--green-deep); font-size: 12px; font-weight: 700; }
.book h3 { margin: 8px 0 4px; font-size: 18px; line-height: 1.5; }
.book p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.book .price { margin-top: 10px; font-weight: 700; color: var(--green-deep); }

/* プロフィール */
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.profile .pic { display: flex; align-items: flex-end; justify-content: center; padding: 20px; background: var(--cream-2); border-radius: 20px; }
.profile .pic img:first-child { width: 110px; }
.profile .pic img:last-child { width: 60px; margin-left: -4px; }
.sns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.sns a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.sns a:hover { border-color: var(--green); color: var(--green-deep); }
.sns svg { width: 16px; height: 16px; fill: currentColor; }
.sns svg.stroke, .sns-ft svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }


.final { padding: 72px 0; text-align: center; }
.final h2 { margin: 0 0 10px; font-weight: 700; font-size: clamp(26px, 4vw, 38px); line-height: 1.4; }
.final .intro { margin: 0 auto 24px; color: var(--ink-soft); }
.final .form { max-width: 440px; margin-inline: auto; text-align: left; }

@media (max-width: 860px) {
  .hero .wrap, .offer, .profile { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero-art { min-height: 0; order: -1; padding: 16px; border-radius: 18px; }
  .hero-art .yuuki { width: 84px; }
  .hero-art .latte { width: 46px; }
  .hero-art::before { bottom: 16px; }
  .story, .cards, .books { grid-template-columns: 1fr; }
  .offer { padding: 24px 18px; }
  .profile .pic { max-width: 220px; }
}
@media (max-width: 420px) {
  .stats b { font-size: 22px; }
  .stats li { padding: 12px 10px 10px; }
}
.mt { margin-top: 40px; }

/* ---- ここから本番用に足したもの ---- */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #8FB57F; outline-offset: 2px; }
.form .alert { margin: 0; padding: 10px 14px; border-radius: 8px; background: #FBEFEF; color: #8A2B2B; font-size: 14px; line-height: 1.7; }
.form .alert:empty { display: none; }
.form .btn[disabled] { background: #8FA48F; cursor: wait; }
.ts:empty { display: none; }

/* 送信後・確認・完了・プライバシーポリシー */
.hd .wrap.simple { justify-content: flex-start; }
.page { padding: 48px 0 64px; }
.page .narrow { width: min(100% - 32px, 680px); margin-inline: auto; }
.page .mark { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 0 20px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--green); }
.page .mark svg { width: 30px; height: 30px; }
.page h1 { margin: 0 0 14px; font-weight: 700; font-size: clamp(26px, 5vw, 36px); line-height: 1.45; }
.page .lead { margin: 0; color: var(--ink-soft); }
.steps { margin: 24px 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; }
.box { margin: 24px 0; padding: 16px 18px; background: var(--cream-2); border-radius: 12px; font-size: 14px; color: var(--ink-soft); }
.box strong { color: var(--ink); }
.action { margin-top: 24px; }
.action .btn { width: 100%; padding: 16px; font-size: 17px; }
.action .note { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center; }
.page .alert { margin: 20px 0 0; padding: 12px 14px; border-radius: 8px; background: #FBEFEF; color: #8A2B2B; font-size: 14px; }
.page .alert:empty { display: none; }
.hidden { display: none !important; }
.doc h2 { margin: 32px 0 8px; font-size: 18px; }
.doc p, .doc li { font-size: 15px; }
section[id], .doc h2[id] { scroll-margin-top: 72px; }

/* WordPress卒業 かんたん診断（/gift/…/shindan） */
.page .narrow.wide { width: min(100% - 32px, 760px); }
.sd { margin-top: 28px; }
.sd-part { display: flex; align-items: baseline; gap: 12px; margin: 36px 0 14px; font-size: 20px; }
.sd-no { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.sd-q { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 20px; margin: 0 0 12px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.sd-q legend { float: left; display: flex; gap: 12px; padding: 0; font-size: 15px; line-height: 1.7; }
.sd-n { flex: none; color: var(--green); font-weight: 700; }
.sd-t, .sd-route p, .sd-fix span, .sd-next p { text-wrap: pretty; }
.sd-t small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 13px; }
.sd-q.sd-missing { border-color: #C77; background: #FBF3F1; }
.sd-flag { flex: none; align-self: flex-start; padding: 0 8px; border-radius: 999px; background: #8A2B2B; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.8; }
.sd-yn { display: flex; gap: 8px; }
.sd-yn label { position: relative; cursor: pointer; }
.sd-yn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sd-yn span { display: inline-block; min-width: 72px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; text-align: center; font-size: 14px; font-weight: 500; }
.sd-yn input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.sd-yn input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.sd-submit { margin: 24px 0 0; text-align: center; }
.sd-result { margin: 40px 0 0; padding: 28px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; scroll-margin-top: 80px; }
.sd-result:focus { outline: none; }
.sd-result h2 { margin: 0 0 16px; font-size: 22px; }
.sd-result h3 { margin: 28px 0 8px; font-size: 17px; }
.sd-route { padding: 18px 20px; border-radius: 14px; background: var(--green-soft); }
.sd-route b { display: block; color: var(--green-deep); font-size: 22px; }
.sd-route small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 13px; }
.sd-route p { margin: 8px 0 0; }
.sd-fix { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sd-fix li { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; font-size: 15px; }
.sd-fix b { color: var(--green); }
.sd-next { margin: 28px 0 0; padding: 22px 22px 24px; border-radius: 14px; background: var(--green-deep); color: var(--cream); }
.sd-next h3 { margin: 0 0 8px; color: #fff; }
.sd-next p { margin: 0 0 16px; color: #E7E1CF; font-size: 15px; }
.sd-next .btn { background: var(--cream); color: var(--green-deep); }
.sd-again { margin: 20px 0 0; font-size: 14px; }
.sd-pdf { margin: 32px 0 0; color: var(--ink-soft); font-size: 13px; }
@media (max-width: 560px) {
  .sd-q { grid-template-columns: 1fr; }
  .sd-yn label { flex: 1; }
  .sd-yn span { display: block; }
  .sd-fix li { grid-template-columns: 1fr; gap: 2px; }
}
