/*
Theme Name: ガラスコーティング相談窓口
Description: coating-madoguchi.com 用のオリジナルテーマ(比較・相談サイト)。デザインは「たよれる窓口」(白×深緑)
Version: 0.6.1
Text Domain: coating-madoguchi
*/

/* ============================================================
   方向C「たよれる窓口」 配色・書体は設計書6章のとおり
   ============================================================ */
:root {
	--bg: #FDFCF9;
	--band: #F3F0E8;
	--ink: #26241F;
	--ink-soft: #57524A;
	--green: #1F513F;
	--green-soft: #E7EEE9;
	--camel: #B5853B;
	--rule: #E5E1D8;
	--line: #06C755;
	--line-ink: #FFFFFF; /* LINE緑の上は白文字(LINE公式のボタンと同じ組み合わせ)。太字で使う */
	--alt-row: #F8F6F1;
	--head: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	--body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	--shadow: 0 2px 12px rgba(0,0,0,.05);
	--shadow-lg: 0 14px 40px rgba(31,81,63,.12);
	--bar-h: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: .02em;
	-webkit-font-smoothing: antialiased;
	padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
	overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .25em; text-decoration-thickness: 1px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--head); color: var(--ink); }
ol, ul { margin: 0; padding: 0; list-style: none; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sp { display: inline; }
.pc { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- ボタン ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 56px; padding: 0 28px;
	border-radius: 12px;
	background: var(--line); color: var(--line-ink);
	font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: .04em;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(6,199,85,.22);
	transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn .ico { font-size: 22px; stroke-width: 1.6; }
.btn:hover { transform: translateY(-1px); filter: brightness(.97); box-shadow: 0 10px 24px rgba(6,199,85,.28); }
.btn:focus-visible, .btn-sub:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.btn-sub {
	display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 22px;
	border: 1.5px solid var(--green); border-radius: 12px; color: var(--green);
	font-family: var(--head); font-weight: 700; font-size: 16px; text-decoration: none; background: transparent;
	transition: background .25s ease;
}
.btn-sub:hover { background: var(--green-soft); }

/* ---------- ヘッダー ---------- */
.site-head {
	position: sticky; top: 0; z-index: 30;
	background: rgba(253,252,249,.94);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--rule);
}
.site-head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: baseline; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--ink); text-decoration: none; line-height: 1.3; }
.brand small { font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--green); border: 1px solid var(--green); border-radius: 99px; padding: 0 8px; line-height: 1.6; white-space: nowrap; }
.head-nav { display: none; }
.site-head .brand small { display: none; }
.site-head .brand { white-space: nowrap; letter-spacing: .03em; font-size: 14.5px; }
.head-cta {
	display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px;
	background: var(--line); color: var(--line-ink); font-family: var(--head); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.head-cta .ico { font-size: 18px; stroke-width: 1.6; }

/* ---------- 見出し部品 ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .16em; color: var(--green); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--camel); border-radius: 2px; }
.h2 { font-weight: 700; font-size: 24px; line-height: 1.55; letter-spacing: .04em; }
.h3 { font-weight: 700; font-size: 17px; line-height: 1.6; letter-spacing: .03em; }
.lead { color: var(--ink-soft); margin-top: 16px; }
.sec { padding: 64px 0; position: relative; }
.sec-alt { background: var(--band); }
.sec-head { margin-bottom: 32px; }

/* ---------- フェードイン(0.5秒のみ) ---------- */
.cm-js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.cm-js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.cm-js [data-reveal] { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ---------- S1 最初の画面 ---------- */
.hero { padding: 36px 0 0; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { font-weight: 700; font-size: 28px; line-height: 1.5; letter-spacing: .03em; }
.hero .lead { font-size: 15.5px; margin-top: 18px; }
.hero-actions { display: grid; gap: 14px; margin-top: 26px; }
.hero-actions .btn { width: 100%; }
.hero-actions .btn-sub { display: none; }
.hero-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.hero-note .ico { color: var(--green); font-size: 18px; }
.disclose { margin-top: 18px; font-size: 13.5px; }
.disclose a { color: var(--ink-soft); }
.hero-photo { position: relative; }
.hero-photo > img { width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 75%; border-radius: 16px; background: var(--band); }
.know {
	position: relative; z-index: 2; margin: -44px 14px 0;
	background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--rule);
	padding: 20px 20px 14px;
}
.know-label { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--green); margin-bottom: 8px; }
.know li { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14.5px; line-height: 1.6; }
.know li:first-of-type { border-top: 0; }
.know li span { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--camel); line-height: 1; min-width: 26px; }

