:root {
  --theme: #a87900;
  --theme-dark: #7a5700;
  --theme-deep: #4c3600;
  --theme-light: #fbf7ea;
  --theme-soft: #f4ead0;
  --theme-accent: #d3a300;
  --theme-hover: #8d6500;
  --theme-border: rgba(168, 121, 0, .22);
  --header-bg: #594000;
  --header-bg-2: #765500;
  --text-main: #2e2819;
  --text-muted: #6b6042;
  --on-theme: #ffffff;
  --on-header: #ffffff;
  --on-dark: #ffffff;
  --white: #ffffff;
  --shadow-soft: 0 16px 42px rgba(76, 54, 0, .15);
}

* { 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: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

body.menu-open { overflow: hidden; }

a { color: var(--theme-dark); }

img { max-width: 100%; }

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

.section { padding: 64px 0; }
.section-compact { padding: 36px 0; }
.section-tint { background: linear-gradient(180deg, var(--theme-soft) 0%, var(--theme-light) 100%); }
.section-white { background: var(--white); }
.section-heading { max-width: 820px; margin-bottom: 30px; }
.section-heading.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading .eyebrow,
.page-badge,
.hero-badge {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: max-content;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--theme-soft);
  color: var(--theme-dark);
  border: 1px solid var(--theme-border);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
}

h1, h2, h3 {
  color: var(--theme-dark);
  line-height: 1.18;
  margin-top: 0;
}

h1 { font-size: clamp(36px, 4vw, 58px); letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.015em; }
h3 { font-size: 21px; }

p { margin-top: 0; }
.muted { color: var(--text-muted); }

.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);
  border-bottom: 1px solid var(--theme-border);
  overflow: visible;
}

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

.site-logo,
.drawer-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: visible;
}

.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: 18px;
}

.main-nav a {
  color: var(--on-header);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  color: #e4f0ff;
  border-bottom-color: var(--theme-accent);
}

.header-actions { display: flex; align-items: center; justify-content: flex-end; }

.main-btn,
.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme) 48%, var(--theme-dark) 100%);
  color: var(--on-theme);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .16);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 800;
}

.main-btn:hover,
.header-login:hover { background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme-hover) 55%, var(--theme-dark) 100%); }

.mobile-menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--on-header);
  display: block;
}

.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: linear-gradient(180deg, var(--header-bg) 0%, var(--theme-deep) 100%);
  color: var(--on-header);
  padding: 22px;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,38,80,.48);
  opacity: 0;
  visibility: hidden;
  z-index: 10000;
  transition: opacity .25s ease, visibility .25s ease;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.drawer-logo img { max-width: 148px; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.drawer-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  color: var(--on-header);
  background: rgba(255,255,255,.08);
  font-size: 28px;
  line-height: 1;
}
.drawer-nav { display: grid; gap: 6px; }
.drawer-nav a {
  color: var(--on-header);
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.drawer-nav a.active,
.drawer-nav a:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); }


.hero-section {
  padding: 58px 0 46px;
  background:
    radial-gradient(circle at 12% 18%, var(--theme-soft) 0%, transparent 34%),
    linear-gradient(180deg, var(--theme-light) 0%, var(--white) 100%);
}
.hero-inner {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 56px;
}
.hero-content h1 {
  max-width: 760px;
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 18px 0 22px;
  color: var(--theme-dark);
}
.hero-content p { max-width: 760px; font-size: 18px; line-height: 1.8; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-tags span {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: max-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--theme-soft);
  color: var(--theme-dark);
  border: 1px solid var(--theme-border);
  font-weight: 800;
}
.hero-visual { min-width: 0; }
.hero-media-box {
  width: min(100%, 540px);
  min-height: 320px;
  max-height: 420px;
  margin-left: auto;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: linear-gradient(180deg, var(--white) 0%, var(--theme-soft) 100%);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
  border-radius: 30px;
}
.hero-media-box img {
  display: block;
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
}
.info-section { background: var(--theme-light); }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.category-section { background: linear-gradient(180deg, var(--theme-light) 0%, var(--theme-soft) 100%); }

.intro-card,
.card,
.zone-card,
.info-card,
.feature-card,
.category-card,
.faq-item,
.notice,
.visual-card,
.feedback-card,
.service-item,
.content-panel {
  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;
}

.intro-card { padding: 30px; border-top: 5px solid var(--theme); }
.intro-card strong { color: var(--theme-dark); }

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.category-pills a,
.category-pill,
.tag,
.badge {
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  width: auto;
  max-width: max-content;
}
.category-pills a {
  background: var(--white);
  color: var(--theme-dark);
  border: 1px solid var(--theme-border);
  text-decoration: none;
  font-weight: 700;
}
.category-pills a:hover {
  background: linear-gradient(180deg, var(--theme-accent), var(--theme));
  color: var(--on-theme);
}

.category-grid,
.card-grid,
.service-grid,
.feedback-grid,
.related-grid,
.content-wall {
  display: grid;
  gap: 20px;
}
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feedback-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.category-card,
.info-card,
.feature-card,
.service-item,
.feedback-card,
.content-panel { padding: 26px; position: relative; overflow: visible; }
.category-card::before,
.info-card::before,
.feature-card::before,
.service-item::before {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--theme), var(--theme-accent));
  margin-bottom: 16px;
}
.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--theme-soft);
  color: var(--theme);
  font-weight: 900;
  margin-bottom: 14px;
}
.text-link { font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--theme); }

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 42px;
  align-items: center;
}
.split-layout.reverse { grid-template-columns: minmax(340px, .92fr) minmax(0, 1.08fr); }
.split-layout.reverse .split-media { order: -1; }

