/*
 * 潮見表ディレクトリ（/weather/tide_level/ トップの新デザインセクション）CSS
 * 移植元: C:/xampp/htdocs/codex/assets/css/tide-level.css + area-popup.css（2026-07-21）
 * .tide-directory ラッパーと .area-popup-dialog の内側にだけ効くよう調整済み。
 */

:root {
    --tide-navy: #082f53;
    --tide-navy-deep: #04243f;
    --tide-blue: #157bb4;
    --tide-sky: #67bce7;
    --tide-aqua: #42b4c8;
    --tide-ink: #102e4b;
    --tide-muted: #617488;
    --tide-border: #dbe6ee;
    --tide-surface: #ffffff;
    --tide-soft: #eff6fb;
    --tide-high: #e96d58;
    --tide-low: #2587c0;
    --tide-radius: 14px;
    --tide-shadow: 0 10px 30px rgba(6, 43, 75, 0.09);
    --tide-shadow-hover: 0 17px 42px rgba(6, 43, 75, 0.15);
    --tide-transition: 220ms ease;
}

/* ===== スコープ付きベース（元: *･html･body.tide-page） ===== */
.tide-directory,
.tide-directory *,
.tide-directory *::before,
.tide-directory *::after,
.area-popup-dialog,
.area-popup-dialog *,
.area-popup-dialog *::before,
.area-popup-dialog *::after {
    box-sizing: border-box;
}

.tide-directory {
    color: var(--tide-ink);
    /* フォントは新ヘッダー/フッター(slb系)と同一スタックに統一（2026-07-21） */
    font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    /* #page(max-width:1100px)内から画面幅いっぱいに広げるブレイクアウト */
    position: relative;
    left: 50%;
    width: 100vw;
    /* マージン整理: 上はパンくず(.slb-page-breadcrumb-wrap margin-bottom:25px)の
     * 余白を打ち消してヒーローを直結、下は0（コンテンツ枠と直結） */
    margin: -25px 0 0 -50vw;
}

/* エリア選択ポップアップも同じフォントスタックに統一 */
.area-popup-dialog {
    font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.tide-directory h1,
.tide-directory h2,
.tide-directory p {
    margin: 0;
    padding: 0;
}

.tide-directory ul,
.tide-directory ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tide-directory img {
    max-width: 100%;
}

.tide-directory a {
    color: inherit;
    text-decoration: none;
}

.tide-directory button,
.tide-directory input {
    color: inherit;
    font: inherit;
}

.tide-directory button,
.tide-directory a {
    -webkit-tap-highlight-color: transparent;
}

.tide-directory a:focus-visible,
.tide-directory button:focus-visible,
.tide-directory input:focus-visible {
    outline: 3px solid #62c8ff;
    outline-offset: 3px;
}

.tide-container,
.tide-container-wide {
    width: calc(100% - 64px);
    margin-inline: auto;
}

.tide-container {
    max-width: 1220px;
}

.tide-container-wide {
    max-width: 1380px;
}

.tide-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    color: #fff;
    background: var(--tide-navy);
    border-radius: 6px;
    transform: translateY(-160%);
    transition: transform var(--tide-transition);
}

.tide-skip-link:focus {
    transform: translateY(0);
}


/* List: hero and search */
.tide-directory-hero {
    position: relative;
    overflow-x: clip; /* 透かし文字の横はみ出しのみ防止 */
    overflow-y: visible; /* 検索サジェストを下にはみ出して表示させる(2026-07-22) */
    background:
        radial-gradient(circle at 82% 10%, rgba(84, 181, 224, 0.26) 0, transparent 33%),
        linear-gradient(135deg, #edf7fc 0%, #f9fcfd 58%, #eaf5fa 100%);
}

.tide-directory-hero__decor {
    position: absolute;
    inset: 0;
    overflow: hidden; /* 装飾(半円・透かし文字)のはみ出しはこのレイヤーで切る(2026-07-22) */
    pointer-events: none;
}

.tide-directory-hero__decor::after {
    position: absolute;
    right: -7%;
    bottom: -145px;
    width: 56%;
    height: 280px;
    background: rgba(63, 169, 209, 0.11);
    border-radius: 50% 50% 0 0;
    content: "";
    transform: rotate(-7deg);
}

.tide-directory-hero__watermark {
    position: absolute;
    right: 3%;
    bottom: -31px;
    color: rgba(13, 91, 137, 0.045);
    font-family: Arial, sans-serif;
    font-size: clamp(70px, 12vw, 175px);
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 1;
    white-space: nowrap;
}

.tide-directory-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 400px;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.82fr);
    align-items: center;
    gap: 70px;
    padding-block: 60px;
}

.tide-directory-hero h1 {
    margin: 0;
    font-size: clamp(35px, 4.1vw, 47px);
    letter-spacing: 0.03em;
    line-height: 1.35;
}

.tide-directory-hero__copy > p:not(.tide-eyebrow) {
    margin: 16px 0 19px;
    color: #526b80;
    font-size: 13px;
    font-weight: 600;
}

.tide-pattern-note {
    display: inline-block;
    padding: 7px 12px;
    color: var(--tide-blue);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(20, 121, 179, 0.18);
    border-radius: 30px;
    font-size: 9px;
    font-weight: 800;
}

.tide-port-search {
    padding: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--tide-radius);
    box-shadow: var(--tide-shadow);
    backdrop-filter: blur(8px);
}

