:root{
  --bg: #f5f7fb;
  --bg-accent: #eef2ff;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --accent-soft: #dbeafe;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 18px;
  --max: 1040px;
  --safe-area-inset-bottom: env(safe-area-inset-bottom);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Noto Sans JP", "Noto Sans KR", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(520px 240px at 15% 0%, #e0f2fe, transparent 70%),
    radial-gradient(520px 240px at 85% 10%, #e9d5ff, transparent 70%),
    linear-gradient(180deg, var(--bg), #ffffff 40%, var(--bg-accent));
  overflow-x: hidden;
}

a{color: inherit}
.page{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 140px;
}

.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-avatar{
  width:46px;
  height:46px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.brand-text{display:flex; flex-direction:column; gap:2px;}
.brand-name{font-weight:800; letter-spacing:.3px;}
.brand-tagline{font-size:12.5px; color: var(--muted);}
.header-actions{display:flex; align-items:center; gap:12px; flex-wrap:wrap;}
.chip{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight:700;
}
.text-link{
  font-size:12.5px;
  text-decoration: none;
  color: var(--accent-dark);
}
.text-link:hover{color: var(--accent);}

.hero{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:24px;
  align-items:stretch;
  background: var(--card);
  border-radius: calc(var(--radius) + 6px);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-copy h1{
  margin: 8px 0 12px;
  font-size: 28px;
  line-height: 1.25;
}
.eyebrow{
  margin:0;
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.lead{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14.5px;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap;}
.hero-tags{
  margin-top: 16px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.hero-tags span{
  background: var(--bg-accent);
  color: var(--accent-dark);
  padding:6px 10px;
  border-radius: 999px;
  font-size:12px;
  font-weight:600;
}

.hero-card{
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.hero-card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.hero-card-title{margin:0; font-size:12px; color:#94a3b8;}
.hero-card-name{margin:4px 0 0; font-size:16px; font-weight:700;}
.hero-photo{
  width:56px;
  height:56px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.2);
}
.hero-card-body h3{
  margin:0 0 8px;
  font-size:14px;
  color:#e2e8f0;
}
.hero-card-body ul{
  margin:0;
  padding-left: 18px;
  color: #cbd5f5;
  font-size:12.5px;
  line-height:1.6;
}
.hero-card-note{
  margin-top: 10px;
  font-size:12px;
  color:#94a3b8;
}

.section{margin-top: 28px;}
.section-head{margin-bottom: 14px;}
.section-head h2{margin:0 0 6px; font-size:20px;}
.section-head p{margin:0; color: var(--muted); font-size:13.5px; line-height:1.6;}

.step-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.step-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.step-number{
  display:inline-block;
  font-weight:800;
  font-size:12px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding:4px 8px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.step-card h3{margin:0 0 6px; font-size:15px;}
.step-card p{margin:0; color: var(--muted); font-size:13px; line-height:1.6;}

.media-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:16px;
}
.media-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}
.media-card img{
  width:100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-accent);
}
.media-body{padding:16px;}
.media-body h3{margin:0 0 6px; font-size:16px;}
.media-body p{margin:0 0 8px; color: var(--muted); font-size:13px; line-height:1.6;}
.media-body ul{margin:0; padding-left: 18px; color: var(--muted); font-size:12.5px; line-height:1.6;}

.pill-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.pill-grid span{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size:12.5px;
  color: var(--muted);
}

.notice{
  margin-top: 24px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  border-radius: var(--radius);
  padding: 16px;
}
.notice h3{margin:0 0 8px; font-size:15px;}
.notice p{margin:0; font-size:13px; line-height:1.6;}

.choice{
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 20px;
  box-shadow: var(--shadow);
}
.choice-list{display:grid; gap:12px; margin-top:14px;}
.choice-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
  cursor:pointer;
}
.choice-item input{
  width:18px;
  height:18px;
  margin-top: 3px;
  accent-color: var(--accent);
}
.choice-text{display:flex; flex-direction:column; gap:4px;}
.choice-text strong{font-size:14px;}
.choice-text span{font-size:12.5px; color: var(--muted);}

.cta-area{margin-top: 16px; display:flex; flex-direction:column; gap:10px;}
.choice-note{margin:0; color: var(--muted); font-size:12.5px;}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  cursor:pointer;
}
.btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border: none;
  box-shadow: var(--shadow);
}
.btn.ghost{
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent-soft);
}
.btn-icon{
  width:20px;
  height:20px;
  border-radius: 6px;
  background: rgba(255,255,255,.2);
  padding:2px;
}

.site-footer{
  margin-top: 24px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  color: var(--muted);
  font-size:12.5px;
}
.footer-links{display:flex; gap:12px; flex-wrap:wrap;}
.footer-links a{text-decoration:none; color: var(--muted);}
.footer-links a:hover{color: var(--accent-dark);}

.sticky-cta{
  position: fixed;
  left:0;
  right:0;
  bottom:0;
  padding: 10px 14px calc(10px + var(--safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(245,247,251,0), rgba(245,247,251,.85) 35%, rgba(245,247,251,.98));
  border-top: 1px solid var(--line);
  z-index: 50;
  backdrop-filter: blur(10px);
}
.sticky-cta-inner{
  max-width: var(--max);
  margin: 0 auto;
}

#notification-toast{
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  background: #0f172a;
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  opacity: 0;
  pointer-events:none;
  transition: opacity .2s ease;
  z-index: 60;
  max-width: 92vw;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
#notification-toast.show{opacity:1}

.legal-document-modal-overlay{
  display:none;
  position: fixed;
  inset:0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.legal-document-modal-overlay.active{display:flex;}
.legal-document-modal-container{
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  padding: 22px;
}
.legal-document-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.legal-document-modal-title{
  margin:0;
  font-size:18px;
  font-weight:800;
  color: var(--accent-dark);
}
.legal-document-modal-close-button{
  background: var(--bg-accent);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
}
.legal-document-modal-close-button:hover{color: var(--ink);}
.legal-document-modal-content{
  color: var(--muted);
  font-size:14px;
  line-height:1.7;
}
.legal-document-modal-content h2,
.legal-document-modal-content h3{color: var(--ink);}
.legal-document-modal-content ul{padding-left: 20px;}

@media (max-width: 980px){
  .hero{grid-template-columns: 1fr;}
  .hero-copy h1{font-size:24px;}
  .step-grid{grid-template-columns: 1fr;}
  .media-grid{grid-template-columns: 1fr;}
  .pill-grid{grid-template-columns: 1fr 1fr;}
}

@media (max-width: 600px){
  .page{padding: 20px 14px 140px;}
  .site-header{flex-direction:column; align-items:flex-start;}
  .hero{padding: 20px;}
  .hero-tags{gap:6px;}
  .pill-grid{grid-template-columns: 1fr;}
}