.media-box,
.hero-visual,
.app-visual,
.card-media,
.split-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.media-box,
.app-visual,
.split-media {
  min-height: 300px;
  background: linear-gradient(180deg, var(--white) 0%, var(--theme-soft) 100%);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
  border-radius: 28px;
  padding: 28px;
}
.media-box img,
.hero-visual img,
.app-visual img,
.card-media img,
.split-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.page-hero {
  padding: 64px 0 44px;
  background:
    radial-gradient(circle at 12% 18%, var(--theme-soft) 0%, transparent 34%),
    linear-gradient(180deg, var(--theme-light) 0%, var(--white) 100%);
}
.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 46px;
  align-items: center;
}
.page-hero-content p { max-width: 760px; font-size: 17px; }
.page-hero .media-box { min-height: 320px; max-height: 430px; }
.page-hero .media-box img { max-height: 350px; }

.topic-list,
.service-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.topic-list li,
.service-list li,
.check-list li {
  position: relative;
  padding-left: 28px;
}
.topic-list li::before,
.service-list li::before,
.check-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--theme);
  font-weight: 900;
}

.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 24px; background: linear-gradient(180deg, var(--white) 0%, var(--theme-soft) 100%); }
.faq-item h3 { margin-bottom: 10px; }

.notice {
  padding: 28px;
  background: linear-gradient(180deg, var(--theme-soft) 0%, var(--white) 100%);
  border-left: 5px solid var(--theme);
}
.notice h2 { font-size: 28px; }
.notice strong { color: var(--theme-dark); }

.quote-mark { color: var(--theme); font-size: 34px; line-height: 1; font-weight: 900; }
.feedback-card p:last-child { margin-bottom: 0; }

.related-card {
  display: block;
  padding: 22px;
  border-radius: 20px;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
}
.related-card:hover { transform: translateY(-2px); }
.related-card strong { color: var(--theme-dark); display: block; margin-bottom: 6px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat-box {
  padding: 22px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
}
.stat-box strong { display: block; color: var(--theme); font-size: 28px; margin-bottom: 6px; }

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.inline-links a,
.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--theme-dark);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--theme-border);
}
.inline-links a:hover,
.text-link:hover {
  color: var(--theme-hover);
  border-bottom-color: var(--theme-hover);
}

.footer {
  background: linear-gradient(180deg, var(--theme-dark) 0%, var(--theme-deep) 100%);
  color: var(--on-dark);
  padding: 56px 0 24px;
}
.footer a { color: var(--on-dark); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 34px;
}
.footer-grid section { display: grid; align-content: start; gap: 9px; }
.footer-grid h2 { color: var(--on-dark); font-size: 18px; margin-bottom: 6px; }
.footer-grid a { text-decoration: none; opacity: .92; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-brand p { color: rgba(255,255,255,.82); max-width: 420px; }
.footer-logo img { max-width: 180px; max-height: 68px; width: auto; height: auto; object-fit: contain; }
.footer-notice {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.footer-notice strong { color: #fff; }
.footer-notice p { color: rgba(255,255,255,.82); margin-bottom: 0; }
.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

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

@media (max-width: 1180px) {
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 13px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@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;
  }
  .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; }
  .section { padding: 52px 0; }
  .hero-inner { min-height: auto; gap: 36px; }
  .hero-media-box { margin: 0 auto; }
  .hero-inner,
  .page-hero-inner,
  .split-layout,
  .split-layout.reverse { grid-template-columns: 1fr; }
  .split-layout.reverse .split-media { order: 0; }
  .info-grid,
  .card-grid,
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .container,
  .section-inner,
  .header-inner,
  .footer-inner {
    width: min(calc(100% - 32px), 1280px);
  }
  body { font-size: 15px; }
  .section { padding: 42px 0; }
  .section-compact { padding: 26px 0; }
  h1 { font-size: clamp(32px, 10vw, 44px); }
  h2 { font-size: 28px; }
  .hero-section { padding: 42px 0 34px; }
  .hero-inner { width: min(calc(100% - 32px), 1280px); grid-template-columns: 1fr; gap: 28px; }
  .hero-content h1 { font-size: clamp(32px, 10vw, 44px); }
  .hero-content p { font-size: 16px; }
  .hero-media-box { min-height: 240px; max-height: 340px; padding: 22px; }
  .info-grid { grid-template-columns: 1fr; }
  .category-grid,
  .card-grid,
  .service-grid,
  .feedback-grid,
  .related-grid,
  .content-wall,
  .stats-row,
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 44px 0 30px; }
  .page-hero-inner { gap: 28px; }
  .media-box,
  .app-visual,
  .split-media,
  .page-hero .media-box { min-height: 220px; padding: 20px; }
  .intro-card,
  .category-card,
  .info-card,
  .feature-card,
  .service-item,
  .feedback-card,
  .content-panel,
  .faq-item,
  .notice { padding: 22px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 390px) {
  .header-inner {
    width: min(calc(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; }
}
