/* WEROX の紹介サイト。見た目はアプリと同じ「計器」(docs/SPEC.md §7)。
   黄色は「いま」と、押してほしいところにだけ使う。スクリプトは使わない。 */
:root {
  --y: #ffe600;
  --ink: #111314;
  --char: #1c1e20;
  --char2: #26292c;
  --char3: #33373b;
  --paper: #ecedee;
  --paper2: #f7f7f7;
  --rule: #c4c7ca;
  --drule: #3b3f44;
  --white: #f2f3f3;
  --sub: #55595d;
  --dsub: #a9adb1;
  --cy: #39b9e6;
  --gr: #3ecf7a;
  --f: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --fc: 'Barlow Condensed', 'Zen Kaku Gothic New', sans-serif;
  --pad: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--f); font-weight: 500; font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.nowrap { white-space: nowrap; }
.num { font-family: var(--fc); font-weight: 600; font-variant-numeric: tabular-nums; }
.lab { font-family: var(--fc); font-weight: 500; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }

/* 上の帯 */
.header { position: sticky; top: 0; z-index: 10; background: rgba(236, 237, 238, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--fc); font-weight: 600; font-size: 22px; letter-spacing: 0.08em; }
.logo img { width: 34px; height: auto; }
.menu { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; }
.menu a { text-decoration: none; padding: 8px 0; }
.menu a:hover { text-decoration: underline; text-underline-offset: 6px; }
.tag { display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 11px; white-space: nowrap; }
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--y); }

