/* ============================================================
   subpage.css — 東京木材埠頭株式会社 下層ページ共通スタイル
   設計：CSS変数は page.css の :root を継承
         BEM風クラス命名（コンポーネント接頭辞を統一）
         WCAG 2.1 AA 準拠（コントラスト比 4.5:1以上）
============================================================ */

/* ============================================================
   1. SUBPAGE BASE
============================================================ */
.subpage-main {
    padding-top: var(--height-header);
    max-width: var(--width-subpage-max);
    margin-left: auto;
    margin-right: auto;
}
.col-tiet {
    max-width: var(--width-content-tiet);
    margin-left: auto;
    margin-right: auto;
}
/* ============================================================
   2. サブナビゲーション（会社案内タブ）
============================================================ */
.subnav__inner {
    display: flex;
    align-items: center;
    gap: 0;
    padding-left: var(--gutter-lg);
    padding-top: 16px;
}
.subnav__line {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #ccc;
}
/* セクションラベル（「会社案内」） */
.subnav__section-label {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-18);
    font-weight: 700;
    color: var(--color-800);
    white-space: nowrap;
    /* padding-bottom: 32px; */
    padding-right: 36px;
    line-height: 1;
    /* border-bottom: 1px solid #ccc; */
}

/* タブリスト */
.subnav__tabs {
    display: flex;
    align-items: flex-end;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

/* 個別タブ */
.subnav__tab {
    position: relative;
}

.subnav__tab a {
    display: block;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-13);
    font-weight: 700;
    color: var(--color-800);
    text-decoration: none;
    padding: 32px 0 32px;
    white-space: nowrap;
    line-height: 1;
    transition: color 0.2s;
}

.subnav__tab a:hover,
.subnav__tab a:focus-visible {
    color: var(--color-primary);
}

/* アクティブタブ */
.subnav__tab--active a {
    color: var(--color-primary);
}

/* アクティブタブ 下のブルーバー */
.subnav__tab--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--color-primary);
    border-radius: 2px 2px 0 0;
}

/* ボーダーライン */
.subnav__border {
    height: 1px;
    background: var(--color-300);
    margin-left: var(--gutter-lg);
    margin-right: var(--gutter-lg);
    width: auto;
}

/* ============================================================
   3. パンくずリスト
============================================================ */
.breadcrumb-wrap {
    padding: 24px 0 0 var(--gutter-lg);
}

.c-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-14);
    color: var(--color-800);
}

.c-breadcrumb li + li::before {
    content: ' > ';
    padding: 0 4px;
    color: var(--color-800);
}

.c-breadcrumb a {
    color: var(--color-800);
    text-decoration: none;
    transition: color 0.2s;
}

.c-breadcrumb a:hover,
.c-breadcrumb a:focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
}

.c-breadcrumb [aria-current='page'] {
    color: var(--color-800);
}
@media (max-width: 768px) {
.c-breadcrumb li {
    white-space: nowrap;
}

.c-breadcrumb {
    font-size: var(--font-size-12);
    overflow: hidden;
}

.c-breadcrumb li:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
}
/* ============================================================
   4. ページタイトルセクション
============================================================ */
.page-title-section {
    padding: 64px 0 64px;
}

.page-title-inner {
    padding-left: var(--gutter-lg);
}

/* 英字キャッチ（青・小） */
.page-title__en {
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-18);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin: 0 0 10px 0;
}

/* 日本語メインタイトル */
.page-title__ja {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-40);
    font-weight: 700;
    color: var(--color-800);
    line-height: 1.3;
    margin: 0;
}
@media (max-width: 768px) {
.page-title-section {
    padding: 48px 0 48px;
    }
    p.page-title__en {
    font-size: var(--font-size-14);
}
}
/* ============================================================
   5. 社長あいさつ 本文エリア
============================================================ */
.president-section {
    padding: 0 0 64px;
}

.president-inner {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-xl);
    padding-left: var(--gutter-lg);
    padding-right: var(--gutter-lg);
}

/* 写真プレースホルダー */
.president-photo {
    flex-shrink: 0;
    width: 380px;
    height: 420px;
    background: #c5c5c5;
    border-radius: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
}

.president-photo__label {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-14);
    font-weight: 700;
    color: var(--color-800);
    text-align: center;
    line-height: 1.8;
    opacity: 0.7;
}

