/* ゆる資産とらっかー — アプリの「生成り」テーマから。
   余白・丸い文字・控えめな色。派手にしない、急かさない。 */
:root {
  --bg: #f4f0e6;        /* 生成り: background */
  --surface: #e9e2d3;   /* 生成り: surface（カード） */
  --paper: #faf7f0;
  --ink: #3a3a34;
  --dim: #6f6c62;       /* 背景に対して 4.5:1 以上 */
  --line: #ddd5c3;
  --moss: #607354;      /* 生成り: accent / positive */
  --coral: #aa5544;     /* 生成り: negative */
  --radius: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Zen Maru Gothic", "M PLUS Rounded 1c",
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  font-size: 15px; line-height: 1.95; letter-spacing: .02em;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--moss); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 6px; }
b, strong { font-weight: 700; }

.skip {
  position: absolute; top: -60px; left: 16px; z-index: 20;
  padding: 8px 14px; border-radius: 999px; background: var(--moss); color: #fff;
  font-size: 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---- 上のバー ---- */
.topbar {
  display: flex; align-items: center; gap: 6px; min-height: 58px;
  padding: 0 max(16px, env(safe-area-inset-left));
  background: rgba(244, 240, 230, .9); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.topbar a {
  padding: 6px 12px; border-radius: 999px;
  color: var(--dim); font-size: 12px; text-decoration: none; white-space: nowrap;
}
.topbar a:hover { color: var(--ink); background: var(--surface); }
.topbar a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.topbar .home {
  display: flex; align-items: center; gap: 7px; margin-right: auto; padding-left: 0;
  color: var(--dim); font-size: 11px; letter-spacing: .1em;
}
.topbar .home:hover { background: none; }
.topbar .home img { width: 16px; opacity: .5; }

/* ---- はじめの画面 ---- */
.hero { padding: 56px 20px 0; text-align: center; }
.hero .icon {
  width: 76px; height: 76px; margin: 0 auto 26px; border-radius: 18px;
  box-shadow: 0 10px 30px rgba(58, 58, 52, .10);
}
.hero h1 { display: flex; justify-content: center; }
.hero h1 img { width: min(380px, 84vw); }
.hero .tag { margin-top: 18px; font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.hero .sub { margin-top: 8px; color: var(--dim); font-size: 13px; }

/* ホームの景色のような丘と、寝ているねこ */
.meadow { position: relative; max-width: 720px; margin: 34px auto 0; height: 190px; }
.meadow svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.meadow .cat { position: absolute; left: 50%; bottom: 18px; width: 190px; transform: translateX(-50%); }
.meadow .say {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  color: var(--dim); font-size: 12px; white-space: nowrap;
}

/* ---- 本文 ---- */
.wrap { width: min(100% - 32px, 760px); margin: 0 auto; }
main.wrap { padding-bottom: 20px; }
section { padding: 56px 0 8px; }
h2 {
  margin-bottom: 18px; font-size: 20px; letter-spacing: .06em; line-height: 1.5;
}
h2 .en { display: block; margin-bottom: 4px; color: var(--moss); font-size: 11px; letter-spacing: .2em; }
h3 { margin: 22px 0 4px; font-size: 15px; line-height: 1.6; }
h4 { margin: 20px 0 4px; font-size: 14px; }
p + p { margin-top: 12px; }
ul { padding-left: 1.3em; }
li + li { margin-top: 5px; }
.note, .updated { color: var(--dim); font-size: 12.5px; }
.lead { font-size: 16px; line-height: 1.9; }
.num { font-feature-settings: "tnum"; letter-spacing: .04em; }

/* 画面のならび */
.screens {
  display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 16px;
  margin-top: 26px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.screens figure { scroll-snap-align: start; }
.screens img {
  width: 100%; border-radius: 22px; background: var(--surface);
  box-shadow: 0 10px 26px rgba(58, 58, 52, .10);
}
.screens figcaption { margin-top: 10px; color: var(--dim); font-size: 12px; text-align: center; }

/* カード */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 6px; }
.card { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); }
.card h3 { margin: 0 0 4px; }
.card p { color: var(--dim); font-size: 13px; line-height: 1.8; }
.card .keys { color: var(--moss); font-weight: 700; letter-spacing: .12em; }

/* マスコット */
.mascots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
.mascot {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 14px 20px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); text-align: center;
}
.mascot img { height: 64px; width: auto; object-fit: contain; }
.mascot h3 { margin: 6px 0 0; }
.mascot p { color: var(--dim); font-size: 12.5px; line-height: 1.7; }
.mascot .price {
  margin-top: 2px; padding: 2px 12px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 11px; letter-spacing: .08em;
}

/* 表 */
.spec { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { padding: 11px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 34%; color: var(--dim); font-weight: 400; }

/* リンクのボタン */
/* App Store バッジ。Apple が配布しているアートワークをそのまま置く(assets/style.css と同じ指定)。
   色・比率・内部の余白は変えない。高さだけ指定し、周囲の余白はバッジ高さの 1/4 以上空ける */
.badge-appstore { display: inline-block; line-height: 0; margin: 16px 16px 0 0; border-radius: 8px; }
.badge-appstore img { height: 52px; width: auto; }

.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; background: var(--surface); color: var(--ink);
  font-size: 13px; text-decoration: none; transition: background .15s, color .15s;
}
.links a:hover { background: var(--moss); color: #fff; }

.contact { margin-top: 16px; padding: 18px 22px; border-radius: var(--radius); background: var(--surface); }
.contact .addr { font-size: 15px; font-weight: 700; letter-spacing: .03em; overflow-wrap: anywhere; }

/* 規約・ポリシー・サポート */
.doc { width: min(100% - 32px, 680px); }
.doc > section:first-child { padding-top: 40px; }
.doc h1 { font-size: clamp(21px, 5vw, 26px); letter-spacing: .05em; line-height: 1.5; }
.doc h1 + .updated, .doc h1 + .lead { margin-top: 10px; }
.doc h2 { margin-top: 38px; margin-bottom: 10px; font-size: 16px; }
.doc section > h2:first-child { margin-top: 0; }
.doc .card-list { margin-top: 12px; }

/* 英語 */
section.en { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
section.en > h2 { font-size: 18px; }
section.en h3 { color: var(--dim); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

.wrap.foot { padding-bottom: 48px; }
footer {
  margin-top: 40px; padding: 28px 0; border-top: 1px solid var(--line);
  color: var(--dim); font-size: 11px; text-align: center;
}
footer .row { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
footer .row a { color: var(--dim); text-decoration: none; }
footer .row a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .topbar { gap: 2px; overflow-x: auto; }
  .topbar a { padding: 6px 9px; font-size: 11px; }
  .hero { padding-top: 40px; }
  .hero .tag { font-size: 15px; }
  .meadow { height: 160px; }
  .meadow .cat { width: 160px; }
  .meadow .say { bottom: 82px; }
  section { padding-top: 44px; }
  .screens { grid-template-columns: repeat(4, 62%); }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .mascots { grid-template-columns: 1fr; }
  .mascot { flex-direction: row; text-align: left; padding: 16px 18px; gap: 14px; }
  .mascot img { height: 44px; width: 96px; }
  .mascot .body { flex: 1; }
  .mascot h3 { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
