:root {
  --theme: #901b11;
  --theme-dark: #6e140d;
  --theme-deep: #3f0c08;
  --theme-light: #fff4f1;
  --theme-soft: #fbe4de;
  --theme-accent: #c6493d;
  --theme-hover: #7c160e;
  --theme-border: rgba(144, 27, 17, .22);
  --header-bg: #4d100b;
  --header-bg-2: #71170f;
  --text-main: #30221f;
  --text-muted: #6e5a55;
  --on-theme: #ffffff;
  --on-header: #fff8f6;
  --on-dark: #fff4f1;
  --white: #ffffff;
  --shadow-soft: 0 16px 40px rgba(86, 18, 12, .14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text-main); background: var(--theme-light); line-height: 1.72; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container, .section-inner, .header-inner, .footer-inner { width: min(1280px, calc(100% - 80px)); margin-left: auto; margin-right: auto; }
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.section-soft { background: var(--theme-soft); }
.section-white { background: var(--white); }
.section-title { max-width: 860px; margin-bottom: 34px; }
.eyebrow, .page-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--theme-border); border-radius: 999px; background: var(--theme-soft); color: var(--theme-dark); font-weight: 700; font-size: 13px; letter-spacing: .03em; }
h1, h2, h3 { color: var(--theme-dark); line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -.025em; }
h2 { font-size: clamp(27px, 3vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 18px; }
.lead { font-size: 18px; color: var(--text-muted); max-width: 880px; }
.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 var(--theme-border); }
.header-inner { min-height: 78px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 26px; }
.site-logo img, .drawer-logo img, .footer-logo img { display: block; width: auto; height: auto; object-fit: contain; }
.site-logo img { max-width: 172px; max-height: 58px; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.desktop-nav a { position: relative; padding: 11px 8px; white-space: nowrap; font-size: 13px; color: var(--on-header); opacity: .88; font-weight: 700; }
.desktop-nav a:hover, .desktop-nav a.active { opacity: 1; }
.desktop-nav a.active::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 3px; border-radius: 999px; background: var(--theme-accent); }
.header-login, .main-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme) 48%, var(--theme-dark) 100%); color: var(--on-theme); box-shadow: 0 14px 28px rgba(0, 0, 0, .16); font-weight: 800; transition: transform .2s ease, filter .2s ease; }
.header-login { padding: 11px 18px; white-space: nowrap; font-size: 13px; }
.main-btn { padding: 13px 22px; }
.header-login:hover, .main-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--on-header); margin: 5px 0; border-radius: 3px; }
.drawer-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(44, 9, 6, .58); opacity: 0; visibility: hidden; transition: .25s ease; }
.mobile-drawer { position: fixed; z-index: 10001; left: 0; top: 0; bottom: 0; width: min(360px, 86vw); padding: 22px; background: linear-gradient(180deg, var(--header-bg) 0%, var(--theme-deep) 100%); color: var(--on-dark); transform: translateX(-102%); transition: transform .25s ease; overflow-y: auto; }
.menu-open .drawer-overlay { opacity: 1; visibility: visible; }
.menu-open .mobile-drawer { transform: translateX(0); }
.menu-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.16); }
.drawer-logo img { max-width: 150px; max-height: 58px; }
.drawer-close { width: 40px; height: 40px; border: 0; border-radius: 10px; color: var(--on-dark); background: rgba(255,255,255,.12); font-size: 26px; line-height: 1; }
.drawer-nav { display: grid; gap: 8px; padding-top: 18px; }
.drawer-nav a { padding: 11px 12px; border-radius: 10px; color: var(--on-dark); }
.drawer-nav a:hover, .drawer-nav a.active { background: rgba(255,255,255,.11); }
.banner-section { padding: 34px 0 38px; background: radial-gradient(circle at 16% 5%, var(--theme-soft), transparent 35%), linear-gradient(180deg, #f8dfda 0%, var(--theme-light) 100%); }
.banner-carousel { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--theme-border); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-soft); }
.banner-slide { display: none; align-items: center; justify-content: center; width: 100%; }
.banner-slide.active { display: flex; }
.banner-slide img { display: block; width: 100%; height: auto; object-fit: contain; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(63,12,8,.72); color: #fff; font-size: 30px; line-height: 1; }
.banner-prev { left: 18px; }
.banner-next { right: 18px; }
.banner-dots { position: absolute; left: 50%; bottom: 15px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.banner-dot { width: 10px; height: 10px; border: 0; padding: 0; border-radius: 50%; background: rgba(255,255,255,.65); box-shadow: 0 0 0 1px rgba(63,12,8,.25); }
.banner-dot.active { width: 28px; border-radius: 999px; background: var(--theme-accent); }
.intro-card { margin-top: 26px; padding: 28px 30px; background: var(--white); border: 1px solid var(--theme-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.intro-card h2 { font-size: 27px; margin-bottom: 12px; }
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.category-pills a { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--theme-border); background: var(--theme-soft); color: var(--theme-dark); font-weight: 700; transition: .2s ease; }
.category-pills a:hover { background: var(--theme); color: var(--on-theme); }
.headline-section { padding: 58px 0 24px; background: var(--theme-light); }
.headline-card { padding: 38px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--white), var(--theme-soft)); border: 1px solid var(--theme-border); box-shadow: var(--shadow-soft); }
.headline-card h1 { max-width: 980px; margin-bottom: 20px; }
.grid-8, .grid-4, .grid-3, .grid-2 { display: grid; gap: 22px; }
.grid-8 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.info-card, .category-card, .feature-card, .faq-item, .topic-card, .feedback-card { position: relative; background: var(--white); border: 1px solid var(--theme-border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: 26px; }
.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; }
.card-number { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 30px; border-radius: 999px; background: var(--theme-soft); color: var(--theme); font-weight: 800; margin-bottom: 12px; }
.category-card p, .feature-card p, .topic-card p, .feedback-card p { color: var(--text-muted); }
.text-link { color: var(--theme); font-weight: 800; }
.text-link:hover { color: var(--theme-hover); }
.service-strip { padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--theme-deep), var(--header-bg-2)); color: var(--on-dark); box-shadow: var(--shadow-soft); }
.service-strip h2, .service-strip h3 { color: var(--on-dark); }
.service-strip p { color: rgba(255,255,255,.82); }
.media-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 46px; align-items: center; }
.media-row.reverse { grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr); }
.media-row.reverse .media-box { order: -1; }
.media-box, .app-visual, .card-media { display: flex; align-items: center; justify-content: center; overflow: visible; min-height: 300px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--theme-border); background: linear-gradient(180deg, var(--white), var(--theme-soft)); box-shadow: var(--shadow-soft); }
.media-box img, .app-visual img, .card-media img { max-width: 100%; max-height: 360px; width: auto; height: auto; object-fit: contain; }
.notice { padding: 24px 26px; border: 1px solid var(--theme-border); border-left: 5px solid var(--theme); border-radius: var(--radius-md); background: var(--theme-soft); }
.notice h2, .notice h3 { margin-bottom: 10px; }
.list-check { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.list-check li { position: relative; padding-left: 28px; }
.list-check li::before { content: '✓'; position: absolute; left: 0; color: var(--theme); font-weight: 900; }
.page-hero { padding: 62px 0 38px; 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.05fr) minmax(340px, .95fr); gap: 50px; align-items: center; }
.page-hero h1 { margin: 18px 0; max-width: 900px; }
.page-hero p { color: var(--text-muted); font-size: 18px; }
.page-media { width: min(100%, 520px); min-height: 310px; max-height: 420px; padding: 30px; display: flex; align-items: center; justify-content: center; justify-self: end; overflow: visible; border: 1px solid var(--theme-border); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--white) 0%, var(--theme-soft) 100%); box-shadow: var(--shadow-soft); }
.page-media img { max-width: 100%; max-height: 340px; width: auto; height: auto; object-fit: contain; opacity: 1; }
.article-copy { font-size: 17px; }
.article-copy p { margin-bottom: 18px; }
.article-copy h2 { margin-top: 0; margin-bottom: 18px; }
.topic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 26px; }
.faq-list { display: grid; gap: 16px; }
.faq-item h3 { margin-bottom: 10px; font-size: 19px; }
.faq-item p { margin: 0; color: var(--text-muted); }
.feedback-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.feedback-card strong { display: block; color: var(--theme-dark); margin-bottom: 8px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a { padding: 10px 14px; border: 1px solid var(--theme-border); background: var(--white); color: var(--theme-dark); border-radius: 12px; font-weight: 700; }
.related-links a:hover { background: var(--theme-soft); }
.site-footer { background: var(--theme-deep); color: var(--on-dark); padding-top: 58px; }
.footer-inner { display: grid; grid-template-columns: minmax(260px,.85fr) minmax(0,1.65fr); gap: 52px; }
.footer-logo img { max-width: 180px; max-height: 66px; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,.72); max-width: 520px; }
.footer-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.footer-links h2 { color: var(--on-dark); font-size: 16px; margin-bottom: 14px; }
.footer-links a { display: block; color: rgba(255,255,255,.75); padding: 5px 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 46px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); }
.footer-bottom-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,.7); font-size: 13px; max-width: 850px; }
.footer-bottom strong { color: #fff; }
@media (min-width: 1440px) {
  .container, .section-inner, .header-inner, .footer-inner { width: min(1360px, calc(100% - 120px)); }
  .desktop-nav a { font-size: 14px; padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 1199px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .site-logo { justify-self: center; }
  .grid-8 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1023px) {
  .container, .section-inner, .header-inner, .footer-inner { width: min(100% - 48px, 1280px); }
  .section { padding: 58px 0; }
  .media-row, .media-row.reverse, .page-hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .media-row.reverse .media-box { order: 0; }
  .page-media { justify-self: stretch; width: 100%; }
  .grid-3, .feedback-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .container, .section-inner, .header-inner, .footer-inner { width: min(100% - 32px, 1280px); }
  .header-inner { min-height: 66px; gap: 10px; }
  .menu-toggle { width: 38px; height: 38px; padding: 8px; }
  .site-logo img { max-width: 118px; max-height: 46px; }
  .header-login { padding: 9px 11px; font-size: 11px; }
  .banner-section { padding: 20px 0 26px; }
  .banner-carousel { border-radius: 18px; }
  .banner-arrow { width: 36px; height: 36px; font-size: 24px; }
  .banner-prev { left: 8px; }
  .banner-next { right: 8px; }
  .banner-dots { bottom: 8px; }
  .intro-card, .headline-card { padding: 22px; border-radius: 18px; }
  .headline-section { padding-top: 36px; }
  .section { padding: 46px 0; }
  .section-tight { padding: 34px 0; }
  h1 { font-size: clamp(31px, 10vw, 43px); }
  h2 { font-size: 27px; }
  .lead, .page-hero p { font-size: 16px; }
  .grid-8, .grid-4, .grid-3, .grid-2, .topic-grid, .feedback-grid { grid-template-columns: 1fr; }
  .media-box, .app-visual, .card-media, .page-media { min-height: 230px; padding: 20px; }
  .media-box img, .app-visual img, .card-media img, .page-media img { max-height: 260px; }
  .page-hero { padding: 44px 0 28px; }
  .page-hero-inner { gap: 26px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; }
}
@media (max-width: 480px) {
  .header-login { max-width: 102px; text-align: center; }
  .footer-links { grid-template-columns: 1fr; }
  .category-pills { gap: 8px; }
  .category-pills a { padding: 8px 11px; font-size: 13px; }
}

/* MOBILE_FIX_TYPE_B_20260930: remove 320px horizontal overflow */
@media (max-width: 900px) {
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  body { min-width: 0; }
  .header-inner,
  .hero-inner,
  .section-inner,
  .topic-hero-inner,
  .footer-inner { max-width: 100%; }

  .header-inner {
    width: calc(100% - 20px) !important;
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, 92px) !important;
    gap: 6px !important;
  }
  .header-inner > *,
  .hero-inner > *,
  .topic-hero-inner > *,
  .split > *,
  .split.reverse > *,
  .footer-inner > *,
  .info-grid > *,
  .cards-grid > *,
  .features-grid > *,
  .reviews-grid > *,
  .steps-grid > * { min-width: 0; }

  .menu-toggle {
    width: 40px !important;
    min-width: 40px !important;
    padding: 6px !important;
  }
  .site-logo {
    min-width: 0 !important;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .site-logo img {
    width: auto !important;
    height: auto !important;
    max-width: min(132px, 38vw) !important;
    max-height: 52px !important;
    object-fit: contain;
  }
  .header-login {
    width: 92px !important;
    max-width: 92px !important;
    min-width: 0 !important;
    padding: 9px 6px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .intro-card,
  .content-panel,
  .card,
  .feature-card,
  .faq-item,
  .review-card,
  .media-box,
  .page-media,
  .app-visual,
  .card-media { max-width: 100%; min-width: 0; }

  img { height: auto; }
}

@media (max-width: 360px) {
  :root { --container: calc(100% - 20px) !important; }
  .header-inner {
    width: calc(100% - 12px) !important;
    grid-template-columns: 38px minmax(0, 1fr) minmax(0, 86px) !important;
    gap: 4px !important;
  }
  .menu-toggle { width: 38px !important; min-width: 38px !important; }
  .site-logo img { max-width: min(120px, 37vw) !important; }
  .header-login { width: 86px !important; max-width: 86px !important; padding-inline: 5px !important; font-size: 10.5px !important; }
}
