:root {
  --bg: #f6efe4;
  --surface: #fffdf9;
  --text: #23473c;
  --muted: #5a675f;
  --line: #e6dac6;
  --accent: #d8684e;
  /* 白文字・リンク用の濃い強調色（背景・白とのコントラスト 4.5:1 以上） */
  --accent-strong: #b04a33;
  --accent-soft: #fbe3da;
  --green: #4f9a6b;
  --green-soft: #e1f2e6;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent-strong); }
:focus-visible { outline: 3px solid #1f6feb; outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand span { font-size: 17px; white-space: nowrap; }
nav.links { display: flex; align-items: center; gap: 18px; font-size: 14px; }
nav.links .btn { min-height: 40px; padding: 0 16px; font-size: 14px; color: #fff; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--accent); }
.menu { display: none; position: relative; background: none; border: 0; padding: 0; margin: 0; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0; margin: 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; stroke: var(--text); stroke-width: 2; fill: none; stroke-linecap: round; }
.menu[open] { background: none; border: 0; padding: 0; margin: 0; }
.menu nav { position: absolute; right: 0; top: 52px; display: grid; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 10px 30px rgba(35,71,60,.15); }
.menu nav a { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 15px; }
.menu nav a:hover { background: var(--bg); }
@media (max-width: 860px) { nav.links { display: none; } .menu { display: block; } .brand span { font-size: 15px; } }

.hero { padding: 56px 0 40px; }
.hero .badge { display: inline-flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 700; }
.hero .badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 25%, transparent); }
.hero .badge.paused { background: #efeae2; color: var(--muted); }
.hero .badge.paused::before { background: var(--muted); box-shadow: 0 0 0 4px color-mix(in srgb, var(--muted) 25%, transparent); }
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.35; margin: 18px 0 12px; letter-spacing: 0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: clamp(15px, 2.6vw, 18px); color: var(--muted); margin: 0 0 26px; max-width: 640px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px; }
.btn.primary { background: var(--accent-strong); color: #fff; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

section { padding: 44px 0; }
section h2 { font-size: clamp(22px, 4.5vw, 28px); margin: 0 0 8px; }
section p.sub { color: var(--muted); margin: 0 0 24px; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card .icon { font-size: 28px; line-height: 1; }
.card h3 { font-size: 17px; margin: 10px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.recruit { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 24px; }
.recruit h2 { color: var(--accent); }
.recruit.paused { border: 1px solid var(--line); }
.recruit.paused h2 { color: var(--text); }
.recruit ul { margin: 0 0 16px; padding-left: 1.2em; }
.recruit li { margin: 4px 0; }
.two { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 16px 0; }
.two .box { background: var(--bg); border-radius: 14px; padding: 16px; }
.two h3 { margin: 0 0 6px; font-size: 16px; }
.two ul { margin: 0; }

ol.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
ol.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 18px; }
ol.steps h3 { margin: 0 0 2px; font-size: 16px; }
ol.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

.work { display: grid; gap: 16px; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 720px) { .work { grid-template-columns: 220px 1fr; align-items: center; } }
.work .thumb { width: 100%; max-width: 160px; height: auto; aspect-ratio: 1; border-radius: 22%; display: block; }
.work h3 { margin: 0 0 4px; font-size: 20px; }
.work .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.work .tags span { font-size: 12.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; color: var(--muted); }

.contact { text-align: center; background: var(--accent-soft); border-radius: var(--radius); padding: 32px 20px; }
/* 薄い背景（accent-soft）の上でも 4.5:1 以上になるよう少し濃い色 */
.contact .mail { color: #9a3f2b; display: inline-block; font-size: clamp(18px, 4.5vw, 24px); font-weight: 800; margin: 10px 0 14px; word-break: break-all; }
.contact ul { text-align: left; display: inline-block; margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }

footer { padding: 32px 0 40px; color: var(--muted); font-size: 13px; text-align: center; }

/* 下層ページ */
.page { padding-top: 40px; padding-bottom: 24px; }
.page h1 { font-size: clamp(24px, 5vw, 34px); line-height: 1.4; margin: 0 0 8px; }
.page .meta { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 32px); }
.prose h2 { font-size: clamp(19px, 3.6vw, 23px); margin: 32px 0 8px; padding-left: 12px; border-left: 5px solid var(--accent); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 22px 0 6px; }
.prose p, .prose li { font-size: 15.5px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 12px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg); white-space: nowrap; }
.prose .note { background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; }
.table-scroll { overflow-x: auto; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--muted); }
.post-list { display: grid; gap: 12px; }
.post-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--text); }
.post-list a:hover { border-color: var(--accent); }
.post-list h2, .post-list h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.6; color: var(--accent-strong); }
.post-list p { margin: 0; color: var(--muted); font-size: 14.5px; }
.next { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; }
footer nav a { color: var(--muted); }

