/* うりこぴ紹介ページ（ローカル試作）。外部の読み込みなし・OS標準フォント。 */
:root {
  /* 配色：白・薄灰の土台に紺と青 */
  --bg: #ffffff;
  --bg-gray: #f4f5f7;
  --navy: #0e2346;
  --navy-2: #17305c;
  --ink: #15171c;
  --ink-sub: #4b5160;
  --ink-inv: #f3f5fa;
  --ink-inv-sub: #b8c2d8;
  --line: #d9dde5;
  --accent: #1859c9;
  --accent-hover: #1148a8;
  --accent-soft: #e7eefb;
  /* 文字 */
  --fs-body: 17px;
  --fs-small: 16px;
  --fs-caption: 14px;
  --fs-lead: clamp(18px, 1.6vw, 21px);
  --fs-hero: clamp(40px, 5vw, 68px);
  --fs-h2: clamp(34px, 4.6vw, 60px);
  /* 余白と幅 */
  --max: 1160px;
  --gutter: 24px;
  --space-section: clamp(88px, 11vw, 144px);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.75; letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.feat--ai :focus-visible { outline-color: #8fb4ff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.br-sp { display: none; }

/* ナビ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.86); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(14,35,70,0.08); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 56px; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--navy); text-decoration: none; letter-spacing: 0.04em; }
.nav__mark { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.nav__menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.nav__menu a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav__menu a:hover { color: var(--accent); }
.nav__login { color: var(--accent) !important; font-weight: 600; }
.nav__login-note { font-size: 12px; color: var(--ink-sub); font-weight: 400; margin-left: 2px; }
.nav__toggle { display: none; }

.prototype-banner { background: var(--bg-gray); color: var(--ink-sub); text-align: center; font-size: var(--fs-caption); padding: 6px 16px; }

/* 共通 */
.eyebrow { font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: 0.12em; margin-bottom: 16px; }
.section-title { font-size: var(--fs-h2); line-height: 1.22; font-weight: 800; color: var(--navy); }
.note { color: var(--ink-sub); font-size: var(--fs-small); margin-top: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 28px; border-radius: 999px; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--link { background: transparent; color: var(--accent); padding: 0 10px; }
.btn--link:hover { text-decoration: underline; }
.btn--outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn--outline:hover { background: var(--accent-soft); }
.btn--disabled, .btn--disabled:hover { background: #e4e7ee; color: #596072; cursor: not-allowed; }
figure { margin: 0; }
.mock-label { margin-top: 20px; font-size: var(--fs-caption); color: var(--ink-sub); text-align: center; }
.feat--ai .mock-label { color: var(--ink-inv-sub); }

/* スマホの枠（中は実際のデモ動画/画像。縦横比 720:1558 を保ち、切らずに収める） */
.device { --w: 300px; position: relative; width: var(--w); max-width: 100%; padding: calc(var(--w) * 0.035); background: #14171d; border-radius: calc(var(--w) * 0.14); box-shadow: 0 50px 90px -40px rgba(14,35,70,0.45); flex: none; }
.device > img, .device > video { width: 100%; height: auto; aspect-ratio: 720 / 1558; object-fit: contain; background: #f6f7f9; border-radius: calc(var(--w) * 0.11); }
.device--lg { --w: 340px; }
.device--sm { --w: 210px; }
.device--dark { box-shadow: 0 60px 100px -40px rgba(0,0,0,0.6); }

/* PCの窓の枠（中は Hub のデモ。縦横比 890:910） */
.window { position: relative; background: #fff; border: 1px solid #dfe3ea; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -50px rgba(14,35,70,0.45); }
.window__bar { display: flex; gap: 7px; align-items: center; height: 30px; padding: 0 14px; background: #eef1f6; border-bottom: 1px solid #e2e6ed; }
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9cfd9; }
.window > img, .window > video { width: 100%; height: auto; aspect-ratio: 890 / 910; object-fit: contain; background: #f6f7f9; }

/* 動画の再生/停止ボタン（main.js が付ける。JS なしなら動画の標準の操作が出る） */
.vbtn { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: rgba(14,35,70,0.86); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.vbtn:hover { background: var(--navy); }
.vbtn__icon { width: 18px; height: 18px; flex: none; fill: currentColor; }
.demo .vbtn { font-size: 14px; min-height: 40px; padding: 0 12px 0 10px; grid-column: 1; grid-row: 2; justify-self: center; margin-top: 4px; }
.feat--ai .vbtn { background: rgba(255,255,255,0.92); color: var(--navy); }
.feat--ai .vbtn:focus-visible { outline-color: #8fb4ff; }

/* ヒーロー：PCは左右 */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 112px); display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero__title, .feat__title { word-break: keep-all; overflow-wrap: anywhere; }
.hero__title { font-size: var(--fs-hero); line-height: 1.1; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.hero__lead { margin-top: 26px; font-size: var(--fs-lead); color: var(--ink-sub); line-height: 1.7; }
.hero__actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
/* スマホ（左下）から PC（右上）へ受け渡す構図 */
.scene { position: relative; padding: 0 0 6% 26%; }
.scene__pc { width: 100%; max-width: 480px; margin-left: auto; }
.scene__phone { --w: clamp(150px, 15vw, 200px); position: absolute; left: 0; bottom: 0; z-index: 2; }

/* 見せ場 */
.anchor { position: relative; top: -64px; }
.feat { padding: var(--space-section) var(--gutter); }
.feat__title { font-size: var(--fs-h2); line-height: 1.2; font-weight: 800; color: var(--navy); }
.feat__lead { margin-top: 22px; font-size: var(--fs-lead); color: var(--ink-sub); max-width: 25em; }
.feat__text--center { text-align: center; max-width: 760px; margin: 0 auto; }
.feat__text--center .feat__lead { margin-left: auto; margin-right: auto; }
.feat__visual { display: flex; flex-direction: column; align-items: center; min-width: 0; }

/* 1 採寸：左に文、右に大きなスマホ */
.feat--measure { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* 2 撮影：薄灰の帯、中央に見出しとスマホ */
.feat--photos { background: var(--bg-gray); }
.feat--photos .feat__visual { margin-top: 56px; }

/* 3 AI：紺の帯、左に大きなスマホ・右に文 */
.feat--ai { background: var(--navy); color: var(--ink-inv); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
.feat--ai .feat__visual { order: -1; }
.feat--ai .feat__title { color: #fff; }
.feat--ai .eyebrow { color: #8fb4ff; }
.feat--ai .feat__lead { color: var(--ink-inv-sub); }

/* 4 PC受け取り：大きな PC の画面 */
.feat--hub .feat__visual { margin-top: 56px; }
.window--lg { width: 100%; max-width: 760px; }

/* 使い方 */
.flow { max-width: var(--max); margin: 0 auto; padding: var(--space-section) var(--gutter); border-top: 1px solid var(--line); }
.flow__list { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.flow__list li { border-top: 2px solid var(--navy); padding-top: 22px; }
.flow__num { display: block; font-size: 15px; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 6px; }
.flow__list h3 { font-size: 24px; color: var(--navy); margin-bottom: 8px; }
.flow__list p { color: var(--ink-sub); }

/* 補助のデモ（小さく2つ・押したときだけ再生） */
.demos { margin-top: 88px; }
.demos__title { font-size: 24px; color: var(--navy); text-align: center; }
.demos__list { margin: 36px auto 0; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.demo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; }
.demo figcaption { display: grid; gap: 6px; grid-column: 2; grid-row: 1 / span 2; }
.demo figcaption b { font-size: 18px; color: var(--navy); line-height: 1.5; }
.demo figcaption span { color: var(--ink-sub); font-size: var(--fs-small); }
.demo figcaption small { color: var(--ink-sub); font-size: var(--fs-caption); }

/* 無料テスト */
.test { background: var(--bg-gray); padding: var(--space-section) var(--gutter); text-align: center; }
.test__inner { max-width: 820px; margin: 0 auto; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #6b4f00; background: #fff4d6; border: 1px solid #f0d58a; border-radius: 99px; padding: 4px 14px; margin-bottom: 22px; }
.status-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #c48a00; }
.test__lead { margin: 22px auto 0; max-width: 34em; font-size: var(--fs-lead); color: var(--ink-sub); }
.test__facts { margin: 56px auto 48px; max-width: 580px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.test__facts div { background: #fff; border-radius: var(--radius); padding: 30px 20px; }
.test__facts dt { font-size: var(--fs-small); color: var(--ink-sub); }
.test__facts dd { margin: 6px 0 0; font-size: 18px; font-weight: 700; color: var(--navy); }
.test__facts strong { font-size: 52px; font-weight: 800; margin: 0 2px; letter-spacing: 0; }
.test__facts dd span { display: block; font-size: var(--fs-small); color: var(--ink-sub); font-weight: 400; margin-top: 4px; }
.test__status { margin-top: 16px; font-size: var(--fs-small); color: var(--ink-sub); }
.tbd { font-weight: 700; color: var(--navy); }

/* 利用環境 */
.env { max-width: var(--max); margin: 0 auto; padding: var(--space-section) var(--gutter); text-align: center; }
.env__cols { margin: 56px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 760px; }
.env__icon { width: 56px; height: 56px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; margin-bottom: 12px; }
.env__item h3 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.env__item p { color: var(--ink-sub); }

/* ログイン案内 */
.login { border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter); text-align: center; }
.login__title { font-size: 24px; color: var(--navy); margin-bottom: 8px; }
.login p { color: var(--ink-sub); margin-bottom: 20px; }

/* フッター */
.footer { background: var(--bg-gray); border-top: 1px solid var(--line); font-size: var(--fs-caption); color: var(--ink-sub); }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 48px; }
.footer__brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); margin-bottom: 10px; font-size: 16px; }
.footer__mark { width: 32px; height: 32px; object-fit: contain; border-radius: 7px; }
.footer__links { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ナビは 900px 以下で折りたたむ */
@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; padding: 0 10px; }
  .nav__toggle-bar { display: block; height: 1.5px; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease; }
  .nav.is-open .nav__toggle-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle-bar:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__menu { display: none; position: absolute; top: 56px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__menu { display: block; }
  .nav__menu ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav__menu a { display: block; padding: 14px 0; font-size: 20px; border-bottom: 1px solid #eceff4; }
  /* ヒーローと見せ場は縦に */
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__scene { max-width: 560px; margin: 0 auto; width: 100%; }
  .feat--measure, .feat--ai { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .feat__lead { margin-left: auto; margin-right: auto; }
  .feat--ai .feat__visual { order: 0; }
  .demos__list { grid-template-columns: 1fr; max-width: 520px; }
}

/* スマホ幅 */
@media (max-width: 760px) {
  :root { --fs-body: 16px; --gutter: 20px; }
  .br-sp { display: inline; }
  .hero__lead br { display: none; }
  .scene { padding: 0 0 8% 22%; }
  .scene__phone { --w: 34vw; }
  .device--lg { --w: min(320px, 80vw); }
  .feat--photos .feat__visual, .feat--hub .feat__visual { margin-top: 44px; }
  .demos { margin-top: 64px; }
  .demo { gap: 16px; }
  .device--sm { --w: 150px; }
  .flow__list { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .test__facts { grid-template-columns: 1fr 1fr; gap: 10px; margin: 40px auto; }
  .test__facts div { padding: 22px 10px; }
  .test__facts strong { font-size: 42px; }
  .env__cols { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 400px) {
  .flow__list { grid-template-columns: 1fr; }
}

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