/* 01_flow-field — 架空の気流設計事務所の冒頭。生成りの紙に、藍鼠の流線 */
:root {
  --paper: #f1eee6;
  --paper-deep: #e7e2d6;
  --ink: #14262c;
  --ink-soft: #4a5d63;
  --line: rgba(20, 38, 44, .16);
  --accent: #c4552b;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --pad: clamp(20px, 5.6vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .04em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
br.pc { display: none; }
.ph { display: inline-block; }   /* 文節の途中で折り返さない */
@media (min-width: 900px) { br.pc { display: inline; } }

/* ---------- ヘッダー ---------- */
.site-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--pad) 0;
}
.site-head__logo { display: flex; align-items: center; gap: 12px; }
.site-head__mark { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.site-head__mark path:nth-child(2) { stroke: var(--accent); }
.site-head__name { font-family: var(--mincho); font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: .12em; }
.site-head__name small { display: block; font-family: var(--gothic); font-weight: 500; font-size: 9px; letter-spacing: .24em; color: var(--ink-soft); margin-top: 3px; }
.site-head__nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); font-size: 13px; font-weight: 500; letter-spacing: .1em; }
.site-head__nav a { position: relative; padding: 6px 0; }
.site-head__nav a:not(.site-head__contact)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.site-head__nav a:not(.site-head__contact):hover::after { transform: scaleX(1); transform-origin: left; }
.site-head__contact { padding: 7px 20px !important; border: 1px solid var(--ink); border-radius: 999px; transition: background .3s, color .3s; }
.site-head__contact:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 820px) {
  .site-head { padding-top: 18px; }
  .site-head__nav a:not(.site-head__contact) { display: none; }
  .site-head__name { font-size: 15px; }
  .site-head__name small { font-size: 8px; letter-spacing: .18em; }
  .site-head__mark { width: 28px; height: 28px; }
  .site-head__contact { font-size: 12px; padding: 5px 16px !important; }
}

/* ---------- 冒頭 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px var(--pad) 120px;
  overflow: hidden;
  touch-action: pan-y;   /* 縦のスクロールは頁に、横のなぞりは粒に渡す */
  background:
    radial-gradient(120% 90% at 85% 10%, #f7f5ef 0%, rgba(247, 245, 239, 0) 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}
.hero__field { position: absolute; inset: 0; z-index: 0; }
.hero__field canvas { display: block; width: 100%; height: 100%; }

.hero__copy { position: relative; z-index: 2; max-width: 40em; }
/* 文字の下だけ、流線を紙の色でやわらげる（読みやすさのため） */
.hero__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -90px -160px -90px -200px;
  background: radial-gradient(closest-side, rgba(241, 238, 230, .94) 0%, rgba(241, 238, 230, .82) 45%, rgba(241, 238, 230, 0) 100%);
  pointer-events: none;
}
.hero__eyebrow {
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--ink-soft);
}
.hero__eyebrow span { margin: 0 .5em; color: var(--accent); }
.hero__title {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(40px, 6.6vw, 100px);
  line-height: 1.32;
  letter-spacing: .08em;
  text-indent: -.04em;
  white-space: nowrap;
}
.hero__lead {
  margin: 34px 0 0;
  font-size: clamp(14px, 1.08vw, 16px);
  line-height: 2.2;
  letter-spacing: .06em;
  color: #24373d;
}
.hero__actions { margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 26px 13px 30px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; line-height: 1.4;
  background: rgba(241, 238, 230, .7);
  transition: background .35s, color .35s;
}
.btn::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .35s cubic-bezier(.2, .7, .2, 1); }
.btn:hover::after { width: 30px; }
.btn--fill { background: var(--ink); color: var(--paper); }
.btn--fill:hover { background: var(--accent); border-color: var(--accent); }
.btn:not(.btn--fill):hover { background: var(--paper); }

.hero__side {
  position: absolute; z-index: 2;
  right: calc(var(--pad) - 6px); top: 50%;
  margin: 0;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  font-size: 10px; font-weight: 500; letter-spacing: .42em;
  color: var(--ink-soft);
}
.hero__side::before { content: ""; display: inline-block; width: 1px; height: 56px; margin-bottom: 18px; background: var(--line); vertical-align: top; }

.hero__readout {
  position: absolute; z-index: 2;
  right: var(--pad); bottom: 34px;
  margin: 0;
  display: flex; gap: 34px;
  font-size: 11px; line-height: 1.6; letter-spacing: .12em;
}
.hero__readout div { padding-top: 10px; border-top: 1px solid var(--line); min-width: 84px; }
.hero__readout dt { color: var(--ink-soft); font-size: 10px; }
.hero__readout dd { margin: 2px 0 0; font-weight: 500; font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .hero { align-items: flex-start; padding: 132px var(--pad) 170px; }
  .hero__copy::before { inset: -60px -40px -60px -40px; }
  .hero__eyebrow { font-size: 10.5px; letter-spacing: .18em; margin-bottom: 22px; }
  .hero__title { font-size: clamp(38px, 11.4vw, 60px); }
  .hero__lead { margin-top: 26px; line-height: 2.1; }
  .hero__actions { margin-top: 32px; gap: 10px; }
  .btn { padding: 11px 20px 11px 24px; font-size: 12.5px; }
  .hero__side { display: none; }
  .hero__readout { left: var(--pad); right: var(--pad); bottom: 84px; gap: 0; justify-content: space-between; }
  .hero__readout div { min-width: 0; flex: 1; margin-right: 14px; }
  .hero__readout div:last-child { margin-right: 0; flex: 1.6; }
}

/* ---------- 事業 ---------- */
.work {
  position: relative;
  padding: clamp(80px, 11vw, 170px) var(--pad) clamp(80px, 10vw, 150px);
  background: var(--ink);
  color: #e9e6dd;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 110px);
}
.work__label { margin: 0 0 22px; font-size: 10.5px; font-weight: 500; letter-spacing: .34em; color: #8fa7ab; }
.work__title { margin: 0; font-family: var(--mincho); font-weight: 500; font-size: clamp(24px, 2.35vw, 38px); line-height: 1.7; letter-spacing: .1em; }
.work__list { list-style: none; margin: 0; padding: 0; }
.work__list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 11em) minmax(0, 1fr);
  gap: 0 24px;
  align-items: baseline;
  padding: 30px 0 32px;
  border-top: 1px solid rgba(233, 230, 221, .2);
}
.work__list li:last-child { border-bottom: 1px solid rgba(233, 230, 221, .2); }
.work__no { font-family: var(--mincho); font-size: 13px; letter-spacing: .2em; color: #e08a62; }
.work__list h3 { margin: 0; font-family: var(--mincho); font-weight: 500; font-size: 21px; letter-spacing: .14em; line-height: 1.6; }
.work__list p { margin: 0; font-size: 14px; line-height: 2.1; color: #c5cdcb; word-break: auto-phrase; }   /* 対応ブラウザでは文節で折り返す */
@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; }
  .work__list li { grid-template-columns: 44px minmax(0, 1fr); }
  .work__list p { grid-column: 2; margin-top: 8px; }
}

/* ---------- フッター ---------- */
.site-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px;
  padding: 34px var(--pad) 92px;
  background: #0e1c21;
  color: #9fb0b2;
  font-size: 11.5px; letter-spacing: .1em; line-height: 1.8;
}
.site-foot p { margin: 0; }
.site-foot__name { font-family: var(--mincho); font-size: 14px; letter-spacing: .18em; color: #e9e6dd; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