.tide-port-search > label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 800;
}

.tide-port-search__field {
    position: relative;
    display: flex;
}

.tide-port-search__field > span {
    position: absolute;
    top: 17px;
    left: 16px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--tide-blue);
    border-radius: 50%;
}

.tide-port-search__field > span::after {
    position: absolute;
    right: -6px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    background: var(--tide-blue);
    content: "";
    transform: rotate(45deg);
}

.tide-port-search input {
    min-width: 0;
    min-height: 50px;
    flex: 1;
    padding: 12px 14px 12px 43px;
    background: #fff;
    border: 1px solid var(--tide-border);
    border-radius: 7px 0 0 7px;
    font-size: 12px;
}

.tide-location-button {
    flex: 0 0 auto;
    padding: 10px 15px;
    color: #fff;
    background: var(--tide-navy);
    border: 0;
    border-radius: 0 7px 7px 0;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.tide-port-search__status {
    margin: 9px 0 0;
    color: var(--tide-muted);
    font-size: 9px;
}

/* List: browsing history */
.tide-history-section {
    padding: 36px 0 12px;
}

.tide-history-heading {
    margin-bottom: 16px;
}

.tide-history-heading > span {
    color: var(--tide-muted);
    font-size: 10px;
    font-weight: 800;
}

.tide-history-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.tide-history-list[hidden] {
    display: none;
}

.tide-history-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tide-border);
    border-radius: 10px;
    box-shadow: 0 5px 17px rgba(6, 43, 75, 0.05);
}

.tide-history-card__link {
    display: grid;
    min-height: 116px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 17px 42px 17px 16px;
    transition: background var(--tide-transition);
}

.tide-history-card__link:hover {
    background: var(--tide-soft);
}

.tide-history-card__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--tide-blue);
    background: var(--tide-soft);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 21px;
}

.tide-history-card__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.tide-history-card__copy > small {
    overflow: hidden;
    color: var(--tide-muted);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tide-history-card__copy > strong {
    margin-top: 2px;
    overflow: hidden;
    color: var(--tide-navy);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tide-history-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 9px;
    margin-top: 7px;
    color: var(--tide-muted);
    font-size: 8px;
    font-weight: 700;
}

.tide-history-card__meta b {
    color: var(--tide-blue);
}

.tide-history-card__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    color: var(--tide-muted);
    background: #f3f7f9;
    border: 0;
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.tide-history-card__remove:hover {
    color: #fff;
    background: var(--tide-navy);
}

.tide-history-empty {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    color: var(--tide-muted);
    background: #f8fbfc;
    border: 1px dashed #cfdde6;
    border-radius: 10px;
    text-align: center;
}

.tide-history-empty[hidden] {
    display: none;
}

.tide-history-empty > span {
    color: var(--tide-blue);
    font-size: 23px;
}

.tide-history-empty strong {
    color: var(--tide-navy);
    font-size: 12px;
}

.tide-history-empty small {
    font-size: 9px;
}

/* List: popular ports */
.tide-popular-section {
    padding: 42px 0;
}

.tide-popular-port-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.tide-popular-port {
    position: relative;
    display: grid;
    min-height: 100px;
    grid-template-columns: 32px 1fr 20px;
    align-content: center;
    align-items: center;
    gap: 7px 11px;
    padding: 17px;
    background: #fff;
    border: 1px solid var(--tide-border);
    border-radius: 10px;
    box-shadow: 0 5px 17px rgba(6, 43, 75, 0.05);
    transition: box-shadow var(--tide-transition), transform var(--tide-transition), border-color var(--tide-transition);
}

button.tide-popular-port,
button.tide-region-card {
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.tide-popular-port:hover {
    border-color: rgba(21, 123, 180, 0.48);
    box-shadow: var(--tide-shadow);
    transform: translateY(-3px);
}

.tide-popular-port__number {
    grid-row: span 2;
    color: var(--tide-blue);
    font-family: Georgia, serif;
    font-size: 22px;
}

.tide-popular-port strong {
    font-size: 12px;
}

.tide-popular-port small {
    color: var(--tide-muted);
    font-size: 9px;
}

.tide-popular-port__arrow {
    grid-row: span 2;
    color: var(--tide-blue);
}

/* List: region cards */
.tide-region-overview {
    padding: 47px 0 53px;
}

.tide-region-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.tide-region-card {
    display: grid;
    min-height: 112px;
    grid-template-columns: 49px 1fr 22px;
    align-items: center;
    gap: 16px;
    padding: 21px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4edf3;
    border-radius: var(--tide-radius);
    box-shadow: 0 5px 17px rgba(6, 43, 75, 0.045);
    transition: color var(--tide-transition), background var(--tide-transition), transform var(--tide-transition);
}

.tide-region-card:hover {
    color: #fff;
    background: var(--tide-navy);
    transform: translateY(-3px);
}

.tide-region-card__wave {
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;
    color: var(--tide-blue);
    background: #e8f4fa;
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 29px;
}

.tide-region-card__content {
    display: flex;
    flex-direction: column;
}

.tide-region-card__content strong {
    font-size: 14px;
}

.tide-region-card__content small {
    margin-top: 3px;
    color: var(--tide-muted);
    font-size: 9px;
}

.tide-region-card:hover .tide-region-card__content small {
    color: rgba(255, 255, 255, 0.64);
}

.tide-region-card__arrow {
    color: var(--tide-blue);
    font-size: 18px;
}


/* ===== レスポンシブ（tide-level.cssメディアブロックから該当分を抽出） ===== */

@media (max-width: 1100px) {
    .tide-container,
    .tide-container-wide {
        width: calc(100% - 44px);
    }


    .tide-directory-hero__content,
    .tide-theme--2 .tide-directory-hero__content {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
        gap: 38px;
    }


    .tide-popular-port-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }


    .tide-theme--2 .tide-popular-port-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }


    .tide-theme--2 .tide-region-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {

    .tide-container,
    .tide-container-wide {
        width: calc(100% - 32px);
    }


    .tide-directory-hero__content,
    .tide-theme--2 .tide-directory-hero__content {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 27px;
        padding-block: 45px;
    }


    .tide-directory-hero h1,
    .tide-theme--2 .tide-directory-hero h1 {
        font-size: clamp(30px, 9vw, 41px);
    }


    .tide-directory-hero__copy > p:not(.tide-eyebrow) br {
        display: none;
    }


    .tide-port-search {
        padding: 20px 16px;
    }


    .tide-port-search__field {
        flex-direction: column;
        gap: 8px;
    }


    .tide-port-search input,
    .tide-location-button {
        width: 100%;
        border-radius: 6px;
    }


    .tide-history-section {
        padding: 31px 0 4px;
    }


    .tide-history-list {
        display: flex;
        width: calc(100% + 16px);
        gap: 11px;
        padding: 0 16px 8px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }


    .tide-history-list::-webkit-scrollbar {
        display: none;
    }


    .tide-history-card {
        min-width: min(82vw, 310px);
        flex: 0 0 min(82vw, 310px);
        scroll-snap-align: start;
    }


    .tide-history-card__link {
        min-height: 108px;
    }


    .tide-history-empty {
        min-height: 105px;
        padding-inline: 18px;
    }


    .tide-section-heading--inline,
    .tide-section-heading--with-date,
    .tide-section-heading--with-action {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }


    .tide-popular-port-list,
    .tide-theme--2 .tide-popular-port-list,
    .tide-theme--4 .tide-popular-port-list {
        display: flex;
        width: calc(100% + 16px);
        gap: 11px;
        padding: 0 16px 8px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        border: 0;
    }


    .tide-popular-port-list::-webkit-scrollbar {
        display: none;
    }


    .tide-popular-port,
    .tide-theme--2 .tide-popular-port,
    .tide-theme--4 .tide-popular-port {
        min-width: 215px;
        flex: 0 0 215px;
        scroll-snap-align: start;
        border: 1px solid var(--tide-border);
    }


    .tide-region-card-grid,
    .tide-theme--2 .tide-region-card-grid,
    .tide-theme--4 .tide-region-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        border: 0;
    }


    .tide-region-card,
    .tide-theme--4 .tide-region-card {
        min-height: 92px;
        border: 1px solid var(--tide-border);
    }
}

