/*
Theme Name: Blocksy Child
Theme URI: https://hakodate-rugby.com
Template: blocksy
Author: Antigravity
Description: 函館市ラグビー協会公式HP用Blocksy子テーマ
Version: 1.1.4
*/

:root {
  --color-brand-blue: #1A5B8C; /* ベースの青（深い海の色） */
  --color-brand-light-blue: #F0F6FA; /* 背景用の薄い青 */
  --color-brand-accent: #E35235; /* ラグビーの熱を感じさせるアクセント(赤系) */
  --color-brand-secondary: #0D3E64;
  --color-glass: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(255, 255, 255, 0.4);
  --theme-font-family: 'Noto Sans JP', sans-serif;
}

/* Base resets & typography */
body {
    background-color: var(--color-brand-light-blue);
    font-family: 'Noto Sans JP', sans-serif;
}

.ct-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Headings */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    letter-spacing: 0.1em;
}

.section-title span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    margin-top: 5px;
}

.front-section {
    padding: 4rem 0;
}

/* フロントページ：ヘッダー直下の余白をなくす */
.home .site-main,
.home #main,
.home .site-main.hfeed,
.home .content-start,
.home [data-vertical-spacing] {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.home .hero-slider-section {
    margin-top: 0 !important;
}

/* 1. ヒーローセクション（動画背景） */
.hero-slider-section {
    width: 100%;
    height: 100vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

/* 動画：全面フィル */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 背景を暗くするオーバーレイ */
.hero-slider-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1;
}

/* ロゴオーバーレイ */
.hero-logo-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    pointer-events: none;
}

.hero-logo {
    width: auto;
    height: min(300px, 45vh);
    opacity: 0; /* 動画再生開始まで非表示 */
    filter: drop-shadow(0 4px 24px rgba(0,0,0,.4));
}

/* 動画再生開始後にJSでクラスを付与してアニメーション開始 */
.hero-logo-overlay.is-playing .hero-logo {
    animation: hero-logo-float 3s ease-in-out infinite, hero-logo-fadein 2s ease-out both;
}

/* キャッチコピー */
.hero-tagline {
    color: #fff;
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
    margin: 0;
    opacity: 0; /* 動画再生開始まで非表示 */
}

.hero-logo-overlay.is-playing .hero-tagline {
    animation: hero-tagline-fadein 1s ease-out 2.6s both;
}

@keyframes hero-logo-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes hero-logo-float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

@keyframes hero-tagline-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 2. スケジュール(Glass Card) */
.schedule-glass-card {
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.schedule-glass-card p {
    margin-bottom: 2rem;
    color: #555;
    font-size: 1.1rem;
}
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-brand-blue);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(26,91,140,0.3);
}
.btn-primary:hover {
    background-color: var(--color-brand-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,91,140,0.4);
    color: #fff;
}

