/* Eternity 公式サイト
   ページ内に style や script を書かない（CSP で禁止している）ので、見た目はすべてここ */
:root {
  --bg: #100f0e; --panel: #171513; --panel-2: #1f1c1a; --line: rgba(255, 246, 235, .1);
  --text: #ece6de; --muted: #9b938a; --accent: #e07a3c; --accent-2: #f0a068; --accent-ink: #19120c;
  --ok: #5fb87a;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f2ee; --panel: #ffffff; --panel-2: #efebe5; --line: rgba(40, 30, 20, .14);
    --text: #211c17; --muted: #6b6259; --accent: #b9501a; --accent-2: #8f3d13; --accent-ink: #fff;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); }
img { max-width: 100%; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* 見出し */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 11px; height: 62px; }
header .logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
header .logo img { width: 32px; height: 32px; border-radius: 8px; }
header .logo b { font-size: 18px; letter-spacing: .02em; }
header nav { margin-left: auto; display: flex; gap: 20px; font-size: 13.5px; align-items: center; }
header nav a { color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--text); }
header nav .open { color: var(--accent-ink); background: var(--accent); padding: 7px 14px; border-radius: 7px; font-weight: 700; }
header nav .open:hover { color: var(--accent-ink); filter: brightness(1.1); }

/* 一枚目 */
.hero { padding: 84px 0 70px; text-align: center; }
.hero img.mark { width: 108px; height: 108px; border-radius: 26px; margin-bottom: 28px;
  box-shadow: none; }
.hero h1 { font-size: clamp(30px, 5.4vw, 48px); line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.hero p.lead { color: var(--muted); margin-top: 18px; font-size: clamp(14.5px, 2.2vw, 17px); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 8px;
  font-weight: 700; font-size: 14.5px; text-decoration: none; border: 1px solid transparent;
  transition: filter .15s, border-color .15s;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.sub { background: var(--panel); border-color: var(--line); color: var(--text); }
.btn.sub:hover { border-color: var(--accent); }
.btn small { font-weight: 400; opacity: .75; font-size: 12px; }
.note { color: var(--muted); font-size: 12.5px; margin-top: 16px; }

/* 区切り */
section { padding: 64px 0; border-top: 1px solid var(--line); }
h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
p.sub { color: var(--muted); font-size: 14px; margin-bottom: 30px; }

/* できること */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.card svg { width: 22px; height: 22px; stroke: var(--accent-2); fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 13.5px; line-height: 1.8; }

/* 安全 */
.safe { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.safe div { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px; font-size: 13.5px; }
.safe b { display: block; font-size: 14px; margin-bottom: 2px; }
.safe span { color: var(--muted); font-size: 12.5px; }

/* はじめかた */
ol.steps { counter-reset: s; list-style: none; display: grid; gap: 12px; }
ol.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px 16px 58px; position: relative; font-size: 14px; }
ol.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px;
  width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; }
ol.steps small { display: block; color: var(--muted); font-size: 12.5px; }

/* ダウンロード */
.dls { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.dl { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.dl h3 { font-size: 16px; margin-bottom: 6px; }
.dl p { color: var(--muted); font-size: 13.5px; }
.dl .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.dl ul { margin: 16px 0 0 18px; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.dl code { font-size: 11.5px; word-break: break-all; }

/* BOT */
pre { background: #0b0c14; color: #e6e4f2; border: 1px solid var(--line); border-radius: 9px; padding: 16px;
  overflow-x: auto; font-size: 12.5px; line-height: 1.75; margin-top: 14px; }
code { font-family: Consolas, "Courier New", monospace; }
.after { margin-top: 18px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 64px; color: var(--muted); font-size: 12.5px; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* 見つからないページ */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.lost h1 { font-size: 26px; margin-bottom: 8px; }
.lost p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 640px) {
  header nav a:not(.open) { display: none; }
  .hero { padding: 56px 0 46px; }
  .cta .btn { width: 100%; justify-content: center; }
}

/* 実際の画面 */
#screens { padding-top: 0; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line);
             background: var(--panel); }
.shots figcaption { margin-top: 12px; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }
@media (max-width: 760px) {
  .shots { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .shots figure { scroll-snap-align: center; }
}

/* 料金 */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.price { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px; }
.price.pick { border-color: var(--accent); }
.price h3 { font-size: 16px; }
.price .yen { font-size: 30px; font-weight: 800; margin: 6px 0 10px; letter-spacing: -.01em; }
.price .yen small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.price ul { list-style: none; padding: 0; font-size: 14px; }
.price li { padding: 7px 0; border-top: 1px solid var(--line); }
.price li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }

/* 画面の見本を押すと、大きく見られる（スクリプトを使わず :target で開く） */
.shots a.zoom { display: block; cursor: zoom-in; }
.lightbox { display: none; }
.lightbox:target { display: flex; position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .88);
  flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; cursor: zoom-out; text-decoration: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 70px); width: auto; height: auto; border-radius: 16px; }
.lightbox span { color: #ddd; font-size: 13px; }

/* スマホ：文字と余白を小さくして、詰めて読めるように */
@media (max-width: 640px) {
  body { font-size: 14px; line-height: 1.7; }
  .wrap { padding: 0 16px; }
  header .wrap { height: 54px; }
  .hero { padding: 34px 0 28px; }
  .hero img.mark { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 16px; }
  .hero h1 { font-size: 26px; }
  .hero p.lead { margin-top: 10px; font-size: 14px; }
  .cta { margin-top: 20px; gap: 8px; }
  .btn { padding: 11px 18px; font-size: 14px; }
  .note { margin-top: 10px; font-size: 12px; }
  section { padding: 34px 0; }
  h2 { font-size: 19px; margin-bottom: 4px; }
  p.sub { font-size: 13px; margin-bottom: 16px; }
  .card { padding: 16px; }
  .card svg { margin-bottom: 6px; }
  .card h3 { font-size: 14.5px; }
  .card p, .safe div, ol.steps li { font-size: 13px; }
  .cards, .dls { gap: 10px; }
  .dl { padding: 16px; display: flex; flex-direction: column; }
  .dl.phone { order: -1; }
  .dl .row { margin-top: 12px; }
  .dl ul { margin-top: 10px; font-size: 12px; line-height: 1.7; }
  .shots { grid-template-columns: repeat(3, 62%); gap: 12px; }
  .shots figcaption { font-size: 12.5px; margin-top: 8px; }
  .price { padding: 16px; }
  .price .yen { font-size: 26px; }
}
@media (max-width: 640px) {
  .dl h3 { font-size: 15px; margin-bottom: 2px; }
  .dl p { font-size: 13px; }
}