/* =================== エリア選択ポップアップ =================== */

:root {
    --ap-navy: #07385f;
    --ap-navy-deep: #042642;
    --ap-blue: #117db8;
    --ap-sky: #70c3e8;
    --ap-aqua: #3cb3c4;
    --ap-ink: #102f4d;
    --ap-muted: #6b7e8e;
    --ap-border: #d8e4ec;
    --ap-soft: #eef6fa;
    --ap-white: #fff;
    --ap-danger: #e46f5c;
    --ap-safe-bottom: env(safe-area-inset-bottom, 0px);
    --ap-shadow: 0 18px 55px rgba(3, 34, 59, 0.16);
    --ap-transition: 200ms ease;
}

body.area-popup-is-open {
    overflow: hidden;
}

.area-popup-dialog a {
    color: inherit;
    text-decoration: none;
}

.area-popup-dialog button,
.area-popup-dialog input {
    color: inherit;
    font: inherit;
}

.area-popup-dialog button,
.area-popup-dialog a,
.area-popup-dialog summary {
    -webkit-tap-highlight-color: transparent;
}

.area-popup-dialog button:focus-visible,
.area-popup-dialog a:focus-visible,
.area-popup-dialog input:focus-visible,
.area-popup-dialog summary:focus-visible {
    outline: 3px solid #56c6ff;
    outline-offset: 2px;
}

.area-popup-container {
    width: calc(100% - 30px);
    max-width: 1120px;
    margin-inline: auto;
}

.area-popup-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* Native dialog base */
.area-popup-dialog {
    position: fixed;
    z-index: 300;
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: visible;
    color: var(--ap-ink);
    background: transparent;
    border: 0;
}

.area-popup-dialog:not([open]) {
    display: none;
}

.area-popup-dialog::backdrop {
    background: rgba(2, 27, 48, 0.68);
    backdrop-filter: blur(2px);
}

.area-popup-dialog[open] {
    animation: ap-fade-in 180ms ease both;
}

.area-popup-dialog__surface {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}

.area-popup-dialog__header {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 65px;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    background: #fff;
    border-bottom: 1px solid #e6edf2;
}

.area-popup-dialog__header > div {
    min-width: 0;
    flex: 1;
}

.area-popup-dialog__header small,
.area-popup-dialog__header h2 {
    display: block;
    margin: 0;
}

