/* インプラント専用ページ（下層）第3版 — 本体トークンのみ使用・角丸なし・余白は 8px 基準（16/24/32/48/64/96） */
.sp3 main { font-family: var(--ff-main), "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 16px; line-height: 1.9; letter-spacing: 0.02em; color: var(--color-font); font-feature-settings: "palt"; line-break: strict; }
:where(.sp3 main) a { font-size: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; color: var(--color-main); }
.sp3 main ul, .sp3 main ol { letter-spacing: 0.02em; } /* 全体共通CSS（common.css）の ul の字間ハックを打ち消す */
:where(.sp3 main) :where(p, li, dd, dt) { font-size: inherit; line-height: inherit; letter-spacing: inherit; } /* 詳細度0で本体の p/li 既定サイズだけ打ち消す */
:where(.sp3 main) :where(h1, h2, h3, h4, p, ul, ol, dl, figure) { margin: 0; }
.sp3 main img { max-width: 100%; height: auto; }
.sp3 main h1, .sp3 main h2, .sp3 main h3 { overflow-wrap: anywhere; }
.sp3 main .nav-grid-list a { overflow-wrap: normal; }
.sp3 header { background: var(--color-white); }
.sp3 .kakunin { background: var(--color-bg-beige); outline: 1px solid var(--color-line); padding: 0 2px; }
html.screenshot-mode .fade-up { opacity: 1 !important; transform: none !important; }

/* ヒーロー */
.sp3-hero { position: relative; margin-top: 77px; height: 420px; background: var(--color-navy); overflow: hidden; }
.sp3-hero-img { position: absolute; top: 0; right: 0; bottom: 0; left: 44%; width: 56%; height: 100%; object-fit: cover; object-position: center; }
.sp3-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-navy) 0%, var(--color-navy) 40%, rgba(23, 28, 97, 0.85) 48%, rgba(23, 28, 97, 0) 64%); }
.sp3-hero-inner { position: relative; z-index: 1; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; color: var(--color-white); }
.sp3-hero-eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--ff-sub); font-size: 16px; font-weight: var(--fw-bold); letter-spacing: 0.1em; line-height: 1.5; color: var(--color-white); }
.sp3-hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--color-white); }
.sp3-hero h1 { margin-top: 20px; max-width: 640px; font-size: 40px; font-weight: var(--fw-bold); line-height: 1.4; letter-spacing: 0.02em; color: var(--color-white); }
.sp3-hero h1.is-long { font-size: 30px; }
.sp3-hero-lead { margin-top: 20px; max-width: 520px; font-size: 16px; line-height: 1.9; color: var(--color-white); }
.sp3-hero-meta { margin-top: 16px; font-size: 13px; letter-spacing: 0.04em; color: var(--color-white); }

/* パンくず（ヒーロー直下） */
.sp3-crumb { background: var(--color-white); border-bottom: 1px solid rgba(0, 0, 0, 0.09); }
.sp3-crumb ol { list-style: none; padding: 14px 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; line-height: 1.5; letter-spacing: 0.03em; color: var(--color-line); }
.sp3-crumb li { color: var(--color-line); }
.sp3-crumb li + li::before { content: "›"; margin: 0 10px; }
.sp3-crumb a { color: var(--color-line); text-decoration: none; }
.sp3-crumb a:hover { text-decoration: underline; }
.sp3-crumb [aria-current] { color: var(--color-font); }

/* CTA帯（本体 contact-cta-section の部品。余白は 40 / 24 / 40、ボタン内はテキストとアイコンを同じ高さの箱で中央揃え） */
.sp3 .contact-cta-section { padding: 40px 0; }
.sp3 .contact-cta-section .cta-ttl { font-size: 24px; line-height: 1.5; margin: 0; }
.sp3 .contact-cta-section .cta-btn-grid { margin-top: 24px; gap: 16px; }
.sp3 .cta-btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px 18px 32px; min-height: 92px; box-sizing: border-box; }
.sp3 .cta-btn-text { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.sp3 .cta-btn .font-set-l { font-size: 22px; line-height: 1.3; }
.sp3 .cta-btn .font-set-ml { font-size: 14px; line-height: 1.5; font-weight: var(--fw-regular); }
.sp3 .cta-btn-icon, .sp3 .btn-tel .cta-btn-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex: 0 0 44px; }
.sp3 .cta-btn-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* 目次・関連（本体 nav-grid） */
.sp3-toc, .sp3-related { padding: 48px 0; }
.sp3-toc { background: var(--color-bg-cyan); }
.sp3-related { background: var(--color-white); }
.sp3-toc-ttl { font-size: 18px; font-weight: var(--fw-bold); color: var(--color-main); line-height: 1.5; margin-bottom: 16px; }
.sp3 .nav-grid-list { list-style: none; padding: 0; }
.sp3 .nav-grid-list a { font-size: 16px; font-weight: var(--fw-bold); line-height: 1.5; border-radius: 0; }