/* 安心3点 */
.assure { margin-top: 24px; background: var(--bg); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.assure ul { display: grid; }
.assure li { display: flex; align-items: center; gap: 14px; padding: 16px 4px; border-top: 1px solid var(--rule); font-family: var(--head); font-weight: 700; font-size: 15.5px; letter-spacing: .04em; line-height: 1.5; }
.assure li:first-child { border-top: 0; }
.assure .badge { width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.assure .badge .ico { font-size: 22px; }

/* ---------- S2 4つの質問 ---------- */
.sec-answers { background: var(--band); overflow: hidden; }
.sec-answers::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 260px;
	background: url("https://images.unsplash.com/photo-1571829604981-ea159f94e5ad?auto=format&fit=crop&w=1600&q=70") center/cover;
	opacity: .12; pointer-events: none;
	-webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
}
.sec-answers > .wrap { position: relative; }
.cards { display: grid; gap: 16px; }
.card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 26px 22px 24px; border: 1px solid rgba(229,225,216,.6); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.card-ico .ico { font-size: 24px; stroke-width: 1.3; }
.card-num { font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--camel); letter-spacing: .06em; }
.card .h3 { margin-bottom: 10px; }
.card p { font-size: 15px; }
.card-tint { background: var(--green-soft); border-color: transparent; box-shadow: none; }

/* ---------- 写真部品 ---------- */
.photo { border-radius: 16px; overflow: hidden; background: var(--band); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- S3 ---------- */
.split { display: grid; gap: 28px; }
.s3-photo { aspect-ratio: 4 / 4.4; margin-top: 24px; }
.s3-photo img { object-position: 38% 50%; }
.stack { display: grid; gap: 14px; }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow); padding: 24px 22px; }
.panel .h3 { margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.panel .h3::before { content: ""; width: 6px; height: 1.1em; margin-top: .25em; background: var(--green); border-radius: 3px; flex: none; }
.panel p { font-size: 15px; }
.textlink { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--green); }
.textlink .ico { font-size: 16px; }

/* ---------- S4 比較表 ---------- */
.table-wrap { margin-top: 8px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.7; }
.cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
.cmp tr { background: #fff; border: 1px solid var(--rule); border-radius: 16px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow); }
.cmp tbody th { background: var(--green); color: #fff; padding: 14px 18px; font-family: var(--head); font-weight: 700; font-size: 17px; text-align: left; line-height: 1.5; }
.cmp tbody th small { display: block; font-size: 13px; font-weight: 500; opacity: .85; letter-spacing: .06em; }
.cmp td { padding: 12px 18px; border-top: 1px solid var(--rule); font-size: 15px; }
.cmp td:nth-child(odd) { background: var(--alt-row); }
.cmp td::before { content: attr(data-label); display: block; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--green); margin-bottom: 2px; }
.cmp td small, .cmp th small { font-size: 13px; }
.cmp td small { display: block; color: var(--ink-soft); line-height: 1.6; margin-top: 2px; }
.cmp td a { font-weight: 500; }
.table-note { margin-top: 20px; font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }

/* ---------- S5 選び方 ---------- */
.s5-photo { aspect-ratio: 4 / 3; margin-bottom: 28px; }
.s5-photo img { object-position: 40% 50%; }
.axes { display: grid; gap: 12px; }
.axes li { display: flex; gap: 16px; background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow); border: 1px solid rgba(229,225,216,.7); }
.axes li > span { width: 40px; height: 40px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-family: var(--head); font-weight: 700; font-size: 18px; display: grid; place-items: center; flex: none; }
.axes .h3 { font-size: 16.5px; margin-bottom: 4px; }
.axes p { font-size: 14.5px; line-height: 1.8; }
.center { text-align: center; margin-top: 36px; }
.center .btn { margin-top: 18px; width: 100%; }

