:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #6b665e;
  --line: #e6e0d5;
  --accent: #e0674a;
  --tint: color-mix(in srgb, var(--accent) 14%, var(--bg));
  --radius: 22px;
  --shadow: 0 1px 2px rgb(40 30 10 / .06), 0 8px 24px -12px rgb(40 30 10 / .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131210;
    --surface: #1d1b18;
    --ink: #f1ede6;
    --muted: #a39d93;
    --line: #2e2b27;
    --tint: color-mix(in srgb, var(--accent) 22%, var(--bg));
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:lang(en) body, html:lang(en) { line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; text-wrap: balance; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.block { padding-block: 40px; }
.sec-title { font-size: 1.35rem; font-weight: 800; letter-spacing: .01em; margin-bottom: 20px; }

/* header */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.brand-dot { width: 14px; height: 14px; border-radius: 5px; background: conic-gradient(from 200deg, #f28b6b, #f6c65b, #7fc99a, #6aa9e9, #b28be8, #f28b6b); }
.lang { font-size: .875rem; text-decoration: none; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang:hover { border-color: var(--muted); }

/* hero */
.hero { overflow: hidden; }
body { overflow-x: hidden; }
.app-promo, .desc { overflow-wrap: anywhere; }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-block: 72px 48px; }
.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.01em; }
html:lang(en) .hero h1 { letter-spacing: -.03em; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 34em; margin: 20px 0 0; }
.mosaic { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; transform: rotate(-8deg) scale(1.05); }
.mosaic img { width: 100%; aspect-ratio: 1; border-radius: 23%; box-shadow: var(--shadow); animation: pop .6s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i) * 35ms); }
.mosaic img:nth-child(5n+2) { transform: translateY(18px); }
.mosaic img:nth-child(5n+4) { transform: translateY(-14px); }
@keyframes pop { from { opacity: 0; scale: .6; } }
@media (prefers-reduced-motion: reduce) { .mosaic img { animation: none; } }

/* icons */
.icon { width: 64px; height: 64px; border-radius: 23%; flex: none; box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 4px 12px -4px rgb(0 0 0 / .2); }
.icon.sm { width: 56px; height: 56px; }
.icon.lg { width: 112px; height: 112px; }

/* featured */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 460px; text-decoration: none; border-radius: var(--radius); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 26%, var(--surface)), var(--surface) 65%); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.feat:hover { transform: translateY(-4px); }
.feat-text { display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 0; }
.feat-head { display: flex; gap: 14px; align-items: center; }
.feat-head > span { display: flex; flex-direction: column; min-width: 0; }
.feat-promo { font-size: .95rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { font-weight: 700; font-size: .9rem; }
.feat-shots { position: relative; flex: 1; min-height: 240px; margin-top: 24px; }
.feat-shots img { position: absolute; top: 6px; width: min(46%, 190px); border-radius: 14px; box-shadow: var(--shadow); transition: transform .35s ease; }
.feat-shots img:first-child { left: 8%; transform: rotate(-5deg); }
.feat-shots img:nth-child(2) { right: 8%; top: 26px; transform: rotate(5deg); }
.feat:hover .feat-shots img:first-child { transform: rotate(-7deg) translateY(-10px); }
.feat:hover .feat-shots img:nth-child(2) { transform: rotate(7deg) translateY(-6px); }

/* all apps */
.sec-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 8px; }
.sec-row .sec-title { margin-bottom: 0; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats a { font-size: .85rem; text-decoration: none; padding: 5px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.cats a:hover { border-color: var(--muted); }
.cat { padding-top: 28px; scroll-margin-top: 72px; }
.cat-title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: var(--muted); }
.cat-title span { font-weight: 600; font-size: .8rem; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.card { display: flex; gap: 16px; align-items: flex-start; padding: 18px; text-decoration: none; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.card:hover { background: var(--tint); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.card-name { font-weight: 800; font-size: 1.05rem; line-height: 1.35; }
.card-sub { font-size: .875rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip { margin-top: 8px; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.chip.paid { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* app detail */
.app-hero { background: linear-gradient(180deg, var(--tint), var(--bg)); padding-block: 28px 16px; }
.back { display: inline-block; font-size: .9rem; color: var(--muted); text-decoration: none; margin-bottom: 28px; }
.back:hover { color: var(--ink); }
.app-head { display: flex; gap: 24px; align-items: center; }
.app-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 900; }
.app-sub { margin: 6px 0 0; font-size: 1.1rem; font-weight: 600; }
.app-meta { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.app-promo { font-size: 1.1rem; max-width: 40em; margin: 24px 0; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; transition: transform .15s ease; }
.store:hover { transform: scale(1.03); }
.store svg { width: 20px; height: 20px; }
.coming { display: inline-block; margin: 0; padding: 12px 24px; border-radius: 999px; font-weight: 700;
  background: var(--surface); border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); }

.shots-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 12px; }
.shots { display: flex; gap: 16px; width: max-content; padding-inline: max(20px, calc((100vw - 1120px) / 2 + 20px)); }
.shots img { height: min(560px, 72vh); width: auto; border-radius: 18px; scroll-snap-align: center; box-shadow: var(--shadow); background: var(--surface); }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.desc h3 { font-size: 1.05rem; font-weight: 800; margin: 28px 0 8px; }
.desc p { margin: 0 0 14px; }
.desc ul { margin: 0 0 14px; padding-left: 1.2em; }
.desc li { margin-bottom: 4px; }
.desc li::marker { color: var(--accent); }
aside { position: sticky; top: 80px; }
.info { margin: 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 6px 20px; }
.info div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.info div:last-child { border-bottom: 0; }
.info dt { color: var(--muted); flex: none; }
.info dd { margin: 0; min-width: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.aside-links { margin: 16px 4px 0; font-size: .9rem; }

/* privacy */
.narrow { max-width: 780px; }
.icon.md { width: 72px; height: 72px; }
.policy-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; }
.policy-hero .app-meta { margin: 0 0 2px; }
.prose { overflow-wrap: anywhere; }
.prose h2 { font-size: 1.25rem; font-weight: 800; margin: 40px 0 12px; padding-top: 8px; }
.prose h3 { font-size: 1.05rem; font-weight: 800; margin: 28px 0 8px; }
.prose h4 { font-size: 1rem; font-weight: 700; margin: 20px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); }
.prose a { text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.prose > :first-child { color: var(--muted); font-size: .9rem; }
.page-title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 900; }
.policy-list { display: grid; gap: 10px; margin-top: 28px; }
.policy-row { display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; text-decoration: none; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: background .2s ease, border-color .2s ease; }
.policy-row:hover { background: var(--tint); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.policy-row .icon { width: 44px; height: 44px; }
.policy-row .card-name { flex: 1; }
.chev { color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-block: 28px; font-size: .85rem; color: var(--muted); }
.foot p { margin: 0; }
.foot .tm { flex-basis: 100%; font-size: .75rem; }

.nf { padding-block: 120px; text-align: center; }
.nf h1 { font-size: 4rem; font-weight: 900; }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; padding-block: 48px 24px; }
  .mosaic { grid-template-columns: repeat(7, 1fr); gap: 10px; transform: rotate(-6deg); margin-inline: -30px; }
  .feats { grid-template-columns: 1fr; }
  .feat { min-height: 0; }
  .feat-shots { min-height: 300px; }
  .detail { grid-template-columns: 1fr; gap: 16px; }
  aside { position: static; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .shots { padding-inline: 16px; }
  .grid { grid-template-columns: 1fr; }
  .app-head { gap: 16px; }
  .icon.lg { width: 88px; height: 88px; }
  .feat-shots { min-height: 260px; }
  .shots img { height: 460px; }
  .store { width: 100%; justify-content: center; }
}
