:root {
  --bg: #fbfaf7; --bg-alt: #f3f1ea; --surface: #fff;
  --text: #22252b; --text-strong: #15171c; --text-muted: #646058; --line: #e2ddd1; --line-strong: #c9c2b2;
  --primary: #1f5a48; --primary-dark: #163f33; --primary-soft: #e3efe9; --marker: #ffe94d;
  --danger: #b31f34; --focus: #1b7f9e;
  --z-header: 100;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.85;
  font-family: "Hiragino Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif; }
a { color: var(--primary-dark); }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(251,250,247,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.logo { font-weight: 900; font-size: 20px; color: var(--text-strong); text-decoration: none; white-space: nowrap; }
.logo span { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-left: 8px; }
nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 700; }
nav a { color: var(--text); text-decoration: none; padding: 10px 0; }
nav .nav-cta { background: var(--primary); color: #fff; padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
@media (max-width: 720px) { nav a:not(.nav-cta) { display: none; } }

.hero { padding: 72px 0 64px; }
.eyebrow { font-size: 14px; font-weight: 800; color: var(--primary); letter-spacing: .06em; margin: 0 0 8px; }
h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.25; margin: 0 0 20px; color: var(--text-strong); letter-spacing: -.01em; }
.marked { background: linear-gradient(transparent 64%, var(--marker) 64%); padding: 0 4px; }
.hero-lead { max-width: 640px; margin: 0 0 28px; color: var(--text); }
.ladder { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; }
.ladder li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.ladder b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 14px; }
.ladder li:last-child { background: var(--primary-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text-strong); font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--primary); border-color: var(--primary-dark); color: #fff; }
.btn:disabled { background: #eceae3; color: #8a8577; border-color: var(--line); cursor: default; }

.sec { padding: 72px 0; }
.sec.alt { background: var(--bg-alt); }
h2 { font-size: 28px; margin: 0 0 8px; color: var(--text-strong); }
.sec-lead { margin: 0 0 32px; color: var(--text-muted); max-width: 640px; }
h3 { font-size: 19px; line-height: 1.5; margin: 0 0 8px; color: var(--text-strong); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.service { border-top: 3px solid var(--text-strong); padding-top: 14px; }
.service p { margin: 0; font-size: 15px; }
.price { font-weight: 900; color: var(--primary); font-size: 15px; margin-bottom: 4px !important; font-variant-numeric: tabular-nums; }

.case { background: var(--surface); padding: 24px; border-radius: 12px; margin-bottom: 20px; }
.case-tag { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--primary); }
.case p { margin: 0 0 10px; }
.case-note { font-size: 13px; color: var(--text-muted); }
.case-facts { margin: 12px 0 0; display: grid; gap: 8px; }
.case-facts div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.case-facts dt { font-weight: 800; font-size: 14px; color: var(--text-muted); }
.case-facts dd { margin: 0; }
[data-todo] { color: var(--text-muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-bottom: 40px; }
.features p { margin: 0; font-size: 15px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 14px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; margin-right: 6px; }
.steps b { display: inline; font-size: 15px; }
.steps li b::after { content: ""; display: block; }

.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.tool { display: block; color: inherit; text-decoration: none; }
.tool img { width: 100%; height: 300px; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: block; margin-bottom: 12px; }
.tool p { margin: 0; font-size: 15px; color: var(--text); }
.tool:hover h3 { text-decoration: underline; }

.articles { list-style: none; padding: 0; margin: 0 0 16px; }
.articles li { border-top: 1px solid var(--line); }
.articles li:last-child { border-bottom: 1px solid var(--line); }
.articles a { display: block; padding: 14px 0; color: var(--text-strong); font-weight: 700; text-decoration: none; }
.articles a:hover { color: var(--primary); }
.more { font-weight: 800; }

.about p { max-width: 720px; }
.about-facts { margin: 16px 0 0; display: grid; gap: 6px; max-width: 720px; }
.about-facts div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; }
.about-facts dt { font-weight: 800; color: var(--text-muted); font-size: 14px; }
.about-facts dd { margin: 0; }

.contact form { background: var(--surface); padding: 24px; border-radius: 12px; border: 1px solid var(--line); }
label { display: block; font-size: 14px; font-weight: 800; color: var(--text-muted); margin: 14px 0 6px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line-strong); border-radius: 9px; background: #fdfcf9; color: var(--text); font: inherit; font-size: 16px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #8a8577; opacity: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: 13px; color: var(--text-muted); margin: 14px 0 0; }
.contact .btn { width: 100%; margin-top: 16px; }
.form-msg { min-height: 1.6em; margin: 12px 0 0; font-weight: 800; }
.form-msg.ok { color: var(--primary-dark); }
.form-msg.ng { color: var(--danger); }

.site-footer { padding: 40px 0; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--line); }
.site-footer p { margin: 0 0 4px; }

/* 管理画面 */
.shell { max-width: 680px; margin: 0 auto; padding: 24px 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.card h2 { font-size: 15px; margin: 0 0 6px; }
.card p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }

.case-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.case-shots figure { margin: 0; }
.case-shots img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
.case-shots figcaption { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
@media (max-width: 560px) { .case-shots { grid-template-columns: 1fr 1fr; } .case-shots figure:last-child { grid-column: 1 / -1; } }

nav .nav-sub { border: 1.5px solid var(--line-strong); padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
@media (max-width: 720px) { nav .nav-sub { display: none; } }

.stats { background: var(--text-strong); color: #fff; }
.stats-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.stats b { display: block; white-space: nowrap; font-size: clamp(20px, 5.4vw, 38px); font-weight: 900; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: #d8d4ca; line-height: 1.5; display: block; }

.problems { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.problem { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; color: inherit; text-decoration: none; }
.problem p { font-size: 15px; margin: 0 0 12px; flex: 1; }
.problem span { font-weight: 800; color: var(--primary); font-size: 14px; }
.problem span::after { content: " →"; }
.problem:hover { border-color: var(--primary); }

.case-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 10px; }
.case-tags li { font-size: 12px; font-weight: 800; color: var(--primary-dark); background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; }

.dl { background: var(--primary-soft); }
.dl-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .dl-in { grid-template-columns: 1fr; } }
.dl-list { padding: 0; list-style: none; margin: 16px 0 0; }
.dl-list li { background: var(--surface); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; font-size: 14px; }
.dl-list b { display: block; font-size: 16px; color: var(--text-strong); }
.dl-form { background: var(--surface); padding: 22px; border-radius: 12px; border: 1px solid var(--line); }
.dl-form .btn { width: 100%; margin-top: 14px; }
.dl-links { display: grid; gap: 10px; margin-top: 10px; }
@media (max-width: 560px) { h2 { font-size: 24px; } }
