/* City Inc の公開ページ（キャトルソフトウェア）。2026-11-22 作り直し。build.py が書き出す */
:root { --ink:#1f2540; --muted:#5b6178; --line:#e2e7f3; --blue:#1f5fe0; --navy:#14205a; --sky1:#1e6ff0; --sky2:#3fb3fa; --sun:#ffc93c; --bg:#f4f7fd; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--ink); line-height:1.8; -webkit-text-size-adjust:100%;
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP",system-ui,-apple-system,"Segoe UI",sans-serif; }
img { max-width:100%; display:block; }
a { color:var(--blue); }
.wrap { max-width:1080px; margin:0 auto; padding:0 22px; }

/* 上の帯 */
header.top { position:absolute; top:0; left:0; right:0; z-index:10; }
body.sub header.top { position:relative; background:linear-gradient(90deg,#0d3fc4,#1f7ff0); }
.bar { max-width:1080px; margin:0 auto; padding:14px 22px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.brand { display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; font-weight:800; font-size:18px; letter-spacing:.02em; }
.brand img { width:38px; height:38px; border-radius:10px; box-shadow:0 3px 10px rgba(0,20,80,.3); }
header nav { display:flex; flex-wrap:wrap; gap:6px; }
header nav a { color:#fff; text-decoration:none; font-size:13px; font-weight:700; padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.3); backdrop-filter:blur(6px); }
header nav a.on, header nav a:hover { background:#fff; color:var(--navy); }

/* ヒーロー */
.hero { position:relative; overflow:hidden; color:#fff; padding:96px 0 70px;
  background:radial-gradient(120% 90% at 70% 10%, #57c9ff 0%, #2a8af2 45%, #1446c8 100%); }
.hero .sky { position:absolute; inset:0; }
.hero .skyimg { position:absolute; right:-6%; bottom:-4%; width:78%; max-width:none; opacity:.28; filter:saturate(1.1); -webkit-mask-image:radial-gradient(closest-side, #000 55%, transparent); mask-image:radial-gradient(closest-side, #000 55%, transparent); }
.herogrid { position:relative; display:grid; grid-template-columns:1.15fr .85fr; gap:40px; align-items:center; }
.appicon { width:84px; height:84px; border-radius:20px; box-shadow:0 10px 26px rgba(0,20,80,.35); margin-bottom:16px; }
.kicker { display:inline-block; margin:0 0 10px; padding:4px 12px; border-radius:999px; background:rgba(255,255,255,.18); font-size:13px; font-weight:700; letter-spacing:.06em; }
.hero h1 { margin:0 0 14px; font-size:44px; line-height:1.3; font-weight:900; letter-spacing:.01em; text-shadow:0 3px 18px rgba(0,30,110,.35); }
.lead { margin:0 0 22px; font-size:17px; opacity:.95; max-width:34em; }
.meta { margin:12px 0 0; font-size:12.5px; opacity:.85; }
.herophone { position:relative; justify-self:center; }
.phone { border-radius:32px; padding:4px; background:#0b0b0f; box-shadow:0 24px 60px rgba(5,20,80,.38), inset 0 0 0 1.5px #3a3d46, inset 0 0 0 2.5px #0b0b0f; }
.phone img { display:block; width:100%; border-radius:28px; }
.phone.big { width:300px; transform:rotate(3deg); }
.peng { position:absolute; left:-110px; bottom:-20px; width:170px; filter:drop-shadow(0 12px 18px rgba(0,20,70,.35)); animation:bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform:translateY(-10px) rotate(-2deg); } }
.peng.point { animation:bobf 3.2s ease-in-out infinite; }   /* 指さすペンギンを左右反転して、画面のほうを指す */
@keyframes bobf { 0%,100% { transform:scaleX(-1); } 50% { transform:scaleX(-1) translateY(-10px) rotate(2deg); } }

/* トレーラー（押すまでは画像だけ。押すと YouTube を読み込む） */
.trailer { padding:64px 22px 10px; }
.video { position:relative; max-width:880px; margin:0 auto; aspect-ratio:16/9; border-radius:24px; overflow:hidden; background:#0e1430; box-shadow:0 18px 44px rgba(20,40,110,.22); }
.video button { all:unset; cursor:pointer; position:absolute; inset:0; display:block; }
.video button img { width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.video button:hover img { transform:scale(1.03); }
.video .play { position:absolute; left:50%; top:50%; width:84px; height:84px; margin:-42px 0 0 -42px; border-radius:50%; background:rgba(255,255,255,.95); box-shadow:0 10px 30px rgba(5,20,80,.35); transition:transform .2s; }
.video .play::after { content:""; position:absolute; left:34px; top:26px; border-style:solid; border-width:16px 0 16px 26px; border-color:transparent transparent transparent var(--blue); }
.video button:hover .play { transform:scale(1.08); }
.video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.trailer .more a { text-decoration:none; }

/* ストアのバッジ（公式の画像。無いときは文字のボタン） */
.badges { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.badges.center { justify-content:center; }
.badge { display:inline-flex; align-items:center; text-decoration:none; transition:transform .15s; }
.badge:hover { transform:translateY(-2px); }
.badge img { height:54px; width:auto; }
.badge span { display:none; }
.badge.nob img { display:none; }
.badge.nob span { display:inline-block; background:#0b0f1e; color:#fff; font-weight:800; font-size:14px; padding:13px 20px; border-radius:12px; border:1px solid rgba(255,255,255,.35); }
.soon { margin:10px 0 0; font-size:13px; font-weight:700; color:var(--sun); }
.cta .soon { color:#b26b00; }

/* 数字の帯 */
.stats { position:relative; z-index:2; margin-top:-34px; display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.stats div { background:#fff; border-radius:18px; padding:16px 14px; text-align:center; box-shadow:0 10px 30px rgba(20,40,110,.10); }
.stats b { display:block; font-size:26px; color:var(--blue); line-height:1.3; }
.stats span { font-size:12.5px; color:var(--muted); line-height:1.5; display:block; }

/* 見出し */
h2.sec { text-align:center; font-size:30px; margin:0 0 8px; font-weight:900; }
.secsub { text-align:center; color:var(--muted); margin:0 auto 26px; max-width:40em; }

/* 都市 */
.cities { padding:70px 0 40px; }
.citygrid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.city { position:relative; margin:0; border-radius:20px; overflow:hidden; box-shadow:0 12px 30px rgba(20,40,110,.14); background:#cfe6ff; }
.city img { width:100%; aspect-ratio:2.17; object-fit:cover; transition:transform .5s; }
.city:hover img { transform:scale(1.04); }
.city figcaption { position:absolute; left:12px; bottom:12px; background:rgba(255,255,255,.92); border-radius:12px; padding:6px 12px; line-height:1.4; }
.city b { display:block; font-size:15px; }
.city span { font-size:12px; color:var(--muted); }
.more { text-align:center; color:var(--muted); font-weight:700; margin:20px 0 0; }

/* 遊び方 */
.feats { padding:50px 22px 30px; }
.feat { display:grid; grid-template-columns:260px 1fr; gap:48px; align-items:center; margin:36px auto; max-width:860px; }
.feat.rev { grid-template-columns:1fr 260px; }
.feat.rev .phone { order:2; }
.feat .phone { width:260px; }
.num { display:inline-block; font-weight:900; color:#fff; background:linear-gradient(135deg,#ffb020,#ff7a1a); border-radius:10px; padding:2px 10px; font-size:14px; }
.ftext h3 { font-size:26px; margin:10px 0 8px; line-height:1.4; }
.ftext p { margin:0; color:#3c4361; font-size:16px; }

/* ペンギン */
.guide { padding:30px 0; }
.guidegrid { display:grid; grid-template-columns:200px 1fr; gap:30px; align-items:center; background:linear-gradient(135deg,#fff7e0,#ffe9c2); border-radius:28px; padding:28px 34px; }
.guidegrid img { width:190px; }
.guidegrid h2 { margin:0 0 8px; font-size:24px; }
.guidegrid p { margin:0; color:#4a4030; }

/* スクリーンショット */
.gallery { padding:50px 0 20px; }
.shots { list-style:none; margin:20px 0 0; padding:6px 22px 24px; display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; }
.shots li { flex:0 0 220px; scroll-snap-align:center; }
.shots .phone { border-radius:27px; padding:3.5px; box-shadow:0 12px 28px rgba(20,40,110,.22), inset 0 0 0 1.5px #3a3d46, inset 0 0 0 2.5px #0b0b0f; }
.shots .phone img { border-radius:23.5px; }
@media (min-width:1400px) { .shots { justify-content:center; } }

/* 最後の呼びかけ */
.cta { text-align:center; padding:56px 0 70px; }
.cta .appicon { margin:0 auto 14px; }
.cta h2 { font-size:30px; margin:0 0 4px; font-weight:900; }
.cta p { color:var(--muted); margin:0 0 20px; }

/* サポート・プライバシー */
.subhero { background:linear-gradient(180deg,#1f7ff0,#4cc3fb); color:#fff; padding:30px 0 60px; }
.subhero h1 { margin:0; font-size:30px; font-weight:900; }
.subbody { margin-top:-36px; padding-bottom:40px; }
.card { background:#fff; border:1px solid var(--line); border-radius:20px; padding:26px 28px; margin-bottom:18px; box-shadow:0 8px 24px rgba(20,40,110,.06); }
.card h2 { font-size:21px; margin:0 0 10px; }
.card h3 { font-size:16px; margin:22px 0 6px; }
.card p, .card li { font-size:15px; }
ul, ol { padding-left:1.3em; margin:6px 0; }
table { border-collapse:collapse; width:100%; font-size:14px; margin:8px 0; }
th, td { border:1px solid var(--line); padding:8px 10px; text-align:left; vertical-align:top; }
th { background:#f5f7fd; white-space:nowrap; }
.muted { color:var(--muted); font-size:13px; }

/* 下 */
footer { background:var(--navy); color:#c9d2f3; margin-top:20px; }
.foot { max-width:1080px; margin:0 auto; padding:26px 22px; text-align:center; }
.foot nav { display:flex; flex-wrap:wrap; justify-content:center; gap:6px 18px; margin-bottom:6px; }
.foot nav a { color:#fff; text-decoration:none; font-size:13px; }
.foot nav a.on { text-decoration:underline; }
.foot p { margin:0; font-size:12px; }

/* スマートフォン */
@media (max-width:860px) {
  .hero { padding:80px 0 60px; }
  .herogrid { grid-template-columns:1fr; text-align:center; gap:34px; }
  .herotext .appicon { margin:0 auto 14px; }
  .lead { margin-left:auto; margin-right:auto; }
  .badges { justify-content:center; }
  .hero h1 { font-size:32px; }
  .phone.big { width:240px; }
  .peng { width:120px; left:-70px; }
  .hero .skyimg { width:160%; right:-30%; bottom:auto; top:40%; }
  .stats { grid-template-columns:repeat(2,1fr); }
  .citygrid { grid-template-columns:1fr; }
  .trailer { padding:48px 14px 6px; }
  .video { border-radius:16px; }
  .video .play { width:64px; height:64px; margin:-32px 0 0 -32px; }
  .video .play::after { left:26px; top:20px; border-width:12px 0 12px 20px; }
  .feat, .feat.rev { grid-template-columns:1fr; gap:20px; text-align:center; }
  .feat .phone, .feat.rev .phone { order:0; width:220px; margin:0 auto; }
  .guidegrid { grid-template-columns:1fr; text-align:center; padding:24px; }
  .guidegrid img { margin:0 auto; width:150px; }
  h2.sec, .cta h2 { font-size:24px; }
  .ftext h3 { font-size:22px; }
  .brand span { display:none; }
  .brand img { width:32px; height:32px; }
  .bar { padding:12px 14px; }
  header nav { flex-wrap:nowrap; gap:4px; }
  header nav a { font-size:11.5px; padding:5px 9px; }
  .hero h1 { font-size:27px; }
  .lead { font-size:15px; }
}
