:root {
  --ink: #101828;
  --muted: #526071;
  --subtle: #778399;
  --line: #dde4ef;
  --line-soft: #edf1f7;
  --surface: #ffffff;
  --surface-soft: #f7f9ff;
  --surface-blue: #eef3ff;
  --blue: #175cd3;
  --blue-bright: #2563eb;
  --blue-dark: #1048aa;
  --navy: #17223a;
  --green: #0e9f6e;
  --line-green: #06c755;
  --red: #b42318;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 16px 45px rgba(34, 62, 110, 0.08);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --leaderboard-scale: 1;
  --leaderboard-height: 90px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(calc(100% - 48px), 1160px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero {
  padding-block: clamp(72px, 8vw, 112px) 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(48px, 7vw, 88px);
}

.hero-domain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 12px;
  border: 1px solid #dbe3f5;
  border-radius: 999px;
  color: #45546e;
  background: #f6f8ff;
  font-size: 12px;
  font-weight: 750;
}

.hero-domain::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--green);
}

.hero h1 {
  max-width: 670px;
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: 1.17;
  letter-spacing: -0.045em;
}

.hero-description {
  max-width: 660px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.line-card {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid #dce4f2;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.line-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--line-green), #14b877);
}

.line-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 13px;
  color: #fff;
  background: var(--line-green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.line-card h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.line-description {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.line-action {
  display: flex;
  align-items: center;
  margin-top: 28px;
}

.line-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 17px;
  border-radius: 10px;
  color: #fff;
  background: var(--line-green);
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.18);
  font-size: 13px;
  font-weight: 800;
  transition: transform 150ms ease, background 150ms ease;
}

.line-button:hover {
  background: #05aa49;
  transform: translateY(-1px);
}

.ads-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 28px;
  margin-bottom: 92px;
}

.ad-label {
  display: flex;
  width: min(100%, 728px);
  justify-content: space-between;
  margin: 0 auto 7px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.ad-label a:hover {
  color: var(--blue);
}

.ad-shell {
  position: relative;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  contain: layout paint;
}

.ad-shell iframe {
  display: block;
  border: 0;
}

.ad-shell-leaderboard {
  width: min(100%, 728px);
  height: var(--leaderboard-height);
  min-height: var(--leaderboard-height);
}

.ad-stage-leaderboard {
  position: absolute;
  top: 0;
  left: 50%;
  width: 728px;
  height: 90px;
  transform: translateX(-50%) scale(var(--leaderboard-scale));
  transform-origin: top center;
}

.ad-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fafbff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.035);
}

.ad-card .ad-label {
  width: min(100%, 300px);
}

.ad-shell-rectangle {
  width: 300px;
  height: 250px;
  max-width: 100%;
}

/* Privacy page */
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.policy-main > .back-link {
  margin-bottom: 34px;
}

.back-link:hover {
  color: var(--blue);
}

.policy-main {
  width: min(calc(100% - 48px), 800px);
  margin: 0 auto;
  padding-block: 78px 112px;
}

.policy-heading {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.policy-heading h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.policy-heading > p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  color: var(--subtle);
  font-size: 11px;
}

.policy-content {
  display: grid;
  gap: 42px;
  padding-top: 42px;
}

.policy-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.policy-section p,
.policy-section li {
  color: var(--muted);
  font-size: 14px;
}

.policy-section p {
  margin: 0;
}

.policy-section p + p,
.policy-section ul + p {
  margin-top: 12px;
}

.policy-section ul {
  margin: 14px 0 0;
  padding-left: 1.3em;
}

.policy-section a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
    gap: 38px;
  }
}

@media (max-width: 840px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy-area {
    text-align: center;
  }

  .hero h1,
  .hero-description {
    margin-inline: auto;
  }

  .line-card {
    width: min(100%, 620px);
    margin-inline: auto;
    text-align: left;
  }

  .ads-section {
    grid-template-columns: 1fr;
  }

  .ad-card {
    width: min(100%, 350px);
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --leaderboard-scale: 0.85;
    --leaderboard-height: 77px;
  }

  .section-shell,
  .policy-main {
    width: min(calc(100% - 40px), 1160px);
  }

  .hero {
    padding-block: 62px 58px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 50px);
  }

  .ads-section {
    margin-bottom: 76px;
  }

}

@media (max-width: 620px) {
  :root {
    --leaderboard-scale: 0.72;
    --leaderboard-height: 65px;
  }

}

@media (max-width: 520px) {
  :root {
    --leaderboard-scale: 0.6;
    --leaderboard-height: 54px;
  }

  .line-card {
    padding: 27px 22px;
    border-radius: 20px;
  }

  .line-button {
    width: 100%;
  }

  .policy-main {
    padding-block: 58px 82px;
  }
}

@media (max-width: 440px) {
  :root {
    --leaderboard-scale: 0.5;
    --leaderboard-height: 45px;
  }

}

@media (max-width: 380px) {
  :root {
    --leaderboard-scale: 0.43;
    --leaderboard-height: 39px;
  }
}

@media (max-width: 340px) {
  :root {
    --leaderboard-scale: 0.38;
    --leaderboard-height: 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
