:root {
  color-scheme: light;
  --paper: #fff8ef;
  --surface: #ffffff;
  --ink: #172b4d;
  --muted: #65748a;
  --coral: #e85f43;
  --coral-dark: #c9472f;
  --teal: #267d7a;
  --teal-soft: #e9f7f5;
  --gold: #f6c95c;
  --line: #eadfd3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 7%, rgba(246, 201, 92, 0.16), transparent 22rem),
    radial-gradient(circle at 90% 18%, rgba(38, 125, 122, 0.12), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
}

[hidden] { display: none !important; }

a { color: var(--teal); text-underline-offset: 0.2em; }
a:hover { color: #155e5b; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: white;
}

.header-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}

nav { display: flex; gap: 18px; }
nav a { font-size: 0.92rem; font-weight: 700; text-decoration: none; }

.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.language-switch button {
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.language-switch button[aria-pressed="true"] {
  background: var(--teal);
  color: white;
  box-shadow: 0 2px 8px rgba(38, 125, 122, 0.2);
}

main,
footer {
  width: min(1080px, calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  max-width: 820px;
  min-height: 540px;
  padding: clamp(80px, 13vw, 150px) 0 100px;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 span {
  color: var(--coral);
  font-size: 0.5em;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
}

.actions,
.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.actions a,
.app-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  background: var(--coral);
  color: white;
  box-shadow: 0 10px 24px rgba(232, 95, 67, 0.2);
}
.primary-button:hover { background: var(--coral-dark); color: white; }
.secondary-button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

.content-card,
.apps-section {
  margin-bottom: 30px;
  padding: clamp(26px, 6vw, 58px);
  scroll-margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 45px rgba(23, 43, 77, 0.07);
}

h2 { margin: 0 0 14px; font-size: clamp(1.65rem, 4vw, 2.45rem); line-height: 1.3; }

.app-card {
  margin-top: 30px;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.platform {
  margin: 0;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h3 { margin: 2px 0 0; font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.35; }

.app-description {
  max-width: 760px;
  margin: 24px 0 0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 14px 17px;
  border-radius: 14px;
  background: var(--teal-soft);
  font-weight: 700;
}

.app-actions { margin-top: 26px; }
.content-card p:last-child { margin-bottom: 0; }

footer {
  margin-top: 60px;
  padding: 35px 0 45px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
footer p { margin: 5px 0; }
.copyright { font-size: 0.82rem; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  .header-actions { display: block; }
  nav { justify-content: flex-end; }
  .language-switch { width: fit-content; margin: 11px 0 0 auto; }
  .hero { min-height: auto; padding: 80px 0; }
}

@media (max-width: 540px) {
  .site-header { display: block; }
  .header-actions { margin-top: 17px; }
  nav { justify-content: flex-start; }
  .language-switch { margin-left: 0; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
