/* Kirimochi Games — kirimochi-games.pages.dev */
@font-face {
  font-family: 'KirimochiRound';
  src: url('fonts/round-900.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'KirimochiRound';
  src: url('fonts/round-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #1b1740;
  --ink-soft: #4b4775;
  --muted: #7a7799;
  --paper: #fff9f0;
  --card: #ffffff;
  --line: #ece4d6;
  --pink: #ff477e;
  --blue: #00bbf9;
  --yellow: #fee440;
  --mint: #00f5d4;
  --purple: #9b5de5;
  --radius: 22px;
  --round: 'KirimochiRound', 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', sans-serif;
  --sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', 'Meiryo', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
}
a { color: var(--ink); }
img { max-width: 100%; display: block; }

.wrap { width: min(1040px, 100% - 40px); margin: 0 auto; }

/* ---------- ヘッダー ---------- */
.site-head { padding: 22px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--round); font-weight: 900; font-size: 22px; letter-spacing: .02em; }
.site-nav { display: flex; gap: 20px; font-family: var(--round); font-weight: 700; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }

/* ---------- トップのヒーロー ---------- */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero h1 {
  font-family: var(--round); font-weight: 900;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1.1; margin: 0 0 18px; letter-spacing: .01em;
}
.hero h1 .dot { color: var(--pink); }
.hero p.lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--ink-soft); margin: 0; max-width: 34em; }
.hero-blocks { position: absolute; right: max(20px, calc(50% - 520px)); top: 40px; display: grid; grid-template-columns: repeat(3, 54px); gap: 10px; transform: rotate(8deg); opacity: .95; }
.hero-blocks i { width: 54px; height: 54px; border-radius: 15px; display: block; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12), inset 0 8px 0 rgba(255,255,255,.3); }
.hero-blocks i:nth-child(1) { background: var(--pink); }
.hero-blocks i:nth-child(2) { background: var(--yellow); }
.hero-blocks i:nth-child(3) { background: transparent; box-shadow: none; }
.hero-blocks i:nth-child(4) { background: var(--blue); }
.hero-blocks i:nth-child(5) { background: var(--pink); }
.hero-blocks i:nth-child(6) { background: var(--mint); }
.hero-blocks i:nth-child(7) { background: transparent; box-shadow: none; }
.hero-blocks i:nth-child(8) { background: var(--purple); }
.hero-blocks i:nth-child(9) { background: var(--yellow); }
@media (max-width: 760px) {
  .hero { padding-top: 150px; }
  .hero-blocks { top: 8px; right: 20px; grid-template-columns: repeat(3, 36px); gap: 7px; }
  .hero-blocks i { width: 36px; height: 36px; border-radius: 10px; }
}

/* ---------- セクション ---------- */
section { padding: 24px 0 56px; }
.sec-title { font-family: var(--round); font-weight: 900; font-size: 26px; margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.sec-title::before { content: ''; width: 14px; height: 14px; border-radius: 5px; background: var(--blue); box-shadow: 18px 0 0 var(--yellow); margin-right: 18px; }

/* ゲームカード */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.game-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: start;
  box-shadow: 0 10px 30px rgba(27, 23, 64, .06);
  transition: transform .2s, box-shadow .2s;
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(27, 23, 64, .1); }
.game-card img { width: 88px; height: 88px; border-radius: 22px; }
.game-card h3 { margin: 0; font-family: var(--round); font-weight: 900; font-size: 21px; line-height: 1.3; }
.game-card .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ink-soft); background: #f4efe6; border-radius: 999px; padding: 1px 10px; margin: 6px 0 8px; }
.game-card p { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }
.game-card .links { display: flex; flex-wrap: wrap; gap: 8px; }
.game-card.placeholder { border-style: dashed; background: transparent; box-shadow: none; grid-template-columns: 1fr; color: var(--muted); place-items: center; min-height: 160px; text-align: center; font-family: var(--round); font-weight: 700; }
.game-card.placeholder:hover { transform: none; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--round); font-weight: 700; font-size: 14px; text-decoration: none;
  padding: 9px 18px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); background: transparent;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #2d2870; }
