/* WARPHOLE. 紹介ページ。色は設計書 7 章（LOVE rhetoric の基本色と、アイコンの宇宙の配色）に合わせる */
:root {
  --space: #080A18;
  --space-2: #10142A;
  --yellow: #F2C430;
  --vermilion: #C8321E;
  --bg: #F4F2EE;
  --surface: #FFFFFF;
  --surface-2: #ECE9E3;
  --ink: #141414;
  --muted: #5C5A55;
  --line: rgba(20, 20, 20, .12);
  --accent: #141414;
  --wm-ink: url("/img/wordmark-ink.png");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --vermilion: #D3341F;
    --bg: #0B0C14;
    --surface: #14162280;
    --surface-2: #181B2A;
    --ink: #F4F2EE;
    --muted: #A7A59F;
    --line: rgba(244, 242, 238, .14);
    --accent: #F2C430;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.75 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
:lang(en) body, body:lang(en) { font-feature-settings: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* 上の帯 */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--space) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  color: #F4F2EE;
  border-bottom: 1px solid rgba(244, 242, 238, .08);
}
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.top .brand img.icon { width: 28px; height: 28px; border-radius: 7px; }
.top .brand img.wm { height: 15px; width: auto; }
.top nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.top nav a { text-decoration: none; padding: 6px 10px; border-radius: 999px; color: rgba(244, 242, 238, .82); white-space: nowrap; }
.top nav a:hover { color: #fff; background: rgba(244, 242, 238, .08); }
.top nav a.lang { border: 1px solid rgba(244, 242, 238, .22); }
.top nav a[aria-current="page"] { color: var(--yellow); }
@media (max-width: 520px) { .top nav a.opt { display: none; } }

/* 冒頭（宇宙） */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 78% 18%, #1A1F45 0%, var(--space) 58%);
  color: #F4F2EE;
  padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 8vw, 88px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .75;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, #fff 99%, transparent),
    radial-gradient(1px 1px at 28% 68%, #fff 99%, transparent),
    radial-gradient(1.4px 1.4px at 44% 12%, #fff 99%, transparent),
    radial-gradient(1px 1px at 63% 82%, #fff 99%, transparent),
    radial-gradient(1.2px 1.2px at 86% 44%, #fff 99%, transparent),
    radial-gradient(1px 1px at 92% 8%, #fff 99%, transparent),
    radial-gradient(1px 1px at 6% 88%, #fff 99%, transparent),
    radial-gradient(1.3px 1.3px at 52% 52%, #fff 99%, transparent),
    radial-gradient(1px 1px at 74% 26%, #fff 99%, transparent),
    radial-gradient(1px 1px at 34% 40%, #fff 99%, transparent);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero .appicon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 18px 48px rgba(0, 0, 0, .45), 0 0 0 1px rgba(242, 196, 48, .18); margin-bottom: 28px; }
.hero h1 { margin: 0; line-height: 1; }
.hero h1 img { width: min(440px, 100%); }
.hero .tag { margin: 22px 0 0; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.5; font-weight: 600; letter-spacing: .01em; }
.hero .lead { margin: 14px 0 0; color: rgba(244, 242, 238, .78); max-width: 34em; }
.hero .status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; line-height: 1.5;
  background: rgba(242, 196, 48, .1); color: #F6DD8A; border: 1px solid rgba(242, 196, 48, .28);
}
.hero .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); flex: none; }
.hero .by { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 13px; color: rgba(244, 242, 238, .62); }
.hero .by img { width: 22px; height: 22px; }
.hero .phone { justify-self: center; width: min(300px, 78vw); }

/* 端末の枠（実物の画面を入れる） */
.device {
  margin: 0;
  border-radius: 46px; padding: 10px;
  background: linear-gradient(145deg, #2A2C36, #0C0D12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.device img { border-radius: 37px; width: 100%; }
.device.land { border-radius: 34px; padding: 9px; }
.device.land img { border-radius: 26px; }
.device.mac { border-radius: 14px; padding: 0; background: none; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.device.mac img { border-radius: 14px; }

/* 節 */
section { padding: clamp(56px, 8vw, 96px) 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.3; margin: 0 0 14px; letter-spacing: -.005em; }
h3 { font-size: 18px; line-height: 1.45; margin: 0 0 6px; }
.intro { color: var(--muted); max-width: 40em; margin: 0 0 36px; }
p { margin: 0 0 1em; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 20px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--space); color: var(--yellow); margin-bottom: 14px; }
.card .ic svg { width: 20px; height: 20px; }

/* 画面の一覧 */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(250px, 66vw); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; margin: 0 -4px; scrollbar-width: thin; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots figcaption { font-size: 13.5px; color: var(--muted); margin-top: 12px; line-height: 1.55; }
.shots .device { border-radius: 38px; padding: 8px; }
.shots .device img { border-radius: 31px; }
.wide-shots { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-top: 36px; }
.wide-shots figure { margin: 0; }
.wide-shots figcaption { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* 仕組みの図 */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; margin: 8px 0 28px; }
.flow .node { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; }
.flow .node strong { display: block; font-size: 16px; }
.flow .node span { display: block; font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 4px; }
.flow .node.relay { background: transparent; border-style: dashed; }
.flow .arrow { display: grid; place-items: center; color: var(--muted); font-size: 20px; }
.flow .direct { grid-column: 1 / -1; text-align: center; font-size: 13.5px; border-radius: 12px; padding: 10px 14px; background: var(--space); color: #F4F2EE; }
.flow .direct b { color: var(--yellow); font-weight: 600; }
@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); height: 24px; }
}

/* 箇条 */
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.list li { padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line); position: relative; }
.list li:first-child { border-top: 1px solid var(--line); }
.list li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); }
.list li b { display: block; }
.list li span { color: var(--muted); font-size: 15px; }

/* モード */
.modes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.mode { border-radius: 18px; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.mode .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mode h3 { margin-top: 6px; }
.mode p { color: var(--muted); font-size: 15px; margin: 0; }
.mode.proled { background: var(--space); color: #F4F2EE; border-color: rgba(242, 196, 48, .35); }
.mode.proled .k { color: var(--yellow); }
.mode.proled p { color: rgba(244, 242, 238, .78); }
.hid {
  margin-top: 22px; border-radius: 18px; padding: 22px 24px;
  border: 1px solid rgba(242, 196, 48, .45); background: color-mix(in srgb, var(--yellow) 9%, transparent);
}
.hid h3 { display: flex; gap: 10px; align-items: center; }
.hid ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 15px; }
.hid li { margin: 4px 0; }
.hid code { font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; color: var(--ink); }

/* 表 */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
th { width: 30%; font-weight: 600; }
td { color: var(--muted); }
.tablewrap { overflow-x: auto; }
@media (max-width: 560px) {
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack th { border-bottom: 0; padding-bottom: 2px; }
  table.stack td { padding-top: 0; }
}

/* 運営者 */
.org { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.org .mark { width: 64px; height: 64px; }
.org dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15px; }
.org dt { color: var(--muted); }
.org dd { margin: 0; }
@media (max-width: 520px) { .org { grid-template-columns: 1fr; } .org dl { grid-template-columns: 1fr; gap: 0; } .org dd { margin-bottom: 8px; } }

.mail { font-weight: 600; }
.mail .at::before { content: "@"; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn:hover { opacity: .9; }

/* 文書（プライバシー・サポート） */
.doc-head { background: var(--space); color: #F4F2EE; padding: clamp(44px, 7vw, 72px) 0 clamp(36px, 5vw, 52px); }
.doc-head h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.25; margin: 0 0 8px; }
.doc-head p { margin: 0; color: rgba(244, 242, 238, .72); }
.doc { padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 88px); }
.doc h2 { font-size: 22px; margin: 44px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 24px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin: 6px 0; }
.doc .muted { color: var(--muted); }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 16px 0 20px; }
.doc .box p:last-child, .doc .box ul:last-child { margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-weight: 400; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 16px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* 下の帯 */
footer { background: var(--space); color: rgba(244, 242, 238, .7); font-size: 13.5px; padding: 40px 0 48px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
footer .lr { display: flex; align-items: center; gap: 10px; color: #F4F2EE; }
footer .lr img { width: 24px; height: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .phone { width: min(280px, 72vw); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* 実物の画面の切り抜き（Mac の映像の部分を除いたもの） */
.crop { border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .06); }
.shots { align-items: start; }
.wideshot { margin: 30px 0 0; }
.wideshot .crop { border-radius: 18px; }
.wideshot figcaption { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* 狭い画面の見出しと上の帯 */
.top .brand { flex: none; }
h1, h2, h3, .tag { text-wrap: balance; }
:lang(ja) h2, :lang(ja) h3, :lang(ja) .tag, :lang(ja) summary, :lang(ja) .doc-head p { word-break: auto-phrase; }
@media (max-width: 560px) {
  .top .brand img.wm { display: none; }
  .hero .phone { width: min(240px, 64vw); }
  .hero .appicon { width: 80px; height: 80px; border-radius: 18px; }
}

/* 画面の一覧：広い画面では 5 枚を並べ、狭い画面では横に送る（影が切れないよう余白を取る） */
.shots { padding: 12px 16px 40px; margin: 0 -16px; scroll-padding-inline: 16px; }
.crop, .shots .device { box-shadow: 0 14px 36px rgba(0, 0, 0, .22), 0 0 0 1px rgba(255, 255, 255, .06); }
@media (min-width: 1000px) {
  .shots { grid-auto-flow: row; grid-template-columns: 1.05fr repeat(4, 1fr); overflow: visible; padding: 12px 0 8px; margin: 0; }
}

/* Mac のメニューバーのパネル */
.macshot { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; margin-top: 48px; }
.macshot figure { margin: 0; }
.macshot img { width: 100%; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .25)); }
.macshot h3 { font-size: 22px; margin-bottom: 10px; }
.macshot p { color: var(--muted); }
@media (max-width: 720px) { .macshot { grid-template-columns: 1fr; } .macshot figure { max-width: 300px; margin-inline: auto; } }
