:root {
  --bg: #fff;
  --surface: #f7f7f5;
  --surface-strong: #efefeb;
  --text: #181818;
  --muted: #686868;
  --line: #deded8;
  --accent: #ee641f;
  --accent-soft: #fff0e7;
  --dark: #171717;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(238,100,31,.38);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  width: min(calc(100% - 32px), var(--max));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: .86rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.brand__logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.site-nav { min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a, .language-switch button { color: var(--muted); font: inherit; font-size: .86rem; white-space: nowrap; }
.site-nav a:hover, .language-switch button:hover, .language-switch button[aria-pressed="true"] { color: var(--accent); }
.language-switch { display: inline-flex; gap: 4px; padding-left: 4px; }
.language-switch button { border: 0; background: transparent; cursor: pointer; padding: 5px; }

.page { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.hero { padding: clamp(58px, 9vw, 112px) 0 58px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(36px, 7vw, 86px); align-items: center; }
.eyebrow { color: var(--accent); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; overflow-wrap: anywhere; }
h1 { margin: 12px 0 16px; font-size: clamp(2.65rem, 6vw, 5.2rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.02; }
h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 4.2vw, 3.15rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.18; }
h3 { margin-bottom: 8px; font-size: 1.08rem; font-weight: 500; line-height: 1.4; }
.hero__subtitle { margin-bottom: 16px; font-size: clamp(1.25rem, 3vw, 1.65rem); line-height: 1.45; }
.hero__copy, .section-copy { color: var(--muted); max-width: 760px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { min-height: 48px; padding: 0 19px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: .92rem; }
.button--primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button--dark { color: #fff; background: var(--dark); border-color: var(--dark); }
.button--disabled { cursor: default; color: var(--muted); background: var(--surface); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { padding: 6px 10px; color: var(--muted); background: var(--surface); border-radius: 999px; font-size: .78rem; }

.app-icon { width: 108px; height: 108px; border-radius: 24px; object-fit: cover; box-shadow: 0 16px 34px rgba(0,0,0,.12); }
.app-icon + .eyebrow { margin-top: 24px; }
.hero h1, .legal-hero h1 { white-space: normal; }
.hero-visual { min-width: 0; }
.screen-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 20px; }
.screen-strip::-webkit-scrollbar { display: none; }
.screen { flex: 0 0 min(72%, 255px); scroll-snap-align: center; border: 1px solid var(--line); border-radius: 25px; overflow: hidden; background: var(--surface); box-shadow: 0 17px 38px rgba(0,0,0,.10); }
.screen img { width: 100%; aspect-ratio: 1206/2622; object-fit: cover; object-position: top; }
.screen--placeholder { aspect-ratio: 1206/2622; display: grid; place-items: center; padding: 24px; color: var(--muted); text-align: center; background: linear-gradient(145deg, #fafafa, #eeeeea); }
.slider-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.slider-hint { color: var(--muted); font-size: .8rem; }
.slider-buttons { display: flex; gap: 8px; }
.slider-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 1.1rem; }

.section { padding: clamp(64px, 9vw, 108px) 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 30px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { min-height: 170px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card p, .card li { color: var(--muted); font-size: .94rem; }
.card__number { display: block; margin-bottom: 28px; color: var(--accent); font-size: .76rem; letter-spacing: .12em; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; margin: 0; padding: 0; list-style: none; }
.feature-list li { padding: 17px 0; border-top: 1px solid var(--line); }
.feature-list strong { display: block; margin-bottom: 4px; font-weight: 500; }
.feature-list span { color: var(--muted); font-size: .92rem; }
.feature-list strong > [data-lang] { color: inherit; font-size: inherit; }
.note { padding: 22px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 14px 14px 0; }
.note p:last-child { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { padding: 19px 4px; cursor: pointer; font-weight: 500; }
.faq p { padding: 0 4px 20px; color: var(--muted); }
.support { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.support-box { padding: 26px; border-radius: var(--radius); background: var(--surface); }
.support-box p:last-child { margin-bottom: 0; }
.community-panel {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid #f2c8ae;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(145deg, var(--accent-soft), #fff 72%);
}
.community-panel__copy p { color: var(--muted); }
.community-panel__copy p:last-of-type { margin-bottom: 0; }
.community-panel__copy .button { margin-top: 22px; }

.app-detail-page .hero { min-height: 650px; display: flex; align-items: center; }
.app-detail-page .hero__grid { width: 100%; }
.app-detail-page .section-head { max-width: 820px; }
.app-detail-page .card-grid { align-items: stretch; }
.app-detail-page .card { height: 100%; }
.app-detail-page .card p:last-child { margin-bottom: 0; }
.app-detail-page .support-box .button { margin-top: 12px; }

.availability-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(34px, 7vw, 82px);
  align-items: end;
  padding: clamp(30px, 6vw, 58px);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(238,100,31,.3), transparent 38%),
    var(--dark);
  border-radius: calc(var(--radius) + 10px);
}
.availability-panel .eyebrow { color: #ff9b61; }
.availability-panel h2 { color: #fff; }
.availability-panel__copy { margin-bottom: 26px; color: rgba(255,255,255,.68); max-width: 650px; }
.availability-panel .button { border-color: rgba(255,255,255,.24); }
.availability-panel .button--disabled { color: rgba(255,255,255,.58); background: rgba(255,255,255,.08); }
.availability-facts { display: grid; gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.12); }
.availability-fact { padding: 17px 19px; background: rgba(24,24,24,.92); }
.availability-fact span { display: block; margin-bottom: 3px; color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.availability-fact strong { color: #fff; font-size: .96rem; font-weight: 500; }

.detail-note {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: var(--surface);
  font-size: .9rem;
}
.detail-note p:last-child { margin-bottom: 0; }

.app-index-hero { max-width: 760px; }
.community-feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 clamp(58px, 8vw, 92px);
  padding: clamp(34px, 7vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(238,100,31,.36), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(238,100,31,.15), transparent 30%),
    #171717;
  border-radius: clamp(26px, 4vw, 42px);
  box-shadow: 0 30px 72px rgba(0,0,0,.2);
}
.community-feature::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(44vw, 480px);
  aspect-ratio: 1;
  right: min(-18vw, -150px);
  top: min(-22vw, -190px);
  border: clamp(46px, 8vw, 90px) solid rgba(255,255,255,.045);
  border-radius: 50%;
}
.community-feature__top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
}
.community-feature .eyebrow { color: rgba(255,255,255,.78); }
.community-feature h2 {
  max-width: none;
  margin: 12px 0 16px;
  color: #fff;
  font-size: clamp(2.5rem, 5.6vw, 4.9rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.055em;
}
.community-feature__lead {
  max-width: 680px;
  margin-bottom: 24px;
  color: rgba(255,255,255,.76);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  line-height: 1.6;
}
.community-feature__apps { display: flex; flex-wrap: wrap; gap: 8px; }
.community-feature__apps span {
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
  font-size: .82rem;
}
.community-priority {
  padding: 26px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(12px);
}
.community-priority__label {
  display: block;
  margin-bottom: 16px;
  color: #ff9c65;
  font-size: .73rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.community-priority strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
}
.community-priority p { margin: 0; color: rgba(255,255,255,.62); font-size: .86rem; line-height: 1.7; }
.supporter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(34px, 6vw, 62px); }
.supporter-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  background: rgba(255,255,255,.045);
}
.supporter-card__number { display: block; margin-bottom: 34px; color: #ff9458; font-size: .7rem; letter-spacing: .14em; }
.supporter-card h3 { margin-bottom: 10px; color: #fff; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.supporter-card p { margin: 0; color: rgba(255,255,255,.62); font-size: .88rem; line-height: 1.75; }
.community-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  padding: 18px 18px 18px 22px;
  border-radius: 24px;
  background: #fff;
  color: var(--text);
}
.community-cta__message { display: flex; align-items: center; gap: 16px; min-width: 0; }
.community-cta__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  color: #fff;
  background: var(--accent);
}
.community-cta__icon svg { width: 28px; height: 28px; fill: currentColor; }
.community-cta__message span:not(.community-cta__icon) { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.community-cta__message strong { display: block; margin-top: 3px; font-size: clamp(.96rem, 2vw, 1.2rem); font-weight: 500; }
.community-feature__button {
  min-height: 54px;
  padding: 0 20px 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, #f57932, var(--accent));
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 12px 26px rgba(238,100,31,.24);
  transition: transform .2s ease, box-shadow .2s ease;
}
.community-feature__button:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(238,100,31,.32); }
.app-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 100px; }
.app-card { min-width: 0; min-height: 420px; padding: clamp(26px, 5vw, 44px); border: 1px solid var(--line); border-radius: 30px; display: flex; flex-direction: column; align-items: flex-start; transition: transform .2s ease, border-color .2s ease; }
.app-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.app-card__icon { width: 82px; height: 82px; margin-bottom: 32px; border-radius: 19px; object-fit: cover; box-shadow: 0 12px 28px rgba(0,0,0,.11); }
.app-card__icon-placeholder { width: 82px; height: 82px; margin-bottom: 32px; border: 1px solid var(--line); border-radius: 19px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); font-size: 1rem; letter-spacing: .08em; }
.app-card h2 { margin-top: auto; margin-bottom: 12px; }
.app-card p { color: var(--muted); }

.legal-page { max-width: 820px; }
.legal-hero { padding: 78px 0 48px; }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.legal-meta { color: var(--muted); }
.legal-section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-section h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.02em; }
.legal-section li, .legal-section p { color: #424242; }
.legal-section ul { padding-left: 1.3em; }
.english-policy { margin-top: 54px; padding-top: 54px; border-top: 4px solid var(--accent); }

.contact-page { max-width: 820px; padding-bottom: 80px; }
.contact-hero { padding: 76px 0 42px; }
.contact-hero h1 { font-size: clamp(2.4rem, 6vw, 4.7rem); }
.contact-form, .verification-panel { padding: clamp(22px, 5vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form-field { margin-bottom: 24px; }
.form-field label { display: block; margin-bottom: 8px; font-size: .92rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid #cfcfc8;
  border-radius: 13px;
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
  font: inherit;
  line-height: 1.5;
}
.form-field textarea { resize: vertical; min-height: 180px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid rgba(238,100,31,.2); border-color: var(--accent); }
.form-help { margin: 7px 0 0; color: var(--muted); font-size: .8rem; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 24px; color: #444; font-size: .88rem; }
.form-consent input { margin-top: 6px; accent-color: var(--accent); }
.form-submit { border: 0; cursor: pointer; font: inherit; }
.form-message { margin-bottom: 20px; padding: 15px 17px; border-radius: 13px; }
.form-message--error { color: #801f10; background: #fff0ec; border: 1px solid #f0b7aa; }
.form-message--notice { color: #285536; background: #edf8f0; border: 1px solid #b7d8c0; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.verification-panel h2 { margin-top: 10px; }
.verification-form { margin-top: 26px; }
.verification-form .form-field { max-width: 280px; }
.verification-form input { font-size: 1.4rem; letter-spacing: .25em; }
.restart-form { margin-top: 18px; }
.text-button { padding: 0; border: 0; color: var(--muted); background: transparent; text-decoration: underline; cursor: pointer; font: inherit; font-size: .86rem; }
.contact-privacy { margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--line); }
.contact-privacy h2 { font-size: 1.45rem; }
.contact-privacy p { color: var(--muted); font-size: .9rem; }
.contact-privacy a { color: var(--accent); text-decoration: underline; }
.hero-title--long { font-size: clamp(2.2rem, 5vw, 4.3rem); }

.site-footer { margin-top: 30px; padding: 34px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand__logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: var(--accent); }

[data-lang="en"] { display: none; }
html.lang-en [data-lang="ja"] { display: none; }
html.lang-en [data-lang="en"] { display: revert; }

@media (max-width: 980px) {
  .app-index-grid { grid-template-columns: repeat(2, 1fr); }
  .community-feature__top { grid-template-columns: 1fr; align-items: start; }
  .community-priority { max-width: 480px; }
}

@media (max-width: 780px) {
  .site-header__inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0 10px;
  }
  .site-header { position: static; }
  .site-header__inner,
  .footer-grid { gap: 12px; }
  .brand,
  .site-nav { width: 100%; }
  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 8px;
  }
  .language-switch { padding-left: 0; }
  .hero__grid, .support, .community-panel, .availability-panel { grid-template-columns: 1fr; }
  .app-detail-page .hero { min-height: 0; }
  .hero-visual { order: 2; }
  .card-grid, .app-index-grid, .supporter-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .app-card { min-height: 350px; }
  .community-cta { align-items: stretch; flex-direction: column; }
}

@media (max-width: 480px) {
  .page, .site-header__inner { width: min(calc(100% - 22px), var(--max)); }
  .brand { font-size: .73rem; }
  .brand__logo { width: 26px; height: 26px; border-radius: 7px; }
  .site-nav { gap: 7px 12px; }
  .site-nav a, .language-switch button { font-size: .76rem; }
  .hero { padding-top: 48px; }
  .hero-title--long { font-size: clamp(2.15rem, 11vw, 3rem); }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .button {
    width: 100%;
    min-width: 0;
  }
  .meta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .pill { text-align: center; }
  .screen { flex-basis: 78%; }
  .card { min-height: 0; }
  .availability-panel { padding: 27px 22px; border-radius: 26px; }
  .app-index-grid { gap: 14px; }
  .community-feature { padding: 30px 22px; }
  .community-feature h2 { font-size: clamp(2.25rem, 11vw, 3.25rem); }
  .community-priority { padding: 22px; }
  .supporter-card__number { margin-bottom: 22px; }
  .community-cta { padding: 18px; }
  .community-feature__button { width: 100%; text-align: center; }
  .app-card { min-height: 0; padding: 22px 18px 20px; border-radius: 24px; }
  .app-card__icon,
  .app-card__icon-placeholder { width: 74px; height: 74px; margin-bottom: 24px; border-radius: 17px; }
  .app-card p { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