/* テキスト列 */
.president-text {
    flex: 1;
    min-width: 0;
}

/* 本文段落 */
.president-text__body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    font-weight: 400;
    line-height: 1.78;
    color: var(--color-800);
    margin: 0 0 28px 0;
}

/* 署名 */
.president-text__sig {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-18);
    font-weight: 400;
    line-height: 1.78;
    color: var(--color-800);
    text-align: right;
    margin: 0;
}

.president-text__sig-name {
    display: block;
    font-weight: 700;
    font-size: var(--font-size-20);
}

/* ============================================================
   6. 区切り線（日英間）
============================================================ */
.president-divider {
    padding: 0 var(--gutter-lg);
    margin-bottom: var(--gap-xl);
}

.president-divider__line {
    height: 1px;
    background: var(--color-300);
}

/* ============================================================
   7. 英語テキストセクション
============================================================ */
.president-en-section {
    padding: 0 0 80px;
    max-width: var(--width-content-tiet);
    margin: 0 auto;
}

.president-en-inner {
    padding-left: var(--gutter-lg);
    padding-right: var(--gutter-lg);
}

/* 本文段落 */
.president-en__body {
    font-family: 'Roboto', sans-serif;
    font-size: var(--font-size-15);
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: var(--color-800);
    margin: 0 0 20px 0;
}

/* 英語署名 */
.president-en__sig {
    font-family: 'Roboto', sans-serif;
    font-size: var(--font-size-15);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-800);
    text-align: right;
    max-width: 927px;
    margin: 16px 0 0 0;
}

.president-en__sig span {
    display: block;
}

/* ============================================================
   8. ページ切り替えスイッチ（プレビュー用）
============================================================ */

.page-switcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-300);
    border-radius: 16px;
    padding: 6px 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    max-width: 600px;
    justify-content: center;
}

.page-switcher__btn {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    border: none;
    background: transparent;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-12);
    font-weight: 700;
    color: var(--color-600);
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
    white-space: nowrap;
}

.page-switcher__btn--active,
.page-switcher__btn:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ============================================================
   10. 会社概要・沿革ページ
============================================================ */

/* ─ セクション外枠 ─ */
.cp-section {
    padding: 0 0 72px;
}

.cp-section__inner {
    padding-left: var(--gutter-lg);
    padding-right: var(--gutter-lg);
}
@media (max-width: 768px) {
section.cp-section {
    padding: 0 0 48px;
}
}
/* ============================================================
   2カラムボディ
   Figma構造：
     左列（見出し, var(--col-heading-w)）＋ギャップ(40px) ＋ 右列（コンテンツ, flex-1）
   区切り線グラデーション：
     ①左グレー(0 〜 126px) | ②青アクセント(126〜200px)
     | ③透明ギャップ(200〜240px) | ④右グレー(240px〜)
============================================================ */
.cp-body {
    display: flex;
    align-items: flex-start;
    position: relative;
    gap: 80px;
}

/* 全幅トップ区切り線（複合グラデーション） */
.cp-body::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
}

.cp-body .shrink-0.w-\[var\(--col-heading-w\)\].max-md\:w-full {
    position: sticky;
    top: 79px;
}

/* ─ サブ見出し（会社概要 / 沿革） ─ */
.cp-subheading {
    display: flex;
    align-items: center;
    gap: 10px;
    shrink-0 w-[var(--col-heading-w)] max-md: w-full;
    padding-top: 48px;
    border-top: 1px solid #c5c5c5;
}
.cp-subheading:before {
    content: '';
    display: block;
    width: 80px;
    position: absolute;
    top: 0;
    right: 0;
    height: 1px;
    background-color: var(--color-primary);
}

.cp-subheading__dot {
    display: block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #003399;
}

.cp-subheading__title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-22); /* 22px */
    font-weight: 700;
    color: #171c2b;
    line-height: 1.3;
    margin: 0;
}

/* ─ 2カラムボディ：左見出し列（HTMLクラス版） ─ */
.cp-body__heading {
    flex-shrink: 0;
    width: var(--col-heading-w);
    padding-top: 20px;
    padding-right: 40px;
}

/* ─ 2カラムボディ：右コンテンツ列（HTMLクラス版） ─ */
.cp-body__content {
    flex: 1;
    min-width: 0;
    padding-top: 20px;
}

