/* キタムライト紹介サイト — 色・書体・角丸はデザインシステム「キタムライト」の値 */
:root {
  --bg: #FFFBF4;
  --surface: #F6EEE2;
  --accent-soft: #FDEBCB;
  --ink: #2A2420;
  --muted: #6E6258;
  --line: #EADFCE;
  --primary: #3A4E8C;
  --on-primary: #FFFFFF;
  --accent: #E39A22;
  --accent-ink: #9A5A00;

  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 36px;
  --page-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  font-feature-settings: "palt";
  word-break: auto-phrase; /* 文節で折り返す（対応ブラウザのみ） */
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 0.2em; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--page-x); }
section { padding: var(--section-y) 0; }

/* 文字 */
.label {
  font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
  color: var(--accent-ink); margin-bottom: var(--gap-sm);
}
h1, h2, h3, .num { font-family: var(--font-head); font-weight: 700; }
h1, h2, h3 { text-wrap: balance; }
h1 span { display: block; white-space: nowrap; }
h1 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.3; color: var(--primary); letter-spacing: 0.01em; }
h2 { font-size: clamp(27px, 3.6vw, 45px); line-height: 1.4; color: var(--primary); max-width: 22em; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.45; }
.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; margin-top: var(--gap-md); }
.note { font-size: 14px; line-height: 1.7; color: var(--muted); }
sup { font-size: 0.5em; vertical-align: super; line-height: 0; }
.nowrap { white-space: nowrap; display: inline-block; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.4;
  padding: 16px 28px; border-radius: var(--radius-md);
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { font-size: 15px; padding: 10px 18px; }
.textlink { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--line); padding-bottom: 2px; }
.textlink:hover { border-color: var(--primary); }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--gap-md); height: 68px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--primary); text-decoration: none; margin-right: auto; }
.brand small { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 10px; }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--primary); }

/* 冒頭 */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: var(--section-y); position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-cta { margin-top: var(--gap-lg); display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-md); }
.hero-visual { position: relative; aspect-ratio: 1; }
.hero-visual::before {
  content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent-soft); right: -12%; top: -10%;
}
.hero-visual img { position: relative; width: 92%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-top: 8%; }
.hero-visual figcaption { position: relative; margin-top: 12px; width: 92%; text-align: center; } /* 円(幅92%)の真下に中央そろえ */

/* キタムライトとは */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: var(--gap-lg); align-items: start; }
.about-grid p + p { margin-top: var(--gap-sm); }
.kpi { background: var(--accent-soft); border-radius: var(--radius-lg); padding: 28px 32px; }
.kpi .num { font-size: clamp(64px, 8vw, 96px); line-height: 1; color: var(--accent-ink); }
.kpi .num small { font-size: 0.42em; }
.kpi h3 { margin-top: 10px; }
.powders { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--gap-md); }
.powders li { background: var(--surface); border-radius: 999px; padding: 6px 18px; font-weight: 500; font-size: 15px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-sm); margin-top: var(--gap-lg); }
.trio li { background: var(--surface); border-radius: var(--radius-md); padding: 24px; }
.trio h3 { color: var(--primary); margin-bottom: 6px; }
.trio p { font-size: 15.5px; line-height: 1.75; }

/* 5つの機能 */
.band { background: var(--surface); }
.band .card { background: var(--bg); }
.functions { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap-sm); margin-top: var(--gap-lg); }
.functions li { grid-column: span 2; border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; }
.functions li:nth-child(n+4) { grid-column: span 3; }
.functions .idx { font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: 15px; }
.functions h3 { color: var(--primary); font-size: clamp(22px, 2.4vw, 28px); margin: 4px 0 4px; }
.functions .form-name { font-size: 14px; color: var(--muted); font-weight: 500; }
.functions .ask { margin-top: 14px; font-size: 15.5px; line-height: 1.75; }

