/* スライダーテキスト縁取り */
.heading-slider {
    text-shadow:
        1px  1px 3px rgba(0,0,0,0.85),
       -1px  1px 3px rgba(0,0,0,0.85),
        1px -1px 3px rgba(0,0,0,0.85),
       -1px -1px 3px rgba(0,0,0,0.85),
        0    2px 6px rgba(0,0,0,0.6);
}

.phrase-slider {
    text-shadow:
        1px  1px 2px rgba(0,0,0,0.9),
       -1px  1px 2px rgba(0,0,0,0.9),
        1px -1px 2px rgba(0,0,0,0.9),
       -1px -1px 2px rgba(0,0,0,0.9),
        0    2px 4px rgba(0,0,0,0.6);
}

/* 船ページのギャラリー：2×N グリッド統一レイアウト */
.ship-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px auto;
    max-width: 900px;
}
.ship-gallery figure {
    margin: 0;
    background: #f4f4f4;
    border-radius: 4px;
    overflow: hidden;
}
.ship-gallery figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.ship-gallery figure.ship-gallery-contain img {
    object-fit: contain;
    background: #f4f4f4;
}
.ship-gallery figure figcaption {
    text-align: center;
    padding: 6px 4px;
    font-size: 0.92em;
    color: #444;
    background: #fff;
}
@media (max-width: 600px) {
    .ship-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 船ページのスペック表 */
.ship-spec {
    max-width: 600px;
    margin: 0 auto 16px;
    border-collapse: collapse;
    width: 100%;
    font-size: 1.0em;
}
.ship-spec th,
.ship-spec td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}
.ship-spec th {
    background: #eef7fa;
    color: #1f6e84;
    width: 35%;
    font-weight: 600;
}

/* 船ページのギャラリー写真：大きすぎないように制限 */
.ship-photo-large {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.ship-photo-large img {
    width: 100% !important;
    height: auto !important;
}
.ship-photo-medium {
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.ship-photo-medium img {
    width: 100% !important;
    height: auto !important;
}

/* 船長ページの顔写真：適度なサイズに制限・中央寄せ */
figure.captain-portrait {
    max-width: 480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}
figure.captain-portrait img {
    width: 100% !important;
    height: auto !important;
    max-width: 480px !important;
}

/* 船長ページのSNSバナー：中央寄せ + 横幅制限 */
.sns-banner {
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.sns-banner img {
    width: 100% !important;
    height: auto !important;
}

/* 予約ページ最下部のLINE IDバナー：問い合わせページのLINEバナーと同じ見た目幅に揃える */
.reserve-line-id-banner {
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.reserve-line-id-banner > a,
.reserve-line-id-banner img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}
@media (max-width: 781px) {
    .reserve-line-id-banner {
        max-width: 100% !important;
    }
}

/* バナー画像：imgWrap内で横幅100%に揃える（左寄せの黒帯を防ぐ） */
.imgWrap > a {
    display: block;
    width: 100%;
}
.imgWrap img {
    width: 100%;
    height: auto;
}

/* トップページの船長サムネイル：imgWrapのmin-width:100%を上書き */
.top-captain-thumb {
    max-width: 320px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.top-captain-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* スポンサーロゴ：行の中央寄せ＋上下にゆとり */
.widgetFooter__box .textwidget {
    text-align: center;
    line-height: 1.6;
}
.widgetFooter__box .textwidget img {
    vertical-align: middle;
    margin: 4px 8px;
}
/* Site typography consistency */
body {
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0;
}

.content,
.content p,
.content li,
.content table,
.content td,
.content th,
.content figcaption,
.phrase {
    font-size: 17px !important;
    line-height: 1.8;
}

.heading.heading-primary {
    font-size: 32px;
    line-height: 1.35;
}

.content h2.wp-block-heading,
.heading.heading-commonCtr {
    font-size: 26px !important;
    line-height: 1.45;
}

.content h3.wp-block-heading {
    font-size: 22px !important;
    line-height: 1.5;
}

.has-medium-font-size {
    font-size: 18px !important;
    line-height: 1.75;
}

.ship-spec,
.ship-spec th,
.ship-spec td {
    font-size: 16px !important;
    line-height: 1.65;
}

.ship-gallery figure figcaption {
    font-size: 15px !important;
    line-height: 1.55;
}

@media (max-width: 781px) {
    body {
        font-size: 16px;
    }

    .content,
    .content p,
    .content li,
    .content table,
    .content td,
    .content th,
    .content figcaption,
    .phrase {
        font-size: 16px !important;
        line-height: 1.75;
    }

    .heading.heading-primary {
        font-size: 26px;
    }

    .content h2.wp-block-heading,
    .heading.heading-commonCtr {
        font-size: 23px !important;
    }

    .content h3.wp-block-heading {
        font-size: 20px !important;
    }

    .has-medium-font-size {
        font-size: 16px !important;
    }

    .ship-spec,
    .ship-spec th,
    .ship-spec td,
    .ship-gallery figure figcaption {
        font-size: 15px !important;
    }
}
