:root {
  --theme: #4b22b8;
  --theme-dark: #371989;
  --theme-deep: #211052;
  --theme-light: #f4f0ff;
  --theme-soft: #e8dfff;
  --theme-accent: #7453d6;
  --theme-hover: #4220a1;
  --theme-border: rgba(75, 34, 184, .24);
  --header-bg: #2c176f;
  --header-bg-2: #3b1f8c;
  --text-main: #302942;
  --text-muted: #706688;
  --on-theme: #ffffff;
  --on-header: #faf8ff;
  --on-dark: #f7f3ff;
  --white: #ffffff;
  --shadow-soft: 0 16px 40px rgba(33, 16, 82, .15);
  --footer-accent: #c4b3f4;
  --on-dark-soft: rgba(247,243,255,.84);
  --on-dark-muted: rgba(247,243,255,.74);
  --header-link-hover: #ddceff;
  --theme-accent-hover: #8a6ce2;
  --button-shadow: rgba(0,0,0,.16);
  --header-control-border: rgba(255,255,255,.26);
  --header-control-bg: rgba(255,255,255,.09);
  --drawer-overlay-bg: rgba(33,16,82,.58);
  --header-divider: rgba(255,255,255,.16);
  --header-close-border: rgba(255,255,255,.24);
  --header-close-bg: rgba(255,255,255,.08);
  --footer-divider: rgba(255,255,255,.17);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
html { scroll-behavior: smooth; }
body { background: var(--theme-light); color: var(--text-main); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.72; }
a { color: var(--theme-dark); text-underline-offset: 4px; }
a:hover { color: var(--theme-hover); }
img { display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.container, .section-inner, .header-inner, .footer-inner, .hero-inner { width: min(1280px, calc(100% - 80px)); margin-left: auto; margin-right: auto; }
.section { padding: 58px 0; }
.section-soft { background: var(--theme-soft); }
.section-white { background: var(--white); }
.section-heading { max-width: 820px; margin: 0 0 30px; }
.eyebrow, .page-label, .hero-badge { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 8px 14px; border-radius: 999px; background: var(--theme-soft); color: var(--theme-dark); border: 1px solid var(--theme-border); font-weight: 800; letter-spacing: .02em; }
h1, h2, h3 { color: var(--theme-dark); line-height: 1.2; }
h1 { font-size: clamp(38px, 4.2vw, 64px); margin: 16px 0 22px; letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 2.6vw, 40px); margin: 0 0 16px; }
h3 { font-size: 21px; margin: 0 0 10px; }
p { margin: 0 0 16px; }
.lead { font-size: 18px; line-height: 1.8; color: var(--text-main); }
.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: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; overflow: visible; }
.site-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: visible; }
.site-logo img { max-width: 160px; max-height: 62px; width: auto; height: auto; object-fit: contain; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 13px; }
.main-nav a { color: var(--on-header); text-decoration: none; white-space: nowrap; font-size: 13.5px; font-weight: 700; padding: 26px 0 22px; border-bottom: 3px solid transparent; }
.main-nav a.active, .main-nav a:hover { color: var(--header-link-hover); border-bottom-color: var(--theme-accent); }
.header-actions { display: flex; justify-content: flex-end; }
.main-btn, .login-btn, .header-login { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme) 48%, var(--theme-dark) 100%); color: var(--on-theme); border-radius: 999px; box-shadow: 0 14px 28px var(--button-shadow); text-decoration: none; white-space: nowrap; font-weight: 800; }
.main-btn:hover, .header-login:hover { background: linear-gradient(180deg, var(--theme-accent-hover) 0%, var(--theme-hover) 100%); color: var(--on-theme); transform: translateY(-1px); }
.mobile-menu-toggle { display: none; border: 1px solid var(--header-control-border); background: var(--header-control-bg); border-radius: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0; }
.mobile-menu-toggle span { width: 20px; height: 2px; background: var(--on-header); border-radius: 4px; }
.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: 20px; overflow-y: auto; }
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-overlay { position: fixed; inset: 0; opacity: 0; visibility: hidden; z-index: 10000; background: var(--drawer-overlay-bg); transition: opacity .28s ease, visibility .28s ease; }
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--header-divider); }
.drawer-logo img { max-width: 150px; max-height: 58px; width: auto; height: auto; object-fit: contain; }
.drawer-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--header-close-border); background: var(--header-close-bg); color: var(--on-header); font-size: 28px; line-height: 1; }
.drawer-nav { display: grid; gap: 2px; padding-top: 16px; }
.drawer-nav a { color: var(--on-header); text-decoration: none; padding: 11px 10px; border-radius: 10px; }
.drawer-nav a:hover { background: var(--header-control-bg); color: var(--header-link-hover); }
.hero-section { padding: 58px 0 44px; background: radial-gradient(circle at 15% 20%, var(--theme-soft) 0%, transparent 34%), linear-gradient(180deg, var(--theme-light) 0%, var(--white) 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: 56px; }
.hero-content h1 { font-size: clamp(42px, 4.2vw, 64px); line-height: 1.08; letter-spacing: -.03em; margin: 16px 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: 12px; margin-top: 22px; }
.hero-tags span, .hero-tags a { display: inline-flex; align-items: center; border-radius: 999px; padding: 10px 16px; background: var(--theme-soft); color: var(--theme-dark); border: 1px solid var(--theme-border); font-weight: 700; text-decoration: none; }
.hero-visual, .media-box, .app-visual, .card-media { display: flex; align-items: center; justify-content: center; overflow: visible; }
.hero-media-box { width: min(100%, 540px); min-height: 320px; max-height: 420px; padding: 34px; display: flex; align-items: center; justify-content: center; overflow: visible; border-radius: 30px; background: linear-gradient(180deg, var(--white) 0%, var(--theme-soft) 100%); border: 1px solid var(--theme-border); box-shadow: var(--shadow-soft); }
.hero-media-box img { max-width: 68%; max-height: 340px; width: auto; height: auto; object-fit: contain; opacity: 1; }
.info-section { padding: 32px 0 48px; background: var(--white); }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.info-card, .category-card, .feature-card, .faq-item, .notice, .visual-card, .zone-card, .review-card, .content-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::before, .category-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; }
.info-card span, .card-number { color: var(--theme); font-weight: 900; }
.info-card h2, .category-card h3, .feature-card h3 { color: var(--theme-dark); }
.info-card p, .category-card p, .feature-card p { color: var(--text-muted); }
.category-section { padding: 26px 0 42px; background: var(--white); }
.category-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.category-pills a { background: var(--white); color: var(--theme-dark); border: 1px solid var(--theme-border); border-radius: 999px; padding: 9px 16px; 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 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.category-card { display: flex; flex-direction: column; }
.category-card .text-link { margin-top: auto; padding-top: 10px; }
.text-link { color: var(--theme-dark); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.service-grid, .content-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.content-grid-2, .review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.split-block { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 44px; align-items: center; }
.split-block.reverse .split-copy { order: 2; }
.split-block.reverse .split-media { order: 1; }
.split-media { min-height: 300px; border-radius: 28px; border: 1px solid var(--theme-border); background: linear-gradient(160deg, var(--white), var(--theme-soft)); box-shadow: var(--shadow-soft); display: flex; align-items: center; justify-content: center; padding: 28px; overflow: visible; }
.split-media img { max-width: 100%; max-height: 310px; width: auto; height: auto; object-fit: contain; }
.bullet-list, .check-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.bullet-list li, .check-list li { position: relative; padding: 14px 16px 14px 44px; border: 1px solid var(--theme-border); background: var(--white); border-radius: 16px; }
.bullet-list li::before, .check-list li::before { content: "•"; position: absolute; left: 18px; top: 12px; width: 18px; height: 18px; color: var(--theme); font-size: 22px; line-height: 1; }
.page-hero { padding: 52px 0; background: radial-gradient(circle at 90% 10%, var(--theme-soft), transparent 34%), linear-gradient(180deg, var(--theme-light), var(--white)); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; gap: 44px; }
.page-hero-copy { max-width: 760px; }
.page-hero-visual { min-height: 300px; border-radius: 28px; border: 1px solid var(--theme-border); box-shadow: var(--shadow-soft); background: linear-gradient(180deg, var(--white), var(--theme-soft)); display: flex; align-items: center; justify-content: center; padding: 28px; overflow: visible; }
.page-hero-visual img { max-width: 100%; max-height: 290px; width: auto; height: auto; object-fit: contain; }
.topic-section { padding: 52px 0; }
.topic-copy { max-width: 980px; }
.topic-copy p { font-size: 17px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 26px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.guide-item { border: 1px solid var(--theme-border); background: var(--white); border-radius: 20px; padding: 22px; }
.guide-item strong { display: block; color: var(--theme-dark); font-size: 18px; margin-bottom: 8px; }
.review-section { background: linear-gradient(180deg, var(--theme-soft), var(--theme-light)); }
.review-card p { margin-bottom: 0; }
.review-card strong { display: block; color: var(--theme-dark); margin-bottom: 8px; }
.faq-list { display: grid; gap: 16px; }
.faq-item h3 { font-size: 19px; }
.notice { background: linear-gradient(135deg, var(--theme-light) 0%, var(--theme-soft) 100%); border-left: 5px solid var(--theme); }
.notice strong { color: var(--theme-dark); }
.related-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-links a { padding: 10px 15px; border-radius: 14px; border: 1px solid var(--theme-border); background: var(--white); text-decoration: none; font-weight: 700; }
.footer { background: linear-gradient(180deg, var(--theme-dark) 0%, var(--theme-deep) 100%); color: var(--on-dark); padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.footer h2 { color: var(--footer-accent); font-size: 18px; }
.footer a { color: var(--on-dark); display: block; text-decoration: none; margin: 7px 0; }
.footer a:hover { color: var(--footer-accent); }
.footer-brand p { color: var(--on-dark-soft); }
.footer-logo { display: inline-flex !important; }
.footer-logo img { max-width: 180px; max-height: 70px; width: auto; height: auto; object-fit: contain; margin-bottom: 14px; }
.footer-notice { margin-top: 32px; padding: 22px 0; border-top: 1px solid var(--footer-divider); border-bottom: 1px solid var(--footer-divider); }
.footer-notice strong { color: var(--footer-accent); }
.footer-notice p { margin: 8px 0 0; color: var(--on-dark-soft); }
.footer-bottom { padding-top: 20px; color: var(--on-dark-muted); font-size: 14px; }
@media (min-width: 1440px) {
  .container, .section-inner, .header-inner, .footer-inner, .hero-inner { width: min(1360px, calc(100% - 120px)); }
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(480px, .95fr); gap: 72px; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .header-inner { width: min(100% - 28px, 1280px); gap: 10px; }
  .site-logo img { max-width: 128px; max-height: 54px; }
  .main-nav { gap: 8px; }
  .main-nav a { font-size: 11.5px; }
  .header-login { font-size: 12px; padding: 9px 12px; }
}
@media (max-width: 1023px) {
  .header-inner { width: min(100% - 28px, 1280px); min-height: 68px; 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 { padding: 10px 16px; }
  .hero-section { padding: 46px 0 36px; }
  .hero-inner, .page-hero-grid, .split-block { grid-template-columns: 1fr; gap: 30px; }
  .split-block.reverse .split-copy, .split-block.reverse .split-media { order: initial; }
  .hero-media-box, .page-hero-visual { max-width: 100%; min-height: auto; padding: 24px; }
  .hero-media-box img, .page-hero-visual img { max-height: 300px; }
  .info-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid, .content-grid-3, .card-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, .hero-inner { width: min(100% - 32px, 1280px); }
  .section, .topic-section { padding: 42px 0; }
  .hero-content h1 { font-size: clamp(34px, 9.5vw, 48px); }
  .hero-content p, .lead { font-size: 16px; }
  .hero-media-box img { max-width: 78%; }
  .info-grid, .category-grid, .service-grid, .content-grid-3, .content-grid-2, .review-grid, .card-grid, .guide-grid, .footer-grid { grid-template-columns: 1fr; }
  .category-pills { justify-content: flex-start; }
  .footer { padding-top: 44px; }
}
@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(115px, 35vw); max-height: 48px; }
  .header-actions .main-btn { padding: 8px 10px; font-size: 12px; }
}
