:root {
    --mist: #F4FAFC;
    --deep-bg: #FFFFFF;
    --content: #FFFFFF;
    --secondary: #E7F3F6;
    --title: #0E3A46;
    --text: #24505A;
    --muted: #4A7380;
    --soft: #7A9AA4;
    --sea: #1A7F8F;
    --bright-sea: #2BB3C4;
    --deep-sea: #0F5B68;
    --light-sea: #D7EEF2;
    --border: rgba(26,127,143,0.16);
    --shadow: 0 14px 34px rgba(14,58,70,0.08);
    --radius: 18px;
    --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--mist); }
html.modal-open, html.modal-open body { overflow: hidden; }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--mist); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; font-size: 16px; line-height: 1.78; }
a { color: inherit; text-decoration: none; }
a, button, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid rgba(43,179,196,0.42); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.harbor-bar { height: 58px; background: var(--light-sea); border-bottom: 1px solid var(--border); }
.harbor-inner { width: min(calc(100% - 32px), var(--max)); height: 58px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.harbor-left { display: flex; justify-content: flex-start; }
.harbor-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.round-control { width: 44px; height: 44px; border: 1px solid rgba(15,91,104,0.14); border-radius: 50%; background: rgba(255,255,255,0.74); color: var(--deep-sea); display: inline-grid; place-items: center; font-size: 23px; line-height: 1; transition: transform .2s ease, background .2s ease; }
.round-control:hover { background: #fff; transform: translateY(-1px); }
.brand-lockup { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 4px 12px; }
.brand-lockup img { max-height: 34px; width: auto; }
.brand-fallback { font-size: 20px; font-weight: 800; letter-spacing: .12em; color: var(--title); white-space: nowrap; }
.app-pill, .btn-primary, .btn-secondary { min-height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease; }
.app-pill, .btn-primary { color: #fff; background: linear-gradient(135deg,#2BB3C4 0%,#1A7F8F 55%,#0F5B68 100%); box-shadow: 0 8px 20px rgba(15,91,104,0.16); }
.app-pill:hover, .btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }
.btn-secondary { background: #fff; color: var(--deep-sea); border: 1px solid var(--border); }
.dock-bar { height: 48px; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--border); }
.dock-inner { width: min(calc(100% - 40px), 880px); height: 48px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: clamp(20px,4vw,48px); }
.dock-inner a { position: relative; height: 48px; display: inline-flex; align-items: center; color: var(--muted); white-space: nowrap; font-size: 15px; }
.dock-inner a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--sea); transition: left .2s ease, right .2s ease; }
.dock-inner a:hover, .dock-inner a.is-current { color: var(--title); }
.dock-inner a.is-current::after, .dock-inner a:hover::after { left: 8px; right: 8px; }
.site-main { padding-top: 106px; min-height: 60vh; }
.page-hero, .home-hero { padding-top: 54px; padding-bottom: 34px; }
.home-hero .hero-copy { max-width: 760px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 9px; color: var(--sea); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { color: var(--title); line-height: 1.28; margin-top: 0; }
h1 { font-size: clamp(28px,4vw,32px); letter-spacing: -.03em; margin-bottom: 16px; }
h2 { font-size: clamp(22px,3vw,27px); margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 9px; }
p { margin-top: 0; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.media-slot { position: relative; margin: 0; overflow: hidden; border-radius: 20px; background: var(--secondary); border: 1px solid var(--border); box-shadow: var(--shadow); }
.media-slot img { width: 100%; height: 100%; object-fit: cover; }
.media-slot-empty { min-height: 220px; background: linear-gradient(145deg, #e8f5f7, #d7eef2 48%, #f7fcfd); }
.media-slot-empty::before, .media-slot-empty::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(26,127,143,.14); }
.media-slot-empty::before { width: 340px; height: 340px; right: -80px; top: -190px; }
.media-slot-empty::after { width: 420px; height: 180px; left: -90px; bottom: -120px; background: rgba(255,255,255,.38); }
.media-slot-empty span { position: absolute; width: 56px; height: 56px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: rgba(255,255,255,.58); box-shadow: inset 0 0 0 1px rgba(26,127,143,.1); }
.hero-media { max-height: 340px; aspect-ratio: 16/5.4; }
.page-hero-media { aspect-ratio: 16/6; max-height: 330px; margin-top: 24px; }
.section { padding: 42px 0; }
.section-soft { background: var(--secondary); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.section-head > div { max-width: 730px; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.text-link { color: var(--deep-sea); font-weight: 700; white-space: nowrap; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.card, .note-card, .story-card, .clause, .step-card, .faq-item { min-width: 0; background: var(--content); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p, .note-card p, .story-card p, .clause p, .step-card p { color: var(--muted); margin-bottom: 0; }
.card .media-slot { margin: -22px -22px 18px; border-radius: 18px 18px 0 0; border-width: 0 0 1px; box-shadow: none; min-height: 150px; aspect-ratio: 16/9; }
.card h3 a:hover { color: var(--sea); }
.card-kicker { display: inline-block; margin-bottom: 10px; color: var(--sea); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.two-col { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(280px,.82fr); gap: 28px; align-items: start; }
.two-col.reverse { grid-template-columns: minmax(280px,.82fr) minmax(0,1.18fr); }
.prose { color: var(--text); }
.prose p { margin-bottom: 16px; }
.prose strong { color: var(--title); }
.tide-list, .note-list, .discovery-list, .street-index, .chapter-list, .clause-list { display: grid; gap: 14px; }
.tide-row, .note-row, .discovery-row, .street-row, .chapter-row { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.tide-row:last-child, .note-row:last-child, .discovery-row:last-child, .street-row:last-child, .chapter-row:last-child { border-bottom: 0; }
.index-no { font-size: 20px; font-weight: 800; color: var(--sea); letter-spacing: .05em; }
.tide-row p, .note-row p, .discovery-row p, .street-row p, .chapter-row p { margin-bottom: 0; color: var(--muted); }
.feature-panel { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.map-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.map-block { min-height: 160px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.map-block p { color: var(--muted); margin-bottom: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.gallery-item { margin: 0; }
.gallery-item .media-slot { aspect-ratio: 16/8.5; box-shadow: none; }
.gallery-item figcaption { padding: 10px 4px 0; color: var(--muted); font-size: 14px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-row a, .tag { min-height: 38px; display: inline-flex; align-items: center; border-radius: 999px; padding: 0 15px; background: var(--light-sea); color: var(--deep-sea); border: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.quote-box { margin: 24px 0; padding: 22px 24px; border-left: 4px solid var(--sea); border-radius: 0 16px 16px 0; background: var(--secondary); color: var(--title); }
.article-stack { display: grid; gap: 22px; }
.article-block { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.article-block p:last-child { margin-bottom: 0; }
.window-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.window { min-height: 250px; padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.window p { color: var(--muted); }
.window:nth-child(3n) { background: var(--secondary); }
.story-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.handbook-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.handbook-nav a { border-radius: 999px; padding: 9px 15px; background: var(--secondary); color: var(--deep-sea); font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; counter-reset: step; }
.step-card { counter-increment: step; }
.step-card::before { content: "0" counter(step); display: block; color: var(--sea); font-weight: 800; margin-bottom: 14px; }
.phone-panel { border-radius: 26px; padding: 26px; background: linear-gradient(160deg,#0F5B68,#1A7F8F); color: #fff; box-shadow: 0 20px 45px rgba(14,58,70,.18); }
.phone-panel h2, .phone-panel h3, .phone-panel p { color: #fff; }
.phone-panel .media-slot { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.14); box-shadow: none; }
.phone-panel .media-slot-empty { min-height: 260px; }
.app-icon-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.18); flex: 0 0 auto; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.clause-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.clause h2 { font-size: 20px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { box-shadow: none; }
.faq-item h2 { font-size: 18px; margin-bottom: 9px; }
.faq-item p { margin-bottom: 0; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.contact-card { padding: 24px; min-height: 220px; background: #fff; border: 1px solid var(--border); border-radius: 18px; }
.contact-card p { color: var(--muted); }
.notice { padding: 18px 20px; border-radius: 16px; background: var(--light-sea); color: var(--title); border: 1px solid var(--border); }
.site-footer { margin-top: 52px; background: #0E3A46; color: #D4E8EC; padding: 52px 0 28px; }
.footer-inner { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.footer-brand-row { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(0,1.2fr); gap: 36px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid rgba(212,232,236,.14); }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.footer-brand img { max-width: 126px; max-height: 34px; object-fit: contain; }
.footer-brand-mark { font-weight: 800; letter-spacing: .1em; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand small { margin-top: 2px; color: #9fc3ca; letter-spacing: .14em; }
.footer-brand-row p { margin: 0; color: #B8D3D8; }
.footer-map { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 34px 0; }
.footer-map h2 { color: #fff; font-size: 15px; margin-bottom: 13px; }
.footer-map a { display: block; color: #B8D3D8; margin: 8px 0; font-size: 14px; }
.footer-map a:hover { color: #fff; }
.footer-note { display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; border-top: 1px solid rgba(212,232,236,.14); color: #9FC3CA; font-size: 13px; }
.footer-note p { margin: 0; }
.screen-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(8,38,45,.48); backdrop-filter: blur(5px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.screen-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-card { position: fixed; z-index: 80; left: 50%; top: 50%; transform: translate(-50%,-48%) scale(.98); width: min(92%,760px); max-height: min(82vh,760px); overflow: auto; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: 0 24px 70px rgba(14,58,70,.25); padding: 24px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease, transform .2s ease; }
.modal-card.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-brand { display: flex; align-items: center; gap: 12px; }
.modal-brand img { max-height: 30px; max-width: 120px; object-fit: contain; }
.modal-brand strong, .modal-brand small { display: block; color: var(--title); }
.modal-brand small { color: var(--muted); font-size: 12px; }
.modal-close { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--secondary); color: var(--deep-sea); font-size: 26px; line-height: 1; }
.map-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.map-groups section { min-width: 0; }
.map-groups h2 { font-size: 16px; margin-bottom: 8px; }
.map-groups a { display: block; padding: 9px 0; border-bottom: 1px solid rgba(26,127,143,.09); }
.map-groups strong, .map-groups span { display: block; }
.map-groups strong { color: var(--title); font-size: 15px; }
.map-groups span { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.search-modal { width: min(92%,620px); }
.search-modal h2 { margin: 0; font-size: 24px; }
.search-look { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 15px; background: var(--secondary); border: 1px solid var(--border); border-radius: 16px; color: var(--deep-sea); }
.search-look input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--title); }
.search-note { color: var(--muted); font-size: 13px; margin: 10px 2px 15px; }
.search-presets { display: flex; flex-wrap: wrap; gap: 10px; }
.search-presets a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border); color: var(--deep-sea); background: #fff; font-weight: 700; }
.mobile-bottom-nav { display: none; }
@media (max-width: 900px) {
    .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .map-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .contact-grid { grid-template-columns: 1fr; }
    .clause-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
    .harbor-inner { width: calc(100% - 24px); grid-template-columns: 54px minmax(0,1fr) 92px; gap: 6px; }
    .harbor-actions { min-width: 0; }
    .search-control { display: none; }
    .app-pill { min-width: 84px; padding: 0 14px; font-size: 14px; }
    .brand-lockup { min-width: 0; padding: 4px 5px; overflow: hidden; }
    .brand-lockup img { max-width: 100%; object-fit: contain; }
    .brand-fallback { font-size: 18px; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; }
    .dock-bar { display: none; }
    .site-main { padding-top: 58px; }
    .container { width: calc(100% - 32px); }
    .page-hero, .home-hero { padding-top: 36px; padding-bottom: 26px; }
    .hero-media, .page-hero-media { aspect-ratio: 16/7.8; }
    .section { padding: 34px 0; }
    .section-head { align-items: start; flex-direction: column; gap: 8px; }
    .two-col, .two-col.reverse { grid-template-columns: 1fr; }
    .card-grid, .window-grid, .story-grid, .gallery-grid { grid-template-columns: 1fr; }
    .map-grid { grid-template-columns: 1fr 1fr; }
    .tide-row, .note-row, .discovery-row, .street-row, .chapter-row { grid-template-columns: 48px minmax(0,1fr); gap: 12px; }
    .footer-brand-row { grid-template-columns: 1fr; gap: 18px; }
    .footer-map { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-note { flex-direction: column; gap: 10px; }
    .map-groups { grid-template-columns: 1fr; }
    .modal-card { width: 92%; max-height: 82vh; padding: 20px; }
    .mobile-bottom-nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); background: rgba(255,255,255,.97); border-top: 1px solid var(--border); box-shadow: 0 -8px 28px rgba(14,58,70,.06); }
    .mobile-bottom-nav a { min-width: 0; height: 50px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--soft); font-size: 11px; line-height: 1.1; }
    .mobile-bottom-nav a span { font-size: 17px; margin-bottom: 3px; }
    .mobile-bottom-nav a.is-current { color: var(--sea); font-weight: 800; }
}
@media (max-width: 520px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions a { width: 100%; }
    .card-grid, .map-grid, .steps { grid-template-columns: 1fr; }
    .footer-map { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
    .footer-inner { width: calc(100% - 32px); }
    .modal-card { width: calc(100% - 24px); border-radius: 18px; }
    .site-map-modal { top: 52%; max-height: 86vh; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