/* ─ アンカーリンクリスト ─ */
ul.anker_link_list {
    padding-top: 30px;
    display: flex;
    gap: 4px;
    flex-direction: column;
}
.anker_link_list a {
    font-size: 14px;
    background-image: url(/assets/images/common/ico_cursol_btonbl.svg);
    background-repeat: no-repeat;
    background-size: 14px;
    padding-left: 18px;
}

@media (max-width: 768px) {
.cp-body .shrink-0.w-\[var\(--col-heading-w\)\].max-md\:w-full {
    position: static;
    top: auto;
}
}

/* ============================================================
   会社概要テーブル
   Figma: label 165px | gap 16px | value/map (flex-1)
============================================================ */
.cp-table {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #C5C5C5;
    padding-top: 36px;
}

/* テーブル行 */
.cp-table__row {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #c5c5c5;
}

/* border-bottom を持たない行（次にマップが続く場合） */
.cp-table__row--no-bottom {
    border-bottom: none;
}

/* ラベル列（太字, 165px固定） */
.cp-table__label {
    flex-shrink: 0;
    width: var(--col-label-w);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    font-weight: 700;
    color: #000;
    line-height: 1.75;
    margin: 0;
    padding-right: 16px;
}

/* 値列 */
.cp-table__value {
    flex: 1;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    font-weight: 400;
    color: #000;
    line-height: 1.75;
    margin: 0;
}
@media (max-width: 768px) {
.cp-table {
    border-top: none;
    padding: 0;
}
.cp-body {
    gap: 30px;
}
}
/* ─ Google Map プレースホルダー ─
   Figmaでは本社所在地〜資本金の間に値列幅いっぱい（453px相当）で配置。
   値列と同じ左端（ラベル幅+ギャップ = 181px）から始まる。 */
.cp-map-wrap {
    padding-left: calc(var(--col-label-w) + 16px); /* = label + gap */
    border-bottom: 1px solid #c5c5c5;
}

.cp-map {
    width: 100%; /* 値列幅いっぱい（Figmaでは453px） */
    height: 310px; /* Figmaの 377px を比例縮小 */
    background: #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.cp-map__label {
    font-family: 'TT Norms', var(--font-family-primary);
    font-size: var(--font-size-24);
    font-weight: 700;
    color: #555;
    font-style: normal;
}

/* ============================================================
   沿革タイムライン
   Figma: era(96px) | month(右寄せ, ~72+24px) | content(flex-1)
============================================================ */
.cp-history {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border-top: 1px solid #C5C5C5;
    padding-top: 36px;
}

/* 沿革行 */
.cp-history__row {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #c5c5c5;
}

/* 元号列（昭和48年など, 96px固定, 太字） */
.cp-history__era {
    flex-shrink: 0;
    width: 96px;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    font-weight: 700;
    color: #000;
    line-height: 1.75;
    margin: 0;
}

/* 月列（右寄せ, 太字） */
.cp-history__month {
    flex-shrink: 0;
    width: 72px;
    text-align: right;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    font-weight: 700;
    color: #000;
    line-height: 1.75;
    margin: 0;
    padding-right: 24px; /* 内容列との余白 */
}

/* 内容列 */
.cp-history__content {
    flex: 1;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    font-weight: 400;
    color: #000;
    line-height: 1.75;
    margin: 0;
}

/* ─ レスポンシブ対応 ─ */
@media (max-width: 768px) {
    .cp-section__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* モバイルでは縦積みレイアウトに変更 */
    .cp-body {
        flex-direction: column;
    }

    /* モバイル：シンプルなグレー線 */
    .cp-body::before {
        background: #c5c5c5;
    }

    .cp-body__heading {
        width: 100%;
        padding-right: 0;
        padding-bottom: 20px;
        padding-top: 4px;
    }

    .cp-body__content {
        width: 100%;
    }

    /* ラベル行 縦積み */
    .cp-table__row {
        flex-direction: column;
        gap: 4px;
    }

    .cp-table__label {
        width: auto;
    }

    /* マップは左余白なし */
    .cp-map-wrap {
        padding-left: 0;
    }

    .cp-map {
        height: 220px;
    }

    .cp-map__label {
        font-size: var(--font-size-24);
    }

    /* 沿革：元号列を縮小 */
    .cp-history__era {
        width: 80px;
    }

    .cp-history__month {
        width: 56px;
        padding-right: 16px;
    }
    .cp-history {
    border-top: none;
    padding-top: 0;
}
}