/* 3. ニュースカテゴリー・タブUI */
.news-tab-container {
    max-width: 900px;
    margin: 0 auto;
}
.news-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 4px 2px 8px;
    gap: 10px;
}
.news-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.tab-link {
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
    padding: 0px;
    box-sizing: border-box;
    background: var(--color-brand-blue);
    border: 2px solid var(--color-brand-blue);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tab-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.tab-img--white { display: block; }
.tab-img--blue  { display: none; }
.tab-link:hover {
    background: #fff;
    border-color: var(--color-brand-blue);
    box-shadow: 0 4px 12px rgba(26,91,140,0.2);
    transform: translateY(-2px);
}
.tab-link:hover .tab-img--white { display: none; }
.tab-link:hover .tab-img--blue  { display: block; }
.tab-link.active {
    background: #fff;
    border-color: var(--color-brand-blue);
    box-shadow: 0 4px 15px rgba(26,91,140,0.3);
}
.tab-link.active .tab-img--white { display: none; }
.tab-link.active .tab-img--blue  { display: block; }
.tab-content-container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-top: 4px solid var(--color-brand-blue);
}
.tab-content {
    display: none;
    animation: fadeInTab 0.4s ease forwards;
}
.tab-content.active {
    display: block;
}
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.news-list-horizontal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.news-row {
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #EEE;
}
.news-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.news-title:hover {
    color: var(--color-brand-accent);
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}
.news-cat {
    background: var(--color-brand-light-blue);
    color: var(--color-brand-blue);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.news-date {
    color: #888;
}
.news-archive-link {
    text-align: center;
    margin-top: 2rem;
}
.btn-archive {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid var(--color-brand-blue);
    color: var(--color-brand-blue);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-archive:hover {
    background: var(--color-brand-blue);
    color: #fff;
}

/* ヘッダーメニュー（ナビゲーション）のホバーアニメーション */
.ct-header .ct-menu-link,
.ct-header .menu-item > a {
    /* 遊び心のあるバウンドアニメーションを設定 */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease !important;
    /* transformを正しく適用するため、デフォルトがinlineなどでも機能する設定を付加 */
    display: inline-flex;
}

.ct-header .ct-menu-link:hover,
.ct-header .menu-item > a:hover {
    /* ホバー時にぽよんと浮き上がり少し拡大する */
    transform: translateY(-4px) scale(1.05) !important;
}

/* ============================================================
   ABOUTページ：1ページ集約型（アンカーナビ + 全セクション展開）
   ============================================================ */
html { scroll-behavior: smooth; }

.about-page {
    padding: 3rem 8px 5rem;
}

.about-hero {
    text-align: center;
    margin-bottom: 2rem;
}
.about-hero__title {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    letter-spacing: 0.1em;
    margin: 0 0 1rem;
    line-height: 1.2;
}
.about-hero__sub {
    display: block;
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}
.about-hero__lead {
    max-width: 720px;
    margin: 0 auto;
    color: #555;
    font-size: 1rem;
    line-height: 1.9;
}

/* アンカーナビ（スティッキー + 横スクロール） */
.about-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin: 0 -8px 2.5rem;
    padding: 0 8px;
    border-bottom: 1px solid rgba(26,91,140,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.about-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
}
.about-nav__list::-webkit-scrollbar { display: none; }
.about-nav__item { margin: 0; flex: 0 0 auto; }
.about-nav__link {
    display: inline-block;
    padding: 16px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.about-nav__link:hover,
.about-nav__link.is-active {
    color: var(--color-brand-blue);
    border-bottom-color: var(--color-brand-blue);
}

/* セクション */
.about-sections {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}
.about-section {
    scroll-margin-top: 80px;
    background: #fff;
    border-radius: 14px;
    padding: 2.4rem 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.about-section__header {
    border-bottom: 2px solid var(--color-brand-light-blue);
    padding-bottom: 0.8rem;
    margin-bottom: 1.6rem;
}
.about-section__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    margin: 0;
    letter-spacing: 0.05em;
}
.about-section__body {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}
.about-section__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.about-section__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.about-section__body table th,
.about-section__body table td {
    padding: 10px 12px;
    border: 1px solid #e0e6ec;
    text-align: left;
}
.about-section__body table th {
    background: var(--color-brand-light-blue);
    color: var(--color-brand-blue);
    font-weight: 600;
}
.about-section__body .wp-block-file {
    background: var(--color-brand-light-blue);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin: 1rem 0;
}
.about-section__footer {
    margin-top: 1.5rem;
    text-align: right;
}
.about-section__more {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--color-brand-blue);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.about-section__more:hover {
    border-bottom-color: var(--color-brand-blue);
}

/* タブレット対応 (Max-width 1024px) */
@media (max-width: 1024px) {
    .hero-slider-section {
        height: 60vh;
        min-height: 450px;
    }
    .about-cards__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

/* スマホ対応 (Max-width 768px) */
@media (max-width: 768px) {
    .hero-slider-section {
        /* スマホは全高さ表示 */
        height: 100vh;  /* フォールバック */
        height: 100svh; /* iOS Safari: URLバーを除いた正確な高さ */
        min-height: 0;
    }

    .hero-logo {
        height: min(180px, 28vh);
    }
    /* スマホはスワイプ操作が直感的なため、画面を広く使うべく矢印を非表示に */
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }

    /* その他セクションのスマホ最適化 */
    .front-section {
        padding: 2.5rem 0;
    }
    .schedule-glass-card {
        padding: 1.5rem;
    }
    
    /* タブUI スマホ：横スクロール調整 */
    .news-tabs {
        justify-content: flex-start;
        margin-bottom: 1.5rem;
        padding: 4px 0 8px;
    }
    .tab-link {
        width: 90px;
        height: 90px;
    }

    /* ABOUTページ スマホ */
    .about-page {
        padding: 2rem 4px 3.5rem;
    }
    .about-hero {
        margin-bottom: 1.5rem;
    }
    .about-hero__title {
        font-size: 2rem;
    }
    .about-hero__sub {
        font-size: 0.9rem;
    }
    .about-hero__lead {
        font-size: 0.95rem;
        text-align: left;
    }
    .about-nav {
        margin: 0 -4px 2rem;
        padding: 0 4px;
    }
    .about-nav__link {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    .about-sections {
        gap: 2rem;
    }
    .about-section {
        padding: 1.6rem 1.2rem;
        scroll-margin-top: 70px;
    }
    .about-section__title {
        font-size: 1.3rem;
    }
    .about-section__body {
        font-size: 0.95rem;
    }
    /* スマホ：表は横スクロール */
    .about-section__body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* スマホ：ジャパンリスト（sptp）を画像左＋テキスト右に */
    #section-japanlist .sptp-member {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 14px;
        text-align: left;
        padding: 10px;
    }
    #section-japanlist .sptp-member .image {
        flex: 0 0 90px;
        margin: 0 !important;
    }
    #section-japanlist .sptp-member .sptp-member-avatar,
    #section-japanlist .sptp-member .sptp-member-avatar-img {
        width: 90px !important;
        height: 90px !important;
        display: block;
    }
    #section-japanlist .sptp-member .sptp-member-avatar-img img {
        width: 90px !important;
        height: 90px !important;
        object-fit: cover;
        border-radius: 50%;
    }
    #section-japanlist .sptp-member .content {
        flex: 1;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }
    #section-japanlist .sptp-member-name {
        margin: 0 0 4px !important;
        text-align: left !important;
    }
    #section-japanlist .sptp-member-name-title {
        font-size: 1.05rem !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        text-align: left !important;
    }
    #section-japanlist .sptp-member-desc {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        color: #555;
        text-align: left !important;
    }
    /* スマホでは1列に並べる */
    #section-japanlist .sptp-row > [class*="sptp-col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 8px;
    }
    .tab-content-container {
        padding: 1.5rem 1rem;
    }
    .news-title {
        font-size: 1rem;
    }
    .news-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* スマホ表示ではニュース一覧を3件のみ表示 */
    .news-list-horizontal .news-row:nth-child(n+4) {
        display: none;
    }
}

