/* Shared public/Web shell. Native login and LINE MINI App keep their own shells. */
:root { --page-wide: 1080px; --page-settings: 820px; --page-reading: 780px; --space-xs: 8px; --space-sm: 16px; --space-md: 24px; --space-lg: 32px; --space-xl: 48px; }
.site-header { width: 100%; max-width: 1240px; height: auto; min-height: 96px; margin: auto; padding: 20px 32px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .brand { flex-shrink: 0; white-space: nowrap; font-size: 28px; }
.site-header .brand span { white-space: nowrap; }
body > header.site-header .site-nav { display: flex; align-items: center; gap: 8px; overflow: visible; width: auto; max-width: 100%; padding: 0; white-space: normal; }
body > header.site-header .site-nav > a, body > header.site-header .site-nav button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px; margin: 0; font-size: 13px; line-height: 1.5; white-space: nowrap; border-radius: 10px; }
body > header.site-header .site-nav > a:hover, body > header.site-header .site-nav button:hover { background: #edf6fb; }
body > header.site-header .site-nav .signup-button { background: var(--ink); color: white; box-shadow: none; font-size: 13px; }
.site-menu-toggle { border: 1px solid #c7d9df; border-radius: 12px; min-height: 44px; padding: 10px 14px; background: white; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; align-items: center; gap: 10px; }
.site-header .site-menu-toggle { display: none; }
.app-main { width: 100%; padding: 24px 32px 64px; }
.help-center { max-width: var(--page-wide); margin: 24px auto 64px; }
.help-detail { max-width: var(--page-reading); margin: 24px auto 64px; }
.context-page { max-width: var(--page-wide); margin: 24px auto 48px; }
.account-panel.settings-page, .reminders-page.settings-page, .local-calendar.settings-page { max-width: var(--page-settings); margin: 24px auto 48px; }
.legal-page { max-width: var(--page-reading); margin: 24px auto 48px; }
.help-body, .legal-page p, .legal-page li { font-size: 16px; line-height: 1.9; }
.help-detail h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.55; letter-spacing: -.03em; overflow-wrap: anywhere; }
.site-footer { max-width: none; width: 100%; margin: 0; padding: 48px max(24px, calc((100% - 1176px) / 2)); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; background: #eef7f8; }
.site-footer .brand { font-size: 25px; white-space: nowrap; }
.site-footer p { font-size: 13px; margin: 8px 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; width: 100%; font-size: 13px; line-height: 1.7; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer small { width: 100%; margin: 0; font-size: 12px; text-align: right; line-height: 1.7; }
.landing-page .section { padding-top: 64px; padding-bottom: 64px; }
.landing-page .cards p, .landing-page .steps p { font-size: 13px; line-height: 1.9; }
.landing-page .cards button { min-height: 44px; font-size: 12px; }
.landing-page .tabs button, .landing-page .expression-filters button { min-height: 44px; font-size: 12px; }
.landing-page .expression-tile { min-height: 44px; }
.landing-page .hero-note, .landing-page .demo-intro > small { font-size: 12px; line-height: 1.8; }
.activity-page { background: transparent; }
.activity-page .wrap { max-width: var(--page-wide); padding: 0; }
.activity-page .hero { margin: 0; max-width: none; }
.activity-page .metric { min-width: 0; }
.activity-page .metric-value { font-size: clamp(28px, 3.4vw, 46px); overflow-wrap: anywhere; }
.activity-page .metric-label { gap: 12px; font-size: 13px; }
.activity-page .metric-description, .activity-page .section-head p, .activity-page .data-note, .activity-page .axis-note, .activity-page .definition-grid p, .activity-page .behind p { font-size: 13px; line-height: 1.9; }
.activity-page .metric-label .symbol { flex-shrink: 0; }
.activity-page details summary { min-height: 44px; align-items: center; font-size: 14px; }
.activity-page .timeline details { overflow-x: auto; }
.activity-page .data-table { font-size: 13px; }
@media (max-width: 1399px) {
    body > header.site-header { flex-direction: row; flex-wrap: wrap; align-items: center; min-height: 80px; padding: 16px 24px; gap: 12px; }
    .site-header .site-menu-toggle:not([hidden]) { display: inline-flex; margin-left: auto; }
    body > header.site-header .site-nav { display: flex; flex-wrap: wrap; width: 100%; max-width: 100%; gap: 8px; overflow: visible; padding: 8px 0 0; border-top: 1px solid #dce7ed; }
    .site-header[data-menu-ready]:not(.menu-open) .site-nav { display: none; }
    body > header.site-header .site-nav > a { flex: 1 1 140px; white-space: normal; justify-content: flex-start; background: #fff; border: 1px solid #e0e8eb; }
    body > header.site-header .site-nav form { flex: 1 1 140px; }
    body > header.site-header .site-nav form button { width: 100%; justify-content: flex-start; }
}
@media (max-width: 650px) {
    body > header.site-header { padding: 16px; }
    .site-header .brand { font-size: 24px; }
    .site-header .brand span { display: none; }
    .site-header .brand img { width: 32px; height: 38px; }
    .app-main { padding: 16px 16px 48px; }
    .help-center, .help-detail, .context-page, .legal-page, .account-panel.settings-page, .reminders-page.settings-page, .local-calendar.settings-page { margin-top: 16px; margin-bottom: 32px; }
    .legal-page { padding: 24px 16px; }
    .site-footer { padding: 32px 24px; gap: 16px; }
    .site-footer nav { flex-direction: column; gap: 4px; }
    .site-footer small { text-align: left; }
    .landing-page .section { padding-top: 48px; padding-bottom: 48px; }
    .landing-page .cards { grid-template-columns: 1fr; }
    .landing-page .cards h3 { font-size: 18px; }
    .landing-page .cards .feature-icon { max-width: 220px; align-self: center; }
    .landing-page .hero p { font-size: 14px; }
    .activity-page .hero { display: grid; grid-template-columns: 1fr 100px; padding: 32px 0; }
    .activity-page .metric { display: block; padding: 20px; }
    .activity-page .metric-label { font-size: 14px; }
    .activity-page .metric-value { font-size: 38px; }
    .activity-page .spark { height: 44px; margin-top: 16px; }
}

.activity-page .hero-art { display: block; height: auto; margin: 0; transform: none; }
.activity-page .spark { position: static; color: inherit; }
.activity-page .hero p { margin-bottom: 0; }

.activity-page h1 em:after { content: none; }

.settings-page h1, .mailbox-page h1 { font-size: clamp(26px, 3vw, 32px); line-height: 1.5; margin: 8px 0 16px; }

/* The LINE band spans the page; its content keeps the original section width. */
.landing-page .line-preview { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.landing-page .line-preview-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.landing-page .app-store-button { background: #102d42; color: #fff; max-width: 100%; gap: 16px; }
.landing-page .app-store-button:hover { background: #1c425c; }
.landing-page .app-store-button:focus-visible { outline: 3px solid #0788bd; outline-offset: 4px; }
.landing-page .app-download-actions { justify-content: center; }
@media (max-width: 700px) {
    .landing-page .line-preview-inner { flex-direction: column; align-items: stretch; gap: 24px; }
}
