:root {
  --theme: #ffc759;
  --theme-dark: #e89a00;
  --theme-deep: #966400;
  --theme-light: #fefefd;
  --theme-soft: #f2ece0;
  --theme-accent: #ffd88c;
  --theme-hover: #ffb626;
  --theme-border: rgba(255, 199, 89, 0.26);
  --header-bg: #e7decd;
  --header-bg-2: #e5d0a6;
  --text-main: #2c2414;
  --text-muted: #6d5a33;
  --on-theme: #2c2414;
  --on-header: #3b2a08;
  --on-dark: #fff8e8;
  --white: #ffffff;
  --shadow-soft: 0 18px 48px rgba(166, 112, 20, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
body {
  background: var(--theme-light);
  color: var(--text-main);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.68;
}
a { color: inherit; }
img { max-width: 100%; }

.container,
.section-inner,
.header-inner,
.footer-inner,
.hero-inner {
  width: min(1280px, calc(100% - 80px));
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1440px) {
  .container,
  .section-inner,
  .header-inner,
  .footer-inner,
  .hero-inner { width: min(1360px, calc(100% - 120px)); }
}

@media (max-width: 767px) {
  .container,
  .section-inner,
  .header-inner,
  .footer-inner,
  .hero-inner { width: min(100% - 32px, 1280px); }
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9999;
  background: linear-gradient(180deg, var(--header-bg) 0%, var(--header-bg-2) 100%);
  color: var(--on-header);
  box-shadow: var(--shadow-soft);
  overflow: visible;
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  overflow: visible;
}

.site-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: visible; text-decoration: none; }
.site-logo img { display: block; width: auto; height: auto; max-width: 190px; max-height: 72px; object-fit: contain; }

.main-nav { display: flex; justify-content: center; align-items: center; gap: 20px; }
.main-nav a {
  color: var(--on-header);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 800;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a.active, .main-nav a:hover { color: var(--theme-dark); border-bottom-color: var(--theme); }

.main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme) 48%, var(--theme-dark) 100%);
  color: var(--on-theme);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 900;
  border: 1px solid rgba(166, 112, 20, 0.18);
}
.main-btn:hover { background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme-hover) 54%, var(--theme-dark) 100%); }

.mobile-menu-toggle { display: none; border: 0; background: rgba(255,255,255,.52); border-radius: 14px; }
.mobile-menu-toggle span { width: 22px; height: 2px; background: var(--on-header); display: block; margin: 4px 0; }

