/* Mr デンタル LP / hearing form — mobile first, no web fonts, no frameworks. */
:root {
	--coral: #8a5a44;        /* buttons (brown, matches the site theme): white text 5.9:1 */
	--coral-dk: #6c4434;
	--salmon: #e98c74;       /* accents only */
	--blush: #f2ebe1;
	--cream: #f8f4ee;
	--ink: #3b342f;
	--body: #574d46;
	--muted: #7f746b;
	--line: #e5dace;
	--green: #06c755;        /* LINE */
	--err: #c62828;
	--head: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
	--sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dk); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.btn, .hero-title, .sec-title, .hero-eyebrow, .cards h3, .points h3, .steps h3, .faq dt, .hf legend, .receipt b { font-family: var(--head); }
.in { width: 100%; max-width: 640px; margin-inline: auto; padding-inline: 20px; }

/* header */
.hd { border-bottom: 1px solid var(--line); background: #fff; }
.hd .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.hd-logo img { width: 132px; }
.hd-sub { font-size: 10.5px; line-height: 1.5; color: var(--muted); text-align: right; }

/* buttons */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 12px 22px; border-radius: 999px; font-size: 17px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; border: 0; font-family: inherit; }
.btn small { font-size: 11.5px; font-weight: 500; letter-spacing: .02em; opacity: .92; }
.btn-main { background: var(--coral); color: #fff; box-shadow: 0 6px 16px rgba(138, 90, 68, .25); }
.btn-main:hover, .btn-main:focus-visible { background: var(--coral-dk); }
.btn-line { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(6, 199, 85, .25); }
.btn-block { display: flex; width: 100%; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* hero */
.hero { background: var(--cream); padding-bottom: 32px; }
.hero-img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.hero .in { padding-top: 22px; }
.hero-eyebrow { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--salmon); color: var(--coral-dk); font-size: 13px; font-weight: 700; }
.hero-title { margin-bottom: 14px; font-size: clamp(25px, 7vw, 34px); font-weight: 800; line-height: 1.45; letter-spacing: .02em; }
.hero-lead { margin-bottom: 22px; font-size: 15px; color: var(--body); }

/* sections */
.sec { padding-block: 44px; }
.sec-tint { background: var(--blush); }
.sec-eyebrow { margin-bottom: 6px; color: var(--coral-dk); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.sec-title { margin-bottom: 18px; font-size: clamp(21px, 5.6vw, 26px); font-weight: 800; line-height: 1.5; }
.sec-lead { margin-bottom: 22px; font-size: 15px; color: var(--body); }

.checks li { position: relative; margin-bottom: 10px; padding: 14px 14px 14px 46px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); font-weight: 600; line-height: 1.6; }
.checks li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--coral); }
.checks li::after { content: ""; position: absolute; left: 21px; top: 50%; width: 6px; height: 10px; margin-top: -7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.cards li { position: relative; margin-bottom: 12px; padding: 20px 18px 18px 60px; border-radius: 14px; background: #fff; }
.cards .num { position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--salmon); color: #fff; font-weight: 800; font-size: 14px; }
.cards h3, .points h3, .steps h3 { margin-bottom: 6px; font-size: 17px; font-weight: 800; line-height: 1.5; }
.cards p, .points p, .steps p { font-size: 14.5px; color: var(--body); }

.points li { margin-bottom: 12px; padding: 18px; border-left: 4px solid var(--coral); border-radius: 0 12px 12px 0; background: var(--cream); }

.steps { margin-bottom: 26px; counter-reset: s; }
.steps li { position: relative; margin-bottom: 12px; padding: 16px 18px; border-radius: 12px; background: #fff; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 14px; height: 8px; margin-left: -7px; background: var(--salmon); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.steps .num { display: inline-block; margin-bottom: 4px; color: var(--coral-dk); font-size: 12px; font-weight: 800; letter-spacing: .1em; }

.faq dt { position: relative; padding: 16px 0 6px 32px; font-weight: 800; line-height: 1.6; }
.faq dd { position: relative; padding: 0 0 16px 32px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--body); }
.faq dt::before, .faq dd::before { position: absolute; left: 0; font-weight: 800; }
.faq dt::before { content: "Q"; top: 16px; color: var(--coral); }
.faq dd::before { content: "A"; top: 0; color: var(--muted); }

.sec-cta { background: var(--cream); text-align: center; }
.tel-line { margin-top: 18px; font-size: 14px; color: var(--muted); }
.tel-line a { font-size: 18px; font-weight: 800; color: var(--ink); text-decoration: none; }

/* operator + footer */
.operator { padding-block: 30px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--body); }
.operator-title { margin-bottom: 8px; font-size: 14px; font-weight: 800; color: var(--muted); }
.operator p + p { margin-top: 2px; }
.operator .link { display: inline-block; margin-top: 8px; font-weight: 700; }
.ft { padding-block: 22px 96px; background: #3a3533; color: rgba(255, 255, 255, .7); font-size: 12px; }
.mrdf-hearing .ft, .mrdf-thanks .ft { padding-bottom: 22px; }
.ft a { color: rgba(255, 255, 255, .85); }
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }

/* sticky CTA (LP) */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); transform: translateY(110%); transition: transform .25s ease; }
.sticky.on { transform: none; }
.sticky .btn { width: 100%; min-height: 50px; font-size: 16px; }

