/* ==========================================================================
   中国領事 App Landing — Stylesheet
   ========================================================================== */

:root {
  --navy-deep: #0a1f3d;
  --navy: #0f2c56;
  --navy-mid: #16407f;
  --navy-light: #2a5aa8;
  --gold: #c9a24b;
  --gold-soft: #e2c98a;
  --gold-dim: #8f7130;
  --cream: #f6f2e9;
  --paper: #fbf9f4;
  --white: #ffffff;
  --ink: #14181f;
  --ink-soft: #4a5060;
  --line: #e2ddce;
  --danger: #9a2b2b;

  --font-head: "Noto Serif JP", "Yu Mincho", serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;

  --shadow-card: 0 18px 40px -18px rgba(10, 31, 61, 0.35);
  --shadow-soft: 0 10px 24px -14px rgba(10, 31, 61, 0.25);

  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-deep);
  margin: 0 0 0.6em;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  color: var(--ink-soft);
}

section {
  position: relative;
  padding: 96px 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--navy-deep);
  box-shadow: var(--shadow-soft);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(201, 162, 75, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline.dark {
  color: var(--navy-deep);
  border-color: var(--navy-deep);
}

.btn-outline.dark:hover {
  background: rgba(15, 44, 86, 0.06);
}

.btn i {
  font-size: 0.9em;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 16px 0;
  background: rgba(10, 31, 61, 0.0);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 31, 61, 0.92);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.5);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.08rem;
  letter-spacing: 0.03em;
}

.brand-text span {
  font-size: 0.68rem;
  color: var(--gold-soft);
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 172px 0 120px;
  background: radial-gradient(circle at 15% 20%, rgba(42, 90, 168, 0.55), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.25);
  pointer-events: none;
}

.hero::before {
  width: 620px;
  height: 620px;
  right: -180px;
  top: -160px;
  animation: spin-slow 60s linear infinite;
}

.hero::after {
  width: 420px;
  height: 420px;
  right: -60px;
  top: -20px;
  border-style: dashed;
  animation: spin-slow 90s linear infinite reverse;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin: 18px 0 20px;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--gold-soft);
}

.hero-copy p.lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 30px 0 14px;
  flex-wrap: wrap;
}

.hero-note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.seal-badge {
  position: relative;
  width: min(340px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(145deg, var(--navy-mid), var(--navy-deep));
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  animation: float-badge 7s ease-in-out infinite;
}

.seal-badge::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 162, 75, 0.55);
}

.seal-badge img {
  width: 58%;
  height: 58%;
  border-radius: 50%;
  object-fit: cover;
}

.seal-badge .ring-text {
  position: absolute;
  inset: 0;
  animation: spin-slow 24s linear infinite;
}

.seal-badge .ring-text span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--gold-soft);
  font-family: var(--font-head);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 64px;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-m);
  padding: 22px 20px;
  backdrop-filter: blur(6px);
}

.stat-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--gold-soft);
}

.stat-card span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Features (photo cards, not icon blobs) ---------- */

.features {
  background: var(--paper);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.feature-photo {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-photo img {
  transform: scale(1.06);
}

.feature-body {
  padding: 20px 22px 26px;
}

.feature-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-body p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Services catalog ---------- */

.services {
  background: linear-gradient(180deg, var(--cream), var(--paper));
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-item {
  background: var(--white);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.service-photo {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item .service-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.service-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.service-item h3 {
  font-size: 1.02rem;
  margin: 0;
}

.service-item p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Steps / How it works ---------- */

.steps {
  background: var(--navy-deep);
  color: var(--white);
}

.steps .section-head h2 {
  color: var(--white);
}

.steps .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.step-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-track::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 20px);
  opacity: 0.5;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  font-family: var(--font-head);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.step h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
}

.step p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

/* ---------- Protection / hotline ---------- */

.protection {
  background: var(--paper);
}

.protection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.protection-card {
  background: linear-gradient(150deg, var(--navy), var(--navy-mid));
  color: var(--white);
  border-radius: var(--radius-l);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.protection-card::after {
  content: "12308";
  position: absolute;
  right: -10px;
  bottom: -30px;
  font-family: var(--font-head);
  font-size: 6.5rem;
  color: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.protection-card .hotline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--gold-soft);
  margin: 10px 0 6px;
}

.protection-card .hotline i {
  font-size: 1.3rem;
}

.protection-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.protection-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  list-style: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.protection-list i {
  color: var(--gold-dim);
  margin-top: 3px;
}

.protection-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.audience-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.84rem;
  color: var(--navy);
  background: var(--white);
}

/* ---------- Screens showcase ---------- */

.screens {
  background: var(--cream);
  overflow: hidden;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.screen-frame {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 6px solid var(--navy-deep);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease;
}

.screen-frame:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.screen-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 9/19;
  object-fit: cover;
}

.screen-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--paper);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-head);
  font-size: 1.02rem;
  color: var(--navy-deep);
  cursor: pointer;
}

.faq-q i {
  color: var(--gold-dim);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-q i {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 0 4px;
}

.faq-a p {
  padding-bottom: 20px;
  margin: 0;
}

/* ---------- Final CTA ---------- */

.cta-final {
  background: radial-gradient(circle at 50% 0%, rgba(201, 162, 75, 0.25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  text-align: center;
}

.cta-final h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.cta-final p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 30px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 12px 22px;
  margin-top: 10px;
}

.store-badge i {
  font-size: 1.6rem;
  color: var(--gold-soft);
}

.store-badge span {
  display: block;
  text-align: left;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

.store-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 28px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.6);
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-head);
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-disclaimer {
  padding-top: 28px;
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 150px 0 60px;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
}

.legal-hero .eyebrow {
  color: var(--gold-soft);
}

.legal-hero .eyebrow::before {
  background: var(--gold-soft);
}

.legal-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 14px;
}

.legal-hero p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
}

.legal-body {
  padding: 72px 0 100px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2.2em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}

.legal-content h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.legal-content ul {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

.legal-content li {
  margin-bottom: 0.5em;
  list-style: disc;
}

.legal-content .updated {
  color: var(--gold-dim);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2em;
  display: inline-block;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
  padding: 40px 20px;
}

.error-page .code {
  font-family: var(--font-head);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--gold-soft);
  line-height: 1;
}

.error-page p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin: 12px auto 26px;
}

/* ---------- Reveal animation helper ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .feature-grid,
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .screen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-track {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .step-track::before {
    display: none;
  }

  .protection-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav,
  .header-cta .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 31, 61, 0.97);
    flex-direction: column;
    padding: 20px 24px 26px;
    gap: 18px;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .service-list,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 72px 0;
  }

  .protection-card {
    padding: 30px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