/* ===== トップ（2026-10 改修） ===== */
.hero2 { padding: 40px 0 24px; }
.hero2-grid { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 861px) { .hero2-grid { grid-template-columns: 1.05fr 1fr; gap: 32px; } .hero2 { padding: 56px 0 32px; } }
.hero2 h1 .nw { white-space: nowrap; }
.hero2 h1 { font-size: clamp(26px, 7.4vw, 50px); line-height: 1.3; margin: 16px 0 14px; letter-spacing: 0.02em; font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif; font-weight: 800; }
.hero2 .lead { font-size: clamp(16px, 2.2vw, 19px); line-height: 1.7; margin: 0 0 24px; }
.hero2 .cta .btn { min-width: 200px; }
.hero2-price { margin: 22px 0 0; font-size: 15px; line-height: 1.6; }
.hero2-price strong { font-size: 26px; color: var(--accent-strong); }
.hero2-price span { font-size: 13px; color: var(--muted); }
.hero2-reply { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.hero2-art img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .hero2-art { max-width: 520px; margin: 0 auto; } .hero2 .cta .btn { flex: 1 1 220px; } }
.hero2 .badge { display: inline-flex; align-items: center; gap: 8px; background: var(--green-soft); color: #2f6a47; border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 700; }
.hero2 .badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero2 .badge.paused { background: #efeae2; color: var(--muted); }
.hero2 .badge.paused::before { background: var(--muted); }

.entries { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.entry { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text); }
.entry:hover { border-color: var(--accent); }
.entry svg { width: 52px; height: 52px; fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.entry span { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.entry span strong { display: block; font-size: 18px; margin-bottom: 4px; color: var(--text); }
.more-link { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.works { display: grid; gap: 16px; }
.work-card { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 761px) { .work-card { grid-template-columns: 300px minmax(0, 1fr); padding: 20px; align-items: start; } }
.work-card img { width: 100%; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }
.work-card h3 { margin: 6px 0 6px; font-size: 20px; }
.work-card p { margin: 0 0 10px; font-size: 14.5px; color: var(--muted); }
.work-card .ref { font-size: 13px; background: var(--bg); border-radius: 10px; padding: 8px 12px; color: var(--text); }
.kind { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.kind-coop { background: #e3efe8; color: #24543c; }
.kind-own { background: var(--accent-soft); color: #8a3420; }
.own-list { margin-top: 14px; }
.own-list ul { margin: 10px 0 0; padding-left: 1.2em; font-size: 14.5px; color: var(--muted); }

.price-summary { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.price-summary h3 { margin: 0 0 10px; font-size: 18px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.price-table th, .price-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table thead th { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.price-table td { font-weight: 800; white-space: nowrap; }
.price-table td.mon { color: var(--accent-strong); }
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.price-list strong { white-space: nowrap; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.card .small { margin: 10px 0 0; }
.cta.center { justify-content: center; margin-top: 20px; }
.tax-note { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: -12px 0 16px; }

.band { background: #efe5d4; }
.band h2 { text-align: center; }
ol.steps3 { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
ol.steps3 li { counter-increment: s; background: var(--surface); border-radius: 14px; padding: 16px 16px 16px 60px; position: relative; }
ol.steps3 li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-strong); color: #fff; font-weight: 800; }
ol.steps3 strong { display: block; font-size: 16px; }
ol.steps3 span { display: block; font-size: 14px; color: var(--muted); line-height: 1.7; }

.copy-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 6px; }
.copy-tools .copy-status { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; min-height: 1em; }
.copy-tools .copy-fallback { flex-basis: 100%; width: 100%; max-width: 520px; font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }

/* ===== 料金ページ上部（2026-10 改修） ===== */
.price-hero h1 { font-size: clamp(28px, 6vw, 46px); line-height: 1.3; margin: 8px 0 8px; font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif; font-weight: 800; }
.price-hero .lead { font-size: 16px; margin: 0 0 20px; }
.plan-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 360px) { .plan-cards { grid-template-columns: 1fr; } }
.plan-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.plan-card svg { width: 60px; height: 60px; fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 420px) { .plan-card { grid-template-columns: 1fr; } .plan-card svg { width: 48px; height: 48px; } }
.plan-card h2 { font-size: 19px; margin: 0 0 6px; }
.plan-price { margin: 0; line-height: 1.2; }
.plan-price strong { display: block; font-size: clamp(26px, 6vw, 34px); color: var(--accent-strong); }
.plan-price span { font-size: 13px; color: var(--accent-strong); font-weight: 700; }
.plan-normal { margin: 6px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.checks { list-style: none; padding: 0; margin: 0 0 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 14.5px; margin: 4px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: #dfeee5; color: #24543c; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.plan-add { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14.5px; }
.plan-add strong { color: var(--accent-strong); }
.plan-add span { display: block; font-size: 12.5px; color: var(--muted); }
.monitor-band { background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; margin: 16px 0; font-size: 14.5px; }
.price-all { background: var(--surface); border-radius: 12px; margin: 0 0 20px; }
.price-all caption { text-align: left; font-weight: 800; padding: 0 0 6px; }
.price-all th, .price-all td { padding: 8px 10px; }
.cost-split { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.cost-split h2 { font-size: 19px; margin: 0 0 8px; }
.cost-split ul { margin: 0; padding-left: 1.2em; font-size: 14.5px; }
.steps-compact { margin: 0 0 28px; }

/* ===== 無料ツール（2026-10 追加） ===== */
.calc { display: grid; gap: 16px; }
.calc fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; margin: 0; min-width: 0; }
.calc legend { font-weight: 800; padding: 0 6px; }
.calc .fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-top: 6px; }
.calc .fields label { display: grid; gap: 4px; font-size: 14.5px; font-weight: 700; }
.calc .fields small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.calc input[type=number], .calc select { font: inherit; font-size: 16px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); width: 100%; box-sizing: border-box; }
.checklist { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-top: 6px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 14.5px; line-height: 1.5; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.checklist label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.checklist input { margin-top: 3px; accent-color: var(--accent-strong); width: 18px; height: 18px; flex: none; }
.calc-result { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; }
.calc-result .row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.calc-result .k { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.calc-result .v { font-size: clamp(20px, 5vw, 26px); font-weight: 800; line-height: 1.3; }
.calc-result .v.main { color: var(--accent-strong); }
.calc-result .breakdown { margin: 10px 0 0; font-size: 14px; }
.calc-result .questions { margin: 6px 0 0; padding-left: 1.3em; font-size: 14.5px; }
.calc-result .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.calc-result .copy-status { margin: 8px 0 0; font-size: 14px; min-height: 1em; }
.calc-result .copy-fallback { width: 100%; font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); box-sizing: border-box; }
.tools-h { font-size: 19px; margin: 24px 0 10px; }
.calc [hidden] { display: none !important; }

.field-error { color: #a32a1a; font-size: 13px; font-weight: 700; min-height: 0; }
.field-error:empty { display: none; }
.calc input[aria-invalid="true"] { border-color: #a32a1a; background: #fff3f0; }
.calc-note { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: -12px 0 16px; }
/* 固定ヘッダー（高さ60px）の下に見出しが隠れないように */
html { scroll-padding-top: 72px; }

/* 通常広告は本文の後。操作ボタンから離し、固定表示しない。 */
.site-ad { margin:48px auto; padding:0; width:300px; max-width:100%; text-align:center; }
.site-ad > p { margin:0 0 8px; font-size:12px; color:#666; }
.site-ad-slot { width:300px; height:250px; max-width:100%; margin:auto; }
