/* トップ ページ だけ の スタイル（style.css の 色 を つかう） */
:root { --hi: #f7d65a; --hi-fg: #3a3000; --soft: #ece5d5; --shadow: 0 1px 2px rgba(40, 30, 10, .08), 0 6px 20px rgba(40, 30, 10, .08); }
@media (prefers-color-scheme: dark) {
  :root { --soft: #2a2925; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35); }
}

body.top { overflow-x: hidden; }
.top main { max-width: none; margin: 0; padding: 0; }
.top header { display: block; margin: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* 上 の 帯 */
.bar { border-bottom: 1px solid var(--line); background: var(--card); }
.bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 52px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.bar .home { display: flex; align-items: center; gap: 8px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 15px; margin-right: auto; }
.bar .home img { width: 28px; height: 28px; border-radius: 7px; }
.bar nav { margin: 0; gap: 4px 16px; }
.bar nav a { text-decoration: none; }
.bar nav a[aria-current] { color: var(--fg); font-weight: 600; }

/* ヒーロー */
.hero { margin: 0; background: #f3eee2; line-height: 0; }
.hero picture, .hero img { display: block; width: 100%; }
.hero img { max-width: 1600px; height: auto; margin: 0 auto; aspect-ratio: 3840 / 1646; max-height: min(72vh, 600px); object-fit: cover; object-position: center; }
@media (max-width: 640px) { .hero img { aspect-ratio: 3 / 2; max-height: none; } }

/* アプリ の 見出し */
.product { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding-top: 28px; padding-bottom: 8px; }
.product .icon { width: 128px; height: 128px; border-radius: 22.5%; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.product h1 { font-size: 30px; line-height: 1.25; margin: 0; letter-spacing: .01em; }
.product .sub { color: var(--muted); font-size: 16px; margin: 4px 0 0; line-height: 1.5; }
.product .dev { margin: 6px 0 0; font-size: 15px; line-height: 1.5; }
.product .dev a { text-decoration: none; }
.product .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--hi); color: var(--hi-fg); font-weight: 700; font-size: 14px; line-height: 1; padding: 8px 14px; border-radius: 999px; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.product .iap { color: var(--muted); font-size: 12px; line-height: 1.4; }
@media (max-width: 560px) {
  .product { gap: 14px; padding-top: 20px; align-items: start; }
  .product .icon { width: 92px; height: 92px; }
  .product h1 { font-size: 22px; }
  .product .sub { font-size: 14px; }
  .product .dev { font-size: 14px; margin-top: 2px; }
  .product .row { margin-top: 10px; }
}

/* 情報 の 帯 */
.facts { list-style: none; margin: 20px 0 0; padding: 12px 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { flex: 1 1 0; min-width: 120px; text-align: center; padding: 6px 10px; position: relative; line-height: 1.35; }
.facts li + li::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; border-left: 1px solid var(--line); }
.facts .k { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.facts .v { display: block; font-size: 20px; font-weight: 700; margin: 4px 0 2px; color: var(--fg); }
.facts .c { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 560px) {
  .facts { padding: 4px 0; }
  .facts li { flex: 1 1 30%; min-width: 0; padding: 10px 4px; }
  .facts li:nth-child(4)::before { display: none; }
  .facts li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .facts .v { font-size: 18px; }
  .facts .c { font-size: 11px; }
}

/* 見出し */
.top h2 { font-size: 22px; margin: 40px 0 12px; line-height: 1.3; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 40px 0 12px; }
.sec-head h2 { margin: 0; }

/* 端末 の きりかえ */
.seg { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { font: inherit; font-size: 14px; line-height: 1; color: var(--fg); background: none; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; min-height: 34px; }
.seg button[aria-selected="true"] { background: var(--card); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.seg button:focus-visible, .nav-btn:focus-visible, .shots-row:focus-visible, .more:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* スクリーンショット */
.gallery { position: relative; }
.shots-row { list-style: none; margin: 0 -16px; padding: 4px 16px 14px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: thin; }
.shots-row li { flex: 0 0 auto; scroll-snap-align: start; }
.shots-row img { display: block; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #f3eee2; }
[data-device="iphone"] img { width: clamp(280px, 78vw, 620px); aspect-ratio: 2868 / 1320; }
[data-device="ipad"] img { width: clamp(200px, 56vw, 300px); aspect-ratio: 2064 / 2752; }
[data-device="duo"] img { width: clamp(260px, 78vw, 560px); aspect-ratio: 2853 / 2007; }
.nav-btn { position: absolute; top: calc(50% - 26px); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--fg); box-shadow: var(--shadow); font-size: 20px; line-height: 1; cursor: pointer; display: none; }
.nav-btn.prev { left: -8px; }
.nav-btn.next { right: -8px; }
.nav-btn[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) and (min-width: 720px) { .js .nav-btn { display: block; } }
.shots-note { margin: 2px 0 0; }

/* 説明 */
.desc { max-width: 760px; margin-top: 28px; }
.product .sub, .facts .c, .desc, .info dd { word-break: keep-all; overflow-wrap: anywhere; }
.desc .lead { font-size: 17px; font-weight: 600; margin: 0 0 16px; }
.desc p { margin: 0 0 14px; }
.desc h3 { font-size: 16px; margin: 22px 0 4px; }
.desc ul { padding-left: 1.2em; margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.desc blockquote { margin: 0 0 14px; padding: 2px 0 2px 14px; border-left: 3px solid var(--hi); }
.js .desc.clamped .body { max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.more { display: none; font: inherit; font-size: 15px; color: var(--accent); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.js .more { display: inline-block; }

/* 情報 の 表 */
.info { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; }
.info div { border-bottom: 1px solid var(--line); padding: 10px 0; }
.info dt { color: var(--muted); font-size: 13px; }
.info dd { margin: 0; font-size: 15px; line-height: 1.6; }

/* リンク */
.links { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.links li + li { border-top: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; text-decoration: none; }
.links a::after { content: "›"; color: var(--muted); font-size: 20px; line-height: 1; }

.top footer { margin: 48px 0 0; padding-bottom: 48px; }