.area-popup-dialog__header small {
    color: var(--ap-blue);
    font-size: 7px;
    font-weight: 800;
}

.area-popup-dialog__header h2 {
    font-size: 17px;
    line-height: 1.35;
}

.area-popup-close-button,
.area-popup-back-button {
    position: relative;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    padding: 0;
    background: #f2f6f8;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.area-popup-close-button span {
    position: absolute;
    top: 21px;
    left: 13px;
    width: 17px;
    height: 1.5px;
    background: var(--ap-navy);
}

.area-popup-close-button span:first-child { transform: rotate(45deg); }
.area-popup-close-button span:last-child { transform: rotate(-45deg); }

.area-popup-back-button {
    color: var(--ap-navy);
    font-size: 29px;
    line-height: 1;
}

.area-popup-drag-handle {
    width: 45px;
    height: 5px;
    flex: 0 0 auto;
    margin: 9px auto 1px;
    background: #cbd5db;
    border-radius: 5px;
}

.area-popup-search {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 58px;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #e5edf2;
}

.area-popup-search > span {
    position: absolute;
    top: 20px;
    left: 27px;
    width: 15px;
    height: 15px;
    border: 2px solid var(--ap-blue);
    border-radius: 50%;
    pointer-events: none;
}

.area-popup-search > span::after {
    position: absolute;
    right: -6px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    background: var(--ap-blue);
    content: "";
    transform: rotate(45deg);
}

.area-popup-search input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 52px 10px 43px;
    background: #f2f7f9;
    border: 1px solid #dce7ed;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.area-popup-search > button {
    position: absolute;
    top: 17px;
    right: 19px;
    min-width: 35px;
    min-height: 28px;
    padding: 4px;
    color: var(--ap-blue);
    background: transparent;
    border: 0;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.area-popup-dialog__footer {
    display: flex;
    min-height: 58px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px calc(8px + var(--ap-safe-bottom));
    background: #fff;
    border-top: 1px solid #dfe8ed;
}

.area-popup-dialog__footer > button {
    min-height: 42px;
    padding: 8px 13px;
    color: var(--ap-blue);
    background: var(--ap-soft);
    border: 1px solid #d7e7ef;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.area-popup-dialog__footer > span {
    color: var(--ap-muted);
    font-size: 8px;
    text-align: right;
}

/* Shared dynamic result rows */
.area-popup-list-button,
.area-popup-result-row {
    display: flex;
    width: 100%;
    min-height: 55px;
    align-items: center;
    gap: 12px;
    padding: 9px 15px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e5edf2;
    text-align: left;
    cursor: pointer;
}

.area-popup-list-button:hover,
.area-popup-list-button:active,
.area-popup-result-row:hover,
.area-popup-result-row:active {
    background: var(--ap-soft);
}

.area-popup-list-button__icon,
.area-popup-result-row__icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--ap-blue);
    background: var(--ap-soft);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 22px;
}

.area-popup-list-button__copy,
.area-popup-result-row__copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    line-height: 1.4;
}

.area-popup-list-button__copy strong,
.area-popup-result-row__copy strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.area-popup-list-button__copy small,
.area-popup-result-row__copy small {
    color: var(--ap-muted);
    font-size: 8px;
}

.area-popup-list-button__count {
    color: var(--ap-muted);
    font-family: Arial, sans-serif;
    font-size: 9px;
}

/* 都道府県ボタン: 地方名サブタイトル削除(2026-07-24)に伴い文字間を調整 */
.area-popup-list-button__copy {
    gap: 6px;
}

.area-popup-list-button__copy strong,
.area-popup-list-button__count {
    letter-spacing: 0.1em;
}

.area-popup-list-button__arrow,
.area-popup-result-row__arrow {
    color: var(--ap-blue);
    font-size: 22px;
}

.area-popup-empty {
    padding: 42px 20px;
    color: var(--ap-muted);
    text-align: center;
}

.area-popup-empty strong,
.area-popup-empty span {
    display: block;
}

.area-popup-empty strong {
    font-size: 13px;
}

.area-popup-empty span {
    margin-top: 4px;
    font-size: 9px;
}

