:root {
  --paper: #f7f6f2;
  --white: #ffffff;
  --ink: #15181c;
  --muted: #565d66;
  --line: #dcdad2;
  --canvas: #e8e7e1;
  --dot: #c9c7bd;
  --blue: #0d99ff;
  --blue-ink: #0a6fc2;
  --night: #12171d;
  --night-muted: #a9b2bd;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.75 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Segoe UI", sans-serif;
}

a { color: var(--blue-ink); }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
button { font: inherit; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute;
  left: -999px;
  padding: 8px 16px;
  background: var(--white);
}
.skip:focus { left: 8px; top: 8px; z-index: 20; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ヘッダー */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(10px);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.lang { font-size: 15px; white-space: nowrap; }

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #2a3038; }
.btn-ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-blue { background: var(--blue); color: #04121f; }
.btn-blue:hover { background: #41afff; }

/* ヒーロー */
.hero { padding-block: 72px 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 56px; }
.eyebrow { color: var(--blue-ink); font-size: 15px; font-weight: 700; }
.hero h1 {
  margin-top: 14px;
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
:lang(ja) .hero h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.22; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) h2, :lang(ja) h3, :lang(ja) .eyebrow { word-break: auto-phrase; }
.lede { margin-top: 22px; color: var(--muted); font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; padding: 0; color: var(--muted); font-size: 15px; list-style: none; }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* Figma風のキャンバス */
.canvas {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 18px 18px;
}
.hero-canvas { aspect-ratio: 1 / 0.92; }
.hero-photo {
  position: absolute;
  left: 6%;
  top: 6%;
  width: 62%;
  aspect-ratio: 3 / 2;
  outline: 2px solid var(--blue);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo.second { top: 56%; width: 50%; }
.hero-panel {
  position: absolute;
  right: 4%;
  top: 9%;
  width: 40%;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(21, 24, 28, 0.2);
}
.handle { position: absolute; width: 9px; height: 9px; border: 2px solid var(--blue); background: var(--white); }
.handle.tl { left: -5px; top: -5px; }
.handle.tr { right: -5px; top: -5px; }
.handle.bl { left: -5px; bottom: -5px; }
.handle.br { right: -5px; bottom: -5px; }

/* 課題 */
.problem { padding-block: 72px; background: var(--night); color: var(--white); }
.problem h2 { max-width: 20em; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.2; letter-spacing: -0.015em; }
.problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 36px; }
.problem-grid h3 { font-size: 19px; line-height: 1.4; }
.problem-grid p { margin-top: 8px; color: var(--night-muted); }

/* 機能 */
.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.16; letter-spacing: -0.015em; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.features { padding-block: 88px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: 56px; margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.feature-number { color: var(--blue-ink); font-size: 15px; font-weight: 700; }
.feature h3 { margin-top: 8px; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.01em; }
.feature > div > p { margin-top: 14px; color: var(--muted); }
.check { margin-top: 18px; padding: 0; list-style: none; }
.check li { position: relative; margin-top: 8px; padding-left: 28px; }
.check li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 13px;
  height: 7px;
  border-bottom: 2.5px solid var(--blue);
  border-left: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}

/* デモ */
.demo-stage { aspect-ratio: 3 / 2; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 14px; }
.demo-bar .btn { min-height: 44px; padding: 8px 18px; }
.demo-note { color: var(--muted); font-size: 15px; }

.crop-frame {
  position: absolute;
  left: 8%;
  top: 8%;
  width: 30%;
  height: 55%;
  outline: 2px solid var(--blue);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.crop-clip { position: absolute; inset: 0; overflow: hidden; }
.crop-clip img {
  position: absolute;
  left: -46%;
  top: 0;
  width: 183%;
  max-width: none;
  height: 100%;
  transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.size-pill {
  position: absolute;
  left: 50%;
  bottom: -30px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--blue);
  color: #04121f;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transform: translateX(-50%);
}
.is-done .crop-frame { width: 84%; height: 84%; }
.is-done .crop-clip img { left: 0; width: 100%; }
.is-done .size-pill { bottom: 8px; }

.pair { position: absolute; inset: 10% 6%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6%; }
.pair figure { margin: 0; }
.pair figcaption { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.look { filter: brightness(1.1) contrast(1.14) saturate(1.5) sepia(0.2); }
.target { outline: 2px solid var(--blue); transition: filter 0.6s ease; }
.is-done .target { filter: brightness(1.1) contrast(1.14) saturate(1.5) sepia(0.2); }

/* 使い方 */
.howto { padding-block: 88px; background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 44px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; margin-bottom: 8px; font-size: 32px; font-weight: 800; line-height: 1; }
.steps h3 { font-size: 19px; line-height: 1.4; }
.steps p { margin-top: 6px; color: var(--muted); }
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.guide-card { padding: 28px; border: 1px solid var(--line); border-radius: 14px; }
.guide-card h3 { font-size: 21px; line-height: 1.35; }
.guide-card h4 { margin: 20px 0 4px; font-size: 16px; }
.guide-card ol, .guide-card ul { margin: 10px 0 0; padding-left: 1.4em; }
.guide-card li { margin-top: 6px; }
.guide-card p { margin-top: 10px; }
.common { margin-top: 24px; padding: 28px; border-radius: 14px; background: var(--paper); }
.common h3 { font-size: 19px; }
.common ul { margin-top: 10px; padding-left: 1.4em; }
.common li { margin-top: 4px; }

/* FAQ */
.faq { padding-block: 88px; }
.faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 18px 36px 18px 0; position: relative; font-weight: 700; line-height: 1.45; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 14px; color: var(--blue-ink); font-size: 24px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 780px; padding-bottom: 20px; color: var(--muted); }

/* 最後の呼びかけ */
.final { padding-block: 80px; background: var(--night); color: var(--white); }
.final .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; gap: 40px; }
.final h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.16; letter-spacing: -0.015em; }
.final p { margin-top: 12px; color: var(--night-muted); }
.final .actions { margin-top: 0; }

/* フッター */
.foot { padding-block: 36px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }

/* プライバシーポリシー */
.policy { padding-block: 64px 88px; }
.policy .wrap { max-width: 760px; }
.policy h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.2; }
.policy h2 { margin-top: 36px; font-size: 22px; }
.policy p, .policy ul { margin-top: 12px; }
.policy ul { padding-left: 1.4em; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-block: 48px 64px; }
  .hero .wrap, .feature, .final .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .features, .howto, .faq { padding-block: 64px; }
  .problem-grid, .guide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature { margin-top: 40px; padding-top: 36px; }
}

@media (max-width: 680px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .guide-card, .common { padding: 22px; }
  .size-pill { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crop-frame, .crop-clip img, .target { transition: none; }
}