/* ============================================================
   9. レスポンシブ対応
============================================================ */
@media (max-width: 1100px) {
    .subnav__inner,
    .breadcrumb-wrap,
    .page-title-inner,
    .president-inner,
    .president-divider,
    .president-en-inner {
        padding-left: 48px;
        padding-right: 48px;
    }

    .subnav__border {
        margin-left: 48px;
        width: auto;
        margin-right: 48px;
    }

    .president-photo {
        width: 42%;
        min-height: 360px;
        height: auto;
    }
}

@media (max-width: 768px) {
    nav.subnav {
    display: none;
}
    .subnav__inner {
        flex-wrap: wrap;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 16px;
    }
    .subnav__line {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
    .subnav__section-label {
        width: 100%;
        padding-bottom: 8px;
    }

    .subnav__tabs {
        flex-wrap: wrap;
        gap: 16px;
    }

    .subnav__tab a {
        padding: 16px 0 16px;
        font-size: var(--font-size-12);
    }

    .subnav__border {
        margin-left: 20px;
        margin-right: 20px;
        width: auto;
    }

    .breadcrumb-wrap,
    .page-title-inner,
    .president-divider,
    .president-en-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .president-inner {
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;
    }

    .president-photo {
        width: 100%;
        height: 300px;
        flex-shrink: unset;
    }

    .page-title__ja {
        font-size: var(--font-size-24);
    }

    .president-text__body {
        font-size: var(--font-size-16);
    }
}

/* ============================================================
   11. 施設概要・規模ページ
============================================================ */

.fac-hero {
    position: relative;
    margin: 0 var(--gutter-lg) 56px;
    border-radius: 10px;
    overflow: hidden;
    height: 500px;
}
.fac-hero__background {
position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    border-radius: var(--radius-sm);
}
.fac-hero__video {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

/* ── 施設テーブル：ラベル列を広めに（番号+名称で長め） ── */
.cp-table--fac .cp-table__label--fac {
    width: 200px;
    padding-right: 24px;
}

/* ── レスポンシブ ── */
@media (max-width: 768px) {
    .fac-hero {
        margin: 0 20px 40px;
    }

    .fac-hero__bg {
        top: 0;
        height: 100%;
    }

    .fac-hero__fg {
        left: 0;
        width: 100%;
        height: 100%;
    }

    .cp-table--fac .cp-table__label--fac {
        width: auto;
        padding-right: 0;
    }
}

@media (max-width: 1100px) {
    .fac-hero {
        height: 360px;
    }
}

/* ============================================================
   12. サブページ共通コンテンツスタイル
============================================================ */

/* 本文テキスト */
.sp-body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    font-weight: 400;
    line-height: 1.75;
    color: #000;
}

/* 本文テキスト小 */
.sp-body-sm {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-14);
    font-weight: 400;
    line-height: 1.8;
    color: #000;
}

/* 太字見出しテキスト */
.sp-label {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    font-weight: 700;
    color: #000;
}

/* 太字見出しテキスト小 */
.sp-label-sm {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-14);
    font-weight: 700;
    color: #000;
}

/* 丸みのある画像ラッパー */
.sp-img-rounded {
    border-radius: 10px;
    overflow: hidden;
}

/* 画像フル幅 */
.sp-img-block {
    width: 100%;
    display: block;
}

/* 画像カバー */
.sp-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ドットライン */
.dotted{
 background-image : linear-gradient(to right, #6C6C6C 2px, transparent 2px);
 background-size: 10px 2px;
 background-repeat: repeat-x;
}

/* ナンバーバッジ（入出門手順等） */
.sp-num-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-14);
}

/* PDFダウンロードボタン */
.sp-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: var(--font-size-14);
    text-decoration: none;
    transition: opacity 0.2s;
}
.sp-btn-pdf:hover,
.sp-btn-pdf:focus-visible {
    opacity: 0.85;
    color: #fff;
}

/* フッターリンク間隔 */
.footer__col-title--spaced {
    margin-top: 32px;
}