.btn.soon { border-color: var(--line); color: var(--muted); background: #f4efe6; pointer-events: none; }
.btn-lg { font-size: 16px; padding: 13px 26px; }

/* About */
.about { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.about p { margin: 0 0 10px; }
.about p:last-child { margin: 0; }

/* ---------- アプリ紹介ページ ---------- */
.app-hero { display: grid; grid-template-columns: 1fr minmax(240px, 300px); gap: 48px; align-items: center; padding: 40px 0 64px; }
.app-hero .icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 12px 28px rgba(27,23,64,.25); margin-bottom: 20px; }
.app-hero h1 { font-family: var(--round); font-weight: 900; font-size: clamp(38px, 7vw, 60px); line-height: 1.1; margin: 0 0 12px;
  background: linear-gradient(90deg, #0ea5e9, #c026d3 55%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-hero .catch { font-family: var(--round); font-weight: 700; font-size: clamp(18px, 3vw, 22px); margin: 0 0 14px; }
.app-hero .desc { color: var(--ink-soft); margin: 0 0 26px; }
.app-hero .cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.app-hero .note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.phone { border-radius: 34px; overflow: hidden; border: 8px solid #0f172a; box-shadow: 0 30px 60px rgba(15,23,42,.35); background: #0f172a; }
@media (max-width: 760px) {
  .app-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; }
  .app-hero .phone { max-width: 260px; margin: 0 auto; }
}

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.feature b { display: block; font-family: var(--round); font-weight: 900; font-size: 17px; margin-bottom: 6px; }
.feature span { font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; display: block; }
.feature::before { content: ''; display: block; width: 26px; height: 26px; border-radius: 8px; margin-bottom: 12px; background: var(--c, var(--pink)); box-shadow: inset 0 -4px 0 rgba(0,0,0,.12), inset 0 5px 0 rgba(255,255,255,.3); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shots img { border-radius: 22px; border: 6px solid #0f172a; background: #0f172a; }
@media (max-width: 640px) {
  .shots { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots img { scroll-snap-align: center; }
}

.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.tiers li { font-family: var(--round); font-weight: 900; font-size: 14px; padding: 4px 12px; border-radius: 999px; background: #1b1740; color: #fff; }
.tiers li small { font-weight: 700; opacity: .7; margin-left: 4px; }

.info-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); font-size: 15px; }
.info-table th, .info-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 30%; font-family: var(--round); font-weight: 700; color: var(--ink-soft); background: #fdfaf4; }

/* ---------- 文書ページ（プライバシーポリシー） ---------- */
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 5vw, 48px); margin: 16px 0 64px; }
.doc h1 { font-family: var(--round); font-weight: 900; font-size: clamp(24px, 4vw, 32px); line-height: 1.4; margin: 0 0 6px; }
.doc h2 { font-family: var(--round); font-weight: 900; font-size: 19px; margin: 2.2em 0 .6em; padding-left: 14px; border-left: 5px solid var(--blue); line-height: 1.4; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc ul { padding-left: 1.3em; }
.doc hr { border: 0; border-top: 1px dashed var(--line); margin: 48px 0 8px; }
.doc .en { font-size: 14.5px; color: var(--ink-soft); }

.crumbs { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.crumbs a { color: var(--ink-soft); }

/* ---------- フッター ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

/* 折り返し防止・スマホ調整 */
.brand span, .site-nav a, .btn { white-space: nowrap; }
@media (max-width: 520px) {
  .site-head { padding: 16px 0; }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 19px; }
  .site-nav { gap: 14px; font-size: 13px; }
}
@media (max-width: 400px) {
  .site-nav { display: none; }
}
@media (max-width: 520px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; padding-bottom: 2px; background: transparent; font-size: 13px; }
  .info-table td { padding-top: 0; }
}

/* メールアドレス表示 */
.mail { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mail-btn { font-size: 13px; padding: 6px 14px; }
.mail-addr { font-weight: 700; word-break: break-all; }
.mail-copy { font-size: 12px; padding: 4px 12px; border-width: 1.5px; }
.mail-text { font-size: 13px; color: var(--muted); }