.area-popup-more-button {
    min-height: 49px;
    flex: 0 0 auto;
    margin: 0;
    padding: 10px;
    color: var(--ap-blue);
    background: #fff;
    border: 0;
    border-top: 1px solid var(--ap-border);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.area-popup-more-button[hidden] {
    display: none;
}

/* Type 1: Bottom sheet */
.area-popup-dialog--1 {
    inset: auto 0 0;
    height: min(86dvh, 760px);
    margin: 0;
}

.area-popup-dialog--1[open] .area-popup-dialog__surface {
    animation: ap-sheet-up 260ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.area-popup-dialog--1 .area-popup-dialog__surface {
    border-radius: 20px 20px 0 0;
}

.area-popup-dialog--1 .area-popup-dialog__header {
    min-height: 57px;
    padding-top: 5px;
}

.area-popup-sheet-path {
    display: grid;
    min-height: 55px;
    flex: 0 0 auto;
    grid-template-columns: 1fr 15px 1fr 15px 1fr;
    align-items: center;
    padding: 6px 11px;
    background: #f6f9fa;
    border-bottom: 1px solid #e2ebef;
}

.area-popup-sheet-path > button {
    display: flex;
    min-width: 0;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    padding: 5px;
    color: #8898a3;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.area-popup-sheet-path > button:disabled {
    cursor: default;
}

.area-popup-sheet-path > button span {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    background: #e3e9ed;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 800;
}

.area-popup-sheet-path > button strong {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.area-popup-sheet-path > button.is-active {
    color: var(--ap-ink);
}

.area-popup-sheet-path > button.is-active span,
.area-popup-sheet-path > button.is-complete span {
    color: #fff;
    background: var(--ap-blue);
}

.area-popup-sheet-path > i {
    color: #a7b4bd;
    font-style: normal;
    text-align: center;
}

.area-popup-sheet-list {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}


/* ===== レスポンシブ（area-popup.cssメディアブロックから該当分を抽出） ===== */

@media (min-width: 768px) {

    /* PCは下寄せシート→画面センターのモーダルへ(2026-07-24。SPは下からのシートを維持) */
    .area-popup-dialog--1 {
        inset: 50% auto auto 50%;
        width: min(650px, calc(100% - 40px));
        height: min(78vh, 720px);
        margin: 0;
        transform: translate(-50%, -50%);
    }

    .area-popup-dialog--1[open] .area-popup-dialog__surface {
        animation: ap-fade-in 180ms ease both;
    }

    .area-popup-dialog--1 .area-popup-dialog__surface {
        border-radius: 16px;
        box-shadow: var(--ap-shadow);
    }

    /* ステップナビ(1 地方/2 都道府県/3 港・地点)の文字をPCは14pxへ(2026-07-24) */
    .area-popup-sheet-path > button span,
    .area-popup-sheet-path > button strong {
        font-size: 14px;
    }


    .area-popup-dialog--2,
    .area-popup-dialog--3 {
        inset: 50% auto auto 50%;
        width: min(680px, calc(100% - 40px));
        height: min(90vh, 800px);
        margin: 0;
        transform: translate(-50%, -50%);
    }


    .area-popup-dialog--2 .area-popup-dialog__surface,
    .area-popup-dialog--3 .area-popup-dialog__surface {
        border-radius: 16px;
        box-shadow: var(--ap-shadow);
    }


    .area-popup-dialog--4 {
        width: min(480px, 100%);
    }


    .area-popup-toast {
        right: 25px;
        bottom: 25px;
        left: auto;
        width: 360px;
    }
}

/* ===== 実ページ組み込み調整（2026-07-21） ===== */

/* 100vwブレイクアウトのスクロールバー分(約7px)の横はみ出しを抑止（このページ専用CSS） */
html {
    overflow-x: clip;
}

/* 「現在地から探す」の文字色: モックでは .tide-page button{color:inherit} に負けて
 * 紺地に紺文字で見えなかったため明示的に白へ（モック由来の不具合修正） */
.tide-directory .tide-location-button {
    color: #fff;
}

/* SNS共有バー: 旧位置(コンテンツ1100px用のleft:-1183px)はヒーロー見出しに
 * 重なるため、このページの本文カラム1220pxの左16px外側へ再計算して表示(2026-07-24)。
 * 収まらない1101〜1360pxは他ページのSP同様の下部追従バーに切替 */
@media (min-width: 1361px) {
    body .share {
        /* -1302=カラム1220+82。body付きは旧クリティカルCSS(.share{left:-1183px})に
           読み込み順へ依存せず勝つための詳細度(CSSがhead移動した2026-07-24に必須化) */
        left: -1302px;
    }
}

@media (min-width: 1101px) and (max-width: 1360px) {
    body .share {
        margin: 0 auto;
        bottom: 0;
        width: 100%;
        left: 0;
        right: 0;
        top: inherit;
    }

    body .share li {
        display: inline-block;
        width: 25%;
        vertical-align: top;
    }

    body .share li a {
        padding: 21px 0 4px;
        line-height: 1.5;
    }
}

/* ===== ヒーロー検索サジェスト（トップページ方式・2026-07-21） ===== */
.tide-port-search__field {
    position: relative;
}

.tide-port-suggest {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 40;
    overflow-y: auto;
    max-height: min(60vh, 480px); /* 全件表示対応: スマホでも画面内に収めてスクロール（2026-07-25） */
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid var(--tide-border);
    border-radius: 10px;
    box-shadow: var(--tide-shadow-hover);
}

.tide-port-suggest__option {
    display: flex;
    width: 100%;
    align-items: baseline;
    gap: 10px;
    padding: 11px 16px;
    color: var(--tide-ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--tide-border);
    text-align: left;
    cursor: pointer;
}

.tide-port-suggest__option:last-child {
    border-bottom: 0;
}

.tide-port-suggest__option:hover,
.tide-port-suggest__option.is-active {
    background: var(--tide-soft);
}

.tide-port-suggest__option strong {
    flex: 0 0 auto;
    font-size: 14px;
}

.tide-port-suggest__option small {
    overflow: hidden;
    color: var(--tide-muted);
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ===== #main-content1 内表示用モディファイア（2026-07-21試行） =====
 * 全幅ブレイクアウトを解除し、既存の白背景コンテンツ枠の中に収める */
.tide-directory.tide-directory--inline {
    position: static;
    left: auto;
    width: auto;
    margin: 0; /* 枠内表示ではブレイクアウト用マージンと-25px相殺は不要 */
}

.tide-directory--inline .tide-container {
    width: 100%;
    max-width: none;
}

/* ===== 現在地ボタンのリンク化（検索ボタンと紛らわしいため・2026-07-21） ===== */
.tide-port-search input {
    border-radius: 7px; /* ボタン分離に伴い右側も角丸に */
}

.tide-port-search__secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    margin-top: 9px;
}

.tide-port-search__secondary .tide-port-search__status {
    margin: 0;
}

.tide-location-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    color: var(--tide-blue);
    background: none;
    border: 0;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.tide-location-link:hover,
.tide-location-link:focus-visible {
    text-decoration: underline;
}

/* ===== セクション見出し（モックtide-level.css 293-337行・抽出漏れ分の追加 2026-07-21） ===== */
.tide-eyebrow {
    margin: 0 0 6px;
    color: var(--tide-blue);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.35;
}

.tide-section-heading {
    margin-bottom: 23px;
}

.tide-section-heading h2 {
    margin: 0;
    font-size: clamp(21px, 2vw, 28px);
    line-height: 1.4;
}

.tide-section-heading > p:last-child:not(.tide-eyebrow),
.tide-section-heading > div > p:last-child:not(.tide-eyebrow) {
    margin: 7px 0 0;
    color: var(--tide-muted);
    font-size: 12px;
}

.tide-section-heading--inline,
.tide-section-heading--with-date,
.tide-section-heading--with-action {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.tide-section-heading--inline > span,
.tide-section-heading--with-date time {
    color: var(--tide-muted);
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
}


/* 旧CSSの .type-page .post_title{border-top:4px solid #2c7eb9}（青い上罫線）を
 * このページでは無効化（2026-07-21） */
.type-page .post_title {
    border-top: 0;
}

/* ===== 見出し新スタイル テスト適用: 候補05 ディープシー（2026-07-21） =====
 * 移植元: codex/top/heading-style-candidates.css の slb-heading-sample--deep-sea。
 * 旧CSSの .type-page h3(0,1,1) に勝てるよう .slb-heading との複合(0,2,0)で指定。 */
.slb-heading.slb-heading--deep-sea {
    position: relative;
    margin: 1.7em 0 0.9em;
    padding: 9px 0 14px 18px;
    clear: both;
    color: #ffffff;
    background: linear-gradient(125deg, #063f7c 0%, #0759a7 60%, #0b78bc 100%);
    border-radius: 0.48em 0.48em 0 0; /* 角丸は上側のみ(2026-07-21指定) */
    line-height: 1.2;
    font-size: 20px;
}

/* 英字ラベル(data-label属性がある場合のみ表示) */
.slb-heading.slb-heading--deep-sea[data-label]::before {
    display: block;
    margin: 0 0 0.38em;
    color: #bfeaff;
    content: attr(data-label);
    font-size: max(0.62rem, 0.3em);
    font-weight: 750;
    letter-spacing: 0.16em;
    line-height: 1.2;
}

/* 下端のライトブルーグラデーションライン */
.slb-heading.slb-heading--deep-sea::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    content: "";
    background: linear-gradient(90deg, #56c8ec, #b9efff 48%, #56c8ec);
    border-radius: 0; /* 下側は角丸なし(2026-07-21指定) */
    opacity: 0.8;
}

/* ===== 見出しスタイル: セクション見出しタイプ（QUICK ACCESS等と同デザイン・2026-07-21） =====
 * 記事内h3を .tide-section-heading と同じ見た目（青英字アイキャッチ+大きめ見出し）にする */
.slb-heading.slb-heading--section {
    margin: 2em 0 0.9em;
    padding: 0;
    clear: both;
    color: var(--tide-ink);
    background: none;
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.4;
}

.slb-heading.slb-heading--section[data-label]::before {
    display: block;
    margin: 0 0 6px;
    color: var(--tide-blue);
    content: attr(data-label);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.35;
}

/* ===== 見出しデザイン比較テスト（候補01〜04・2026-07-21暫定） =====
 * 4つの記事見出しに別々の候補デザインを当てて実ページで比較する。
 * 確定後は1種類へ統一し、この暫定ブロックを整理する予定。
 * 共通ベース（旧CSS .type-page h3 と同詳細度・後読みで上書き） */
h2.slb-heading,
h3.slb-heading {
    margin: 2em 0 0.9em;
    padding: 0;
    clear: both;
    color: var(--tide-ink);
    background: none;
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.4;
}

/* 英字ラベル（::before が装飾に使われていない案のみ表示） */
.slb-heading.slb-heading--ocean-line[data-label]::before,
.slb-heading.slb-heading--soft-surface[data-label]::before {
    display: block;
    margin: 0 0 6px;
    color: var(--tide-blue);
    content: attr(data-label);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.35;
}

/* 候補01 オーシャンライン: 細い2色ライン */
.slb-heading.slb-heading--ocean-line,
.tide-directory .tide-section-heading,
#content-single .tide-section-heading {
    position: relative;
    padding: 0 0 0.55em 7px;
}

.slb-heading.slb-heading--ocean-line::after,
.tide-directory .tide-section-heading::after,
#content-single .tide-section-heading::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px; /* 元は2px。太さ比較テスト(2026-07-21) */
    content: "";
    background: linear-gradient(90deg, #0759a7 0 16%, #81d7f0 16% 28%, var(--slb-color-border, #dce7f0) 28% 100%);
}

/* 記事内見出し(ocean-line)のサイズを新セクション見出し(.tide-section-heading h2)と統一(2026-07-24)。
   旧CSSの .type-page h3(115%=17.25px) を複合セレクタ(0,2,0)で上書き */
.slb-heading.slb-heading--ocean-line {
    font-size: clamp(21px, 2vw, 28px);
    line-height: 1.4;
}

/* 記事内見出し=新タイプ(tide-section-heading)そのもの。デザイン値は上の共通ルールが
   そのまま当たる(2026-07-24にCSS読み込み順を旧CSS→本ファイルへ正した)。
   ここは記事エリア特有の旧CSS打ち消しと余白リズムだけを持つ */
#content-single .tide-section-heading {
    margin: 1.9em 0 0.9em;
}

#content-single .tide-section-heading h2 {
    padding: 0 !important; /* 旧CSS .post_title h2 の padding:10px 10px !important に対抗 */
    color: #102e4b; /* 記事エリアの継承色(#333)を新見出しの紺へ */
    text-align: left; /* .post_title の text-align:justify 継承を打ち消し */
}

#content-single .tide-section-heading .tide-eyebrow {
    margin: 0; /* 新デザイン側は.tide-directory pのリセットでmargin:0のため合わせる */
    color: var(--tide-blue, #0759a7); /* 記事エリアは.tide-directory外で変数/継承が届かないため */
    text-align: left;
}

/* 候補02 レフトビーコン: 左縦バー */
.slb-heading.slb-heading--left-beacon {
    position: relative;
    padding: 0.2em 0 0.2em 1em;
}

.slb-heading.slb-heading--left-beacon::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0.24em;
    min-width: 4px;
    content: "";
    background: linear-gradient(180deg, #0759a7, #81d7f0);
    border-radius: 999px;
    box-shadow: 0.34em 0 0 rgba(129, 215, 240, 0.22);
}

/* 候補03 ソフトサーフェス: 薄青面+左インセットライン */
.slb-heading.slb-heading--soft-surface {
    position: relative;
    padding: 0.72em 0.9em 0.72em 1.05em;
    background: #edf8ff;
    border: 1px solid #c3d9ea;
    border-radius: 0.55em;
    box-shadow: inset 5px 0 0 #0759a7, 0 8px 20px rgba(7, 89, 167, 0.08);
}

/* 候補04 タイドルール: 中央配置+両側ライン（見出しテキストは<span>で囲む） */
.slb-heading.slb-heading--tide-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    text-align: center;
}

.slb-heading.slb-heading--tide-rule::before,
.slb-heading.slb-heading--tide-rule::after {
    width: clamp(20px, 8vw, 90px);
    height: 2px;
    flex: 1 1 auto;
    content: "";
    background: linear-gradient(90deg, transparent, #32a9e8);
}

.slb-heading.slb-heading--tide-rule::after {
    background: linear-gradient(90deg, #32a9e8, transparent);
}

.slb-heading.slb-heading--tide-rule > span {
    max-width: 78%;
}

/* ===== 見出しデザイン統一: 新セクション見出しにもオーシャンライン下線を適用（2026-07-21） =====
 * 閲覧履歴・地方から選ぶ・よく見られている潮汐地点の見出しブロック下に
 * 記事見出し（潮見表とは？等）と同じ3pxグラデーションラインを引く */
/* 新見出しの下線・余白は .slb-heading--ocean-line のルールに統合（2026-07-22） */

/* 説明文つき見出しの例外(線をh2直下に出す処理)は廃止し、ocean-line統合ルールに一本化（2026-07-22） */

.tide-directory .tide-section-heading:not([class*="--"]) > p:not(.tide-eyebrow) {
    margin-top: -5px;
}

.tide-region-card__arrow svg {
    display: block;
    width: 50px;
    height: 50px;
    fill: currentColor;
}

.tide-region-card__wave svg {
    display: block;
    width: 26px;
    height: 26px;
    fill: currentColor;
}

/* ===== よく見られている潮汐地点: 天気・水温カード化（2026-07-22） ===== */

/* style.css共通の body{background-color:#f0f0f0} をこのページでは打ち消す（2026-07-22）
 * ※ダークモードは body.darkBody 側の指定（詳細度が上）が勝つため影響なし */
body {
    background-color: #fff;
}
.tide-popular-port {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px 16px 0;
    overflow: hidden;
    border-radius: 14px;
}

.tide-popular-port__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}

.tide-popular-port__number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--tide-blue);
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
}

