/* kukuri LP (#1043)。読み物として明るいニュートラル＋オレンジ。デスクトップの高密度レイアウトは持ち込まない。 */

:root {
  color-scheme: light;
  --bg: #f6f4f1;
  --surface: #ffffff;
  --surface-muted: #efebe6;
  --text: #1c1a17;
  --text-muted: #4a4540;
  --text-soft: #6b645c;
  --line: #ddd6ce;
  --accent: #d77d45;
  --accent-strong: #9c4f20;
  --on-accent: #20160e;
  --notice-bg: #fbf1e7;
  --notice-line: #bf9358;
  --focus: #0b6e66;
  --radius: 14px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic UI', 'Noto Sans JP', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* ヘッダー */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 12px;
}

/* 共通 */
section {
  padding-block: clamp(56px, 8vw, 96px);
}

section + section {
  border-top: 1px solid var(--line);
}

h1,
h2,
h3 {
  line-height: 1.35;
  margin: 0 0 0.6em;
  word-break: auto-phrase;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 44em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.note {
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* ボタン */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-block: 24px 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: var(--accent-strong);
  color: #fff;
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--text-soft);
  color: var(--text);
}

.button small {
  font-weight: 500;
  opacity: 0.85;
}

/* スマートフォンでは PC へ引き継ぐ案内を出す（JS が有効な場合のみ） */
.handoff {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-block: 20px;
}

.handoff p {
  margin: 0 0 12px;
}

html.is-mobile .handoff {
  display: block;
}

html.is-mobile .download-actions {
  display: none;
}

.handoff-status {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--focus);
  min-height: 1.5em;
}

/* Hero */
.hero {
  padding-top: clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.shot {
  margin: 0;
  background: #121212;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(28, 26, 23, 0.22);
}

.shot img {
  width: 100%;
}

/* 3 場面は該当するカラムが読める大きさになるよう、縦長に切り抜く。 */
.shot-crop {
  aspect-ratio: 4 / 5;
}

.shot-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-crop.focus-left img {
  object-position: 0% 0%;
}

.shot-crop.focus-center img {
  object-position: 45% 0%;
}

figcaption.shot-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 8px;
}

/* 3 場面 */
.scenes {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

.scene {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scene .step {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.scene p {
  margin: 0;
  color: var(--text-muted);
}

/* 表 */
.table-scroll {
  overflow-x: auto;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

tr:last-child th,
tr:last-child td {
  border-bottom: none;
}

thead th {
  background: var(--surface-muted);
  font-size: 0.92rem;
}

/* 分散型 */
.points {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.point {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.point p {
  margin: 0;
}

/* 手順 */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 14px 58px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* FAQ */
.faq {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding-block: 12px;
  min-height: 44px;
}

.faq details p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.experimental {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 22px;
}

.experimental-badge {
  display: inline-block;
  background: var(--notice-bg);
  border: 1px solid var(--notice-line);
  color: #5c3d17;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.experimental .required-notice {
  background: var(--notice-bg);
  border-left: 4px solid var(--notice-line);
  padding: 10px 14px;
  border-radius: 6px;
  margin: 14px 0;
  font-size: 0.95rem;
}

.experimental figure {
  margin: 16px 0 0;
}

.links-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.links-grid ul {
  margin: 0;
  padding-left: 1.2em;
}

/* 再 CTA */
.closing {
  text-align: center;
}

.closing .cta-row {
  justify-content: center;
}

.closing .lead {
  margin-inline: auto;
}

/* フッター */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

.site-footer a {
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 5fr 6fr;
    align-items: center;
  }

  .scenes {
    grid-template-columns: repeat(3, 1fr);
  }

  .points {
    grid-template-columns: repeat(3, 1fr);
  }

  .links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .header-nav .nav-section {
    display: none;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