/* ========================================
   投稿個別ページ：モダンデザイン
   ======================================== */

/* 投稿者を非表示 */
.single-post .meta-author {
    display: none !important;
}

/* 記事全体をカード化 */
.single-post article.post {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 48px rgba(0,0,0,.09);
    overflow: hidden;
    max-width: 900px;
    margin: 2rem auto 4rem;
}

/* タイトルエリア：ブランドブルーのグラデーション */
.single-post .hero-section {
    background: linear-gradient(135deg, var(--color-brand-blue) 0%, var(--color-brand-secondary) 100%) !important;
    padding: 3rem 3rem 2rem !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

.single-post .hero-section .page-title {
    color: #fff !important;
    font-size: clamp(1.25rem, 3vw, 1.85rem);
    line-height: 1.55;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* メタ情報（日付・カテゴリ）をバッジスタイルに */
.single-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-post .entry-meta li::before,
.single-post .entry-meta li::after {
    display: none !important;
    content: none !important;
}

.single-post .entry-meta time,
.single-post .ct-meta-element-date {
    color: rgba(255,255,255,.82) !important;
    font-size: 0.88rem;
}

.single-post .meta-categories a {
    display: inline-block;
    background: rgba(255,255,255,.2);
    color: #fff !important;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(4px);
    transition: background .2s;
}

.single-post .meta-categories a:hover {
    background: rgba(255,255,255,.35);
}

/* コンテンツエリア */
.single-post .entry-content {
    padding: 2.5rem 3rem 3rem !important;
    font-size: 1rem;
    line-height: 1.9;
    color: #333;
}

/* 見出し */
.single-post .entry-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    border-left: 4px solid var(--color-brand-blue);
    padding-left: 14px;
    margin: 2rem 0 1rem;
}

.single-post .entry-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin: 1.5rem 0 0.8rem;
}

/* ファイルダウンロードブロック */
.single-post .wp-block-file {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: #f0f7fd;
    border: 1px solid #b8d8f8;
    border-left: 4px solid var(--color-brand-blue);
    border-radius: 10px;
    padding: 1rem 1.4rem;
    margin: 1rem 0;
    transition: box-shadow .2s;
}

.single-post .wp-block-file:hover {
    box-shadow: 0 4px 20px rgba(26,91,140,.12);
}

.single-post .wp-block-file a:not(.wp-block-file__button):not(.wp-element-button) {
    color: var(--color-brand-blue);
    font-weight: 600;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.single-post .wp-block-file .wp-block-file__button,
.single-post .wp-block-file .wp-element-button {
    background: var(--color-brand-blue) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 22px !important;
    border-radius: 20px !important;
    font-size: 0.88rem !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s, transform .15s, box-shadow .15s;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(26,91,140,.25);
}

.single-post .wp-block-file .wp-block-file__button:hover,
.single-post .wp-block-file .wp-element-button:hover {
    background: var(--color-brand-secondary) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(26,91,140,.35) !important;
    color: #fff !important;
}

/* PDF埋め込みビューア */
.pdf-embed-wrap {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d0e4f4;
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    margin-bottom: 1.5rem;
}

.pdf-embed {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border: none;
    display: block;
}

/* 投稿内画像 */
.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* テーブル */
.single-post .entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin: 1.5rem 0;
}