/* ============================================================
   13. インフォボックス（入出門手順等の注意枠）
============================================================ */
.sp-infobox {
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-base);
    padding: 24px 24px;
    margin: 0 0 24px;
    background: var(--color-000);
}
.sp-infobox--danger {
    border-color: var(--color-accent);
        background-color: #FFFEF2;
}
.sp-infobox__title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 8px;
}
.sp-infobox--danger .sp-infobox__title {
    color: var(--color-accent);
}
.sp-infobox__body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-14);
    line-height: 1.8;
    color: #000;
}

/* インラインリンク */
.sp-link {
    color: var(--color-primary);
    text-decoration: underline;
}
.sp-link:hover,
.sp-link:focus-visible {
    opacity: 0.8;
}

/* ============================================================
   14. ステップ番号（入出門3点確認等）
============================================================ */
.list_tbl .flex.gap-4.items-start {
    padding: 24px;
    border-bottom: 1px solid #ccc;
}

.list_tbl {
    border-top: 1px solid #ccc;
}

/* ============================================================
   15. セクション中央見出し（SOLAS等）
============================================================ */
.sp-center-heading {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-32);
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.56;
    margin: 0 0 40px;
    text-align: center;
}
.sp-center-subheading {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-22);
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.82;
    text-align: center;
    margin: 0 0 32px;
}

/* ============================================================
   16. コンテンツ見出し（TLT等、h3相当）
============================================================ */
.sp-content-heading {
    font-family: var(--font-family-primary);
    font-weight: 700;
    font-size: var(--font-size-20);
    color: var(--color-secondary);
    margin: 0 0 20px;
}

/* ============================================================
   17. 施設カード（構内案内グリッド）
============================================================ */
.sp-facility-card__img {
    width: 100%;
    aspect-ratio: 335/223;
    border-radius: 10px;
    overflow: hidden;
    background: #c4c4c4;
    margin-bottom: 16px;
}
.sp-facility-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-14);
    font-weight: 700;
    color: var(--color-800);
    text-align: center;
    line-height: 1.6;
}
.sp-facility-card__name {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-18);
    font-weight: 700;
    color: #000;
    margin: 0 0 8px;
    line-height: 1.5;
}
.sp-facility-card__desc {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    font-weight: 400;
    color: #000;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   18. アンカーリンク（構内案内）
============================================================ */
.sp-anchor-link {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-14);
    font-weight: 500;
    color: var(--color-900);
    text-decoration: underline;
}
.sp-anchor-link:hover,
.sp-anchor-link:focus-visible {
    color: var(--color-primary);
}

/* ============================================================
   19. PDF ダウンロードボタン（アウトライン）
============================================================ */
.sp-btn-pdf-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    text-decoration: none;
    color: var(--color-primary);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    font-weight: 700;
    transition:
        background 0.2s,
        color 0.2s;
}
.sp-btn-pdf-outline:hover,
.sp-btn-pdf-outline:focus-visible {
    background: var(--color-primary);
    color: #fff;
}
.sp-btn-pdf-outline:hover .sp-pdf-badge,
.sp-btn-pdf-outline:focus-visible .sp-pdf-badge {
    background: #fff;
    color: var(--color-primary);
}
.sp-pdf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-xs);
    font-size: var(--font-size-2xs);
    font-weight: 700;
    padding: 1px 5px;
    font-family: 'TT Norms', var(--font-family-secondary);
}

/* ============================================================
   20. 機能カード（TLTシステム等）
============================================================ */
.sp-feature-card {
    border-radius: var(--radius-sm);
    display: flex;
    gap: 16px;
}
.sp-feature-card__icon {
    width: 50px;
}

.sp-feature-card__txt {
    flex: 1;
}
.sp-feature-card__title {
    font-family: var(--font-family-primary);
    font-weight: 700;
    font-size: var(--font-size-16);
    color: var(--color-secondary);
    margin: 0 0 8px;
}
.sp-feature-card__desc {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-14);
    line-height: 1.7;
    color: #000;
    margin: 0;
}

.feture-row {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 34px;
}

/* ============================================================
   21. CTAボタン（丸み）
============================================================ */
.sp-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 12px 32px;
    text-decoration: none;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    font-weight: 700;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
}
.sp-btn-cta:hover,
.sp-btn-cta:focus-visible {
    opacity: 0.85;
    color: #fff;
}

/* ============================================================
   22. 重ね画像ヒーロー（SOLAS/TLT等）
============================================================ */
.sp-hero-layered {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #d9d9d9;
}

