/* IQ LIGHT — iqlight.jp
   静的サイト用スタイルシート（外部ライブラリ不使用） */

:root {
  --bg: #f6f2ea;
  --surface: #fffdf9;
  --ink: #26231f;
  --muted: #6e675d;
  --line: #e4ddd0;
  --accent: #c6953a;
  --accent-soft: #f1e3c4;
  --dark: #000000;       /* ロゴ画像の背景色に合わせた黒 */
  --dark-2: #1f1b16;
  --on-dark: #f3eee4;
  --on-dark-muted: #a79e8f;
  --radius: 12px;
  --wrap: 1080px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Meiryo", "Noto Sans JP", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 600; letter-spacing: 0.03em; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--dark);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span { font-size: 12px; color: var(--on-dark-muted); letter-spacing: 0.08em; }

.nav-toggle { display: none; }
.nav-button {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.nav-button span,
.nav-button span::before,
.nav-button span::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 2px;
  background: var(--on-dark); transition: transform .2s, opacity .2s;
}
.nav-button span { top: 21px; }
.nav-button span::before { top: -6px; left: 0; }
.nav-button span::after { top: 6px; left: 0; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 8px 11px; font-size: 13.5px; text-decoration: none;
  color: var(--on-dark-muted); border-radius: 6px; white-space: nowrap;
}
.site-nav a:hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.06); }
.site-nav a[aria-current="page"] { color: var(--on-dark); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

/* ---------- ステージ（ページ上部の暗い帯） ---------- */
.stage {
  background:
    radial-gradient(900px 400px at 75% 20%, rgba(198, 149, 58, 0.18), transparent 70%),
    var(--dark);
  color: var(--on-dark);
  padding: 56px 0 64px;
}
.stage .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
}
.stage .eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.stage h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.stage .lead { color: var(--on-dark-muted); font-size: 15.5px; max-width: 36em; }
.stage figure { margin: 0; }
.stage figure img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.stage figure.plain img { box-shadow: none; border-radius: 0; }
.stage--wide .wrap { display: block; }
.stage--wide h1 { margin-bottom: 8px; }
.stage--wide figure { margin-top: 36px; }
.stage--compact { padding: 44px 0; }
.stage--compact .wrap { display: block; }

/* ---------- セクション ---------- */
.section { padding: 64px 0; }
.section + .section { padding-top: 0; }
.section-title {
  font-size: 22px; margin-bottom: 24px; padding-left: 16px; position: relative;
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: 0.35em; bottom: 0.35em; width: 4px;
  background: var(--accent); border-radius: 2px;
}
.section-title small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0.12em; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.prose { font-size: 15.5px; }
.prose p { margin-bottom: 1.4em; }
.note { font-size: 13px; color: var(--muted); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}

/* 数字タイル */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.stat b { display: block; font-size: 30px; line-height: 1.1; color: var(--accent); font-weight: 600; letter-spacing: 0; }
.stat b small { font-size: 14px; color: var(--ink); margin-left: 4px; font-weight: 500; }
.stat span { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ページリンクのカード */
.page-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.page-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.page-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(38, 35, 31, 0.1); color: inherit; }
.page-card .thumb { aspect-ratio: 4 / 3; background: var(--dark-2); overflow: hidden; }
.page-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.page-card .thumb.pad { display: grid; place-items: center; background: var(--accent-soft); }
.page-card .thumb.pad img { width: auto; height: 70%; object-fit: contain; }
.page-card .body { padding: 16px 18px 18px; }
.page-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.page-card p { font-size: 13px; color: var(--muted); margin: 0; }
.page-card .more { margin-top: auto; padding: 0 18px 16px; font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }

/* テーブル */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); font-weight: 500; background: #faf6ee; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num { font-variant-numeric: tabular-nums; }
table.data td.w { font-weight: 600; color: var(--accent); }

/* 組み立て手順 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 14px; left: 18px;
  font-size: 12px; letter-spacing: 0.15em; color: var(--accent); font-weight: 600;
}
.step .fig { display: grid; place-items: center; height: 150px; margin: 10px 0 14px; background: var(--dark-2); border-radius: 8px; }
.step .fig img { width: 120px; height: 120px; image-rendering: auto; }
.step p { font-size: 14px; margin: 0; }

/* ギャラリー */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: var(--dark-2); }
.gallery figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* 動画 */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--dark-2); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* デザイナー */
.portrait { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.portrait img { border-radius: var(--radius); width: 100%; }
.portrait figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
blockquote.pull { margin: 0 0 24px; padding: 0 0 0 18px; border-left: 3px solid var(--accent); font-size: 18px; line-height: 1.7; }

/* 準備中 */
.coming { text-align: center; padding: 80px 20px; }
.coming .badge { display: inline-block; font-size: 12px; letter-spacing: 0.2em; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 14px; margin-bottom: 18px; }
.coming h2 { font-size: 22px; margin-bottom: 10px; }
.coming p { color: var(--muted); }

/* 運営者 */
dl.info { margin: 0; display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 10px 20px; font-size: 15px; }
dl.info dt { color: var(--muted); font-weight: 500; }
dl.info dd { margin: 0; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none;
  background: var(--ink); color: #fff; font-size: 14px; letter-spacing: 0.06em;
}
.btn:hover { background: var(--accent); color: #fff; }

/* ---------- フッター ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); font-size: 13.5px; margin-top: 24px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding: 52px 0 40px; }
.site-footer h4 { color: var(--on-dark); font-size: 13px; letter-spacing: 0.15em; margin-bottom: 14px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .brand img { height: 40px; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .page-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-nav a { padding: 8px 8px; font-size: 13px; }
}

@media (max-width: 820px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 60px; }
  .brand img { height: 38px; }
  .nav-button { display: block; margin-left: auto; }
  .site-nav { display: none; width: 100%; padding-bottom: 10px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 12px 8px; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .nav-toggle:checked ~ .nav-button span { background: transparent; }
  .nav-toggle:checked ~ .nav-button span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-button span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle:focus-visible ~ .nav-button { outline: 2px solid var(--accent); }

  .stage { padding: 40px 0 44px; }
  .stage .wrap { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 44px 0; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .portrait { grid-template-columns: 1fr; }
  .portrait img { max-width: 220px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .page-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  dl.info { grid-template-columns: 1fr; gap: 2px 0; }
  dl.info dd { margin-bottom: 10px; }
  table.data th, table.data td { padding: 10px 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-card, .nav-button span, .nav-button span::before, .nav-button span::after { transition: none; }
}
