:root {
  color-scheme: light;
  --bg: #f6f9ff;
  --surface: #ffffff;
  --ink: #10203a;
  --muted: #566581;
  --line: #dbe4f2;
  --teal: #1257c9;
  --teal-dark: #0d3f96;
  --mint: #e2ecff;
  --coral: #e8873a;
  --gold: #f0a91e;
  --shadow: 0 24px 70px rgba(16, 32, 58, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(246, 249, 255, 0.92);
  border-bottom: 1px solid rgba(219, 228, 242, 0.85);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.site-footer,
.site-footer div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand img,
.download-band > img {
  border-radius: 20%;
  box-shadow: 0 12px 32px rgba(18, 87, 201, 0.24);
}

.nav {
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a,
.site-footer a {
  transition: color 160ms ease;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--teal);
}

.language-link {
  color: var(--teal);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
  min-height: calc(100svh - 75px);
  padding: clamp(44px, 8vw, 108px) clamp(18px, 5vw, 72px) clamp(40px, 7vw, 92px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3rem, 9vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.lead {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
}

.store-badge img {
  display: block;
  width: 180px;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
}

.phone {
  position: relative;
  width: min(100%, 380px);
  margin: 0 auto;
  padding: 16px;
  border: 1px solid #273632;
  border-radius: 38px;
  background: #0d1b30;
  box-shadow: var(--shadow);
}

.phone-speaker {
  width: 72px;
  height: 6px;
  margin: 4px auto 14px;
  border-radius: 999px;
  background: #2b3d5c;
}

.app-screen {
  min-height: 590px;
  padding: 18px;
  border-radius: 28px;
  background: #0d1b30;
  overflow: hidden;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #24332f;
  font-weight: 800;
}

.home-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--teal);
  color: #fff;
  font-size: 1.5rem;
}

.tree-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tree-item strong,
.detail-card strong {
  display: block;
  line-height: 1.25;
}

.tree-item small {
  color: var(--muted);
}

.item-icon,
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0;
}

.item-icon::before {
  content: "";
  width: 24px;
  height: 18px;
  border-radius: 4px;
  background: currentColor;
  clip-path: polygon(0 20%, 38% 20%, 46% 0, 100% 0, 100% 100%, 0 100%);
}

.thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 45%),
    linear-gradient(135deg, var(--coral), var(--gold));
}

.detail-card {
  margin-top: 20px;
  padding: 14px;
  border-radius: 8px;
  background: #0d1b30;
  color: #fff;
}

.detail-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.photo-strip span {
  min-height: 76px;
  border-radius: 8px;
  background: linear-gradient(135deg, #9adcca, #e95d4f);
}

.photo-strip span:nth-child(2) {
  background: linear-gradient(135deg, #ffc64b, #027c71);
}

.photo-strip span:nth-child(3) {
  background: linear-gradient(135deg, #7ab7ff, #17211e);
}

.content-band,
.split-section,
.download-band,
.policy {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.content-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article {
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}

.split-section p {
  color: var(--muted);
}

.use-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.use-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.use-list span {
  color: var(--coral);
  font-weight: 900;
}

.download-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin: 0 clamp(18px, 5vw, 72px) clamp(34px, 5vw, 64px);
  padding: clamp(24px, 4vw, 38px);
  border-radius: 8px;
  background: #0d1b30;
  color: #fff;
}

.store-link {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: #fff;
  color: #0d1b30;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease, transform 160ms ease;
}

.store-link:hover {
  background: var(--mint);
  transform: translateY(-1px);
}

.download-band .eyebrow,
.download-band p {
  color: #b9d3ff;
}

.download-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.download-band p {
  margin: 8px 0 0;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  gap: 18px;
}

.policy {
  max-width: 920px;
  margin: 0 auto;
}

.policy h1 {
  font-size: clamp(2.5rem, 7vw, 4.4rem);
}

.policy h2 {
  margin-top: 38px;
  font-size: 1.45rem;
}

.policy p,
.policy li {
  color: var(--muted);
}

.policy-card {
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.policy-card a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .download-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-band {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.5rem);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 0;
  }

  .phone {
    border-radius: 30px;
    padding: 12px;
  }

  .app-screen {
    min-height: 520px;
    border-radius: 22px;
    padding: 14px;
  }

  .tree-item {
    grid-template-columns: 44px 1fr;
  }

  .item-icon,
  .thumb {
    width: 44px;
    height: 44px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* --- 端末プレビュー（実物のスクリーンショットを入れる） --- */
.app-screen.shot {
  display: block;
  min-height: 0;
  padding: 0;
}

.app-screen.shot img {
  display: block;
  width: 100%;
  border-radius: 28px;
}

/* --- スクリーンショットの並び --- */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.shot-grid figure {
  margin: 0;
}

.shot-grid img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(16, 32, 58, 0.10);
}

.shot-grid figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* --- 評価の段階を並べる --- */
.tier-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.tier-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.tier-list b {
  font-size: 1.1rem;
  font-weight: 900;
}

.tier-perfect b { color: var(--gold); }
.tier-great b { color: var(--teal); }
.tier-good b { color: var(--muted); }

@media (max-width: 980px) {
  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .shot-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
  }
}
