:root {
    --mist: #F4FAFC;
    --white: #FFFFFF;
    --secondary: #E7F3F6;
    --title: #0E3A46;
    --text: #24505A;
    --muted: #4A7380;
    --soft: #7A9AA4;
    --brand: #1A7F8F;
    --bright: #2BB3C4;
    --deep: #0F5B68;
    --pale: #D7EEF2;
    --border: rgba(26,127,143,0.16);
    --shadow: 0 14px 34px rgba(14,58,70,0.08);
    --header-height: 106px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--mist);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
button { color: inherit; }
a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid rgba(43,179,196,.32);
    outline-offset: 3px;
}
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; }
.harbor-bar { height: 58px; background: var(--pale); border-bottom: 1px solid var(--border); }
.harbor-inner, .pier-inner, .footer-inner, .page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}
.harbor-inner {
    height: 58px;
    display: grid;
    grid-template-columns: minmax(96px,1fr) auto minmax(96px,1fr);
    align-items: center;
    gap: 12px;
}
.round-control {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.round-control:hover { transform: translateY(-1px); border-color: rgba(26,127,143,.36); background: var(--white); }
.brand-center { justify-self: center; min-height: 44px; min-width: 118px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--title); letter-spacing: .08em; }
.brand-center img { max-height: 34px; width: auto; }
.harbor-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.app-entry, .btn-primary, .btn-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.app-entry, .btn-primary { color: #fff; background: linear-gradient(135deg,#2BB3C4 0%,#1A7F8F 55%,#0F5B68 100%); box-shadow: 0 8px 20px rgba(15,91,104,.18); }
.btn-secondary { background: #fff; color: var(--deep); border: 1px solid var(--border); }
.app-entry:hover, .btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }
.pier-nav { height: 48px; background: #fff; border-bottom: 1px solid var(--border); }
.pier-inner { height: 48px; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 48px); }
.pier-inner a { height: 48px; display: inline-flex; align-items: center; position: relative; color: var(--muted); font-weight: 600; }
.pier-inner a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); transform: translateX(-50%); transition: width .18s ease; }
.pier-inner a:hover, .pier-inner a.is-active { color: var(--deep); }
.pier-inner a:hover::after, .pier-inner a.is-active::after { width: 70%; }
.site-main { padding-top: calc(var(--header-height) + 28px); min-height: 60vh; }
.page-shell { padding-bottom: 72px; }
.hero, .page-hero, .section-card, .card, .story-card, .faq-item, .note-row, .handbook-chapter, .terms-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.hero { overflow: hidden; margin-bottom: 28px; }
.hero-copy { padding: clamp(28px, 5vw, 52px); }
.eyebrow { color: var(--brand); font-weight: 800; letter-spacing: .14em; font-size: 13px; text-transform: uppercase; }
h1, h2, h3 { color: var(--title); line-height: 1.3; margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 32px); margin-bottom: 18px; letter-spacing: -.02em; }
h2 { font-size: clamp(21px, 3vw, 26px); margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 10px; }
p { margin: 0 0 16px; }
.hero-copy > p { max-width: 820px; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.image-slot { width: 100%; background: linear-gradient(135deg, var(--pale), var(--secondary)); min-height: 180px; overflow: hidden; }
.image-slot img { width: 100%; height: 100%; object-fit: cover; }
.hero .image-slot { max-height: 340px; aspect-ratio: 16 / 5.5; min-height: 220px; }
.content-picture { border-radius: 16px; aspect-ratio: 16 / 8; }
.section { margin: 36px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading p { max-width: 620px; color: var(--muted); margin: 0; }
.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)); }
.card, .story-card, .section-card, .faq-item, .handbook-chapter, .terms-block { padding: 24px; }
.card p, .story-card p, .section-card p, .faq-item p, .handbook-chapter p, .terms-block p { color: var(--text); }
.card small, .meta, .lead-note { color: var(--muted); }
.card-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); font-weight: 700; }
.tide-list { display: grid; gap: 14px; }
.tide-item { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 20px; background: var(--secondary); border-radius: 16px; border: 1px solid var(--border); }
.tide-number { color: var(--brand); font-weight: 800; letter-spacing: .08em; }
.district-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.district { background: var(--pale); color: var(--title); border-radius: 16px; padding: 20px; min-height: 150px; }
.gallery-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.gallery-card .image-slot { border-radius: 16px; aspect-ratio: 4 / 3; min-height: 0; margin-bottom: 12px; }
.path-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.path { border-left: 4px solid var(--bright); padding: 10px 0 10px 18px; }
.app-showcase { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 24px; align-items: center; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--pale); border: 1px solid var(--border); margin-bottom: 14px; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.page-hero { padding: clamp(26px,5vw,48px); margin-bottom: 24px; background: linear-gradient(145deg,#fff 0%,#fff 62%,#E7F3F6 100%); }
.page-hero p { max-width: 850px; font-size: 17px; }
.content-stack { display: grid; gap: 18px; }
.index-list { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.index-chip { background: var(--secondary); border: 1px solid var(--border); border-radius: 16px; padding: 20px; min-height: 130px; }
.long-read { max-width: 860px; margin: 0 auto; }
.long-read article { margin-bottom: 26px; }
.note-list { display: grid; gap: 12px; }
.note-row { padding: 20px 22px; display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: start; }
.note-row strong { color: var(--brand); }
.window-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.window { background: linear-gradient(160deg,#fff,var(--secondary)); border: 1px solid var(--border); border-radius: 18px; padding: 26px; min-height: 220px; }
.steps { counter-reset: steps; display: grid; gap: 16px; }
.step { position: relative; padding: 24px 24px 24px 76px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.step::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); position: absolute; left: 22px; top: 22px; color: var(--brand); font-weight: 800; }
.product-frame { display: grid; grid-template-columns: minmax(240px,.75fr) minmax(0,1.25fr); gap: 26px; align-items: center; }
.phone-visual { padding: 18px; background: var(--secondary); border-radius: 28px; border: 1px solid var(--border); }
.phone-visual .image-slot { border-radius: 20px; aspect-ratio: 4 / 6; min-height: 320px; }
.terms-block h2 { font-size: 20px; }
.faq-list { display: grid; gap: 14px; }
.faq-item h2 { font-size: 18px; }
.site-footer { background: var(--title); color: #D4E8EC; padding: 52px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.footer-brand img { max-height: 34px; width: auto; filter: brightness(0) invert(1); }
.footer-brand strong { color: #fff; }
.footer-brand span { color: #9EC2CB; letter-spacing: .12em; font-size: 13px; }
.footer-map { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; }
.footer-map h2 { font-size: 15px; color: #fff; margin-bottom: 10px; }
.footer-map a { display: block; min-height: 34px; color: #D4E8EC; }
.footer-map a:hover { color: #fff; }
.footer-note { margin: 30px 0 18px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #B9D4DA; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; color: #9EC2CB; font-size: 14px; }
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 16px; }
.overlay { position: fixed; inset: 0; z-index: 1998; background: rgba(7,34,40,.46); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.dialog { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-48%) scale(.98); z-index: 1999; width: min(760px,92vw); max-height: min(82vh,760px); overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 30px 80px rgba(7,34,40,.22); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.dialog.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); }
.dialog-head > div { display: flex; flex-direction: column; }
.dialog-head span { color: var(--muted); font-size: 13px; }
.dialog-brand { flex-direction: row !important; align-items: center; gap: 12px; }
.dialog-brand img { max-height: 30px; width: auto; }
.map-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding: 20px; }
.map-group { background: var(--mist); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.map-group h2 { font-size: 15px; color: var(--brand); }
.map-group a { display: block; padding: 12px 0; border-top: 1px dashed var(--border); }
.map-group a:first-of-type { border-top: 0; }
.map-group strong { display: block; color: var(--title); margin-bottom: 2px; }
.map-group span { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }
.search-dialog { width: min(620px,92vw); }
.search-appearance { padding: 22px; }
.search-appearance label { display: block; color: var(--title); font-weight: 700; margin-bottom: 8px; }
.search-appearance input { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: 999px; padding: 0 18px; color: var(--title); background: var(--mist); }
.search-appearance p { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.search-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0 22px 22px; }
.search-links a { min-height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 999px; color: var(--deep); font-weight: 700; background: #fff; }
.dialog-open { overflow: hidden; }
.mobile-bottom-nav { display: none; }
.notice-box { padding: 18px 20px; background: var(--secondary); color: var(--title); border: 1px solid var(--border); border-radius: 16px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.inline-links a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--deep); font-weight: 700; }
@media (max-width: 900px) {
    .grid-4, .district-grid, .gallery-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .grid-3, .grid-6 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .index-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .app-showcase, .product-frame { grid-template-columns: 1fr; }
    .footer-map { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
    :root { --header-height: 58px; }
    .harbor-inner { width: calc(100% - 24px); grid-template-columns: 52px minmax(0,1fr) auto; gap: 6px; }
    .pier-nav, .search-trigger { display: none; }
    .brand-center { min-width: 0; max-width: 150px; }
    .brand-center img { max-width: 135px; }
    .app-entry { min-height: 44px; padding: 0 14px; font-size: 14px; }
    .site-main { padding-top: calc(var(--header-height) + 20px); }
    .page-shell { width: calc(100% - 32px); padding-bottom: 84px; }
    .hero-copy { padding: 28px 22px; }
    .hero .image-slot { aspect-ratio: 16 / 8; min-height: 180px; }
    .grid-2, .grid-3, .grid-4, .grid-6, .window-grid, .path-list, .district-grid, .gallery-strip { grid-template-columns: 1fr; }
    .index-list { grid-template-columns: 1fr 1fr; }
    .note-row { grid-template-columns: 1fr; gap: 6px; }
    .tide-item { grid-template-columns: 48px 1fr; }
    .map-groups, .search-links { grid-template-columns: 1fr; }
    .dialog { max-height: 86vh; }
    .footer-map { grid-template-columns: 1fr 1fr; gap: 22px; }
    .footer-bottom { flex-direction: column; }
    .mobile-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: grid; grid-template-columns: repeat(5,1fr); height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); border-top: 1px solid var(--border); backdrop-filter: blur(10px); }
    .mobile-bottom-nav a { min-width: 0; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--soft); font-size: 12px; }
    .mobile-bottom-nav a span { line-height: 1; font-size: 15px; }
    .mobile-bottom-nav a b { font-weight: 600; }
    .mobile-bottom-nav a.is-active { color: var(--brand); }
    .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .step { padding-left: 64px; }
}
@media (max-width: 420px) {
    .harbor-inner { width: calc(100% - 20px); }
    .brand-center { max-width: 118px; font-size: 15px; }
    .brand-center img { max-width: 108px; }
    .app-entry { padding: 0 11px; }
    .page-shell { width: calc(100% - 32px); }
    .index-list, .footer-map { grid-template-columns: 1fr; }
    h1 { font-size: 28px; }
}
