:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --text: #3a332c;
  --muted: #7a6e62;
  --line: #eadfce;
  --accent: #d8684e;
  --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); }
.wrap { max-width: 960px; 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; gap: 18px; font-size: 14px; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--accent); }
@media (max-width: 720px) { nav.links { display: none; } }

.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 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); color: #fff; }
.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 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; }
.contact .mail { 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: 40px 0 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 h3 { margin: 0 0 4px; font-size: 17px; color: var(--accent); }
.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); }
