:root {
  --theme: #ef3a3a;
  --theme-dark: #bd2323;
  --theme-deep: #651515;
  --theme-light: #fff5f5;
  --theme-soft: #ffe0e0;
  --theme-accent: #ff6b6b;
  --theme-hover: #d82d2d;
  --theme-border: rgba(239, 58, 58, .25);
  --header-bg: #6b1717;
  --header-bg-2: #8a1f1f;
  --text-main: #351f1f;
  --text-muted: #755454;
  --on-theme: #ffffff;
  --on-header: #ffffff;
  --on-dark: #fff8f8;
  --white: #ffffff;
  --shadow-soft: 0 16px 42px rgba(117, 25, 25, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text-main); background: var(--theme-light); font-family: Arial, Helvetica, sans-serif; line-height: 1.68; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.site-header { position: sticky; top: 0; 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 rgba(255,255,255,.14); }
.header-inner { width: min(1420px, calc(100% - 48px)); min-height: 82px; margin: 0 auto; display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { max-width: 190px; max-height: 72px; width: auto; height: auto; object-fit: contain; display: block; }
.desktop-nav { display: flex; justify-content: center; align-items: center; gap: 18px; white-space: nowrap; font-size: 14px; font-weight: 700; }
.desktop-nav a { position: relative; padding: 29px 0 25px; opacity: .9; }
.desktop-nav a:hover, .desktop-nav a.active { opacity: 1; color: #fff; }
.desktop-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 16px; height: 3px; border-radius: 99px; background: var(--theme-accent); }
.header-login, .main-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 12px; background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme) 48%, var(--theme-dark) 100%); color: var(--on-theme); font-weight: 800; box-shadow: 0 14px 28px rgba(0,0,0,.16); }
.header-login:hover, .main-btn:hover { background: linear-gradient(180deg, #ff7777 0%, var(--theme-hover) 100%); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; background: rgba(255,255,255,.09); padding: 9px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; }
.mobile-drawer { position: fixed; inset: 0 auto 0 0; z-index: 10002; width: min(340px, 88vw); padding: 22px; background: linear-gradient(180deg, var(--header-bg) 0%, var(--theme-deep) 100%); color: var(--on-dark); transform: translateX(-105%); transition: transform .25s ease; box-shadow: 20px 0 60px rgba(0,0,0,.22); }
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-overlay { position: fixed; inset: 0; z-index: 10001; background: rgba(69, 12, 12, .64); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer-brand { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.18); }
.drawer-brand img { width: auto; max-width: 180px; max-height: 62px; object-fit: contain; }
.drawer-close { font-size: 32px; color: #fff; background: none; border: 0; cursor: pointer; }
.mobile-drawer nav { display: grid; gap: 4px; padding-top: 16px; }
.mobile-drawer nav a { padding: 11px 12px; border-radius: 10px; }
.mobile-drawer nav a.active, .mobile-drawer nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
body.menu-open { overflow: hidden; }
main { min-height: 60vh; }
.section { padding: 58px 0; }
.section.compact { padding: 34px 0; }
.section-inner { width: min(1280px, calc(100% - 64px)); margin: 0 auto; }
.section.tint { background: linear-gradient(180deg, var(--theme-soft) 0%, var(--theme-light) 100%); }
.eyebrow, .pill { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--theme-border); background: var(--theme-soft); color: var(--theme-dark); font-size: 13px; font-weight: 800; }
h1, h2, h3 { color: var(--theme-dark); line-height: 1.18; margin-top: 0; }
h1 { font-size: clamp(36px, 4.5vw, 62px); letter-spacing: -.03em; margin-bottom: 22px; }
h2 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 18px; }
h3 { font-size: 20px; margin-bottom: 10px; }
.section-subtitle { font-size: clamp(24px, 2.4vw, 34px); color: var(--theme-dark); margin: 0 0 18px; line-height: 1.2; }
p { margin: 0 0 16px; }
.lead { max-width: 930px; color: var(--text-muted); font-size: 18px; line-height: 1.82; }
.banner-section { padding: 30px 0 26px; background: radial-gradient(circle at 18% 18%, var(--theme-soft) 0%, transparent 38%), linear-gradient(180deg, var(--theme-light) 0%, #fff 100%); }
.banner-carousel { position: relative; width: 100%; overflow: hidden; border-radius: 24px; background: var(--white); border: 1px solid var(--theme-border); box-shadow: var(--shadow-soft); }
.banner-slide { display: none; align-items: center; justify-content: center; }
.banner-slide.active { display: flex; align-items: center; justify-content: center; }
.banner-slide img { display: block; width: 100%; height: auto; object-fit: contain; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(88,18,18,.80); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.banner-prev { left: 18px; } .banner-next { right: 18px; }
.banner-dots { position: absolute; left: 50%; bottom: 15px; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dot { width: 11px; height: 11px; padding: 0; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(88,18,18,.52); cursor: pointer; }
.banner-dot.active { background: var(--theme-accent); transform: scale(1.18); }
.intro-card, .content-card, .feature-card, .faq-item, .feedback-card, .notice, .page-hero-card { background: var(--white); border: 1px solid var(--theme-border); box-shadow: var(--shadow-soft); }
.intro-card { padding: 30px; border-radius: 22px; border-left: 5px solid var(--theme); }
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.category-pills a { padding: 9px 14px; border: 1px solid var(--theme-border); border-radius: 999px; color: var(--theme-dark); background: var(--white); font-weight: 700; }
.category-pills a:hover { color: var(--on-theme); background: var(--theme); }
.grid-8 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.content-card, .feature-card, .feedback-card { position: relative; padding: 24px; border-radius: 18px; overflow: visible; }
.content-card::before, .feature-card::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 { color: var(--theme); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.card-link { display: inline-flex; margin-top: 8px; color: var(--theme-dark); font-weight: 800; }
.card-link:hover { color: var(--theme); }
.media-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr); gap: 48px; align-items: center; }
.media-split.reverse .media-box { order: -1; }
.media-box, .banner-media, .hero-visual, .app-visual, .card-media { display: flex; align-items: center; justify-content: center; overflow: visible; }
.media-box { min-height: 300px; padding: 24px; border-radius: 24px; border: 1px solid var(--theme-border); background: linear-gradient(180deg, var(--white) 0%, var(--theme-soft) 100%); box-shadow: var(--shadow-soft); }
.media-box img, .banner-media img, .hero-visual img, .app-visual img, .card-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.media-box img { max-height: 360px; }
.page-hero { padding: 64px 0 42px; background: radial-gradient(circle at 15% 20%, 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.1fr) minmax(320px, .72fr); align-items: center; gap: 42px; }
.page-hero-card { padding: 28px; border-radius: 22px; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.page-hero-card img { max-width: 100%; max-height: 330px; width: auto; height: auto; object-fit: contain; opacity: 1; }
.page-hero-card.textual { display: block; min-height: 0; }
.check-list, .topic-list { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 12px; }
.check-list li, .topic-list li { position: relative; padding: 13px 14px 13px 42px; background: var(--theme-light); border: 1px solid var(--theme-border); border-radius: 12px; }
.check-list li::before, .topic-list li::before { content: '✓'; position: absolute; left: 15px; top: 12px; color: var(--theme); font-weight: 900; }
.faq-list { display: grid; gap: 15px; }
.faq-item { padding: 22px; border-radius: 16px; }
.faq-item h3 { margin-bottom: 8px; }
.feedback-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.feedback-card p { font-style: italic; color: var(--text-muted); }
.notice { padding: 24px; border-radius: 18px; border-left: 5px solid var(--theme); background: linear-gradient(180deg, var(--theme-soft) 0%, #fff 100%); }
.related-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.related-nav a { padding: 9px 13px; border-radius: 10px; background: var(--theme-soft); color: var(--theme-dark); border: 1px solid var(--theme-border); font-weight: 700; }
.site-footer { padding: 54px 0 0; background: linear-gradient(180deg, var(--theme-deep) 0%, #431010 100%); color: var(--on-dark); }
.footer-inner { width: min(1280px, calc(100% - 64px)); margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
.footer-inner h2 { color: #fff; font-size: 18px; }
.footer-inner a { display: block; padding: 4px 0; color: #fff1f1; }
.footer-inner a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { max-width: 190px; max-height: 72px; width: auto; height: auto; object-fit: contain; margin-bottom: 16px; }
.footer-brand p { max-width: 520px; color: #f7dada; }
.footer-notice { margin-top: 36px; padding: 18px max(32px, calc((100vw - 1280px)/2)); border-top: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.12); color: #fbe7e7; }
@media (min-width: 1440px) { .section-inner { width: min(1360px, calc(100% - 120px)); } }
@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .header-inner { grid-template-columns: 48px 1fr auto; }
  .menu-toggle { display: block; }
  .site-logo { justify-self: center; }
  .grid-8, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-hero-inner, .media-split { grid-template-columns: 1fr; }
  .media-split.reverse .media-box { order: 0; }
  .page-hero-card { min-height: 240px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .header-inner { width: calc(100% - 24px); min-height: 68px; gap: 10px; grid-template-columns: 42px minmax(0,1fr) auto; }
  .site-logo img { max-width: 128px; max-height: 48px; }
  .header-login { min-height: 40px; padding: 0 11px; font-size: 12px; }
  .section { padding: 42px 0; }
  .section-inner { width: calc(100% - 28px); }
  .banner-section { padding-top: 18px; }
  .banner-carousel { border-radius: 16px; }
  .banner-arrow { width: 38px; height: 38px; font-size: 25px; }
  .banner-prev { left: 8px; } .banner-next { right: 8px; }
  .grid-8, .grid-4, .grid-3, .grid-2, .feedback-grid { grid-template-columns: 1fr; }
  .media-box, .page-hero-card { min-height: 210px; padding: 18px; }
  h1 { font-size: clamp(34px, 10vw, 48px); }
  .footer-inner { width: calc(100% - 28px); grid-template-columns: 1fr; }
  .footer-notice { padding: 18px 14px; }
}
