:root {
    --bg: #FFF7FA;
    --surface: #FFFFFF;
    --surface-soft: #FFEAF2;
    --title: #4A1630;
    --text: #5C2A3E;
    --muted: #8A4A62;
    --soft-text: #B07A90;
    --brand: #E85A8B;
    --brand-light: #FF7AA8;
    --brand-dark: #C43B6E;
    --pink-soft: #FFE1EC;
    --line: rgba(232, 90, 139, 0.16);
    --shadow: 0 14px 34px rgba(196, 59, 110, 0.10);
    --radius: 20px;
    --header-h: 130px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; line-height: 1.75; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 80; }
.candy-strip { height: 22px; background: var(--brand-dark); color: #fff; font-size: 12px; }
.candy-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-mini { color: #fff; font-weight: 700; letter-spacing: .03em; }
.text-button { border: 0; background: transparent; color: #fff; cursor: pointer; min-height: 22px; padding: 0 4px; }
.cover-bar { height: 64px; background: #fff; border-bottom: 1px solid var(--line); }
.cover-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.brand-lockup { justify-self: start; display: inline-flex; min-height: 44px; align-items: center; }
.brand-logo { width: auto; height: 34px; max-width: 210px; object-fit: contain; object-position: left center; }
.brand-fallback { color: var(--title); font-size: 20px; font-weight: 800; }
.envelope-toggle, .app-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); padding: 0 18px; cursor: pointer; }
.envelope-toggle { background: var(--surface-soft); color: var(--brand-dark); font-weight: 800; }
.app-link { justify-self: end; background: linear-gradient(135deg,#FF7AA8 0%,#E85A8B 55%,#C43B6E 100%); color: #fff; font-weight: 800; }
.sticker-rail { height: 44px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.sticker-inner { height: 100%; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.sticker-inner a { padding: 5px 12px; border-radius: 10px; color: var(--text); white-space: nowrap; font-size: 14px; }
.sticker-inner a:hover, .sticker-inner a:focus-visible { background: #fff; outline: none; }
.sticker-inner a.active { background: var(--brand-dark); color: #fff; }
.site-main { padding-top: calc(var(--header-h) + 28px); min-height: 60vh; }
.page-hero, .section-card, .feature-card, .faq-item, .policy-block, .step-card, .status-card, .book-card, .note-card, .portrait-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); }
.page-hero { padding: clamp(22px, 4vw, 44px); margin-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: var(--pink-soft); color: var(--brand-dark); font-size: 13px; font-weight: 800; }
h1, h2, h3 { color: var(--title); line-height: 1.3; }
h1 { margin: 12px 0 14px; font-size: clamp(28px, 4vw, 32px); }
h2 { font-size: clamp(21px, 3vw, 25px); margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 17px; color: var(--muted); max-width: 850px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 999px; font-weight: 800; }
.btn-primary { background: linear-gradient(135deg,#FF7AA8 0%,#E85A8B 55%,#C43B6E 100%); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand-dark); border: 1px solid var(--line); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(232,90,139,.28); outline-offset: 2px; }
.section { margin: 0 auto 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-head p { margin: 0; color: var(--muted); max-width: 600px; }
.grid-2, .grid-3, .grid-4, .grid-6 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-card, .feature-card, .note-card, .portrait-card { padding: 20px; }
.card-link { display: block; }
.card-link:hover { border-color: rgba(196,59,110,.3); }
.image-slot { width: 100%; min-height: 180px; display: flex; align-items: center; justify-content: center; background: var(--surface-soft); border: 1px dashed var(--line); border-radius: 16px; margin-bottom: 16px; overflow: hidden; }
.image-slot.hero-slot { min-height: 220px; max-height: 300px; }
.image-slot img { width: 100%; height: 100%; max-height: inherit; object-fit: contain; object-position: center; }
.image-slot.card-slot { height: 210px; }
.image-slot.card-slot img { height: 100%; }
.image-slot.app-slot { min-height: 300px; max-height: 420px; }
.image-slot.app-slot img { max-height: 420px; width: 100%; object-fit: contain; }
.image-fallback-copy { color: var(--title); padding: 28px; text-align: center; }
.tag { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--pink-soft); color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.number-list { display: grid; gap: 12px; }
.number-item { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.number-item:last-child { border-bottom: 0; }
.number-item .num { color: var(--brand); font-size: 32px; font-weight: 900; line-height: 1; }
.soft-box { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--text); }
.book-card { padding: 16px; }
.book-cover { aspect-ratio: 3/4; background: var(--pink-soft); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--brand-dark); font-weight: 900; margin-bottom: 14px; text-align: center; padding: 18px; }
.status-card { padding: 20px; }
.status-card .status { display: inline-flex; padding: 5px 11px; border-radius: 999px; background: var(--brand-dark); color: #fff; font-size: 12px; font-weight: 800; margin-bottom: 12px; }
.steps { counter-reset: step; display: grid; gap: 14px; }
.step-card { position: relative; padding: 20px 20px 20px 72px; }
.step-card::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 20px; color: var(--brand); font-weight: 900; font-size: 22px; }
.quote-card { background: #fff; border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px; box-shadow: var(--shadow); }
.quote-card .opinion { color: var(--brand-dark); font-weight: 800; font-size: 13px; }
.quote-card + .quote-card { margin-top: 14px; }
.article-prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow); }
.article-prose h2 { margin-top: 28px; }
.article-prose h2:first-child { margin-top: 0; }
.article-prose p { margin-bottom: 16px; }
.index-links { display: flex; flex-wrap: wrap; gap: 10px; }
.index-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--line); color: var(--brand-dark); font-weight: 700; }
.policy-block { padding: 22px; }
.policy-block + .policy-block { margin-top: 16px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 20px; }
.faq-item h2 { font-size: 18px; }
.site-footer { background: var(--title); color: #F8D6E4; margin-top: 56px; padding: 48px 0 88px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 28px; }
.footer-grid h2 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid a { display: block; padding: 4px 0; color: #F8D6E4; }
.footer-brand p { color: #F8D6E4; }
.footer-logo { width: auto; height: 34px; max-width: 210px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.footer-en { margin-top: 8px; font-size: 12px; letter-spacing: .12em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.13); padding-top: 22px; margin-top: 28px; font-size: 13px; color: #F8D6E4; }
.overlay { position: fixed; inset: 0; background: rgba(74,22,48,.38); z-index: 120; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.overlay.open { opacity: 1; pointer-events: auto; }
.envelope-drawer { position: fixed; z-index: 130; left: 50%; bottom: 0; width: min(920px, calc(100% - 32px)); max-height: 70vh; transform: translate(-50%, 105%); background: #fff; border: 1px solid var(--line); border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px rgba(74,22,48,.18); visibility: hidden; pointer-events: none; transition: transform .25s ease, visibility .25s; overflow: auto; }
.envelope-drawer.open { transform: translate(-50%, 0); visibility: visible; pointer-events: auto; }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 12px; }
.drawer-brand div { display: grid; }
.drawer-brand span { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.drawer-logo { width: auto; height: 30px; max-width: 170px; object-fit: contain; }
.drawer-close, .search-close { min-height: 44px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--brand-dark); border-radius: 999px; padding: 0 16px; cursor: pointer; }
.drawer-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 20px; }
.drawer-groups section { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.drawer-groups h2 { font-size: 16px; }
.drawer-groups a { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.drawer-groups a:last-child { border-bottom: 0; }
.drawer-groups strong { color: var(--title); font-size: 14px; }
.drawer-groups span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.search-panel { position: fixed; z-index: 135; top: 94px; left: 50%; width: min(760px, calc(100% - 32px)); transform: translateX(-50%) translateY(-14px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.search-panel.open { opacity: 1; transform: translateX(-50%) translateY(0); visibility: visible; pointer-events: auto; }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.search-head div { display: grid; }
.search-head span { color: var(--muted); font-size: 13px; }
.search-visual { min-height: 52px; display: flex; align-items: center; gap: 10px; margin: 16px 0; padding: 0 16px; border: 1px solid var(--line); background: var(--bg); border-radius: 14px; color: var(--muted); }
.search-links { display: flex; flex-wrap: wrap; gap: 10px; }
.search-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--surface-soft); color: var(--brand-dark); font-weight: 700; }
.mobile-bottom-nav { display: none; }
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .drawer-groups { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    :root { --header-h: 86px; }
    .shell { width: min(100% - 32px, 1180px); }
    .site-main { padding-top: calc(var(--header-h) + 24px); }
    .sticker-rail { display: none; }
    .cover-inner { gap: 8px; grid-template-columns: minmax(0, 1fr) auto auto; }
    .brand-logo { max-width: 124px; height: 30px; }
    .brand-fallback { font-size: 17px; }
    .envelope-toggle, .app-link { min-height: 44px; padding: 0 12px; font-size: 13px; }
    .candy-inner { width: calc(100% - 24px); }
    .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
    .image-slot.card-slot { height: 200px; }
    .section-head { align-items: start; flex-direction: column; gap: 6px; }
    .number-item { grid-template-columns: 48px 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .site-footer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
    .mobile-bottom-nav { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); box-shadow: 0 -8px 24px rgba(74,22,48,.08); }
    .mobile-bottom-nav a { min-height: 50px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
    .mobile-bottom-nav a.active { background: var(--brand); color: #fff; font-weight: 800; }
    .envelope-drawer { width: 100%; max-height: 70vh; border-radius: 22px 22px 0 0; }
    .drawer-groups { grid-template-columns: 1fr; padding: 14px; }
    .search-panel { top: 94px; width: calc(100% - 24px); padding: 16px; }
    .footer-grid { gap: 22px; }
}
@media (max-width: 420px) {
    .brand-mini { max-width: 76%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .brand-logo { max-width: 105px; }
    .envelope-toggle, .app-link { padding: 0 10px; }
    .footer-grid { grid-template-columns: 1fr; }
}
