:root {
  --theme: #8b0810;
  --theme-dark: #68060c;
  --theme-deep: #450408;
  --theme-light: #fff1f2;
  --theme-soft: #fff8f8;
  --theme-hover: #76070e;
  --theme-border: rgba(139,8,16,0.22);
  --text-main: #271417;
  --text-muted: #71565a;
  --on-theme: #ffffff;
  --on-dark: #fff8f8;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(69,4,8,0.16);
}
* { 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; line-height: 1.7; }
a { text-decoration: none; transition: .2s ease; }
img { max-width: 100%; height: auto; }
.container, .section-inner, .hero-inner, .header-inner, .footer-inner { width: min(1280px, calc(100% - 80px)); margin-left: auto; margin-right: auto; }
.site-header { position: sticky; top: 0; width: 100%; z-index: 9999; background: linear-gradient(135deg, var(--theme-deep), var(--theme-dark)); color: var(--on-dark); box-shadow: var(--shadow-soft); backdrop-filter: blur(10px); }
.header-inner { max-width: 1280px; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.site-logo { display: inline-flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; }
.site-logo img { display:block; width:auto; height:auto; max-width:190px; max-height:64px; object-fit:contain; }
.logo { display: inline-flex; }
.logo img, .footer-brand img, .drawer-logo img { display: block; height: auto; max-width: 180px; }
.main-nav { display: none; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.main-nav a { color: var(--on-dark); padding: 9px 11px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.main-nav a.active, .main-nav a:hover { color: var(--on-dark); background: rgba(255,255,255,0.12); box-shadow: inset 0 -2px 0 var(--theme-light); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.main-btn, .mobile-register { display: inline-flex; align-items: center; justify-content: center; background: var(--theme); color: var(--on-theme); border-radius: 999px; box-shadow: var(--shadow-soft); border: 0; padding: 11px 22px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.main-btn:hover, .mobile-register:hover { background: var(--theme-hover); transform: translateY(-1px); color: var(--on-theme); }
.mobile-menu-toggle { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: var(--on-dark); flex: 0 0 auto; }
.mobile-menu-toggle span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.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(--theme-dark), var(--theme-deep)); color: var(--on-dark); padding: 20px; overflow-y: auto; }
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.18); }
.drawer-close { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); color: var(--on-dark); border-radius: 12px; font-size: 24px; line-height: 1; cursor: pointer; }
.mobile-nav { display: grid; gap: 8px; padding: 18px 0; }
.mobile-nav a { color: var(--on-dark); padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-weight: 700; }
.mobile-nav a.active, .mobile-nav a:hover { background: rgba(255,255,255,.16); }
.drawer-overlay { position: fixed; inset: 0; opacity: 0; visibility: hidden; z-index: 10000; background: rgba(0,0,0,.48); transition: .24s ease; }
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
main { background: radial-gradient(circle at top right, rgba(139,8,16,.14), transparent 42%), var(--theme-light); }
.section, .hero-section { padding: 72px 0; }
.hero-section { display: block; }
.hero, .hero-inner { display: grid; gap: 40px; }
.eyebrow, .tag { display:inline-flex; align-items:center; gap:8px; padding:7px 12px; border:1px solid var(--theme-border); border-radius:999px; background: var(--theme-soft); color: var(--theme-dark); font-weight:800; font-size:14px; }
h1, h2, h3, .section-title, .category-number, .highlight { color: var(--theme-dark); }
h1 { font-size: clamp(38px, 7vw, 66px); line-height: 1.05; margin: 18px 0; letter-spacing: -1.5px; }
h2, .section-title { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 0 0 18px; }
h3 { font-size: 22px; margin: 0 0 12px; }
p { margin: 0 0 16px; font-size: 17px; }
.lead { font-size: 19px; color: var(--text-main); }
.muted { color: var(--text-muted); }
.hero-visual, .visual-card, .banner, .service-strip { background: linear-gradient(145deg, var(--white), var(--theme-soft)); border: 1px solid var(--theme-border); box-shadow: var(--shadow-soft); border-radius: 32px; padding: 28px; }
.hero-visual { width:100%; min-height:420px; display:flex; align-items:center; justify-content:center; flex-direction:column; }
.hero-visual img { width:min(100%,560px); max-height:520px; object-fit:contain; display:block; margin:0 auto; }
.content-img, .app-section img { max-width: 100%; height: auto; object-fit: contain; display: block; margin: 0 auto; }
.hero-tags, .quick-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.category-pill { background: var(--white); color: var(--text-main); border: 1px solid var(--theme-border); border-radius: 999px; padding: 12px 16px; box-shadow: 0 8px 18px rgba(69,4,8,.06); }
.category-pill:hover { transform: translateY(-2px); border-color: var(--theme); }
.card, .zone-card, .info-card, .faq-item, .notice { background: var(--white); color: var(--text-main); border: 1px solid var(--theme-border); box-shadow: var(--shadow-soft); border-radius: 24px; padding: 24px; }
.grid, .feature-grid, .zone-grid, .faq, .link-grid { display: grid; gap: 24px; }
.feature-grid.four, .feature-grid.three { grid-template-columns: 1fr; }
.category-number { font-weight: 900; font-size: 22px; display:block; margin-bottom: 8px; }
.service-strip { padding: 26px; }
.content-split { display: grid; gap: 40px; align-items: center; margin: 34px 0; }
.content-split.reverse .visual-card { order: 2; }
.app-section { display: grid; gap: 32px; align-items: center; background: linear-gradient(135deg, var(--theme-soft), var(--white)); border-radius: 34px; padding: 32px; border: 1px solid var(--theme-border); box-shadow: var(--shadow-soft); }
.security-section { display: grid; gap: 24px; }
.notice { background: linear-gradient(135deg, var(--theme-soft), var(--white)); border-left: 5px solid var(--theme); }
ul.clean { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
ul.clean li { padding-left: 24px; position: relative; }
ul.clean li:before { content: ''; position: absolute; left:0; top: 12px; width:8px; height:8px; border-radius:50%; background: var(--theme); }
.text-link { color: var(--theme); font-weight: 800; }
.text-link:hover { color: var(--theme-hover); }
.footer { background: linear-gradient(135deg, var(--theme-deep), #43080c); color: var(--on-dark); padding: 58px 0 24px; }
.footer a { color: var(--on-dark); display: inline-block; margin: 4px 0; }
.footer a:hover { color: var(--theme-light); }
.footer-inner { display: grid; gap: 28px; }
.footer-brand p, .footer p { color: rgba(255,247,248,.86); }
.footer-links { display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 28px; padding-top: 20px; font-size: 14px; color: rgba(255,247,248,.82); }
.page-hero { padding: 68px 0 36px; }
.page-grid { display:grid; gap:24px; }
.article { background: rgba(255,255,255,.55); border: 1px solid var(--theme-border); border-radius: 28px; padding: 28px; }
@media (max-width: 390px) {
  .mobile-header { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; }
  .site-logo img { max-width: min(120px, 36vw); max-height: 42px; }
  .mobile-register { padding: 8px 12px; font-size: 13px; }
}
@media (min-width: 768px) {
  .feature-grid.four { grid-template-columns: repeat(2, 1fr); }
  .feature-grid.three, .zone-grid, .faq, .link-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; }
  .security-section { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
  .main-nav { display: flex; }
  .mobile-header { display:flex; padding:0; }
  .hero-inner { display:grid; grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr); align-items:center; gap:64px; }
  .content-split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .content-split.reverse .visual-card { order: initial; }
  .feature-grid.four { grid-template-columns: repeat(4, 1fr); }
  .feature-grid.three { grid-template-columns: repeat(3, 1fr); }
  .zone-grid { grid-template-columns: repeat(4, 1fr); }
  .app-section { grid-template-columns: .86fr 1.14fr; padding: 44px; }
  .page-grid { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(52px, 5vw, 72px); line-height: 1.05; }
}
@media (min-width: 1280px) { .section, .hero-section { padding: 92px 0; } }
@media (min-width: 1440px) {
  .container, .section-inner, .hero-inner, .header-inner, .footer-inner { width: min(1360px, calc(100% - 120px)); }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(520px, 0.95fr); gap:80px; }
  .hero-visual img { width:min(100%,620px); }
}
@media (max-width: 1023px) {
  .header-inner.mobile-header { width:100%; display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:64px; padding:8px 14px; }
  .site-logo img { max-width:min(150px,42vw); max-height:48px; }
  .main-nav { display:none; }
  .header-actions { justify-content:flex-end; min-width:max-content; }
}
@media (max-width: 767px) {
  .container, .section-inner, .hero-inner, .header-inner, .footer-inner { width: min(100% - 32px, 1280px); }
  h1 { font-size: clamp(32px, 9vw, 48px); line-height: 1.12; }
  .main-btn { padding: 9px 14px; font-size: 14px; }
  .section, .hero-section { padding: 48px 0; }
  .hero-visual { min-height: 260px; }
  .hero-visual, .visual-card, .card, .zone-card, .info-card, .notice, .article { padding: 20px; border-radius: 20px; }
  .app-section { padding: 22px; border-radius: 24px; }
}