.section { padding: 58px 0; }
.hero-section {
  padding: 72px 0 48px;
  background: linear-gradient(180deg, var(--theme-light) 0%, var(--theme-soft) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 64px;
}
.hero-content h1 {
  font-size: clamp(56px, 5vw, 76px);
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--theme-dark);
}
.hero-content p {
  font-size: 19px;
  line-height: 1.8;
  color: var(--text-main);
  margin: 0 0 28px;
}
.hero-badge,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--theme-dark);
  border: 1px solid var(--theme-border);
  font-weight: 800;
}
.hero-badge { margin-bottom: 18px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual,
.media-box,
.app-visual,
.card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.hero-media-box {
  width: 100%;
  max-width: 560px;
  min-height: 380px;
  border-radius: 32px;
  background: var(--white);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 36px;
}
.hero-media-box img {
  display: block;
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.media-box img,
.hero-visual img,
.app-visual img,
.card-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.info-section { padding: 32px 0 48px; }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.grid-8 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: center; }

.section-title { max-width: 860px; margin-bottom: 28px; }
.section-title h1, .section-title h2 { margin: 0 0 12px; color: var(--theme-dark); line-height: 1.2; }
.section-title h1 { font-size: clamp(34px, 5vw, 58px); }
.section-title h2 { font-size: clamp(28px, 3vw, 42px); }
.section-title p { margin: 0; color: var(--text-muted); font-size: 18px; }

.card,
.zone-card,
.info-card,
.feature-card,
.category-card,
.faq-item,
.notice,
.visual-card {
  background: var(--white);
  color: var(--text-main);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
  border-radius: 24px;
  min-height: auto;
  height: auto;
  padding: 28px;
}
.info-card span { color: var(--theme); font-weight: 900; }
.info-card h2, .info-card h3, .category-card h3, .feature-card h3, .faq-item h3 { color: var(--theme-dark); margin-top: 0; }
.info-card p, .category-card p, .feature-card p { color: var(--text-muted); }
.category-pill,
.tag,
.badge {
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  width: auto;
  max-width: max-content;
  text-decoration: none;
  border: 1px solid var(--theme-border);
  background: var(--white);
  color: var(--theme-dark);
  font-weight: 800;
}
.category-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link, .category-card a { color: var(--theme-dark); font-weight: 900; text-decoration: none; }
.alternate { display: grid; gap: 34px; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
.split:nth-child(even) { grid-template-columns: .95fr 1.05fr; }
.split:nth-child(even) .split-text { order: 2; }
.split:nth-child(even) .media-box { order: 1; }
.media-box, .app-visual, .card-media {
  min-height: 260px;
  background: linear-gradient(135deg, var(--white), var(--theme-soft));
  border: 1px solid var(--theme-border);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.app-visual img { max-height: 420px; }
.card-media img { max-height: 250px; }
.page-hero { padding: 64px 0 28px; }
.content-flow { display: grid; gap: 24px; }
.faq-list { display: grid; gap: 18px; }
.notice { background: var(--theme-soft); }

.footer {
  background: var(--theme-deep);
  color: var(--on-dark);
  padding: 56px 0 24px;
}
.footer a { color: var(--on-dark); text-decoration: none; margin: 6px 0; display: block; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer-logo img { max-height: 70px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-badges span { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 12px; }
.footer-legal { display: block; border-top: 1px solid rgba(255,255,255,.18); margin-top: 28px; padding-top: 18px; color: rgba(255,240,240,.88); }

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  transform: translateX(-100%);
  transition: transform .28s ease;
  z-index: 10001;
  background: var(--header-bg);
  color: var(--on-header);
  padding: 20px;
}
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-overlay {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 10000;
  background: rgba(0,0,0,.38);
  transition: .28s ease;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--theme-border); background: var(--white); color: var(--theme-dark); font-size: 28px; }
.drawer-nav { display: grid; gap: 8px; margin-top: 20px; }
.drawer-nav a { padding: 12px 10px; text-decoration: none; border-radius: 14px; font-weight: 900; }
.drawer-nav a.active { background: var(--white); color: var(--theme-dark); }

@media (min-width: 1440px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(480px, 0.95fr); gap: 80px; }
  .hero-media-box { max-width: 620px; min-height: 420px; }
  .hero-media-box img { max-height: 380px; }
}
@media (max-width: 1200px) {
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 14px; }
}
@media (max-width: 1023px) {
  .header-inner {
    width: min(100% - 28px, 1280px);
    min-height: 68px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .main-nav { display: none; }
  .site-logo { justify-self: center; }
  .site-logo img { max-width: min(150px, 42vw); max-height: 56px; }
  .header-actions { justify-self: end; }
  .header-actions .main-btn { white-space: nowrap; padding: 10px 16px; }
  .hero-section { padding: 48px 0 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-content h1 { font-size: clamp(36px, 9vw, 52px); }
  .hero-media-box { max-width: 100%; min-height: auto; padding: 24px; }
  .hero-media-box img { max-height: 300px; }
  .info-grid, .grid-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-2, .split, .split:nth-child(even) { grid-template-columns: 1fr; }
  .split:nth-child(even) .split-text, .split:nth-child(even) .media-box { order: initial; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .section { padding: 38px 0; }
  .info-grid, .grid-8, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .card, .zone-card, .info-card, .feature-card, .category-card, .faq-item, .notice, .visual-card { padding: 22px; border-radius: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .header-inner {
    width: min(100% - 20px, 1280px);
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .site-logo img { max-width: min(120px, 36vw); max-height: 48px; }
  .header-actions .main-btn { padding: 8px 12px; font-size: 13px; }
}
