/* Joji Dev のサイトの見た目。色・字体は Courier のゲームに合わせる */
@font-face { font-family: "Lilita One"; font-weight: 400; font-display: swap; src: url(/assets/fonts/lilita-one-latin.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-display: swap; src: url(/assets/fonts/nunito-latin.woff2) format("woff2"); }

:root {
  --bg: #FFFBF2;
  --surface: #FFFFFF;
  --ink: #1D2B53;
  --muted: #5A6A8E;
  --line: #E7E2D6;
  --navy: #1D2B53;
  --blue: #1E7BF2;
  --red: #F23D51;
  --yellow: #FFD23F;
  --grass: #9CCB5E;
  --sky: linear-gradient(180deg, #4FBDFF 0%, #8FD6FF 55%, #D8F2FF 100%);
  --sky-soft: linear-gradient(180deg, #CFEBFF 0%, #EAF6FF 100%);
  --card-shadow: 0 1px 0 rgba(29, 43, 83, .06), 0 10px 30px -12px rgba(29, 43, 83, .25);
  --radius: 22px;
  --display: "Lilita One", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --body: "Nunito", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1530;
    --surface: #17214A;
    --ink: #EEF2FF;
    --muted: #A5B0D0;
    --line: #26325E;
    --sky: linear-gradient(180deg, #0B2A5B 0%, #144A8C 60%, #1D5FA6 100%);
    --sky-soft: linear-gradient(180deg, #13285A 0%, #0E1530 100%);
    --card-shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 14px 34px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--navy); overscroll-behavior-y: none; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.8; font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
a { color: var(--blue); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* 言語：html[data-lang] に合わない方を隠す */
html[data-lang="ja"] [lang="en"]:not(html),
html[data-lang="en"] [lang="ja"]:not(html) { display: none !important; }

/* ===== 頭 ===== */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
header.site .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--navy); color: var(--yellow);
  font: 24px/1 var(--display); padding-top: 2px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25);
}
@media (prefers-color-scheme: dark) { .mark { background: var(--yellow); color: var(--navy); } }
.brand b { font: 22px/1 var(--display); letter-spacing: .01em; }
.crumb { flex: 1; min-width: 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.lang-btn {
  margin-left: auto;
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; flex: none;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit;
}
.lang-btn span { padding: 2px 10px; border-radius: 999px; font: 800 13px/1.6 var(--body); color: var(--muted); }
html[data-lang="ja"] .lang-btn .l-ja, html[data-lang="en"] .lang-btn .l-en { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) {
  html[data-lang="ja"] .lang-btn .l-ja, html[data-lang="en"] .lang-btn .l-en { background: var(--yellow); color: var(--navy); }
}

/* ===== 空の帯（ヒーロー） ===== */
.sky { position: relative; background: var(--sky); color: var(--navy); overflow: hidden; isolation: isolate; }
@media (prefers-color-scheme: dark) { .sky { color: #fff; } }
.sky::before, .sky::after {
  content: ""; position: absolute; z-index: -1; border-radius: 999px; background: rgba(255, 255, 255, .55);
  filter: blur(1px);
}
.sky::before { width: 220px; height: 64px; top: 70px; left: -40px; box-shadow: 120px -24px 0 -8px rgba(255, 255, 255, .5); }
.sky::after { width: 180px; height: 52px; top: 150px; right: 6%; box-shadow: -90px 30px 0 -10px rgba(255, 255, 255, .45); }
@media (prefers-color-scheme: dark) { .sky::before, .sky::after { background: rgba(255, 255, 255, .08); } }
.sky .wave { display: block; width: 100%; height: 56px; margin-top: -1px; }
.sky .wave path { fill: var(--bg); }

/* ===== トップ ===== */
.home-hero { padding: 72px 0 8px; text-align: center; }
.home-hero h1 {
  margin: 0; font: clamp(56px, 12vw, 104px)/1 var(--display); letter-spacing: .01em;
  color: var(--yellow); -webkit-text-stroke: 0; text-shadow: 0 4px 0 var(--navy), 0 8px 0 rgba(29, 43, 83, .18);
}
.home-hero p { margin: 22px auto 0; max-width: 34em; font-size: clamp(16px, 2.4vw, 19px); font-weight: 700; }
.home-hero .pill-row { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .75); color: var(--navy); font-weight: 800; font-size: 14px;
}
@media (prefers-color-scheme: dark) { .pill { background: rgba(255, 255, 255, .12); color: #fff; } }

.section { padding: 56px 0; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 22px; }
.section-title h2 { margin: 0; font: clamp(28px, 4.4vw, 38px)/1.1 var(--display); letter-spacing: .01em; }
.section-title small { color: var(--muted); font-weight: 800; font-size: 14px; }

.app-feature {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px;
  background: var(--sky); border-radius: 28px; overflow: hidden; color: var(--navy);
  text-decoration: none; box-shadow: var(--card-shadow); position: relative; isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (prefers-color-scheme: dark) { .app-feature { color: #fff; } }
.app-feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(29, 43, 83, .45); }
.app-feature .info { padding: 36px 0 36px 36px; }
.app-feature .head { display: flex; align-items: center; gap: 16px; }
.app-feature .head img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 6px 16px rgba(29, 43, 83, .25); }
.app-feature .head h3 { margin: 0; font: 40px/1 var(--display); }
.app-feature .head span { display: block; font-weight: 800; font-size: 15px; margin-top: 6px; opacity: .85; }
.app-feature .desc { margin: 20px 0 22px; font-weight: 600; max-width: 30em; }
.more {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3);
}
@media (prefers-color-scheme: dark) { .more { background: var(--yellow); color: var(--navy); } }
.app-feature .peek { align-self: end; display: flex; justify-content: center; gap: 14px; padding-top: 28px; margin-bottom: -60px; }
.app-feature .peek .phone { width: 46%; max-width: 190px; }
.app-feature .peek .phone:nth-child(2) { transform: translateY(36px); }


.contact-card {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--surface); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--card-shadow);
}
.contact-card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #FFF1C2; color: var(--navy); flex: none; }
@media (prefers-color-scheme: dark) { .contact-card .ic { background: #3A3413; color: var(--yellow); } }
.contact-card p { margin: 0; flex: 1; min-width: 220px; color: var(--muted); font-weight: 600; }
.contact-card a.mail { font-weight: 800; font-size: 18px; }

/* 開発中のアプリの一覧 */
.app-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.app-card {
  display: flex; gap: 16px; align-items: flex-start; background: var(--surface);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--card-shadow);
}
.app-card img { width: 72px; height: 72px; border-radius: 17px; flex: none; box-shadow: 0 4px 12px rgba(29, 43, 83, .18); }
.app-card h3 { margin: 6px 0 4px; font-size: 19px; font-weight: 900; line-height: 1.35; }
.app-card p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.7; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 800; padding: 1px 9px; border-radius: 999px; background: var(--sky-soft); color: var(--blue); }
.chip.dev { background: #FFF1C2; color: #8A5B00; }
@media (prefers-color-scheme: dark) { .chip { color: #8EC2FF; } .chip.dev { background: #3A3413; color: var(--yellow); } }

/* ===== スマホの枠 ===== */
.phone {
  border-radius: 30px; padding: 7px; background: #0E1530;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .15) inset, 0 20px 40px -18px rgba(14, 21, 48, .6);
}
.phone img { width: 100%; border-radius: 24px; aspect-ratio: 1320 / 2868; object-fit: cover; }

/* ===== Courier のページ ===== */
.app-hero { padding: 48px 0 0; }
.app-hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 28px; }
.app-hero .logo { width: min(440px, 100%); filter: drop-shadow(0 6px 0 rgba(29, 43, 83, .12)); }
.app-hero .tagline { margin: 18px 0 0; font: clamp(24px, 3.6vw, 34px)/1.35 var(--body); font-weight: 900; }
.app-hero .lead { margin: 14px 0 0; font-weight: 600; max-width: 30em; font-size: 17px; }
.app-hero .cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; line-height: 1.15; opacity: .9; cursor: default;
}
.store small { display: block; font-size: 11px; font-weight: 700; opacity: .8; }
.store b { font-size: 17px; font-weight: 800; }
.cta .note { font-weight: 800; font-size: 14px; }
.app-hero .shot { display: flex; justify-content: center; position: relative; padding-top: 10px; margin-bottom: -40px; }
.app-hero .shot .phone { width: min(300px, 78%); transform: rotate(4deg); }
.app-hero .shot .phone.back { position: absolute; width: min(250px, 64%); left: 2%; top: 64px; transform: rotate(-7deg); opacity: .95; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.point { background: var(--surface); border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--card-shadow); }
.point .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; }
.point:nth-child(1) .ic { background: #DCEBFF; color: var(--blue); }
.point:nth-child(2) .ic { background: #FFE0E4; color: var(--red); }
.point:nth-child(3) .ic { background: #FFF1C2; color: #B07400; }
@media (prefers-color-scheme: dark) {
  .point:nth-child(1) .ic { background: #16336A; color: #8EC2FF; }
  .point:nth-child(2) .ic { background: #4A1A28; color: #FF95A3; }
  .point:nth-child(3) .ic { background: #3A3413; color: var(--yellow); }
}
.point h3 { margin: 0 0 6px; font-size: 19px; font-weight: 900; line-height: 1.4; }
.point p { margin: 0; color: var(--muted); font-weight: 600; font-size: 15px; }

.quote {
  text-align: center; font: clamp(26px, 4.6vw, 40px)/1.35 var(--body); font-weight: 900; margin: 0 0 30px;
}
.quote em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 .1em; }
@media (prefers-color-scheme: dark) { .quote em { background: linear-gradient(transparent 62%, rgba(255, 210, 63, .45) 62%); } }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery figure { margin: 0; }
.gallery figcaption { text-align: center; margin-top: 10px; font-weight: 800; font-size: 14px; color: var(--muted); }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mode { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: var(--card-shadow); }
.mode .ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--sky-soft); color: var(--blue); }
.mode b { display: block; font-weight: 900; line-height: 1.4; }
.mode span { display: block; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.6; margin-top: 2px; }

.help { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.help a {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--card-shadow); color: var(--ink); text-decoration: none;
  transition: transform .2s ease;
}
.help a:hover { transform: translateY(-2px); }
.help .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-soft); color: var(--blue); flex: none; }
.help b { display: block; font-size: 18px; font-weight: 900; }
.help span { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
.help .arrow { margin-left: auto; color: var(--muted); }

/* ===== 文書（ポリシー・サポート） ===== */
.doc-hero { background: var(--sky-soft); padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.doc-hero .app { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; color: var(--ink); text-decoration: none; }
.doc-hero .app img { width: 32px; height: 32px; border-radius: 8px; }
.doc-hero h1 { margin: 14px 0 6px; font-size: clamp(28px, 5vw, 40px); line-height: 1.25; font-weight: 900; }
.doc-hero p { margin: 0; color: var(--muted); font-weight: 700; }
.doc { padding: 36px 0 24px; }
.doc h2 { font-size: 20px; font-weight: 900; margin: 34px 0 10px; line-height: 1.4; display: flex; gap: 10px; align-items: baseline; }
.doc h2 .n {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: var(--navy); color: #fff; font: 15px/1 var(--display); padding-top: 1px; transform: translateY(-2px);
}
@media (prefers-color-scheme: dark) { .doc h2 .n { background: var(--yellow); color: var(--navy); } }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 1.3em; }
.doc li { margin: 2px 0; }
.doc .intro { font-size: 17px; font-weight: 600; }
.box { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--card-shadow); }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: var(--card-shadow); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 900; position: relative; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 3px solid var(--muted); border-bottom: 3px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-weight: 600; }
.mail-card { margin-top: 28px; text-align: center; background: var(--sky); border-radius: 26px; padding: 34px 24px; color: var(--navy); }
@media (prefers-color-scheme: dark) { .mail-card { color: #fff; } }
.mail-card h2 { justify-content: center; margin: 0 0 6px; font: 30px/1.2 var(--display); }
.mail-card p { margin: 0 0 16px; font-weight: 700; }
.mail-card .more { text-decoration: none; }
.mail-card small { display: block; margin-top: 16px; font-weight: 600; opacity: .85; font-size: 13px; }

/* ===== 足 ===== */
footer.site { flex: none; background: var(--navy); color: #C9D3F0; padding: 34px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; }
@media (prefers-color-scheme: dark) { footer.site { background: #080D20; } }
footer.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer.site .brand { color: #fff; }
footer.site .mark { background: var(--yellow); color: var(--navy); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer.site a { color: #C9D3F0; text-decoration: none; font-weight: 700; }
footer.site a:hover { color: #fff; }
footer.site .copy { width: 100%; color: #8E9BC4; font-size: 13px; }

/* ===== スマホ ===== */
@media (max-width: 860px) {
  .app-feature { grid-template-columns: 1fr; }
  .app-feature .info { padding: 28px 24px 0; }
  .app-feature .peek { margin-bottom: -90px; padding: 8px 24px 0; }
  .app-hero .grid { grid-template-columns: 1fr; }
  .app-hero { text-align: left; }
  .points { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr 1fr; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 4px 20px 14px; }
  .gallery figure { flex: 0 0 62%; scroll-snap-align: center; }
  .help { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .gallery { margin: 0 -16px; padding: 4px 16px 14px; }
  .home-hero { padding-top: 56px; }
  .section { padding: 44px 0; }
  .modes { grid-template-columns: 1fr; }
  .app-feature .head img { width: 64px; height: 64px; }
  .app-feature .head h3 { font-size: 34px; }
  .crumb { display: none; }
  .brand b { font-size: 20px; }
  .app-hero .shot .phone { width: 64%; }
  .app-hero .shot .phone.back { width: 52%; top: 50px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