/* 最初の画面 */
.hero { padding: 0; position: relative; color: var(--white); overflow: hidden; background: radial-gradient(120% 60% at 80% 0%, rgba(255, 230, 0, 0.08), transparent 60%), linear-gradient(180deg, #2a2d2f 0%, #17191a 55%, #1d2018 100%); }
.hero::before { content: ''; position: absolute; inset: 0; background: url(img/hero.jpg) center / cover no-repeat; opacity: 0.16; }
.hero::after { content: ''; position: absolute; right: -180px; top: -120px; width: 760px; height: 760px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 38px, rgba(255, 255, 255, 0.05) 38px 39px); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.hero-text { padding-bottom: 72px; }
.hero h1 { font-weight: 900; font-size: clamp(30px, 4.3vw, 50px); line-height: 1.28; letter-spacing: -0.01em; margin: 10px 0 22px; }
.hero .lead { font-size: clamp(16px, 1.7vw, 19px); font-weight: 700; line-height: 1.75; max-width: 30em; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 30px; }
.facts li { border: 1px solid var(--drule); background: rgba(255, 255, 255, 0.06); font-size: 13.5px; font-weight: 700; padding: 5px 11px; }
.soon { display: inline-flex; align-items: center; gap: 14px; background: var(--y); color: var(--ink); border-radius: 99px; height: 60px; padding: 0 8px 0 24px; font-weight: 900; font-size: 16.5px; }
.soon small { font-family: var(--fc); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; opacity: 0.75; }
.soon i { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--y); display: grid; place-items: center; font-style: normal; font-size: 15px; }
.hero .note { font-size: 12.5px; color: var(--dsub); margin-top: 16px; }
.hero-phones { position: relative; align-self: end; height: 560px; }
.phone { width: 270px; border-radius: 40px; padding: 7px; background: #0b0c0d; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75); }
.phone img { border-radius: 33px; width: 100%; height: auto; }
.hero-phones .phone { position: absolute; }
.hero-phones .a { left: -6%; top: 0; z-index: 2; }
.hero-phones .b { right: -4%; top: 74px; opacity: 0.9; }

/* 数字の帯 */
.strip { background: var(--ink); color: var(--white); border-top: 1px solid var(--drule); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip .wrap > div { padding: 20px 16px 18px 18px; border-left: 1px solid var(--drule); }
.strip .wrap > div:first-child { border-left: 0; padding-left: 0; }
.strip b { display: block; font-family: var(--fc); font-weight: 600; font-size: 44px; line-height: 1; }
.strip span { font-size: 13px; color: var(--dsub); font-weight: 700; }

/* 見出し */
.sec { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 15px; margin-bottom: 28px; }
.sec::before { content: ''; width: 4px; height: 16px; background: var(--ink); }
.sec::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: 0.25; }
.sec em { order: 3; font-style: normal; font-family: var(--fc); font-weight: 500; font-size: 12px; letter-spacing: 0.18em; opacity: 0.6; }
.dark .sec::before { background: var(--y); }
section { padding: 84px 0; }
h1, h2, .lead, .body, .faq summary, .faq p, .panel li { word-break: auto-phrase; }
h2 { font-weight: 900; font-size: clamp(27px, 3.6vw, 42px); line-height: 1.3; letter-spacing: -0.005em; }
.body { color: var(--sub); font-size: 16.5px; margin-top: 14px; max-width: 30em; }
.dark { background: linear-gradient(180deg, #232628 0%, #17191a 100%); color: var(--white); }
.dark .body { color: var(--dsub); }

/* 機能 */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; padding: 44px 0; border-top: 1px solid var(--rule); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature:last-of-type { padding-bottom: 0; }
.feature.flip .shot { order: -1; }
.feature .no { font-family: var(--fc); font-weight: 600; font-size: 64px; line-height: 0.9; }
.feature .no small { display: block; font-weight: 500; font-size: 12px; letter-spacing: 0.18em; opacity: 0.6; margin-bottom: 6px; }
.feature h2 { margin-top: 16px; }
.bars { list-style: none; display: grid; gap: 3px; margin-top: 24px; max-width: 30em; }
.bars li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; padding: 10px 14px; }
.bars li::after { content: '»'; font-family: var(--fc); opacity: 0.6; }
.bars li:last-child { background: #d4d6d8; color: var(--ink); }
.shot { justify-self: center; position: relative; }
.shot .phone { width: 300px; }
.shot::before { content: ''; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 26px, rgba(0, 0, 0, 0.055) 26px 27px); z-index: -1; }
.features { position: relative; z-index: 0; overflow: hidden; }

/* 料金 */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.panel { position: relative; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--drule); padding: 24px 22px 26px; }
.panel::before, .panel::after { content: ''; position: absolute; width: 12px; height: 12px; border: 2px solid var(--white); }
.panel::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.panel::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.panel h3 { font-weight: 900; font-size: 22px; display: flex; align-items: baseline; gap: 10px; }
.panel h3 small { font-family: var(--fc); font-weight: 500; font-size: 12px; letter-spacing: 0.18em; opacity: 0.6; }
.panel ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; font-weight: 700; font-size: 15.5px; }
.panel li { display: flex; gap: 10px; line-height: 1.6; }
.panel li::before { content: '✓'; font-weight: 900; flex: none; }
.panel.pro { background: var(--white); color: var(--ink); border-color: var(--white); }
.panel.pro::before, .panel.pro::after { border-color: var(--y); }
.price { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.price b { font-family: var(--fc); font-weight: 600; font-size: 40px; line-height: 1; }
.price span { font-size: 13.5px; font-weight: 700; color: var(--sub); }
.fine { font-size: 13.5px; color: var(--dsub); margin-top: 18px; }

/* よくある質問 */
.faq { display: grid; gap: 4px; max-width: 820px; }
.faq details { background: var(--paper2); border: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 900; font-size: 16.5px; padding: 16px 18px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--fc); font-size: 24px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq p { padding: 0 18px 18px; color: var(--sub); max-width: 40em; }

/* 下の帯 */
.footer { background: var(--ink); color: var(--white); padding: 44px 0 36px; font-size: 13.5px; }
.footer .logo { color: var(--white); }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 20px 0; font-weight: 700; }
.footer nav a { text-decoration: none; padding: 6px 0; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer p { color: var(--dsub); max-width: 46em; line-height: 1.75; }
.footer .rule { display: flex; align-items: center; gap: 10px; font-family: var(--fc); font-size: 11px; letter-spacing: 0.18em; opacity: 0.5; margin-top: 26px; }
.footer .rule::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: 0.5; }

/* 規約のページ */
.doc { padding: 56px 0 84px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-weight: 900; font-size: clamp(27px, 4vw, 38px); line-height: 1.3; margin-bottom: 8px; }
.doc h2 { font-size: 19px; margin: 40px 0 10px; display: flex; align-items: center; gap: 10px; }
.doc h2::before { content: ''; width: 4px; height: 16px; background: var(--ink); flex: none; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.9; }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { margin: 10px 0 10px 1.4em; }
.doc li { margin: 4px 0; }
.doc a { text-underline-offset: 4px; word-break: break-all; }
.doc .table { overflow-x: auto; margin: 16px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.doc th, .doc td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.75; }
.doc th { background: var(--ink); color: #fff; font-weight: 700; white-space: nowrap; }
.doc td:first-child { font-weight: 700; background: var(--paper2); min-width: 8.5em; }

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

@media (max-width: 860px) {
  section { padding: 60px 0; }
  .menu a.opt { display: none; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; gap: 8px; }
  .hero-text { padding-bottom: 36px; }
  .hero h1 { font-size: clamp(22px, 7.2vw, 50px); }
  .hero-phones { height: 400px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-phones .phone { width: 210px; border-radius: 32px; padding: 6px; }
  .hero-phones .phone img { border-radius: 26px; }
  .hero-phones .a { left: 0; }
  .hero-phones .b { right: 0; }
  .hero-phones .b { top: 54px; }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .strip .wrap > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip .wrap > div:nth-child(n + 3) { border-top: 1px solid var(--drule); }
  .strip b { font-size: 38px; }
  .feature { grid-template-columns: 1fr; gap: 34px; padding: 44px 0; }
  .feature.flip .shot { order: 0; }
  .shot .phone { width: 260px; }
  .shot::before { width: 400px; height: 400px; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .hero-phones .phone { width: 180px; }
  .hero-phones { height: 350px; }
  .soon { font-size: 15px; padding-left: 18px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
