/* 抽選管理 マーケティングサイト 共通スタイル */

:root {
  --brand: #1eba6a;
  --brand-strong: #13994f;
  --brand-ink: #0b5e32;
  --brand-soft: #e3f7ec;
  --accent: #ffd60a;
  --accent-ink: #3a3000;

  --bg: #fbfdfb;
  --surface: #ffffff;
  --surface-2: #f2f8f4;
  --text: #15201a;
  --text-muted: #56655c;
  --border: #dde8e1;
  --shadow: 0 1px 2px rgb(16 40 26 / 6%), 0 8px 24px rgb(16 40 26 / 8%);
  --phone-bezel: #16201b;

  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --gutter: 16px;

  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #3ad687;
    --brand-strong: #5fe3a0;
    --brand-ink: #b8f3d3;
    --brand-soft: #123524;
    --accent: #ffd60a;
    --accent-ink: #2a2300;

    --bg: #0d1511;
    --surface: #141f19;
    --surface-2: #18251e;
    --text: #e6efe9;
    --text-muted: #9fb2a6;
    --border: #25362c;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
    --phone-bezel: #050807;

    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand-strong);
}

h1,
h2,
h3 {
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0.01em;
  word-break: auto-phrase;
  text-wrap: balance;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: none;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

.lang-switch {
  display: flex;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .lang-switch {
    margin-left: 8px;
  }
}

.lang-switch a,
.lang-switch span {
  padding: 2px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
}

.lang-switch [aria-current] {
  background: var(--brand);
  color: #fff;
}

/* ---------- Buttons ---------- */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
  border: 1px solid rgb(255 255 255 / 18%);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgb(0 0 0 / 20%);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: none;
}

.store-badge small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.85;
}

.store-badge strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 48px 0 0;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 90% 10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    var(--bg);
}

.hero .container {
  display: grid;
  gap: 40px;
  align-items: center;
}

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

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 800;
  line-height: 1.25;
}

.hero h1 .hl {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 70%, transparent) 62%);
}

.hero-lead {
  margin: 20px auto 28px;
  max-width: 34em;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* 端末の上部だけを見せ、ヒーローの下端で切り取る */
  height: min(420px, 110vw);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    padding-top: 72px;
  }

  .hero .container {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
  }

  .hero-copy {
    text-align: left;
    padding-bottom: 72px;
  }

  .hero-visual {
    height: 520px;
  }

  .hero-lead {
    margin-left: 0;
  }

  .hero-actions {
    align-items: flex-start;
  }
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 1320 / 2868;
  padding: 10px;
  border-radius: 46px;
  background: var(--phone-bezel);
  box-shadow: var(--shadow), 0 30px 60px -20px rgb(11 94 50 / 35%);
  flex: none;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
  background: #f8f8ff;
}

.phone::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  width: 28%;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--phone-bezel);
  z-index: 1;
}

.phone--sm {
  width: min(240px, 64vw);
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

@media (min-width: 900px) {
  .section {
    padding: 104px 0;
  }
}

.section--alt {
  background: var(--surface-2);
}

.section-head {
  text-align: center;
  max-width: 40em;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 12px;
  color: var(--text-muted);
}

/* ---------- Value props ---------- */

.values {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.value {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.value .icon {
  margin: 0 auto 16px;
}

.value h3 {
  font-size: 1.2rem;
}

.value p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--accent {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent-ink);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon--accent {
    color: var(--accent);
  }
}

/* ---------- Feature rows ---------- */

.features {
  display: grid;
  gap: 72px;
}

.feature {
  display: grid;
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.feature-body {
  max-width: 30em;
}

.feature-body .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-strong);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.feature-body h3 {
  font-size: clamp(1.35rem, 3.6vw, 1.75rem);
  font-weight: 800;
}

.feature-body p {
  margin-top: 12px;
  color: var(--text-muted);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 8px;
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313994f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.chip {
  padding: 2px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid;
}

.chip--todo { color: #2f7fd8; background: #e6f0fc; border-color: #b7d3f5; }
.chip--applied { color: #3f8f3a; background: #e8f5e6; border-color: #bfe0bb; }
.chip--won { color: #d8412b; background: #fdeae7; border-color: #f4b9b0; }
.chip--received { color: #5f6b64; background: #eef1ef; border-color: #cfd6d2; }
.chip--lost { color: #6f7771; background: #eceeed; border-color: #d3d7d4; }

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .feature-body {
    justify-self: start;
  }

  .feature--reverse .feature-media {
    order: 2;
  }

  .feature--reverse .feature-body {
    justify-self: end;
  }
}

/* ---------- Card grid ---------- */

.cards {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.card {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.card .icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.05rem;
}

.card p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq details p {
  padding: 0 20px 20px;
  color: var(--text-muted);
}

/* ---------- CTA ---------- */

.cta {
  padding: 72px 0;
}

.cta-box {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 48px 24px;
  border-radius: 32px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(60% 80% at 100% 0%, rgb(255 255 255 / 18%), transparent 60%),
    linear-gradient(135deg, #1eba6a, #0f9150);
}

.cta-box img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 20%);
}

.cta-box h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  font-weight: 800;
}

.cta-box p {
  opacity: 0.92;
  max-width: 36em;
  text-wrap: balance;
}

.cta-box .note {
  color: rgb(255 255 255 / 80%);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: grid;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .site-footer .container {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 48px 0 32px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
}

.legal-hero .back {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.9rem;
  text-decoration: none;
}

.legal {
  max-width: 72ch;
  margin: 0 auto;
  padding: 40px var(--gutter) 72px;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-soft);
}

.legal h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
  color: var(--brand-strong);
}

.legal p {
  margin-bottom: 12px;
}

.legal ul,
.legal ol {
  padding-left: 1.5em;
  margin: 0 0 12px;
}

.legal li {
  margin-bottom: 4px;
}

.legal .highlight {
  margin: 16px 0;
  padding: 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.legal .last-updated {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
