:root {
  --ink: #15203a;
  --muted: #687087;
  --cream: #fffaf0;
  --line: rgba(27, 37, 67, 0.12);
  --purple: #5b3fd6;
  --blue: #2944ef;
  --coral: #f1515f;
  --mint: #9df4dd;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(95, 63, 214, .09), transparent 28rem),
    #fffdf8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Noto Sans KR", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
main { overflow: hidden; }

.site-header {
  width: min(1120px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand img { border-radius: 10px; box-shadow: 0 5px 18px rgba(48, 35, 132, .18); }
.language-switch { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .72); }
.language-switch button, .language-switch a { min-height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.language-switch button.active, .language-switch a.active { color: #fff; background: var(--ink); }

.hero {
  width: min(1120px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 56px;
  padding: 72px 0 100px;
}
.eyebrow { margin: 0 0 18px; color: var(--purple); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 700px; margin: 0; white-space: pre-line; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.14; letter-spacing: -.045em; }
.lead { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.9; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.primary-button, .secondary-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border-radius: 16px; text-decoration: none; font-weight: 760; }
.primary-button { color: #fff; background: var(--ink); box-shadow: 0 12px 30px rgba(21, 32, 58, .18); }
.secondary-button { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.text-link { display: inline-flex; gap: 8px; color: var(--muted); font-weight: 700; text-underline-offset: 5px; }
.hero-visual { position: relative; min-height: 430px; display: grid; place-items: center; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: linear-gradient(145deg, var(--blue), var(--coral)); filter: blur(55px); opacity: .3; z-index: -2; }
.hero-visual img { width: min(76vw, 330px); height: auto; border-radius: 25%; box-shadow: 0 30px 80px rgba(45, 36, 128, .27); transform: rotate(2deg); }
.halo { position: absolute; border: 1px solid rgba(77, 67, 210, .2); border-radius: 50%; z-index: -1; }
.halo-one { width: 410px; height: 410px; }
.halo-two { width: 470px; height: 470px; opacity: .55; }

.content-section { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0; }
.sync-section { display: grid; grid-template-columns: 80px 1fr; gap: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-number { color: var(--purple); font-size: 13px; font-weight: 800; letter-spacing: .15em; }
h2 { margin: 0; max-width: 790px; font-size: clamp(31px, 4vw, 50px); line-height: 1.2; letter-spacing: -.045em; }
.section-lead { max-width: 820px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.9; }
.section-heading { display: flex; align-items: baseline; gap: 30px; margin-bottom: 46px; }

.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card { min-height: 270px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, .75); }
.step-card > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); font-size: 13px; font-weight: 800; }
.step-card h3, .tempo-card h3, .option-card h3 { margin: 30px 0 8px; font-size: 19px; letter-spacing: -.02em; }
.step-card p, .tempo-card p, .option-card p, .support-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }

.tempo-section { padding-top: 70px; }
.tempo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tempo-card { min-height: 245px; padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.tempo-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 7px rgba(157, 244, 221, .22); }
.tempo-2 .tempo-dot { background: #ffd75e; box-shadow: 0 0 0 7px rgba(255, 215, 94, .2); }
.tempo-3 .tempo-dot { background: #8094ff; box-shadow: 0 0 0 7px rgba(128, 148, 255, .18); }
.tempo-4 .tempo-dot { background: #ff7180; box-shadow: 0 0 0 7px rgba(255, 113, 128, .18); }
.tempo-card h3 { margin-top: 25px; }
.tempo-card strong { display: block; margin-bottom: 8px; color: var(--purple); font-size: 14px; }

.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.option-card { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 30px; border-radius: 26px; color: #fff; background: linear-gradient(140deg, #202c55, #4630b5); box-shadow: 0 18px 40px rgba(36, 36, 100, .17); }
.option-card:nth-child(2) { background: linear-gradient(140deg, #6b2e83, #ed5267); }
.option-card:nth-child(3) { background: linear-gradient(140deg, #0f4d63, #2f9e8f); }
.option-card h3 { margin: 0 0 8px; }
.option-card p { color: rgba(255, 255, 255, .78); }
.option-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 255, 255, .15); font-size: 25px; }
.trial-note { margin: 22px 0 0; padding: 18px 22px; border-radius: 16px; color: var(--muted); background: rgba(91, 63, 214, .07); font-size: 14px; }
.trial-note + .trial-note { margin-top: 12px; }

.app-preview-section { padding-top: 70px; }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.screenshot-grid figure { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255, 255, 255, .82); box-shadow: 0 18px 45px rgba(21, 32, 58, .08); }
.screenshot-grid img { display: block; width: 100%; height: auto; border-radius: 18px; background: #000; }
.screenshot-grid figcaption { padding: 14px 4px 2px; text-align: center; font-size: 14px; font-weight: 760; }

.faq-section { padding-top: 70px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 4px; cursor: pointer; list-style: none; font-weight: 740; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--purple); font-size: 25px; font-weight: 300; transition: transform .2s ease; }
details[open] summary span { transform: rotate(45deg); }
details > p { max-width: 830px; margin: -4px 0 26px; color: var(--muted); }

.medical-note { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.9; }

.support-card { margin-top: 50px; margin-bottom: 80px; padding: 54px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 48px; border-radius: 32px; color: #fff; background: linear-gradient(135deg, #171f3b, #29305d); box-shadow: 0 30px 70px rgba(21, 32, 58, .2); }
.support-card h2 { font-size: clamp(30px, 4vw, 44px); }
.support-card p { max-width: 660px; margin-top: 16px; color: rgba(255, 255, 255, .72); }
.support-card small { display: block; margin-top: 20px; color: rgba(255, 255, 255, .5); }
.support-actions { display: flex; flex-direction: column; gap: 12px; }
.support-actions .primary-button { color: var(--ink); background: #fff; }
.support-actions .secondary-button { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .22); }

footer { width: min(1040px, calc(100% - 40px)); min-height: 110px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand { color: var(--ink); }

.privacy-page { width: min(940px, calc(100% - 40px)); margin: 0 auto; }
.privacy-hero { padding: 90px 0 64px; border-bottom: 1px solid var(--line); }
.privacy-hero h1 { max-width: 820px; margin-bottom: 24px; font-size: clamp(3rem, 7vw, 6rem); }
.privacy-hero .lead { max-width: 800px; }
.effective-date { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.privacy-summary { margin: 48px 0 22px; padding: clamp(26px, 5vw, 48px); border: 1px solid rgba(109, 255, 230, .28); border-radius: 26px; color: #fff; background: linear-gradient(135deg, #173e74, #25499c 56%, #6f42c1); box-shadow: 0 24px 70px rgba(33, 67, 152, .18); }
.privacy-summary h2 { margin-bottom: 12px; font-size: clamp(28px, 4vw, 42px); }
.privacy-summary p { margin: 0; color: rgba(255,255,255,.82); }
.privacy-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.privacy-fact { padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.08); }
.privacy-fact strong, .privacy-fact span { display: block; }
.privacy-fact strong { margin-bottom: 4px; font-size: 14px; }
.privacy-fact span { color: rgba(255,255,255,.7); font-size: 12px; }
.privacy-content { padding: 38px 0 96px; }
.privacy-section { padding: 38px 0; border-bottom: 1px solid var(--line); }
.privacy-section h2 { margin-bottom: 14px; font-size: clamp(24px, 3vw, 34px); }
.privacy-section h3 { margin: 24px 0 8px; font-size: 17px; }
.privacy-section p, .privacy-section li { color: var(--muted); }
.privacy-section ul { margin: 12px 0 0; padding-left: 1.35rem; }
.privacy-section li + li { margin-top: 9px; }
.privacy-section a { color: #174da4; font-weight: 700; text-underline-offset: 4px; }
.privacy-contact { margin-top: 34px; padding: 30px; border-radius: 22px; background: rgba(255,255,255,.74); border: 1px solid var(--line); }
.privacy-contact h2 { margin-bottom: 8px; }
.privacy-contact p { margin-bottom: 18px; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 28px; color: #174da4; font-weight: 750; text-decoration: none; }

@media (max-width: 1080px) {
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .option-card:nth-child(3) { grid-column: 1 / -1; }
}

@media (hover: hover) {
  .primary-button, .secondary-button, .text-link { transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease; }
  .primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
  .text-link:hover { opacity: .65; }
}

@media (max-width: 820px) {
  .site-header { height: auto; padding: 18px 0; align-items: flex-start; }
  .language-switch button, .language-switch a { padding: 0 9px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 52px 0 80px; }
  .hero-visual { order: -1; min-height: 240px; }
  .hero-visual img { width: 190px; }
  .halo-one { width: 240px; height: 240px; }
  .halo-two { width: 280px; height: 280px; }
  .step-grid, .tempo-grid { grid-template-columns: repeat(2, 1fr); }
  .option-grid, .support-card { grid-template-columns: 1fr; }
  .privacy-facts { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header, .hero, .content-section, .privacy-page, footer { width: min(100% - 28px, 1040px); }
  .brand > span { display: none; }
  .hero { padding-top: 30px; gap: 16px; }
  .hero-visual { min-height: 210px; }
  h1 { font-size: clamp(26px, 8.4vw, 34px); }
  .content-section { padding: 76px 0; }
  .sync-section { grid-template-columns: 1fr; gap: 12px; }
  .section-heading { gap: 18px; margin-bottom: 32px; }
  .step-grid, .tempo-grid { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .option-card { grid-template-columns: 44px 1fr; padding: 24px; }
  .option-icon { width: 44px; height: 44px; border-radius: 13px; }
  .support-card { width: calc(100% - 20px); padding: 34px 24px; border-radius: 26px; }
  footer { min-height: 90px; }
  .privacy-hero { padding-top: 64px; }
  .privacy-summary { margin-top: 34px; border-radius: 22px; }
  .privacy-content { padding-bottom: 70px; }
  .screenshot-grid { grid-template-columns: 1fr; max-width: 320px; margin-right: auto; margin-left: auto; }
}

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

/* Hero photo variant (used in place of the app-icon lockup) */
.hero-visual.photo::before { width: 430px; height: 570px; border-radius: 44%; opacity: .26; }
.hero-visual.photo img { width: min(80vw, 390px); border-radius: 24px; transform: none; box-shadow: 0 26px 70px rgba(45, 36, 128, .24); }

@media (max-width: 820px) {
  .hero-visual.photo { min-height: 340px; }
  .hero-visual.photo img { width: min(62vw, 262px); }
}

@media (max-width: 520px) {
  .hero-visual.photo { min-height: 305px; }
  .hero-visual.photo img { width: min(66vw, 236px); }
}