/* 試作例 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--gap-md); margin-top: var(--gap-lg); }
.gallery figure.wide { grid-column: span 2; }
/* 写真の高さは、通常の写真(4:3)も横長の写真も同じにそろえる */
.gallery img { width: 100%; height: clamp(170px, 21.5vw, 236px); object-fit: cover; border-radius: var(--radius-sm); background: var(--surface); }
/* 同じ段のカードは高さをそろえ、リンクを一番下に置く */
/* 写真・見出し・材料・説明・リンクの5行を、同じ段のカードで共有する（サブグリッド） */
.gallery figure { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; padding-bottom: var(--gap-lg); }
.gallery figcaption { display: contents; }
.gallery h3 { margin-top: 14px; }
.gallery .made { font-size: 14px; color: var(--muted); margin-top: 2px; }
.gallery .ask { font-size: 15.5px; line-height: 1.75; margin-top: 8px; }
.gallery .ask { margin-bottom: 10px; }
.gallery .textlink { display: inline-block; justify-self: start; align-self: start; font-size: 15px; }

/* 環境 */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--gap-md); align-items: stretch; margin-top: var(--gap-lg); }
.compare .box { border-radius: var(--radius-lg); padding: 28px 32px; }
.compare .before { background: var(--surface); }
.compare .after { background: var(--primary); color: var(--on-primary); }
.compare .box h3 { font-size: 18px; }
.compare .box .num { font-size: clamp(44px, 6vw, 76px); line-height: 1.1; margin-top: 8px; }
.compare .box .num small { font-size: 0.34em; margin-left: 6px; }
.compare .box p { font-size: 15.5px; line-height: 1.75; margin-top: 10px; }
.compare .arrow { align-self: center; font-family: var(--font-head); font-size: 44px; color: var(--accent); line-height: 1; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-sm); margin-top: var(--gap-md); }
.facts li { background: var(--surface); border-radius: var(--radius-md); padding: 22px 24px; }
.facts .num { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.2; color: var(--primary); }
.facts .num small { font-size: 0.5em; margin-left: 4px; }
.facts p { font-size: 15px; line-height: 1.7; margin-top: 4px; }
.env-photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-md); margin-top: var(--gap-md); }
.env-photos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.env-photos figcaption { margin-top: 8px; }
.traits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--gap-md); }
.traits li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px; font-size: 15px; font-weight: 500; }
.section-note { margin-top: var(--gap-md); max-width: 52em; }

/* 声を聞く */
.voice-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); margin-top: var(--gap-lg); align-items: start; }
.prompts li { position: relative; padding-left: 26px; margin-top: 14px; }
.prompts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }
.prompts li:first-child::before { background: var(--accent); }
.form-shell { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; }
.form-shell iframe { width: 100%; height: 900px; border: 0; display: block; }
.form-pending { padding: 48px 32px; text-align: left; }
.form-pending h3 { color: var(--primary); }
.form-pending p { margin-top: 10px; font-size: 15.5px; }
.form-pending ol { margin-top: 18px; counter-reset: q; }
.form-pending ol li { counter-increment: q; background: var(--bg); border-radius: var(--radius-md); padding: 12px 18px; margin-top: 8px; font-size: 15.5px; }
.form-pending ol li { display: flex; align-items: baseline; gap: 6px; }
.form-pending ol li::before { content: counter(q) "．"; font-family: var(--font-head); font-weight: 700; color: var(--primary); flex: none; }
.form-pending .sub { display: block; font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 2px; }

/* 会社 */
.company-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); margin-top: var(--gap-lg); align-items: start; }
.company-grid p + p { margin-top: var(--gap-sm); }
.company-facts { background: var(--surface); border-radius: var(--radius-lg); padding: 28px 32px; }
.company-facts div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.company-facts div:last-child { border-bottom: 0; }
.company-facts dt { color: var(--muted); font-weight: 500; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* せまい画面 */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .brand small { display: none; }
  .hero .wrap, .about-grid, .voice-grid, .company-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; width: 86%; }
  .trio, .facts, .env-photos { grid-template-columns: 1fr; }
  .functions { grid-template-columns: 1fr; }
  .functions li, .functions li:nth-child(n+4) { grid-column: auto; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure.wide { grid-column: auto; }
  .gallery img { height: auto; aspect-ratio: 4 / 3; }
  .compare { grid-template-columns: 1fr; }
  .compare .arrow { transform: rotate(90deg); justify-self: center; }
  .form-shell iframe { height: 1100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