/* ============================================================
   23. 手順リスト（入出門等）
============================================================ */
.sp-steps-list {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    line-height: 1.75;
    color: #000;
    margin: 16px 0;
}
.sp-steps-list li {
    border-left: 4px solid #333;
    padding-left: 12px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
}
.sp-steps-list li:after {
    content: "";
    width: 100%;
    height: 1px;
    display: block;
    background-image: linear-gradient(to right, #6C6C6C 2px, transparent 2px);
    background-size: 10px 1px;
    background-repeat: repeat-x;
    position: absolute;
    bottom: -12px;
    left: 0;
}
/* ============================================================
   24. レスポンシブ：コンテンツ内2カラム
============================================================ */
@media (max-width: 768px) {
    .sp-infobox {
        padding: 16px 20px;
    }

    .sp-center-heading {
        font-size: var(--font-size-24);
    }

    .sp-center-subheading {
        font-size: var(--font-size-18);
    }
}

/* ============================================================
   25. トピックス一覧
============================================================ */
.sp-news-link {
    display: flex;
    align-items: center;
    gap: 25px;
    text-decoration: none;
    padding: 16px 0;
}
.sp-news-link:hover .sp-news-link__title,
.sp-news-link:focus-visible .sp-news-link__title {
    color: var(--color-primary);
}
.sp-news-link__date {
    font-family: 'TT Norms', var(--font-family-secondary);
    font-weight: 700;
    font-size: var(--font-size-16);
    color: var(--color-800);
    white-space: nowrap;
    line-height: 1.8;
}
.sp-news-link__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-800);
    border-radius: var(--radius-tag);
    padding: 2px 7px;
    font-family: var(--font-family-primary);
    font-weight: 700;
    font-size: var(--font-size-xs);
    color: var(--color-800);
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}
.sp-news-link__title {
    flex: 1;
    font-family: var(--font-family-primary);
    font-weight: 700;
    font-size: var(--font-size-16);
    color: var(--color-800);
    line-height: 1.8;
    letter-spacing: 1.6px;
    transition: color 0.2s;
}

/* ページネーション */
.sp-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 32px 0;
}
.sp-pagination__btn {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: none;
    background: #606060;
    color: #fff;
    font-family: 'TT Norms', var(--font-family-secondary);
    font-weight: 700;
    font-size: var(--font-size-22);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.sp-pagination__btn--active {
    background: var(--color-primary);
}

/* ============================================================
   26. トピックス詳細
============================================================ */
.sp-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.sp-detail-date {
    font-family: 'TT Norms', var(--font-family-secondary);
    font-weight: 700;
    font-size: var(--font-size-16);
    color: var(--color-800);
}
.sp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-family-primary);
    font-weight: 700;
    font-size: var(--font-size-16);
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}
.sp-back-link:hover,
.sp-back-link:focus-visible {
    opacity: 0.7;
}
.sp-back-link__arrow {
    transform: rotate(180deg);
}
.sp-text-danger {
    color: var(--color-accent);
}

/* ============================================================
   27. あしすとねっとページ
============================================================ */
.sp-intro-text {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-20);
    font-weight: 700;
    line-height: 1.8;
    color: var(--color-secondary);
    text-align: center;
    margin: 0 0 40px;
}
.sp-feature-row {
    border: 1px solid var(--color-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: stretch;
}
.sp-feature-row__img {
    flex-shrink: 0;
    width: 200px;
    background: #c4c4c4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-14);
    font-weight: 700;
    color: var(--color-800);
    text-align: center;
    line-height: 1.6;
}
.sp-feature-row__body {
    flex: 1;
    padding: 20px 24px;
}

@media (max-width: 768px) {
    .sp-news-link {
        flex-wrap: wrap;
        gap: 8px 16px;
    }
    .sp-news-link__title {
        width: 100%;
        letter-spacing: 0;
    }
    .sp-pagination__btn {
        width: 48px;
        height: 48px;
        font-size: var(--font-size-20);
    }
    .sp-feature-row {
        flex-direction: column;
    }
    .sp-feature-row__img {
        width: 100%;
        height: 160px;
    }
}

/* ============================================================
   WP-PageNavi オーバーライド
   オリジナルの sp-pagination デザインに合わせる
   ============================================================ */

/* ラッパー */
.wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 32px 0;
  clear: both;
}