/* ---------- S6 流れ ---------- */
.s6-photo { aspect-ratio: 16 / 10; margin-bottom: 30px; }
.s6-photo img { object-position: 50% 45%; }
.flow { position: relative; counter-reset: none; }
.flow::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--rule); }
.flow li { position: relative; padding: 0 0 26px 64px; }
.flow li:last-child { padding-bottom: 0; }
.flow li .no {
	position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
	background: var(--green); color: #fff; font-family: var(--head); font-weight: 700; font-size: 18px; display: grid; place-items: center;
	box-shadow: 0 0 0 5px var(--bg);
}
.flow li > span { display: block; font-family: var(--head); font-weight: 700; font-size: 12.5px; letter-spacing: .16em; color: var(--green); }
.flow .h3 { margin: 0 0 4px; }
.flow p { font-size: 15px; }
/* ステップは番号→本文の順に0.1秒ずつ */
.cm-js .flow li .no { opacity: 0; transition: opacity .5s ease; }
.cm-js .flow li.is-in .no { opacity: 1; }
.cm-js .flow li > :not(.no) { opacity: 0; transition: opacity .5s ease .1s; }
.cm-js .flow li.is-in > :not(.no) { opacity: 1; }
.cm-js .flow li[data-reveal] { opacity: 1; transform: none; }

