:root {
  --bg: #F7F4EF;
  --panel: #FCFBF8;
  --panel-beige: #EFE9DF;
  --text: #1A1A1A;
  --muted: #4A4741;
  --accent: #2C5F4E;
  --rule: #CFC6B8;
  --serif: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', 'Noto Serif CJK JP', serif;
  --sans: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'YuGothic', 'Meiryo', 'Noto Sans JP', 'Noto Sans CJK JP', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.35; letter-spacing: .02em; }
.container { width: min(1040px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }
main:focus { outline: none; }

.site-header { border-bottom: 1px solid var(--text); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding: 12px 0; }
.logo { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: .08em; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; font-size: .95rem; }
.nav-list a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.nav-list a:hover { border-color: var(--accent); color: var(--accent); }

.nowrap { white-space: nowrap; }
.eyebrow { margin: 0 0 6px; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }

.hero { padding: 88px 0 80px; border-bottom: 1px solid var(--rule); }
.hero-main { max-width: 820px; }
.hero h1 { font-size: clamp(1.4rem, 6vw, 3.4rem); margin: 0 0 28px; }
.hero-lead { font-size: 1.06rem; max-width: 36em; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 11px 22px; border: 1px solid var(--accent); }
.button:hover { background: #224a3d; }
.button-sub { background: transparent; color: var(--accent); }
.button-sub:hover { background: var(--panel-beige); }
.sns-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.sns-links a { font-weight: 600; }

.section { padding: 88px 0; border-bottom: 1px solid var(--rule); }
.section-alt { background: var(--panel-beige); }
.sec-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); gap: 56px; }
.section h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 18px; }
.section p { max-width: 42em; }
.sec-head p:not(.eyebrow) { font-size: .95rem; color: var(--muted); }
.sec-body > p:first-child { margin-top: 0; }

.facts { margin: 28px 0 0; border-top: 1px solid var(--text); }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 700; color: var(--accent); }
.facts dd { margin: 0; }

.work-item { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--panel); border: 1px solid var(--text); }
.work-shot { display: block; border-right: 1px solid var(--text); background: #fff; }
.work-body { padding: 24px; }
.work-meta { margin: 0; font-size: .85rem; color: var(--muted); }
.work-body h3 { font-size: 1.45rem; margin: 4px 0 10px; }
.work-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--text); }
.work-stats div { padding: 12px 8px; border-left: 1px solid var(--rule); }
.work-stats div:first-child { border-left: 0; }
.work-stats dt { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.work-stats dd { margin: 4px 0 0; font-family: var(--serif); }
.work-stats strong { font-size: 2rem; color: var(--accent); }
.work-link { margin: 0; font-weight: 700; }

.role-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.role { background: var(--panel); border: 1px solid var(--rule); padding: 22px 20px; }
.role-icon { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: square; display: block; margin-bottom: 12px; }
.role h3 { font-size: 1.2rem; margin: 0 0 8px; }
.role p { margin: 0; font-size: .95rem; }

.do-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.do-list li { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.do-list h3 { margin: 0; font-size: 1.15rem; }
.do-list p { margin: 0; }

.timeline-wrap { overflow-x: auto; margin: 32px 0 40px; padding-bottom: 8px; }
.timeline-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); }
.timeline li { position: relative; padding: 0 16px 0 0; }
.timeline time { display: block; font-family: var(--serif); font-weight: 600; color: var(--accent); letter-spacing: .06em; font-size: .92rem; padding-bottom: 10px; border-bottom: 1px solid var(--text); margin-bottom: 14px; position: relative; }
.timeline time::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--accent); }
.tl-title { margin: 0; font-size: .95rem; line-height: 1.65; }
.tl-links { margin: 6px 0 0; font-size: .9rem; }
.log-links { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); gap: 56px; align-items: start; }
.log-links > p { margin: 0; }

.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 520px; }
.link-list li { border-bottom: 1px solid var(--rule); padding: 8px 0; }

.site-footer { background: var(--text); color: #F7F4EF; padding: 40px 0; }
.site-footer a { color: #F7F4EF; }
.site-footer p { margin: 12px 0 0; }

@media (max-width: 860px) {
  .hero-grid, .sec-grid, .log-links { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0; }
  .section { padding: 56px 0; }
  .work-item { grid-template-columns: 1fr; }
  .work-shot { border-right: 0; border-bottom: 1px solid var(--text); }
  .work-body { padding: 18px; }
  .work-stats strong { font-size: 1.6rem; }
  .facts div { grid-template-columns: 6em 1fr; }
  .do-list li { grid-template-columns: 1fr; gap: 4px; }
  /* スマホでは横並びをやめ、縦の時系列にする */
  .timeline-wrap { overflow: visible; }
  .timeline { grid-template-columns: 1fr; border-left: 1px solid var(--text); padding-left: 20px; }
  .timeline li { padding: 0 0 20px; }
  .timeline time { border-bottom: 0; padding-bottom: 0; margin-bottom: 2px; }
  .timeline time::after { left: -26px; top: .45em; bottom: auto; }
}
@media (min-width: 761px) {
  .work-shot { position: relative; overflow: hidden; }
  .work-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
}