.tide-popular-port strong {
    min-width: 0;
    font-size: 15px;
}

.tide-popular-port__obs {
    width: 14px;
    height: 14px;
    margin-left: 5px;
    vertical-align: middle;
}

.tide-popular-port__meta {
    display: flex;
    align-items: center;
}

.tide-popular-port__cell {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 8px;
}

.tide-popular-port__cell--water {
    margin-left: 11px;
    padding-left: 11px;
    border-left: 1px solid var(--tide-border);
}

.tide-popular-port__wicon {
    width: 40px;
    height: auto;
    flex: 0 0 auto;
}

.tide-popular-port__wave-ic {
    display: grid;
    width: 30px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--tide-blue);
}

.tide-popular-port__wave-ic svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.tide-popular-port__wtext {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.tide-popular-port__wtext small {
    color: var(--tide-muted);
    font-size: 10px;
}

.tide-popular-port__wtext b {
    font-size: 13px;
}

.tide-popular-port__deco {
    display: block;
    width: calc(100% + 32px);
    height: 56px;
    margin: -15px -16px 0;
}

.tide-popular-port__deco path {
    fill: #92c1df; /* 波の色（見比べの結果06番を採用・2026-07-22） */
}

/* 番号バッジはトップページのランキング配色と統一（slb-chrome.cssのトークン参照） */
.tide-popular-port__number {
    background: var(--slb-color-rank-standard, #6b98bd);
}

.tide-popular-port:nth-child(1) .tide-popular-port__number { background: var(--slb-color-rank-first, #ffbd28); }
.tide-popular-port:nth-child(2) .tide-popular-port__number { background: var(--slb-color-rank-second, #9cb4c7); }
.tide-popular-port:nth-child(3) .tide-popular-port__number { background: var(--slb-color-rank-third, #ec9235); }

/* 履歴ゼロ時はセクションごと非表示。旧CSSのsection{display:block}系リセットが
 * hidden属性を打ち消すため明示する（2026-07-22） */
.tide-history-section[hidden] {
    display: none;
}

/* 閲覧履歴カード改修（2026-07-22）: アイコン廃止・「[潮見表]名前 / 住所」の並び */
.tide-history-card__link {
    display: flex; /* 旧アイコン用2カラムgridを解除し、波装飾を下端へ押し付ける縦flexへ */
    min-height: 0; /* 旧116pxを解除してコンパクト化（2026-07-22） */
    flex-direction: column;
    align-items: stretch;
    gap: 0; /* 旧グリッド用の12pxを打ち消し */
    padding-top: 10px;
}

.tide-history-card__copy {
    margin-bottom: 3px; /* 住所と波装飾の最小間隔 */
}

.tide-history-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tide-history-card__badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 3px 9px;
    color: #fff;
    background: var(--tide-blue);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* カード下部の海（波）装飾。人気地点カードと同色（2026-07-22） */
.tide-history-card__deco {
    display: block;
    width: calc(100% + 58px); /* リンクの左16px+右42pxパディング分を打ち消して全幅化 */
    height: 35px;
    flex: 0 0 auto;
    margin: auto -42px -17px -16px; /* margin-top:auto で常にカード下端へ */
}

.tide-history-card__deco path {
    fill: #92c1df;
}

/* ===== ダークモード整合（2026-07-22） =====
 * 背景透過のセクション（閲覧履歴・地方から選ぶ・よく見られている）は暗背景に
 * 濃紺見出しが沈むため明色化。カード類は白のままで整合。 */
#darkBody .tide-history-section .tide-section-heading h2,
#darkBody .tide-region-overview .tide-section-heading h2,
#darkBody .tide-popular-section .tide-section-heading h2,
#darkBody #content-single .tide-section-heading h2,
#darkBody .slb-heading.slb-heading--ocean-line,
#darkBody .tide-history-empty strong {
    color: #e8eef4;
}

#darkBody .tide-region-overview .tide-section-heading > p:not(.tide-eyebrow),
#darkBody .tide-history-section .tide-section-heading--inline > span,
#darkBody .tide-popular-section .tide-section-heading--inline > span,
#darkBody .tide-history-empty {
    color: #a7b6c2;
}

@media (max-width: 767px) {
    .tide-popular-port {
        padding: 13px 14px 0;
    }

    .tide-popular-port__deco {
        width: calc(100% + 28px);
        margin: 4px -14px 0;
    }

    /* スマホの見出し左寄せ復元（2026-07-22）:
     * 基本ルール(1407行 align-items:flex-end)がモバイル用ルール(681行)より
     * 後方にあり打ち消していたため、ここで再指定する */
    .tide-section-heading--inline,
    .tide-section-heading--with-date,
    .tide-section-heading--with-action {
        align-items: flex-start;
    }

    /* スマホでは「0件」「YYYY.MM.DD 更新」を右上に固定（英字eyebrowと同じ行・2026-07-22） */
    .tide-section-heading--inline > span,
    .tide-section-heading--with-date time {
        position: absolute;
        top: 3px;
        right: 0;
        font-size: 12px;
        line-height: 1;
    }

    /* 地方カード2列化に伴うカード内の縮小調整（2026-07-22） */
    .tide-region-card {
        min-height: 0;
        grid-template-columns: 36px 1fr 18px;
        gap: 8px;
        padding: 13px 10px;
    }

    .tide-region-card__wave {
        width: 36px;
        height: 36px;
    }

    .tide-region-card__wave svg {
        width: 20px;
        height: 20px;
    }

    .tide-region-card__arrow svg {
        width: 18px;
        height: 18px;
    }

    .tide-region-card__content strong {
        font-size: 12px;
    }

    .tide-region-card__content small {
        font-size: 8px;
    }
}

/* ===== 記事内の単独画像をセンター寄せ(2026-07-24) =====
   .post_title直下のimgのみ対象(文中のインラインアイコンは対象外)。
   上下余白は旧CSSの0.5emを維持 */
#content-single .post_title > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ポップアップのkeyframes(モックから未移植だったため補完・2026-07-24) */
@keyframes ap-fade-in {
    /* transformはセンタリング(translate(-50%,-50%))と衝突するためopacityのみ */
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ap-sheet-up {
    from { opacity: .6; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}