/* 監修カード（本体 supervisor） */
.sp3 .supervisor { padding: 40px 0 0; }
.sp3 .supervisor-card { border-radius: 0; padding: 24px 28px; }
.sp3 .supervisor-name { font-size: 18px; font-weight: var(--fw-bold); color: var(--color-main); }
.sp3 .supervisor-role { font-size: 13px; margin-left: 10px; }
.sp3 .supervisor-career, .sp3 .supervisor-updated { font-size: 13px; line-height: 1.7; }
.sp3 .supervisor-text p + p { margin-top: 4px; }

/* 本文 */
.sp3-intro { padding: 40px 0 0; }
.sp3-sec { padding: 48px 0 56px; }
.sp3-sec.bg-gray { background: var(--color-bg-gray); }
.sp3-sec:last-of-type { padding-bottom: 80px; }
.sp3-h2 { display: flex; align-items: center; gap: 14px; font-size: 30px; font-weight: var(--fw-bold); line-height: 1.35; letter-spacing: 0.01em; color: var(--color-main); }
.sp3-h2::before { content: ""; flex: 0 0 16px; width: 16px; height: 32px; background: url("/implunt/images/logo_mark.svg") no-repeat center / contain; }
.sp3-h2 + * { margin-top: 24px; }
.sp3-h3 { display: block; margin: 40px 0 16px; padding: 6px 12px; font-size: 22px; font-weight: var(--fw-bold); line-height: 1.5; letter-spacing: 0.01em; color: var(--color-main); background: linear-gradient(to right, #d9e8f5, #fcfdfe); }
.sp3-h2 + .sp3-h3 { margin-top: 24px; }
.sp3-prose > p { margin: 0 0 16px; }
.sp3-prose > ul, .sp3-prose > ol { margin: 0 0 16px; padding-left: 1.5em; }
.sp3-prose > ul > li, .sp3-cols ul > li, .sp3-risk li { list-style: disc; }
.sp3-prose > ol > li, .sp3-cols ol > li { list-style: decimal; }
.sp3-prose li + li { margin-top: 4px; }
.sp3-prose > :last-child { margin-bottom: 0; }
.sp3-note, .sp-note { font-size: 13px; line-height: 1.7; color: var(--color-font); }

/* 節の写真 */
.sp3-cols { display: grid; grid-template-columns: minmax(0, 1fr) 38%; gap: 32px; align-items: start; margin-bottom: 16px; }
.sp3-cols.portrait { grid-template-columns: minmax(0, 1fr) 260px; }
.sp3-cols.portrait figure img { max-height: 360px; object-fit: cover; object-position: top; }
.sp3-cols > div > p, .sp3-cols > div > ul, .sp3-cols > div > ol { margin: 0 0 16px; }
.sp3-cols > div > ul, .sp3-cols > div > ol { padding-left: 1.5em; }
.sp3-cols > div > :last-child { margin-bottom: 0; }
.sp3-imgs { display: grid; gap: 16px; margin: 8px 0 24px; align-items: start; }
.sp3-imgs figure { display: flex; flex-direction: column; }
.sp3-imgs figure img { background: var(--color-white); }
.sp3-imgs.n1 { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.sp3-imgs.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp3-imgs.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp3 figure img { display: block; width: 100%; height: auto; }
.sp3 figcaption { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--color-line); }

/* 表 */
.sp3-table-wrap { margin: 24px 0; overflow-x: auto; }
.sp3-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; letter-spacing: 0.01em; }
.sp3-table th, .sp3-table td { border: 1px solid var(--color-main); padding: 12px 14px; vertical-align: middle; text-align: left; }
.sp3-table .nw { white-space: nowrap; }
.sp3-table thead th { background: var(--color-main); color: var(--color-white); font-weight: var(--fw-bold); text-align: center; border-color: var(--color-white); border-bottom-color: var(--color-main); }
.sp3-table thead th:first-child { border-left-color: var(--color-main); }
.sp3-table thead th:last-child { border-right-color: var(--color-main); }
.sp3-table tbody th { background: var(--color-bg-cyan); font-weight: var(--fw-bold); text-align: left; min-width: 9em; }
.sp3-table tbody td { background: var(--color-white); }
.sp3-table td.num { text-align: center; font-weight: var(--fw-bold); font-size: 16px; color: var(--color-main); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp3-table-wrap + .sp-table-note, .sp3-table-wrap + .sp3-note { margin: -8px 0 24px; }
.sp-table-note { font-size: 13px; line-height: 1.7; padding-left: 1em; text-indent: -1em; }

/* 枠・料金・リスク */
.sp3-box { margin: 24px 0; padding: 20px 24px; border: 1px solid var(--color-main); background: var(--color-white); }
.sp3-box-ttl { font-size: 16px; font-weight: var(--fw-bold); color: var(--color-main); margin-bottom: 8px; }
.sp3-box p { margin: 0; }
.sp3-fee { margin: 24px 0; border: 1px solid var(--color-main); background: var(--color-white); }
.sp3-fee-ttl { background: var(--color-main); color: var(--color-white); font-size: 16px; font-weight: var(--fw-bold); line-height: 1.5; padding: 10px 20px; }
.sp3-fee-body { padding: 20px 24px; }
.sp3-fee-price { font-size: 36px; font-weight: var(--fw-bold); line-height: 1.2; color: var(--color-main); font-variant-numeric: tabular-nums; }
.sp3-fee-price small { font-size: 15px; font-weight: var(--fw-regular); color: var(--color-font); margin-left: 6px; }
.sp3-fee-body p { margin: 12px 0 0; }
.sp3-risk { margin: 40px 0 0; padding: 20px 24px; border: 1px solid var(--color-main); background: var(--color-white); }
.sp3-risk-ttl { font-size: 16px; font-weight: var(--fw-bold); color: var(--color-main); margin-bottom: 8px; }
.sp3-risk ul { margin: 0 0 12px; padding-left: 1.4em; }
.sp3-risk p { margin: 0; font-size: 15px; }

/* 手順（STEP カード） */
.sp3-steps { list-style: none; padding: 0; margin: 24px 0; counter-reset: step; }
.sp3-step { counter-increment: step; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 24px; align-items: start; border: 1px solid var(--color-main); background: var(--color-white); padding: 24px 28px; }
.sp3-step.has-img { grid-template-columns: 72px minmax(0, 1fr) 240px; }
.sp3-step + .sp3-step { margin-top: 44px; position: relative; }
.sp3-step + .sp3-step::before { content: ""; position: absolute; left: 50%; top: -34px; width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 16px solid var(--color-main); transform: translateX(-50%); }
.sp3-step-num { display: flex; flex-direction: column; align-items: center; color: var(--color-main); font-weight: var(--fw-bold); line-height: 1; padding-top: 2px; }
.sp3-step-num::before { content: "STEP"; font-size: 11px; letter-spacing: 0.1em; }
.sp3-step-num::after { content: counter(step, decimal-leading-zero); font-size: 30px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.sp3-step-ttl { font-size: 20px; font-weight: var(--fw-bold); line-height: 1.5; color: var(--color-navy); }
.sp3-step-text { margin-top: 8px; font-size: 15px; line-height: 1.8; }
.sp3-step figure img { aspect-ratio: 3 / 2; object-fit: cover; }
.sp3-step figure.portrait img { aspect-ratio: auto; max-height: 220px; object-fit: contain; object-position: left top; }

/* 症例 */
.sp3-case { margin: 24px 0; padding: 24px 28px; border: 1px solid var(--color-main); background: var(--color-white); }
.sp3-case + .sp3-case { margin-top: 32px; }
.sp3-case-ttl { font-size: 20px; font-weight: var(--fw-bold); line-height: 1.5; color: var(--color-main); }
.sp3-case-who { margin-top: 4px; font-size: 14px; color: var(--color-line); }
.sp3-case-text { margin-top: 12px; }
.sp3-case-figs { display: grid; gap: 12px; margin-top: 16px; }
.sp3-case-figs.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp3-case-figs.n3, .sp3-case-figs.n4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp3-case-info { margin-top: 16px; border: 1px solid var(--color-main); }
.sp3-case-info dl { display: grid; grid-template-columns: 9em minmax(0, 1fr); }
.sp3-case-info dt { background: var(--color-bg-cyan); padding: 8px 12px; font-weight: var(--fw-bold); border-top: 1px solid var(--color-main); }
.sp3-case-info dd { padding: 8px 12px; border-top: 1px solid var(--color-main); }
.sp3-case-info dt:first-of-type, .sp3-case-info dd:first-of-type { border-top: 0; }

/* FAQ */
.sp3-faq { padding: 56px 0 64px; background: var(--color-bg-cyan); }
.sp3-faq-list { list-style: none; padding: 0; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.sp3-faq-item { background: var(--color-white); padding: 20px 24px; }
.sp3-faq-q, .sp3-faq-a { display: flex; gap: 14px; align-items: flex-start; }
.sp3-faq-a { margin-top: 12px; }
.sp3-faq-badge { flex: 0 0 32px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: var(--fw-bold); line-height: 1; }
.sp3-faq-q .sp3-faq-badge { background: var(--color-main); color: var(--color-white); }
.sp3-faq-a .sp3-faq-badge { border: 2px solid var(--color-main); color: var(--color-main); box-sizing: border-box; }
.sp3-faq-q p { font-size: 17px; font-weight: var(--fw-bold); color: var(--color-main); line-height: 1.6; padding-top: 3px; }
.sp3-faq-a p { padding-top: 3px; line-height: 1.8; }

/* タブレット以下 */
@media (max-width: 1024px) {
	.sp3-hero { height: 400px; }
	.sp3-hero h1 { font-size: 34px; }
	.sp3-hero h1.is-long { font-size: 28px; }
	.sp3-h2 { font-size: 26px; }
	.sp3-step.has-img { grid-template-columns: 64px minmax(0, 1fr); }
	.sp3-step figure { grid-column: 2; margin-top: 16px; max-width: 320px; }
	.sp3-cols, .sp3-cols.portrait { grid-template-columns: 1fr; gap: 16px; }
	.sp3-cols.portrait figure { max-width: 260px; }
}
/* スマホ */
@media (max-width: 599px) {
	.sp3 { font-size: 15px; }
	.sp3-hero { margin-top: 77px; height: auto; min-height: 0; }
	.sp3-hero-img { position: relative; display: block; left: 0; width: 100%; height: 200px; }
	.sp3-hero::after { display: none; }
	.sp3-hero-inner { padding: 28px 0 32px; }
	.sp3-hero-eyebrow { font-size: 13px; }
	.sp3-hero h1, .sp3-hero h1.is-long { margin-top: 14px; font-size: 26px; }
	.sp3-hero-lead { margin-top: 14px; font-size: 14px; }
	.sp3-crumb ol { font-size: 12px; padding: 12px 0; row-gap: 2px; }
	.sp3-toc, .sp3-related { padding: 40px 0; }
	.sp3 .nav-grid-list a { font-size: 14px; }
	.sp3 .supervisor-card { padding: 20px; }
	.sp3-sec { padding: 48px 0; }
	.sp3-sec:last-of-type { padding-bottom: 64px; }
	.sp3-h2 { font-size: 22px; gap: 10px; }
	.sp3-h2::before { flex-basis: 12px; width: 12px; height: 24px; }
	.sp3-h3 { font-size: 18px; margin: 32px 0 12px; }
	.sp3-imgs.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sp3-table-wrap::before { content: "※表は横にスクロールできます"; display: block; font-size: 12px; color: var(--color-line); margin-bottom: 6px; }
	.sp3-table { font-size: 13px; min-width: 560px; }
	.sp3-table td.num { font-size: 14px; }
	.sp3-box, .sp3-risk, .sp3-case { padding: 16px; }
	.sp3-fee-price { font-size: 28px; }
	.sp3-step, .sp3-step.has-img { grid-template-columns: 1fr; padding: 16px; }
	.sp3-step-num { flex-direction: row; align-items: baseline; gap: 6px; margin-bottom: 8px; }
	.sp3-step-num::after { font-size: 24px; margin-top: 0; }
	.sp3-step figure { grid-column: 1; max-width: none; }
	.sp3-case-figs.n2, .sp3-case-figs.n3, .sp3-case-figs.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sp3-case-info dl { grid-template-columns: 1fr; }
	.sp3-case-info dd { border-top: 0; }
	.sp3-faq { padding: 48px 0; }
	.sp3-faq-item { padding: 16px; }
	.sp3-faq-q p { font-size: 15px; }
	.sp3 .contact-cta-section { padding: 32px 0; }
	.sp3 .contact-cta-section .cta-ttl { font-size: 18px; }
	.sp3 .cta-btn { padding: 16px 20px 16px 24px; min-height: 0; }
	.sp3 .cta-btn .font-set-l { font-size: 19px; }
	.sp3 .cta-btn .font-set-ml { font-size: 13px; }
	.sp3 .cta-btn-icon, .sp3 .btn-tel .cta-btn-icon { width: 36px; height: 36px; flex-basis: 36px; }
}
