:root {
  --theme: #b50909;
  --theme-dark: #8d0707;
  --theme-deep: #5e0505;
  --theme-light: #fbf0f0;
  --theme-soft: #f6dddd;
  --theme-accent: #d34a4a;
  --theme-hover: #9f0808;
  --theme-border: rgba(181, 9, 9, .26);
  --header-bg: #700606;
  --header-bg-2: #5e0505;
  --text-main: #2d2020;
  --text-muted: #705151;
  --on-theme: #ffffff;
  --on-header: #fff7f7;
  --on-dark: #fff7f7;
  --white: #ffffff;
  --shadow-soft: 0 16px 42px rgba(94, 5, 5, .13);
}
* { 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 { color: var(--theme-dark); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.container, .section-inner, .header-inner, .footer-inner, .hero-inner { width: min(1280px, calc(100% - 80px)); margin-left: auto; margin-right: auto; }
.section { padding: 72px 0; }
.section.alt { background: linear-gradient(180deg, var(--theme-soft) 0%, var(--theme-light) 100%); }
.section-head { max-width: 830px; margin-bottom: 34px; }
.section-kicker, .page-label { display: inline-flex; align-items: center; width: auto; max-width: max-content; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--theme-border); background: var(--theme-soft); color: var(--theme-dark); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.section-head h2, .content-block h2, .page-hero h1 { color: var(--theme-dark); }
.section-head h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.16; margin: 14px 0; }
.section-head p { margin: 0; color: var(--text-muted); font-size: 17px; }
.text-link { display: inline-flex; margin-top: 14px; font-weight: 800; text-decoration: none; border-bottom: 1px solid var(--theme-border); }
.text-link:hover { color: var(--theme-hover); }
.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 { 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-size: 14px; font-weight: 700; padding: 28px 0 23px; border-bottom: 3px solid transparent; }
.main-nav a.active, .main-nav a:hover { color: var(--on-header); border-bottom-color: var(--theme-accent); }
.main-btn, .header-login { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme) 48%, var(--theme-dark) 100%); color: var(--on-theme); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; box-shadow: 0 14px 28px rgba(0,0,0,.16); text-decoration: none; white-space: nowrap; font-weight: 900; letter-spacing: .02em; }
.main-btn:hover, .header-login:hover { background: linear-gradient(180deg, var(--theme) 0%, var(--theme-hover) 100%); color: var(--on-theme); }
.mobile-menu-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: rgba(255,255,255,.09); }
.mobile-menu-toggle span { width: 21px; height: 2px; background: var(--on-header); border-radius: 10px; }
.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), var(--header-bg-2)); color: var(--on-header); padding: 20px; box-shadow: 20px 0 60px rgba(0,0,0,.24); }
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-overlay { position: fixed; inset: 0; opacity: 0; visibility: hidden; z-index: 10000; background: rgba(45,32,32,.55); 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: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.18); }
.drawer-logo img { max-width: 150px; max-height: 58px; object-fit: contain; }
.drawer-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: var(--on-header); font-size: 25px; }
.drawer-nav { display: grid; gap: 5px; padding-top: 18px; }
.drawer-nav a { color: var(--on-header); text-decoration: none; padding: 11px 12px; border-radius: 10px; border-left: 3px solid transparent; }
.drawer-nav a.active, .drawer-nav a:hover { background: rgba(255,255,255,.1); border-left-color: var(--theme-accent); }
.hero-section { padding: 58px 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%); }
.hero-inner { min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: 56px; }
.hero-badge, .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: 800; text-decoration: none; }
.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; margin: 0 0 26px; }
.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: min(100%, 540px); min-height: 320px; max-height: 420px; padding: 34px; border-radius: 32px; 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); }
.hero-media-box img { max-width: 100%; max-height: 340px; width: auto; height: auto; object-fit: contain; opacity: 1; }
.info-section { padding: 30px 0 52px; background: var(--white); }
.info-grid, .feature-grid, .service-grid, .review-grid, .faq-grid, .wall-grid { display: grid; gap: 22px; }
.info-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wall-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-card, .card, .zone-card, .feature-card, .category-card, .faq-item, .notice, .visual-card, .review-card, .topic-card, .step-card { position: relative; 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, .topic-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; font-size: 18px; }
.info-card h2, .category-card h3, .feature-card h3, .topic-card h3, .step-card h3, .faq-item h3 { color: var(--theme-dark); margin: 10px 0; line-height: 1.28; }
.info-card p, .category-card p, .feature-card p, .topic-card p, .step-card p, .review-card p, .faq-item p { color: var(--text-muted); margin: 0; }
.category-section { padding: 28px 0 64px; background: var(--white); }
.category-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.category-pills a { background: var(--white); color: var(--theme-dark); border: 1px solid var(--theme-border); border-radius: 999px; padding: 10px 18px; text-decoration: none; font-weight: 800; box-shadow: 0 7px 18px rgba(94,5,5,.06); }
.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: 12px; width: max-content; }
.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr); gap: 52px; align-items: center; }
.split-section.reverse .media-box { order: -1; }
.media-box { min-height: 310px; padding: 30px; border-radius: 28px; background: linear-gradient(180deg, var(--white), var(--theme-soft)); border: 1px solid var(--theme-border); box-shadow: var(--shadow-soft); }
.media-box img, .app-visual img, .card-media img { max-width: 100%; max-height: 320px; width: auto; height: auto; object-fit: contain; }
.content-block h2 { font-size: clamp(28px, 2.6vw, 42px); line-height: 1.2; margin: 14px 0 18px; }
.content-block p { color: var(--text-muted); font-size: 17px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { padding: 13px 16px 13px 42px; position: relative; border-radius: 14px; background: var(--theme-soft); border: 1px solid var(--theme-border); }
.check-list li::before { content: "✓"; position: absolute; left: 16px; color: var(--theme); font-weight: 900; }
.page-hero { padding: 60px 0 46px; background: radial-gradient(circle at 90% 20%, var(--theme-soft), transparent 35%), linear-gradient(180deg, var(--theme-light), var(--white)); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .75fr); gap: 50px; align-items: center; }
.page-hero h1 { margin: 14px 0 20px; font-size: clamp(40px, 4vw, 62px); line-height: 1.08; }
.page-hero p { font-size: 18px; color: var(--text-muted); margin: 0; }
.page-visual { min-height: 300px; padding: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--theme-border); border-radius: 28px; background: linear-gradient(180deg, var(--white), var(--theme-soft)); box-shadow: var(--shadow-soft); }
.page-visual img { max-width: 100%; max-height: 300px; width: auto; height: auto; object-fit: contain; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.topic-card small, .step-card small { color: var(--theme); font-weight: 900; }
.review-card { border-left: 4px solid var(--theme); }
.review-card strong { display: block; color: var(--theme-dark); margin-top: 12px; }
.faq-item { background: linear-gradient(180deg, var(--white), #fffaf2); }
.notice { background: var(--theme-soft); border-left: 5px solid var(--theme); }
.notice h2 { color: var(--theme-dark); margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }
.related-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.related-nav a { padding: 10px 15px; border-radius: 999px; border: 1px solid var(--theme-border); background: var(--white); text-decoration: none; font-weight: 800; }
.app-panel { padding: 34px; border-radius: 28px; background: linear-gradient(135deg, var(--theme-deep), var(--theme-dark)); color: var(--on-dark); display: grid; grid-template-columns: 1fr minmax(280px, .65fr); gap: 40px; align-items: center; box-shadow: var(--shadow-soft); }
.app-panel h2 { color: var(--on-dark); font-size: clamp(30px, 3vw, 44px); margin-top: 0; }
.app-panel p { color: var(--on-dark); }
.app-visual { min-height: 260px; padding: 22px; border-radius: 24px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.footer { background: linear-gradient(180deg, var(--theme-dark) 0%, var(--theme-deep) 100%); color: var(--on-dark); padding: 58px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer h2 { color: var(--on-dark); font-size: 16px; margin: 0 0 14px; }
.footer a { display: block; color: var(--on-dark); text-decoration: none; margin: 7px 0; opacity: .94; }
.footer p { color: var(--on-dark); opacity: .84; }
.footer-logo img { max-width: 180px; max-height: 70px; object-fit: contain; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); display: flex; gap: 14px; align-items: center; }
.footer-bottom strong { min-width: 45px; height: 45px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--theme-accent); color: var(--on-dark); }
.prose p { margin: 0 0 18px; color: var(--text-muted); }
.prose strong { color: var(--theme-dark); }
@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 (max-width: 1180px) {
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 13px; }
  .category-grid, .topic-grid, .wall-grid { 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 { padding: 10px 16px; font-size: 13px; }
  .hero-section { padding: 46px 0 34px; }
  .hero-inner, .page-hero-grid, .split-section, .app-panel { grid-template-columns: 1fr; min-height: auto; gap: 32px; }
  .split-section.reverse .media-box { order: 0; }
  .hero-content h1, .page-hero h1 { font-size: clamp(36px, 7vw, 52px); }
  .hero-media-box, .page-visual { max-width: 100%; min-height: 260px; padding: 24px; }
  .hero-media-box img, .page-visual img { max-height: 290px; }
  .info-grid, .feature-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .container, .section-inner, .header-inner, .footer-inner, .hero-inner { width: min(100% - 32px, 1280px); }
  .section { padding: 54px 0; }
  .info-grid, .feature-grid, .service-grid, .review-grid, .faq-grid, .category-grid, .topic-grid, .steps-grid, .wall-grid, .footer-grid { grid-template-columns: 1fr; }
  .info-card, .card, .zone-card, .feature-card, .category-card, .faq-item, .notice, .visual-card, .review-card, .topic-card, .step-card { padding: 22px; }
  .hero-inner { gap: 26px; }
  .hero-content p, .page-hero p { font-size: 16px; }
  .hero-media-box { min-height: 230px; }
  .hero-media-box img { max-height: 250px; }
  .media-box { min-height: 240px; padding: 22px; }
  .footer-bottom { align-items: flex-start; }
}
@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 11px; font-size: 12px; }
  .hero-tags { gap: 8px; }
  .hero-tags span, .hero-tags a { padding: 8px 11px; font-size: 13px; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .header-inner { gap: 12px; }
  .site-logo img { max-width: 150px; }
  .main-nav { gap: 8px; }
  .main-nav a { font-size: 12px; }
  .header-login { padding: 10px 14px; font-size: 12px; }
}

/* MOBILE_FIX_TYPE_A_20260930: restore mobile menu icon + narrow-screen hardening */
@media (max-width: 1023px) {
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  .header-inner, .header-inner > *, .hero-inner > *, .page-hero-inner > *, .split > * { min-width: 0; }
  .mobile-menu-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 8px !important;
    position: relative;
    z-index: 2;
    opacity: 1 !important;
    visibility: visible !important;
    color: var(--on-header, #fff) !important;
    -webkit-appearance: none;
    appearance: none;
  }
  .mobile-menu-toggle span {
    display: block !important;
    flex: 0 0 2px !important;
    width: 24px !important;
    height: 2px !important;
    min-height: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: var(--on-header, #fff) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
@media (max-width: 390px) {
  .header-inner { width: calc(100% - 16px) !important; gap: 6px !important; }
  .site-logo { min-width: 0; overflow: hidden; }
  .site-logo img { max-width: min(116px, 35vw) !important; }
  .header-actions .main-btn { max-width: 94px; min-width: 0; padding-inline: 8px !important; }
}

/* CHATGPT_HAMBURGER_SPAN_FIX_V6_START */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
  }

  .mobile-menu-toggle::before,
  .mobile-menu-toggle::after {
    content: none !important;
    display: none !important;
    box-shadow: none !important;
  }

  .mobile-menu-toggle span {
    display: block !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 2px !important;
    min-height: 2px !important;
    max-height: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: var(--on-header, #fff) !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    flex: 0 0 2px !important;
  }
}
/* CHATGPT_HAMBURGER_SPAN_FIX_V6_END */