/* hearing form */
.sec-form { background: var(--blush); }
.alert { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; background: #fdecea; border: 1px solid #f5c2bd; color: #8e1c1c; font-size: 14px; }
.alert-title { font-weight: 800; }
.alert ul { margin-top: 4px; padding-left: 1.2em; list-style: disc; }
.hf .q { margin: 0 0 14px; padding: 18px 16px; border: 0; border-radius: 14px; background: #fff; }
.hf legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; float: left; width: 100%; margin-bottom: 12px; padding: 0; font-weight: 800; font-size: 16px; line-height: 1.5; }
.hf legend + * { clear: both; }
.q-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--salmon); color: #fff; font-size: 13px; }
.q-note { font-size: 12px; font-weight: 500; color: var(--muted); }
.q-help, .f-help { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.req, .opt { padding: 0 8px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1.8; }
.req { background: var(--coral); color: #fff; }
.opt { background: #f1ece9; color: var(--muted); }
.opts { display: grid; gap: 8px; }
.opts-row { grid-template-columns: repeat(2, 1fr); }
.opts + .opts { margin-top: 8px; }
.q-sub { margin: 4px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.opts + .q-sub { margin-top: 14px; }
.opt-item { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; line-height: 1.5; cursor: pointer; }
.opt-item input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--coral); }
.opt-item:has(input:checked) { border-color: var(--coral); background: var(--blush); }
.inp { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
textarea.inp { min-height: 120px; resize: vertical; }
.inp:focus { border-color: var(--coral); outline: none; box-shadow: 0 0 0 3px rgba(138, 90, 68, .2); }
.inp-sub { margin-top: 10px; }
.f { display: block; margin-top: 14px; }
.f:first-of-type { margin-top: 0; }
.f-label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.has-err, .has-err .opt-item, .has-err .inp { border-color: var(--err) !important; }
.q.has-err { box-shadow: 0 0 0 2px var(--err); }
.agree { margin: 6px 0 20px; padding: 16px; border-radius: 14px; background: #fff; font-size: 13px; color: var(--body); }
.agree p { margin-bottom: 12px; }
.agree.has-err { box-shadow: 0 0 0 2px var(--err); }
.note-center { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* thanks */
.sec-thanks { text-align: center; background: var(--cream); padding-block: 56px; }
.done-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 32px; font-weight: 800; }
.receipt { display: inline-flex; flex-direction: column; margin-bottom: 22px; padding: 14px 28px; border-radius: 12px; background: #fff; border: 1.5px dashed var(--salmon); font-size: 13px; color: var(--muted); }
.receipt b { font-size: 24px; letter-spacing: .06em; color: var(--ink); }

@media (min-width: 720px) {
	.hd-logo img { width: 160px; }
	.hd-sub { font-size: 12px; }
	.hero-img img { aspect-ratio: 21 / 8; }
	.sec { padding-block: 64px; }
	.opts-row { grid-template-columns: repeat(4, 1fr); }
	.sticky { display: none; }
	.ft { padding-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.sticky { transition: none; }
}