/* ---------- S7 FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--rule); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 18px; font-family: var(--head); font-weight: 700; font-size: 16px; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 13px; flex: none; }
.faq summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 1.6px solid var(--green); border-bottom: 1.6px solid var(--green); transform: rotate(45deg) translateY(-3px); transition: transform .25s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 20px 20px 58px; font-size: 15px; }

/* ---------- フッター ---------- */
.foot { background: var(--green); color: #fff; padding: 48px 0 44px; }
.foot a { color: #fff; }
.foot-in { display: grid; gap: 26px; }
.foot .brand { color: #fff; }
.foot .brand small { color: #fff; border-color: rgba(255,255,255,.6); }
.foot-note { margin-top: 14px; font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,.88); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; }
.copy { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); font-size: 12.5px; color: rgba(255,255,255,.8); }

/* ---------- 下部固定LINEバー(スマホ) ---------- */
.fixed-cta {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
	display: flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--line); color: var(--line-ink);
	font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: .03em; text-decoration: none;
	box-shadow: 0 -4px 18px rgba(0,0,0,.1);
}
.fixed-cta .ico { font-size: 22px; stroke-width: 1.6; }

/* ---------- チャットボット(バーの上に逃がす) ---------- */
.cm-chat { position: fixed; right: 16px; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 16px); z-index: 50; }
.cm-chat-toggle {
	display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 16px; border: 0; border-radius: 99px;
	background: var(--green); color: #fff; font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: .04em; cursor: pointer;
	box-shadow: 0 8px 22px rgba(31,81,63,.35);
}
.cm-chat.is-open .cm-chat-toggle { display: none; }
.cm-chat-panel {
	position: absolute; right: 0; bottom: 0; width: min(360px, calc(100vw - 32px));
	max-height: min(520px, calc(100vh - var(--bar-h) - 110px));
	display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden;
	border: 1px solid var(--rule); box-shadow: 0 18px 50px rgba(0,0,0,.2);
}
.cm-chat-panel[hidden] { display: none; }
.cm-chat-head { display: flex; align-items: center; justify-content: space-between; background: var(--green); color: #fff; padding: 12px 8px 12px 18px; }
.cm-chat-head p { font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.cm-chat-close { width: 40px; height: 40px; border: 0; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; border-radius: 50%; }
.cm-chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.cm-chat-bot, .cm-chat-user { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.7; }
.cm-chat-bot { background: var(--band); align-self: flex-start; border-bottom-left-radius: 4px; }
.cm-chat-user { background: var(--green); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.cm-chat-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-chat-choices button, .cm-chat-again {
	min-height: 40px; padding: 0 16px; border: 1.5px solid var(--green); border-radius: 99px; background: #fff; color: var(--green);
	font-family: var(--head); font-weight: 700; font-size: 14px; cursor: pointer;
}
.cm-chat-choices button:hover, .cm-chat-again:hover { background: var(--green-soft); }
.cm-chat-actions { display: grid; gap: 8px; }
.cm-chat-line { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; background: var(--line); color: var(--line-ink); font-family: var(--head); font-weight: 700; font-size: 14px; text-decoration: none; }
.cm-chat-more { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1.5px solid var(--green); border-radius: 10px; color: var(--green); font-family: var(--head); font-weight: 700; font-size: 14px; text-decoration: none; background: #fff; }
.cm-chat-again { border-radius: 10px; min-height: 44px; }
.cm-chat-foot { padding: 10px 16px; font-size: 12.5px; color: var(--ink-soft); border-top: 1px solid var(--rule); background: #fff; line-height: 1.6; }

/* ============================================================
   PC(768px〜)=スマホの拡張
   ============================================================ */
@media (min-width: 768px) {
	.wrap { padding: 0 32px; }
	.sp { display: none; }
	.pc { display: inline; }
	.head-nav { display: flex; gap: 30px; margin-left: auto; margin-right: 28px; }
	.head-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14.5px; letter-spacing: .06em; padding: 8px 0; border-bottom: 2px solid transparent; }
	.head-nav a:hover { border-bottom-color: var(--camel); }
	.site-head-in { height: 72px; }
	.brand { font-size: 17px; }
	.site-head .brand small { display: inline; }
	.site-head .brand { font-size: 17px; letter-spacing: .06em; }
	.head-cta { height: 44px; padding: 0 20px; font-size: 14.5px; }
	.h2 { font-size: 32px; }
	.sec { padding: 104px 0; }
	.sec-head { margin-bottom: 48px; }
	.lead { font-size: 16px; }
	.hero { padding: 64px 0 0; }
	.hero-grid { grid-template-columns: 55fr 45fr; gap: 56px; align-items: center; }
	.hero h1 { font-size: 28px; line-height: 1.5; }
	.hero .lead { font-size: 16px; max-width: 34em; margin-top: 22px; }
	.hero-actions { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 14px 14px; margin-top: 32px; }
	.hero-actions .btn { width: auto; min-width: 320px; }
	.hero-actions .btn-sub { display: inline-flex; }
	.hero-note { grid-column: 1 / -1; }
	.hero-photo > img { aspect-ratio: 4 / 5; border-radius: 16px; object-position: 50% 100%; }
	.know { position: absolute; left: -44px; bottom: 36px; width: 300px; margin: 0; padding: 22px 22px 14px; }
	.assure { margin-top: 72px; }
	.assure ul { grid-template-columns: repeat(3, 1fr); }
	.assure li { border-top: 0; border-left: 1px solid var(--rule); padding: 28px 28px; font-size: 16px; }
	.assure li:first-child { border-left: 0; }
	.cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.card { padding: 34px 32px 32px; }
	.card .h3 { font-size: 19px; }
	.card p { font-size: 15.5px; }
	.split { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
	.sticky { position: sticky; top: 104px; }
	.s3-photo { aspect-ratio: 4 / 4.4; max-width: 400px; }
	.panel { padding: 30px 32px; }
	.panel .h3 { font-size: 18px; }
	/* 比較表: PCでは通常の表 */
	.cmp-shell { background: #fff; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
	.cmp { display: table; border-collapse: collapse; font-size: 14.5px; }
	.cmp thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
	.cmp tbody { display: table-row-group; }
	.cmp tr { display: table-row; background: transparent; border: 0; border-radius: 0; margin: 0; box-shadow: none; overflow: visible; }
	.cmp thead tr { display: table-row; }
	.cmp th, .cmp td { display: table-cell; vertical-align: top; }
	.cmp thead th { background: var(--green); color: #fff; font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-align: left; padding: 16px 16px; line-height: 1.5; }
	.cmp thead th small { display: block; font-weight: 500; opacity: .85; font-size: 12.5px; letter-spacing: .04em; }
	.cmp tbody tr:nth-child(odd) { background: #fff; }
	.cmp tbody tr:nth-child(even) { background: var(--alt-row); }
	.cmp tbody th { background: transparent; color: var(--ink); padding: 20px 16px; font-size: 16px; border-top: 1px solid var(--rule); min-width: 9em; }
	.cmp tbody th small { color: var(--ink-soft); opacity: 1; font-weight: 500; margin-top: 2px; }
	.cmp td, .cmp td:nth-child(odd) { background: transparent; padding: 20px 16px; border-top: 1px solid var(--rule); font-size: 14.5px; }
	.cmp td::before { display: none; }
	.cmp td:last-child { white-space: nowrap; min-width: 8.5em; }
	.cmp tbody tr:first-child th, .cmp tbody tr:first-child td { border-top: 0; }
	.s5-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
	.s5-photo { margin-bottom: 0; aspect-ratio: 4 / 4.4; position: sticky; top: 104px; }
	.s5-photo img { object-position: 35% 50%; }
	.axes li { padding: 24px 26px; }
	.axes .h3 { font-size: 17.5px; }
	.center { text-align: left; margin-top: 28px; }
	.center .btn { width: auto; min-width: 300px; }
	.s6-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
	.s6-photo { aspect-ratio: 4 / 4.2; margin-bottom: 0; }
	.faq summary { padding: 22px 24px; font-size: 17px; }
	.faq details p { padding: 0 28px 24px 64px; font-size: 15.5px; }
	.foot-in { grid-template-columns: 1.4fr 1fr; align-items: start; }
	.foot-links { justify-content: flex-end; }

	/* PC: 固定バーは出さず、チャットは右下 */
	.fixed-cta { display: none; }
	body { padding-bottom: 0; }
	.cm-chat { bottom: 28px; right: 28px; }
	.cm-chat-panel { max-height: min(560px, calc(100vh - 56px)); }
}
@media (min-width: 1100px) {
	.hero h1 { font-size: 32px; }
	.hero-grid { gap: 72px; }
}

/* ============================================================
   運営者情報・ブログ(トップ以外のページ)
   ============================================================ */
.subpage { padding: 56px 0 72px; }
.subpage .wrap { max-width: 800px; }
.page-title { font-weight: 700; font-size: 26px; line-height: 1.55; letter-spacing: .04em; }
.about-card { margin-top: 32px; }
.about-dl { margin: 0 0 24px; }
.about-dl div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.about-dl div:first-child { border-top: 0; padding-top: 0; }
.about-dl dt { font-size: 14px; color: var(--ink-soft); }
.about-dl dd { margin: 0; font-weight: 500; }
.about-dl a, .entry a, .post-list a:hover span { color: var(--green); }
.about-note { margin: 0; padding: 20px 20px 20px 40px; border-radius: 12px; background: var(--green-soft); font-size: 15px; }
.about-note li + li { margin-top: 6px; }
.post-list { list-style: none; margin: 32px 0 0; padding: 0; }
.post-list a { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.post-list time, .post-date { font-size: 13px; color: var(--ink-soft); }
.post-list span { font-family: var(--head); font-weight: 700; }
.entry { margin-top: 40px; }
.entry h2 { font-size: 22px; line-height: 1.6; margin: 56px 0 18px; padding-left: 14px; border-left: 4px solid var(--green); }
.entry h3 { font-size: 18px; margin: 40px 0 14px; }
.entry p { margin: 0 0 1.4em; }
.entry img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-cta { margin-top: 56px; padding: 32px 24px; border-radius: 16px; background: var(--band); text-align: center; }
.entry-cta .btn { margin-top: 16px; }
@media (min-width: 768px) {
	.subpage { padding: 88px 0 112px; }
	.page-title { font-size: 34px; }
	.post-list a { grid-template-columns: 9em 1fr; gap: 16px; }
}


/* ============================================================
   読みやすさの調整(強調・比較表・公式LINEボタン)
   ============================================================ */
.mk { font-weight: 700; color: var(--ink); background: linear-gradient(transparent 62%, #F3DFB4 62%); padding: 0 .1em; }
.card p, .panel p, .axes p, .flow p, .faq details p { color: #3F3B34; }
.lead { color: #3F3B34; font-size: 16.5px; }
.cmp .v { font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--ink); }
.cmp .na { color: #8A857B; font-size: 14px; }
.cmp td small { color: #57524A; }
.cmp td[data-label="出典"] a { display: inline-block; padding: 4px 12px; border: 1.5px solid var(--green); border-radius: 999px; color: var(--green); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.cmp td[data-label="出典"] a:hover { background: var(--green-soft); }
.h2 { text-decoration: underline; text-decoration-color: var(--camel); text-decoration-thickness: 3px; text-underline-offset: .28em; }
.table-note { color: #57524A; }
.line-official { display: inline-block; margin-top: 14px; line-height: 0; }
.line-official img { height: 36px; width: auto; border-radius: 0; }
.hero-actions .line-official { margin-top: 4px; }
/* ログイン中に出る黒い帯と、上のメニューが重ならないようにする */
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (min-width: 768px) {
	.cmp tbody th { font-size: 17px; }
	.cmp .v { font-size: 16.5px; }
	.cmp td { vertical-align: top; }
}


/* ============================================================
   右下の質問箱
   ============================================================ */
.qa { position: fixed; right: 16px; bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom)); z-index: 60; }
.qa-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border: 0; border-radius: 999px; background: var(--green); color: #fff; cursor: pointer; box-shadow: 0 10px 28px rgba(31,81,63,.32); font-family: var(--head); text-align: left; }
.qa-toggle b { display: block; font-size: 14.5px; line-height: 1.3; }
.qa-toggle small { display: block; font-size: 11px; opacity: .85; line-height: 1.3; font-weight: 500; }
.qa-panel { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(380px, calc(100vw - 32px)); max-height: min(600px, calc(100dvh - 150px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.22); border: 1px solid var(--rule); }
.qa-panel[hidden] { display: none; }
.qa-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 12px 14px 18px; background: var(--green); color: #fff; }
.qa-title { font-family: var(--head); font-weight: 700; font-size: 16px; margin: 0; }
.qa-sub { font-size: 12px; opacity: .9; margin: 2px 0 0; line-height: 1.5; }
.qa-close { width: 36px; height: 36px; border: 0; background: transparent; color: #fff; font-size: 22px; cursor: pointer; flex: none; }
.qa-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); font-size: 14.5px; line-height: 1.75; }
.qa-bot, .qa-user { max-width: 88%; padding: 10px 14px; border-radius: 14px; margin: 0; }
.qa-bot { background: #fff; border: 1px solid var(--rule); border-top-left-radius: 4px; align-self: flex-start; }
.qa-user { background: var(--green); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.qa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-chips button { padding: 8px 14px; border: 1.5px solid var(--green); border-radius: 999px; background: #fff; color: var(--green); font: 700 13.5px var(--head); cursor: pointer; text-align: left; }
.qa-chips button:hover { background: var(--green-soft); }
.qa-line { display: block; padding: 12px; border-radius: 12px; background: var(--line); color: var(--line-ink); font-weight: 700; text-align: center; text-decoration: none; }
.qa-typing { color: var(--ink-soft); font-size: 13px; align-self: flex-start; }
.qa-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--rule); background: #fff; }
.qa-form textarea { flex: 1; resize: none; border: 1.5px solid var(--rule); border-radius: 12px; padding: 10px 12px; font: 16px/1.5 var(--body); color: var(--ink); min-height: 44px; max-height: 96px; }
.qa-form textarea:focus { outline: none; border-color: var(--green); }
.qa-form button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--green); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; align-self: flex-end; }
.qa-foot { margin: 0; padding: 8px 14px 12px; font-size: 11px; line-height: 1.6; color: var(--ink-soft); background: #fff; }
@media (min-width: 768px) { .qa { right: 24px; bottom: 24px; } }
.qa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qa-line { color: var(--line-ink); }