.single-post .entry-content th {
    background: var(--color-brand-blue);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
}

.single-post .entry-content td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0ecf8;
}

.single-post .entry-content tr:nth-child(even) td {
    background: #f5f9fd;
}

/* 前後ナビゲーション（PC） */
.single-post .post-navigation {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 20px;
    box-sizing: border-box;
}

.single-post .post-navigation .nav-links {
    display: flex;
    gap: 12px;
}

.single-post .nav-previous,
.single-post .nav-next {
    flex: 1;
}

/* prev：左矢印を左端に配置 */
.single-post .nav-previous a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px 16px 52px;
    background: #fff;
    border: 1px solid #d0e4f4;
    border-radius: 12px;
    text-decoration: none;
    position: relative;
    height: 100%;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}

/* next：右矢印を右端に配置 */
.single-post .nav-next a {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 16px 52px 16px 20px;
    background: #fff;
    border: 1px solid #d0e4f4;
    border-radius: 12px;
    text-decoration: none;
    position: relative;
    height: 100%;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}

.single-post .nav-previous a:hover,
.single-post .nav-next a:hover {
    border-color: var(--color-brand-blue);
    box-shadow: 0 4px 20px rgba(26,91,140,.13);
    transform: translateY(-2px);
}

/* シェブロン矢印（CSS border） */
.single-post .nav-previous a::before,
.single-post .nav-next a::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 11px;
    height: 11px;
    border-top: 2.5px solid var(--color-brand-blue);
    border-right: 2.5px solid var(--color-brand-blue);
    transition: transform .2s ease;
}

/* ← 左向きシェブロン */
.single-post .nav-previous a::before {
    left: 20px;
    transform: translateY(-50%) rotate(-135deg);
}

.single-post .nav-previous a:hover::before {
    transform: translateY(-50%) rotate(-135deg) translate(3px, -3px);
}

/* → 右向きシェブロン */
.single-post .nav-next a::after {
    right: 20px;
    transform: translateY(-50%) rotate(45deg);
}

.single-post .nav-next a:hover::after {
    transform: translateY(-50%) rotate(45deg) translate(3px, -3px);
}

.single-post .sn-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.single-post .sn-title {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .single-post article.post {
        border-radius: 10px;
        margin: 0.8rem auto 2rem;
    }

    .single-post .hero-section {
        padding: 1.8rem 1.4rem 1.4rem !important;
    }

    .single-post .hero-section .page-title {
        font-size: 1.15rem;
    }

    .single-post .entry-content {
        padding: 1.5rem 1.2rem 2rem !important;
    }

    .single-post .wp-block-file {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pdf-embed {
        height: 60vh;
        min-height: 400px;
    }

    .ct-container-full,
    [data-vertical-spacing*=top].ct-container-full {
        padding: 0 12px;
    }

    /* ナビゲーション：スマホ — 引っ張りジェスチャーで代替するため非表示 */
    .single-post .post-navigation {
        display: none;
    }
}


/* コメント欄を非表示 */
.single-post #comments {
    display: none !important;
}

/* 引っ張りナビゲーション ガイドバー */
.pull-nav-guide {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-brand-blue, #1A5B8C);
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    transition: background .2s;
}

/* 次の記事（上部）：引っ張り時のみ表示 */
.pull-nav-guide--next {
    top: 0;
    opacity: 0;
    display: none;
}
.pull-nav-guide--next.is-visible {
    display: flex;
}

/* 前の記事（下部）：常時表示 */
.pull-nav-guide--prev {
    bottom: 0;
    opacity: 0.8;
}

.pull-nav-guide.pull-nav-ready {
    background: #0D9E5C;
    opacity: 1;
}

/* 矢印アイコン */
.pull-nav-guide .pull-nav-icon {
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2.5px solid #fff;
    border-right: 2.5px solid #fff;
    flex-shrink: 0;
}

/* 次の記事 → ↓ 矢印 */
.pull-nav-guide--next .pull-nav-icon {
    transform: rotate(135deg);
}

/* 前の記事 → ↑ 矢印 */
.pull-nav-guide--prev .pull-nav-icon {
    transform: rotate(-45deg);
}