/* 全ボタン共通（数字ページ・前次リンク） */
.wp-pagenavi a,
.wp-pagenavi span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;               /* pagenavi-css.cssのborderをリセット */
  padding: 0;                 /* pagenavi-css.cssのpaddingをリセット */
  margin: 0;                  /* pagenavi-css.cssのmarginをリセット */
  background: #606060;
  color: #fff;
  font-family: 'TT Norms', var(--font-family-secondary);
  font-weight: 700;
  font-size: var(--font-size-22);
  text-decoration: none;
  line-height: 1;
  transition: background 0.2s;
  cursor: pointer;
}

/* 現在ページ（active） */
.wp-pagenavi span.current {
  background: var(--color-primary);  /* #003399 */
  font-weight: 700;                  /* pagenavi-css.cssのfont-weightを継承で上書き */
  border-color: transparent;         /* pagenavi-css.cssのborder-colorをリセット */
}

/* ホバー */
.wp-pagenavi a:hover,
.wp-pagenavi a:focus-visible {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;         /* pagenavi-css.cssのhoverリセット */
  outline: none;
}

/* ============================================================
   WordPress 記事本文スタイルテンプレート
   ============================================================ */

/* 記事全体の基本設定 */
.entry-content, .post-content {
    line-height: 1.8; /* 行間 */
    font-size: 16px; /* 文字サイズ */
    color: var(--color-800); /* 文字色 */
}

/* 段落間の余白 */
.entry-content p, .post-content p {
    margin-bottom: 1.5em;
}

/* 見出しの設定 (H2-H4) */
.entry-content h2, .post-content h2 {
    position: relative;
    padding: 0.5em 0.5em 0.5em 1em;
    background: #f4f4f4;
    border-left: 6px solid var(--color-primary); /* 左のアクセントライン */
    border-radius: 4px;
    font-size: var(--font-size-24);
    margin-top: 1.5em;
    margin-bottom: 1em;
    font-weight: 700;
}

.entry-content h3, .post-content h3 {
    padding: 0.25em 0;
    border-bottom: 2px solid var(--color-primary); /* 下のライン */
    font-size: var(--font-size-20);
    margin-top: 1.5em;
    margin-bottom: 1em;
    font-weight: 700;
}

.entry-content h4, .post-content h4 {
    border-left: 3px solid var(--color-primary);
    padding-left: 10px;
    font-size: var(--font-size-18);
    margin-top: 1.5em;
    margin-bottom: 1em;
    font-weight: 700;
}

@media (max-width: 576px) {
    .entry-content h2, .post-content h2 {
    font-size: var(--font-size-20);
}

h3.wp-block-heading {
    font-size: var(--font-size-18);
}

h4.wp-block-heading {
    font-size: var(--font-size-16);
}
}

/* リスト（箇条書き）スタイル */
.entry-content ul, .post-content ul,
.entry-content ol, .post-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.entry-content ul li, .post-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5em;
}

.entry-content ol li, .post-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.5em;
}

/* 引用スタイル */
.entry-content blockquote, .post-content blockquote {
    background: #f9f9f9;
    border-left: 5px solid #ccc;
    margin: 1.5em 0;
    padding: 1em 1.5em;
    color: #555;
    font-style: italic;
}

/* 画像・メディア */
.entry-content img, .post-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1em;
}

/* リンク */
.entry-content a, .post-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.entry-content a:hover, .post-content a:hover {
    text-decoration: underline;
}

/* ボタンスタイル */
.entry-content .wp-block-button__link {
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 12px 32px;
    text-decoration: none;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    font-weight: 700;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
    margin-bottom: 20px;
}

.entry-content .wp-block-button__link:hover {
    opacity: 0.85;
    text-decoration: none;
}

.wp-block-file__button {
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 12px 32px;
    text-decoration: none;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-16);
    font-weight: 700;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
    margin-bottom: 20px;
}

.entry-content .wp-block-file__button:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* ボックスデザイン（マーカー） */
.entry-content .marker, .post-content .marker {
    background: linear-gradient(transparent 60%, #ffff7f 60%);
    font-weight: bold;
}
/* セパレーター */
.wp-block-separator {
    border: none;
    border-top: 1px solid #ccc;
    margin: 24px 0;
}