/* =====================================================
 * フロントサイト本体 CSS  [v2026-05-13]
 *
 * Design direction: Editorial × Academic Minimalism
 * - 研究者サイトの品格と読みやすさを両立
 * - タイポグラフィと余白で情報階層を表現
 * - メインカラー #A6192E はアクセントとして抑制的に使用
 * ===================================================== */

/* ----- カスタムプロパティ ----- */
:root {
    /* カラー */
    --color-primary:      #A6192E;
    --color-primary-dark: #841625;
    --color-primary-soft: #f6e8eb;

    --color-text:    #1f1f1f;          /* 純黒は避ける */
    --color-text-2:  #4a4a4a;          /* 副次テキスト */
    --color-muted:   #8a8a8a;          /* キャプション */
    --color-rule:    #e6e2dc;          /* 罫線（暖色寄りグレー） */
    --color-rule-2:  #d8d3cb;
    --color-bg:      #ffffff;
    --color-bg-soft: #faf8f5;          /* 紙のような淡いベージュ */
    --color-bg-dark: #1f1f1f;

    /* 余白の設計（8の倍数を基本としたリズム・2025水準で大きめに） */
    --gap-xs: 0.5rem;
    --gap-sm: 1rem;
    --gap-md: 1.75rem;
    --gap-lg: 3rem;
    --gap-xl: 5rem;
    --gap-xxl: 8rem;

    /* タイポグラフィ */
    --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
    --font-sans:  "Noto Sans JP",  "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    --font-mono:  "SFMono-Regular", Consolas, "Liberation Mono", monospace;

    /* ブレークポイント基準 */
    --container-max: 1140px;
    --container-narrow: 760px;
}

/* ----- リセット ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 1.9;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 768px) {
    body { font-size: 18px; line-height: 1.85; }
}

img { max-width: 100%; height: auto; display: block; }
a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
a:hover { opacity: 0.65; }

button { font-family: inherit; cursor: pointer; }

/* スクロールバー（控えめに） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-rule); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-rule-2); }

/* ----- コンテナ ----- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (min-width: 768px) {
    .container, .container-narrow {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* スクリーンリーダー用 */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* スキップリンク（アクセシビリティ）
 * フォーカスされていない時は完全に視覚的に消す。
 * フォーカス時のみ、画面左上に表示されてキーボード操作でジャンプできるようにする。
 */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    z-index: 1000;
    font-size: 0.9rem;
}
.skip-link:focus,
.skip-link:focus-visible {
    position: absolute;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 2px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===========================================
 * ヘッダー
 * =========================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--color-rule);
}
.site-header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
@media (min-width: 768px) {
    .site-header__inner { padding: 1.125rem 2rem; }
}

.site-header__brand {
    flex-shrink: 0;
    line-height: 1;
}
.site-header__brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.site-header__brand a:hover { opacity: 1; }
.site-header__brand img {
    height: 32px;
    width: auto;
    object-fit: contain;
}
/* hidden属性の表示制御を堅牢化（一部古いブラウザ対応） */
.site-header__brand [hidden] {
    display: none !important;
}

/* テキストロゴ：研究者・学術ブランドの品格を意識した装丁 */
.site-header__brand-text {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    /* 左側の細い縦線アクセント（書籍の装丁を想起させる） */
    padding-left: 0.95rem;
    border-left: 2px solid var(--color-primary);
    line-height: 1.15;
}
.site-header__brand-text-jp {
    display: block;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.75rem;
    letter-spacing: 0.08em;
    color: var(--color-text);
    margin-bottom: 0.18em;
}
.site-header__brand-text-en {
    display: block;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--color-muted);
}
@media (min-width: 768px) {
    .site-header__brand img { height: 48px; }
    .site-header__brand-text-jp { font-size: 2rem; letter-spacing: 0.1em; }
    .site-header__brand-text-en { font-size: 0.78rem; letter-spacing: 0.18em; }
}

/* ----- ナビ：デスクトップ ----- */
.site-nav {
    display: none;
}
@media (min-width: 880px) {
    .site-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    .site-nav a {
        font-size: 0.92rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        color: var(--color-text);
        position: relative;
        padding: 0.25rem 0;
    }
    .site-nav a::after {
        content: "";
        position: absolute;
        left: 0; right: 0; bottom: -2px;
        height: 1.5px;
        background: var(--color-primary);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }
    .site-nav a:hover { opacity: 1; }
    .site-nav a:hover::after { transform: scaleX(1); }
    .site-nav a.is-current::after { transform: scaleX(1); }

    .site-nav .nav-cta {
        background: var(--color-primary);
        color: #fff;
        padding: 0.55rem 1.25rem;
        border-radius: 2px;
        font-size: 0.85rem;
        letter-spacing: 0.06em;
    }
    .site-nav .nav-cta::after { display: none; }
    .site-nav .nav-cta:hover {
        background: var(--color-primary-dark);
        opacity: 1;
    }

    /* ----- SNS ドロップダウン（PC） ----- */
    .nav-sns-wrap {
        position: relative;
    }
    .nav-sns-trigger {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.92rem;
        font-weight: 500;
        font-family: var(--font-sans);
        color: var(--color-text);
        background: none;
        border: none;
        padding: 0.25rem 0;
        cursor: pointer;
        opacity: 0.75;
        position: relative;
        transition: opacity 0.2s;
        letter-spacing: inherit;
    }
    .nav-sns-trigger::after {
        content: "";
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 2px;
        background: var(--color-primary);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }
    .nav-sns-chevron {
        transition: transform 0.2s ease;
    }
    .nav-sns-wrap:hover .nav-sns-trigger,
    .nav-sns-trigger[aria-expanded="true"] {
        opacity: 1;
    }
    .nav-sns-wrap:hover .nav-sns-trigger::after,
    .nav-sns-trigger[aria-expanded="true"]::after {
        transform: scaleX(1);
    }
    .nav-sns-wrap:hover .nav-sns-chevron,
    .nav-sns-trigger[aria-expanded="true"] .nav-sns-chevron {
        transform: rotate(180deg);
    }
    .nav-sns-dropdown {
        position: absolute;
        top: calc(100% + 0.9rem);
        left: 50%;
        transform: translateX(-50%) translateY(-6px);
        background: #fff;
        border: 1px solid var(--color-border);
        border-radius: 6px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.11);
        min-width: 175px;
        padding: 0.4rem 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
        z-index: 200;
    }
    .nav-sns-wrap:hover .nav-sns-dropdown,
    .nav-sns-dropdown.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
    }
    .nav-sns-dropdown::before {
        content: "";
        position: absolute;
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top: none;
        border-bottom-color: var(--color-border);
    }
    .nav-sns-dropdown::after {
        content: "";
        position: absolute;
        top: -5px;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top: none;
        border-bottom-color: #fff;
    }
    .nav-sns-dropdown a {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.6rem 1.1rem;
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--color-text);
        opacity: 0.85;
        transition: background 0.15s, color 0.15s, opacity 0.15s;
        white-space: nowrap;
    }
    .nav-sns-dropdown a::after { display: none; }
    .nav-sns-dropdown a:hover {
        background: var(--color-bg-soft);
        opacity: 1;
    }
    .nav-sns-dropdown a[data-sns="ameblo"]:hover    { color: #00a73c; }
    .nav-sns-dropdown a[data-sns="instagram"]:hover { color: #C13584; }
    .nav-sns-dropdown svg { width: 15px; height: 15px; flex-shrink: 0; }
}

/* ----- ナビ：モバイル（ハンバーガー） ----- */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-text);
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}
@media (min-width: 880px) {
    .nav-toggle { display: none; }
}

.mobile-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--color-bg);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding-top: 130px;
    padding-bottom: 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}
.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
}
.mobile-nav a {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-text);
    padding: 0.35rem 1rem;
}
.mobile-nav .mobile-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.85rem 3.5rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: 2px;
    box-shadow: 0 3px 12px rgba(161, 26, 46, 0.35);
}
/* モバイルナビ SNS直接リンク */
.mobile-nav__sns-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.85;
}
.mobile-nav__sns-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.mobile-nav__sns-link[data-sns="ameblo"]    { color: #00a73c; }
.mobile-nav__sns-link[data-sns="instagram"] { color: #C13584; }

.mobile-nav__sns {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}
.mobile-nav__sns a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    color: #fff;
    padding: 0;
    opacity: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.22);
}
.mobile-nav__sns a:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 18px rgba(0,0,0,0.28);
    opacity: 1;
}
.mobile-nav__sns a[data-sns="twitter"]   { background: #000; }
.mobile-nav__sns a[data-sns="facebook"]  { background: #1877f2; }
.mobile-nav__sns a[data-sns="instagram"] {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.mobile-nav__sns a[data-sns="youtube"]   { background: #ff0000; }
.mobile-nav__sns a[data-sns="ameblo"]    { background: #00a73c; }
.mobile-nav__sns svg { width: 24px; height: 24px; }
@media (min-width: 880px) {
    .mobile-nav { display: none !important; }
}

/* ===========================================
 * フッター
 * =========================================== */
.site-footer {
    background: var(--color-bg-dark);
    color: #d4d0ca;
    padding: var(--gap-xl) 0 var(--gap-md);
}
.site-footer__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2.5rem;
}
@media (min-width: 720px) {
    .site-footer__grid {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
}
.site-footer h2 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    letter-spacing: 0.04em;
    color: #fff;
}
.site-footer__nav .site-footer__list {
    columns: 2;
    column-gap: 1.5rem;
}
@media (max-width: 719px) {
    .site-footer__nav .site-footer__list {
        columns: 2;
    }
}
.site-footer__about p {
    font-size: 0.92rem;
    color: #b8b3ac;
    line-height: 1.85;
    margin: 0;
}
.site-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer__list li { margin-bottom: 0.6rem; }
.site-footer__list a {
    color: #d4d0ca;
    font-size: 0.9rem;
}
.site-footer__list a:hover { color: #fff; }

/* SNS ボタン：モバイル・PC共通（アイコン＋名称の横長ボタン形式） */
.site-footer__sns {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.site-footer__sns a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 148px;
    height: 44px;
    padding: 0 0.9rem;
    border-radius: 4px;
    border: 2px solid transparent;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.site-footer__sns svg { width: 18px; height: 18px; }

/* 各SNS固有カラー（デフォルト） */
.site-footer__sns a[data-sns="twitter"]   { background: #000000; border-color: #000000; }
.site-footer__sns a[data-sns="facebook"]  { background: #1877F2; border-color: #1877F2; }
.site-footer__sns a[data-sns="instagram"] { background: #C13584; border-color: #C13584; }
.site-footer__sns a[data-sns="youtube"]   { background: #FF0000; border-color: #FF0000; }
.site-footer__sns a[data-sns="ameblo"]    { background: #00a73c; border-color: #00a73c; }

/* ホバー：ダーク背景＋固有カラーのボーダー */
.site-footer__sns a:hover                          { background: #1a1714; color: #fff; }
.site-footer__sns a[data-sns="twitter"]:hover      { background: #1a1714; border-color: #000000; }
.site-footer__sns a[data-sns="facebook"]:hover     { background: #1a1714; border-color: #1877F2; }
.site-footer__sns a[data-sns="instagram"]:hover    { background: #1a1714; border-color: #C13584; }
.site-footer__sns a[data-sns="youtube"]:hover      { background: #1a1714; border-color: #FF0000; }
.site-footer__sns a[data-sns="ameblo"]:hover       { background: #1a1714; border-color: #00a73c; }

/* PC：サイズを一回り大きく */
@media (min-width: 768px) {
    .site-footer__sns {
        gap: 0.6rem;
        margin-top: 1rem;
    }
    .site-footer__sns a {
        width: 160px;
        height: 48px;
        padding: 0 1rem;
        font-size: 0.92rem;
    }
    .site-footer__sns svg { width: 20px; height: 20px; }
}

.site-footer__bottom {
    border-top: 1px solid #44403a;
    padding-top: 1.5rem;
    text-align: center;
    color: #8e8a83;
    font-size: 0.82rem;
}

/* ===========================================
 * セクション共通（エディトリアル要素）
 * =========================================== */
.section {
    padding: var(--gap-xxl) 0;
}
.section:first-child { padding-top: var(--gap-lg); }

/* セクションヘッダ：番号付きエディトリアル見出し */
.section-head {
    margin-bottom: var(--gap-lg);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
    align-items: end;
}
@media (min-width: 768px) {
    .section-head {
        grid-template-columns: 1fr auto;
        margin-bottom: var(--gap-xl);
    }
}
.section-head__inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.section-head__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
/* eyebrow 左側に赤い線（旧 .bar の代替） */
.section-head__eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--color-primary);
    flex-shrink: 0;
}
/* 旧 .num / .bar はもう使わないが、念のため残骸への対応 */
.section-head__eyebrow .num {
    font-weight: 700;
    font-size: 0.85rem;
}
.section-head__eyebrow .bar {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--color-primary);
}
.section-head__title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin: 0;
    color: var(--color-text);
}
.section-head__lead {
    color: var(--color-text-2);
    font-size: 0.97rem;
    margin: 0.5rem 0 0;
    max-width: 56ch;
    line-height: 1.85;
}

.section-head__more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 2px;
    align-self: end;
    transition: gap 0.2s ease;
}
.section-head__more:hover {
    gap: 0.85rem;
    opacity: 1;
}
.section-head__more svg { width: 16px; height: 16px; }

/* セクション背景バリエーション */
.section--soft { background: var(--color-bg-soft); }

/* ===========================================
 * HERO（全面刷新版）
 *
 * 設計：
 * - 高品質背景画像 + 2層オーバーレイ + 微細ノイズ + ボルドーグラデーション
 * - 縦書きサイドラベル、コーナーマーク、SCROLLサインで装飾性を担保
 * - タイポグラフィを 4階層（メタ情報 / 肩書 / 名前 / リード）で構築
 * - 主CTA + サブCTA の2系統で視線の出口を確保
 * =========================================== */
.hero {
    position: relative;
    min-height: 90vh;
    min-height: 90svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-bg-dark);
    color: #fff;
    isolation: isolate;
}
@media (min-width: 768px) {
    .hero { min-height: 88vh; min-height: 88svh; }
}
@media (min-width: 1200px) {
    .hero { min-height: 720px; }
}

.hero__bg {
    position: absolute; inset: 0;
    z-index: 0;
}
.hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.42) saturate(0.95) contrast(1.08);
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1.0); }
    to   { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__bg img { animation: none; }
}

/* 多層オーバーレイ：左下にボルドー、全体を黒で締める */
.hero__overlay {
    position: absolute; inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg,
            rgba(20, 8, 12, 0.78) 0%,
            rgba(30, 12, 16, 0.55) 35%,
            rgba(15, 5, 8, 0.55) 75%,
            rgba(40, 12, 18, 0.78) 100%),
        radial-gradient(ellipse at 18% 78%,
            rgba(166, 25, 46, 0.32) 0%,
            transparent 55%),
        radial-gradient(ellipse at 92% 12%,
            rgba(166, 25, 46, 0.18) 0%,
            transparent 50%);
}

/* 微細なノイズテクスチャで質感を加える */
.hero__noise {
    position: absolute; inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.18;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* 縦書きサイドラベル */
.hero__sidelabel {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.55);
}
.hero__sidelabel-line {
    width: 1px;
    height: 64px;
    background: rgba(255, 255, 255, 0.35);
}
.hero__sidelabel-text {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
    white-space: nowrap;
}
@media (min-width: 1024px) {
    .hero__sidelabel { display: flex; right: 1.75rem; }
}

/* コーナーマーク（装飾） */
.hero__corner {
    position: absolute;
    width: 24px; height: 24px;
    z-index: 4;
    border-color: rgba(255, 255, 255, 0.35);
    border-style: solid;
    border-width: 0;
}
.hero__corner--tl {
    top: 1.25rem; left: 1.25rem;
    border-top-width: 1px; border-left-width: 1px;
}
.hero__corner--br {
    bottom: 1.25rem; right: 1.25rem;
    border-bottom-width: 1px; border-right-width: 1px;
}
@media (min-width: 768px) {
    .hero__corner { width: 32px; height: 32px; }
    .hero__corner--tl { top: 1.75rem; left: 1.75rem; }
    .hero__corner--br { bottom: 1.75rem; right: 1.75rem; }
}

/* HERO inner */
.hero__inner {
    position: relative;
    z-index: 5;
    width: 100%;
    padding-top: 6rem;
    padding-bottom: 6rem;
    animation: heroFadeIn 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes heroFadeIn {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__inner { animation: none; }
}
@media (min-width: 768px) {
    .hero__inner {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}
/* PC：2カラムグリッド（テキスト左 + サブ画像右） */
@media (min-width: 880px) {
    .hero__inner {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 3.5rem;
        align-items: center;
    }
}

/* 左カラム（テキスト群のラッパー） */
.hero__content { /* フローコンテンツ — 追加スタイル不要 */ }

/* 右カラム：サブ画像パネル — モバイルは完全非表示、PCのみ表示 */
.hero__sub-panel {
    display: none;
}
@media (max-width: 879px) {
    /* キャッシュ対策：モバイルで確実に非表示 */
    .hero__sub-panel {
        display: none !important;
    }
}
@media (min-width: 880px) {
    .hero__sub-panel {
        display: block;
        animation: heroFadeIn 1.4s 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    }
}

/* フレーム（ボーダー＋金のアクセント） */
.hero__sub-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(166, 25, 46, 0.7);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.35),
        8px 8px 0 0 rgba(212, 175, 55, 0.18);
}
.hero__sub-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: brightness(0.88) saturate(0.9);
    transition: filter 0.4s ease;
}
.hero__sub-frame:hover img {
    filter: brightness(0.95) saturate(1);
}

/* キャプション */
.hero__sub-caption {
    margin-top: 0.8rem;
    font-size: 0.78rem;
    font-family: var(--font-sans);
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

/* メタ情報（インデックス + ラベル） */
.hero__meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.72);
    animation: heroLineIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both;
}
.hero__index {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--color-primary-soft);
    background: rgba(166, 25, 46, 0.18);
    border: 1px solid rgba(166, 25, 46, 0.55);
    padding: 0.25rem 0.7rem;
    border-radius: 1px;
}
.hero__metaline {
    width: 36px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}
.hero__metalabel {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* 肩書き */
.hero__role {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 1.25rem;
    letter-spacing: 0.06em;
    line-height: 1.9;
    animation: heroLineIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both;
}

/* 名前タイトル：日本語と英文を階層化 */
.hero__title {
    margin: 0 0 1.75rem;
    line-height: 1;
    animation: heroLineIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s both;
}
.hero__title-jp {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6.4vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 0.55rem;
    /* 大文字での視覚的存在感 */
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero__title-en {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.18em;
    padding-left: 0.15rem;
    /* 細い縦線で名前と関連付ける */
    position: relative;
}
.hero__title-en::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--color-primary);
    vertical-align: middle;
    margin-right: 0.85rem;
    margin-bottom: 0.2em;
}

/* リードコピー */
.hero__lead {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.4vw, 1.075rem);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.86);
    margin: 0 0 2.75rem;
    max-width: 46ch;
    font-weight: 400;
    animation: heroLineIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s both;
}

/* CTA 群 */
.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: heroLineIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s both;
}

@keyframes heroLineIn {
    0%   { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__meta, .hero__role, .hero__title, .hero__lead, .hero__actions { animation: none; }
}

/* スクロールサイン */
.hero__scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}
.hero__scroll-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}
.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
    position: relative;
    overflow: hidden;
}
.hero__scroll-line::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 50%;
    background: var(--color-primary);
    animation: scrollPulse 2s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
@keyframes scrollPulse {
    0%   { top: -50%; opacity: 0; }
    35%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero__scroll-line::after { animation: none; }
}
.hero__scroll:hover { color: #fff; opacity: 1; }
@media (min-width: 768px) {
    .hero__scroll { display: flex; bottom: 2rem; }
}

/* ===========================================
 * ボタン（HERO + 共通）
 * =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    line-height: 1;
}
.btn svg,
.btn--primary svg,
.btn--ghost svg,
.btn--hero svg {
    width: 22px; height: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.btn:hover svg,
.btn--primary:hover svg,
.btn--ghost:hover svg { transform: translateX(4px); }
.btn--hero { padding: 1.05rem 2.25rem; }

.btn--primary {
    background: var(--color-primary);
    color: #fff;
}
.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -12px rgba(166, 25, 46, 0.6);
    opacity: 1;
    color: #fff;
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    opacity: 1;
    color: #fff;
}

/* ===========================================
 * ご挨拶セクション（全面刷新）
 *
 * 設計：
 * - 紙のような淡いベージュ背景
 * - 引用符記号 + サイン演出で誠実な手紙感
 * - 大判イニシャル（“）でフォーカルポイント形成
 * - 中央寄せ + 計算された余白
 * =========================================== */
.greeting {
    position: relative;
    padding: 0 0 var(--gap-xxl);
    background: var(--color-bg-soft);
    overflow: hidden;
}

/* 上部装飾：番号付きセパレーター（HEROからの視線誘導） */
.greeting__topdeco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 4rem;
    padding-bottom: 3rem;
    position: relative;
}
@media (min-width: 768px) {
    .greeting__topdeco {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
}
.greeting__topdeco-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.24em;
}
.greeting__topdeco-line {
    width: 60px;
    height: 1px;
    background: var(--color-primary);
}

.greeting__inner {
    position: relative;
}

/* 見出しヘッダー */
.greeting__head {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}
.greeting__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-primary);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin: 0 0 1rem;
    font-weight: 600;
}
.greeting__title {
    margin: 0;
    line-height: 1.3;
}
.greeting__title-jp {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 3.8vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}
.greeting__title-en {
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    color: var(--color-muted);
    font-weight: 400;
    letter-spacing: 0.04em;
}
.greeting__rule {
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    margin: 1.75rem auto 0;
}

/* 本文（引用符＋大判イニシャル） */
.greeting__body {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 0.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 2.05;
    color: var(--color-text-2);
    letter-spacing: 0.02em;
}
@media (min-width: 768px) {
    .greeting__body {
        font-size: 1.05rem;
        padding: 0;
    }
}
.greeting__body p {
    margin: 0 0 1.6em;
}
.greeting__body p:last-child { margin-bottom: 0; }

/* 大判の引用符 */
.greeting__quote-mark {
    position: absolute;
    top: -3.5rem;
    left: -0.5rem;
    font-family: var(--font-serif);
    font-size: 8rem;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.22;
    pointer-events: none;
    user-select: none;
    font-weight: 700;
}
@media (min-width: 768px) {
    .greeting__quote-mark {
        top: -4.5rem;
        left: -3rem;
        font-size: 10rem;
    }
}

/* サイン演出 */
.greeting__signature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem auto 0;
    max-width: 680px;
    justify-content: flex-end;
}
.greeting__signature-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-rule-2));
    max-width: 200px;
}
.greeting__signature-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--color-text-2);
    line-height: 1.4;
    text-align: right;
}
.greeting__signature-text strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.2em;
}
.greeting__signature-text em {
    font-style: italic;
    font-size: 0.78rem;
    color: var(--color-muted);
    letter-spacing: 0.06em;
}

/* ===========================================
 * ご挨拶 - プロフィール写真付き 2カラムレイアウト
 *
 * 設計：
 * - PC: 写真（左 360px固定）+ メッセージ（右 fluid）
 * - モバイル: 写真（上・縦配置）+ メッセージ（下）
 * - 装丁的な装飾（リング・コーナーマーク・キャプション）
 * =========================================== */
.greeting__layout {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}
@media (min-width: 920px) {
    .greeting__layout {
        grid-template-columns: 360px 1fr;
        gap: 5rem;
        align-items: center;
    }
}
@media (min-width: 1100px) {
    .greeting__layout {
        gap: 6rem;
    }
}

/* ----- 写真ブロック ----- */
.greeting__photo-wrap {
    display: flex;
    justify-content: center;
}
.greeting__photo {
    margin: 0;
    position: relative;
    width: 240px;
    /* iOS Safari の object-fit ヒッカケ対策 */
    isolation: isolate;
}
@media (min-width: 480px) {
    .greeting__photo { width: 280px; }
}
@media (min-width: 920px) {
    .greeting__photo { width: 320px; }
}

/* キャプション（写真の上、左揃え） */
.greeting__photo-caption {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    color: var(--color-muted);
    text-transform: uppercase;
    font-weight: 500;
}
.greeting__photo-caption-bar {
    width: 22px;
    height: 1px;
    background: var(--color-primary);
}

/* 装飾的な外側リング（写真の周りを囲む2重円アクセント） */
.greeting__photo-ring {
    position: absolute;
    top: calc(2.25rem - 12px);   /* キャプションの分を考慮 */
    left: -12px;
    right: -12px;
    bottom: calc(20% + 12px);
    border: 1px solid var(--color-rule-2);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (min-width: 920px) {
    .greeting__photo-ring {
        top: calc(2.25rem - 16px);
        left: -16px;
        right: -16px;
        bottom: calc(20% + 16px);
    }
}

/* 写真本体フレーム */
.greeting__photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-bg);
    box-shadow:
        0 4px 12px -4px rgba(0, 0, 0, 0.08),
        0 16px 40px -16px rgba(0, 0, 0, 0.18),
        0 0 0 4px #fff,
        0 0 0 5px var(--color-rule-2);
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.greeting__photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    /* 微細なフィルタで写真の質感を整える */
    filter: contrast(1.02) saturate(0.96);
}

/* ホバー時のインタラクション */
.greeting__photo:hover .greeting__photo-frame {
    transform: scale(1.02);
    box-shadow:
        0 8px 18px -4px rgba(0, 0, 0, 0.12),
        0 24px 50px -16px rgba(166, 25, 46, 0.18),
        0 0 0 4px #fff,
        0 0 0 5px var(--color-primary);
}
.greeting__photo:hover .greeting__photo-ring {
    transform: scale(1.04) rotate(2deg);
}
@media (prefers-reduced-motion: reduce) {
    .greeting__photo:hover .greeting__photo-frame,
    .greeting__photo:hover .greeting__photo-ring {
        transform: none;
    }
}

/* コーナーマーク（左下・右上に L 字の装丁） */
.greeting__photo-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-style: solid;
    border-color: var(--color-primary);
    border-width: 0;
    z-index: 2;
}
.greeting__photo-corner--bl {
    bottom: calc(20% - 8px);
    left: -4px;
    border-bottom-width: 2px;
    border-left-width: 2px;
}
.greeting__photo-corner--tr {
    top: calc(2.25rem + 8px);
    right: -4px;
    border-top-width: 2px;
    border-right-width: 2px;
}

/* 写真下のメタ情報（名前 + 肩書） */
.greeting__photo-meta {
    margin-top: 1.5rem;
    text-align: center;
    line-height: 1.5;
}
.greeting__photo-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.06em;
    margin-bottom: 0.25em;
}
.greeting__photo-role {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--color-muted);
    letter-spacing: 0.04em;
    line-height: 1.6;
}

/* ----- メッセージブロック（既存の再構成） ----- */
.greeting__message {
    position: relative;
    min-width: 0;  /* grid item overflow防止 */
}
@media (min-width: 920px) {
    /* 2カラム時は中央寄せをやめて左寄せ */
    .greeting__message .greeting__body {
        max-width: 100%;
        margin: 0;
    }
    .greeting__message .greeting__signature {
        max-width: 100%;
    }
}

/* 引用符の位置を 2カラム時に微調整 */
@media (min-width: 920px) {
    .greeting__message .greeting__quote-mark {
        top: -3.5rem;
        left: -1rem;
        font-size: 9rem;
    }
}

/* ===========================================
 * ニュースリスト（トップ＋一覧）
 * =========================================== */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--color-rule);
}
.news-list__item {
    border-bottom: 1px solid var(--color-rule);
}
.news-list__link {
    display: block;
    padding: 1rem 0;
    transition: background 0.2s ease;
}
.news-list__link > * { display: block; }
.news-list__link > .news-list__date { margin-bottom: 0.3rem; }
/* モバイル：矢印を非表示（単一列では不要） */
@media (max-width: 767px) {
    .news-list__link::after { display: none; }
}
.news-list__link:hover {
    background: var(--color-bg-soft);
    opacity: 1;
}
.news-list__link::after {
    content: "→";
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-right: 0.5rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    align-self: center;
    justify-self: end;
}
.news-list__link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

@media (min-width: 768px) {
    .news-list__link {
        display: grid !important;
        grid-template-columns: 140px 1fr 32px;
        gap: 2rem;
        padding: 1.5rem 1rem;
        align-items: center;
    }
    .news-list__link > .news-list__date { margin-bottom: 0; }
}

.news-list__date {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--color-muted);
    letter-spacing: 0.06em;
    line-height: 1.4;
}
.news-list__title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}
@media (min-width: 768px) {
    .news-list__title { font-size: 1.15rem; }
}

/* バリアント：サムネ付き（ニュース一覧ページ） */

/* モバイル：縦積み（HTML順: date → thumb → body がそのまま表示） */
.news-list--with-thumb .news-list__link {
    display: flex !important;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.25rem 0;
}
.news-list--with-thumb .news-list__link::after { display: none !important; }
.news-list--with-thumb .news-list__thumb {
    width: 55%;
    max-width: 200px;
}

/* PC：2カラム（左:サムネ / 右:日付+タイトル） */
@media (min-width: 768px) {
    .news-list--with-thumb .news-list__link {
        display: grid !important;
        grid-template-columns: 220px 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "thumb date"
            "thumb body";
        column-gap: 2rem;
        row-gap: 0.4rem;
        padding: 1.75rem 0;
        align-items: start;
    }
    .news-list--with-thumb .news-list__date  { grid-area: date; align-self: end; }
    .news-list--with-thumb .news-list__thumb { grid-area: thumb; width: 100%; max-width: none; }
    .news-list--with-thumb .news-list__body  { grid-area: body; }
}

.news-list__thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg-soft);
    border-radius: 2px;
}
.news-list__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.news-list__excerpt {
    font-size: 0.95rem;
    color: var(--color-text-2);
    line-height: 1.7;
    margin: 0.5rem 0 0;
    display: none;
}
@media (min-width: 768px) {
    .news-list__excerpt { display: block; }
}

/* ===========================================
 * 研究業績・地域活動：番号付き整列リスト
 * =========================================== */
.research-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.research-list__item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-rule);
    display: block;
}
.research-list__item > * { display: block; }
.research-list__item > .research-list__num { margin-bottom: 0.4rem; }
.research-list__item > .research-list__year { display: none; }
@media (min-width: 768px) {
    .research-list__item {
        display: grid;
        grid-template-columns: 76px 110px 1fr;
        gap: 2rem;
        padding: 1.75rem 0;
        align-items: start;
    }
    .research-list__item > .research-list__num { margin-bottom: 0; }
    .research-list__item > .research-list__year { display: block; }
}
.research-list__num {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--color-primary);
    letter-spacing: 0.08em;
    font-weight: 600;
    padding-top: 0.1em;
}
.research-list__year {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-text-2);
    font-weight: 500;
    padding-top: 0.1em;
}
/* モバイル：番号を目立たせる */
@media (max-width: 767px) {
    .research-list__num {
        font-size: 0.92rem;
        letter-spacing: 0.1em;
    }
}
.research-list__body { min-width: 0; }
.research-list__title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.75;
    margin: 0 0 0.4em;
    color: var(--color-text);
    word-break: break-word;
}
.research-list__title-link {
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.research-list__title-link:hover {
    border-bottom-color: var(--color-primary);
    opacity: 1;
}
.research-list__title-link::after {
    content: " ↗";
    font-size: 0.8em;
    color: var(--color-primary);
    margin-left: 0.15em;
}
.research-list__meta {
    font-size: 0.97rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0.25em 0 0;
    /* モバイルでは年もここに含める */
}
@media (max-width: 767px) {
    .research-list__year-mobile {
        display: inline;
        color: var(--color-text-2);
        font-weight: 500;
        margin-right: 0.5em;
    }
}
@media (min-width: 768px) {
    .research-list__year-mobile { display: none; }
}
.research-list__authors {
    font-size: 0.97rem;
    color: var(--color-text-2);
    margin: 0.2em 0 0;
}
.research-list__note {
    margin: 0.6em 0 0;
    padding: 0.65em 0.9em;
    background: var(--color-bg-soft);
    border-left: 2px solid var(--color-primary);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--color-text-2);
    border-radius: 1px;
}
.research-list__note::before {
    content: "補足 ";
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ===========================================
 * 書籍カード
 * =========================================== */
.book-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 600px) {
    .book-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
@media (min-width: 900px) {
    .book-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
}

.book-card {
    display: flex;
    flex-direction: column;
}
.book-card__cover {
    aspect-ratio: 5/7;
    overflow: hidden;
    background: var(--color-bg-soft);
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px -10px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-card a:hover .book-card__cover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -10px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.1);
}
.book-card__cover img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.book-card__year {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    margin: 0 0 0.3em;
    font-weight: 600;
}
.book-card__title {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 0.25em;
    color: var(--color-text);
}
.book-card__publisher {
    font-size: 0.78rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin: 0;
}
.book-card__role {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    margin: 0.2em 0 0;
}
.book-card__isbn {
    font-size: 0.72rem;
    color: var(--color-muted);
    font-family: var(--font-mono);
    margin: 0.2em 0 0;
}
.book-card a { display: block; color: inherit; }
.book-card a:hover { opacity: 1; }
.book-card__note {
    margin: 0.5em 0 0;
    padding: 0.5em 0.7em;
    background: var(--color-bg-soft);
    border-left: 2px solid var(--color-primary);
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--color-text-2);
}

/* ===========================================
 * ブログカード（アメブロ）
 * =========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 720px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.blog-card {
    background: #fff;
    border: 1px solid var(--color-rule);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
    height: 100%;
}
.blog-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    opacity: 1;
}
.blog-card__date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-muted);
    letter-spacing: 0.08em;
}
.blog-card__title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.55;
    margin: 0;
    color: var(--color-text);
    /* 2行で省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__excerpt {
    font-size: 0.88rem;
    color: var(--color-text-2);
    line-height: 1.75;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__more {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-top: auto;
    padding-top: 0.25rem;
}
.blog-card__more::after {
    content: " →";
    transition: margin-left 0.2s ease;
    display: inline-block;
}
.blog-card:hover .blog-card__more::after {
    margin-left: 4px;
}

/* アメブロセクション：見出しデザイン */
.blog-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-muted);
    letter-spacing: 0.18em;
    margin-top: 0.4em;
    font-weight: 500;
}

/* ===========================================
 * CTA セクション（お問い合わせ誘導）
 *
 * 設計：
 * - 外枠は紙ベージュ背景で、サイト全体のトーンと整合
 * - ブラウザ幅いっぱいの赤グラデーション帯
 * =========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: var(--gap-xl) 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
/* 微細な光のテクスチャ */
.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 95%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
/* 左上のL字コーナーマーク */
.cta-section::after {
    content: "";
    position: absolute;
    top: 1.5rem; left: 1.5rem;
    width: 20px; height: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.cta-section__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 1rem;
    /* 上下の細線で挟む */
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}
.cta-section__eyebrow::before,
.cta-section__eyebrow::after {
    content: "";
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.cta-section__title {
    font-family: var(--font-serif);
    font-size: clamp(1.55rem, 3.6vw, 2.05rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.04em;
    margin: 0 0 1rem;
}
.cta-section__lead {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 auto 2.25rem;
    line-height: 1.85;
    white-space: nowrap;
}

.cta-section__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #fff;
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
    flex-wrap: nowrap;
    min-width: 280px;
    max-width: 100%;
}
.cta-section__btn span,
.cta-section__btn svg {
    flex-shrink: 0;
}
.cta-section__btn svg {
    width: 18px; height: 14px;
    transition: transform 0.25s ease;
}
.cta-section__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.4);
    opacity: 1;
    color: var(--color-primary);
}
.cta-section__btn:hover svg { transform: translateX(4px); }

@media (max-width: 480px) {
    .cta-section__lead { white-space: normal; }
    .cta-section__btn {
        min-width: 0;
        width: 100%;
        max-width: 320px;
        padding: 0.95rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* セクション「一覧へ」ボタン */
.section-more-wrap {
    text-align: center;
    margin-top: 2.5rem;
}
.btn-section-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.85rem 2.5rem;
    border: 1.5px solid var(--color-primary);
    font-size: 1rem;
    color: var(--color-primary);
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
    border-radius: 2px;
    transition: background 0.2s ease, color 0.2s ease;
}
.btn-section-more:hover {
    background: var(--color-primary);
    color: #fff;
    opacity: 1;
}

/* ===========================================
 * 一覧ページ（ニュース等）共通
 * =========================================== */
.page-head {
    padding: var(--gap-xl) 0 var(--gap-lg);
    background: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-rule);
    margin-bottom: 0;
    position: relative;
}
.page-head::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--color-primary);
}
.page-head__eyebrow {
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 0.6em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
/* eyebrow 左側に赤い線（旧 .bar の代替） */
.page-head__eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--color-primary);
    flex-shrink: 0;
}
/* 旧 .bar は使わないが、残っていても問題ないように */
.page-head__eyebrow .bar {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--color-primary);
}
.page-head__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--color-text);
}
.page-head__lead {
    color: var(--color-text-2);
    font-size: 1rem;
    margin: 1em 0 0;
    max-width: 100%;
    line-height: 1.9;
}

/* page-head 直後の要素：PC / モバイルで統一間隔 */
.page-head + .section,
.page-head + .article {
    padding-top: var(--gap-lg);   /* PC: 3rem */
}
@media (max-width: 767px) {
    .page-head + .section,
    .page-head + .article {
        padding-top: var(--gap-md);  /* モバイル: 1.75rem */
    }
}

/* ===========================================
 * ページネーション
 * =========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin: var(--gap-lg) 0 0;
    padding-top: var(--gap-md);
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 0.45rem 0.65rem;
    font-size: 0.88rem;
    font-family: var(--font-mono);
    color: var(--color-text-2);
    border: 1px solid var(--color-rule);
    background: #fff;
    border-radius: 1px;
}
.pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    opacity: 1;
}
.pagination .current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
    background: transparent;
    border-color: transparent;
}

/* ===========================================
 * 記事詳細・固定ページ：コンテンツ領域
 * =========================================== */
.article {
    padding: var(--gap-lg) 0 var(--gap-xl);
}
.article__header { margin-bottom: var(--gap-lg); }
.article__date {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--color-muted);
    letter-spacing: 0.08em;
    margin-bottom: 0.6em;
}
.article__title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    color: var(--color-text);
}
.article__thumb {
    margin: var(--gap-md) 0;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg-soft);
}
.article__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.article__body {
    font-size: 1rem;
    line-height: 2.0;
    color: var(--color-text);
}
@media (min-width: 768px) {
    .article__body { font-size: 1.05rem; }
}
.article__body p { margin: 0 0 1.5em; }
.article__body a {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-primary-soft);
    transition: border-color 0.2s ease;
}
.article__body a:hover {
    border-bottom-color: var(--color-primary);
    opacity: 1;
}
.article__body > *:first-child {
    margin-top: 0;
}
.article__body h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2em 0 0.8em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--color-rule);
}
.article__body h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.8em 0 0.6em;
    color: var(--color-primary);
}
.article__body ul, .article__body ol { padding-left: 1.5em; }
.article__body li { margin: 0.35em 0; }
.article__body img { margin: 1.5em 0; }
.article__body blockquote {
    margin: 1.5em 0;
    padding: 1em 1.25em 1em 1.5em;
    border-left: 3px solid var(--color-primary);
    background: var(--color-bg-soft);
    color: var(--color-text);
    font-style: normal;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.9;
}

/* ===========================================
 * プロフィールページ専用レイアウト
 * =========================================== */
.profile-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
@media (min-width: 560px) {
    .profile-header {
        grid-template-columns: 200px 1fr;
        align-items: start;
    }
}
.profile-header__photo {
    width: 100%;
    border-radius: 3px;
    display: block;
}
@media (max-width: 559px) {
    .profile-header__photo {
        max-width: 50%;
    }
}
.profile-header__affil {
    font-size: 0.95rem;
    color: var(--color-text-2);
    line-height: 1.45;
    margin: 0 0 0.6rem;
}
.profile-header__name {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 0 0.1rem;
    line-height: 1.2;
    color: var(--color-text);
}
.profile-header__name-en {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--color-muted);
    display: block;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.profile-header__degree {
    font-size: 0.95rem;
    color: var(--color-text-2);
    line-height: 1.45;
    margin: 0 0 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-rule);
}
.profile-header__contact {
    font-size: 0.92rem;
    color: var(--color-text-2);
    line-height: 2.1;
    margin: 0;
}
.profile-header__contact a {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-primary-soft);
}
.profile-header__contact a:hover {
    border-bottom-color: var(--color-primary);
    opacity: 1;
}

/* ===========================================
 * 趣味ページ専用レイアウト
 * =========================================== */
.hobby-figure {
    margin: 1.75rem auto;
    max-width: 400px;
    text-align: center;
}
.hobby-figure img {
    width: 100%;
    border-radius: 3px;
    display: block;
}
.hobby-figure figcaption {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin-top: 0.6rem;
    letter-spacing: 0.02em;
    line-height: 1.5;
}
.hobby-photos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}
/* モバイル：1列、70%幅で中央揃え */
@media (max-width: 559px) {
    .hobby-photos--2col .hobby-figure {
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}
/* PC：2列、小さい方の高さに揃える（object-fit: contain で切り抜かない） */
@media (min-width: 560px) {
    .hobby-photos--2col {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .hobby-photos--2col .hobby-figure {
        margin: 0;
        max-width: 100%;
    }
    .hobby-photos--2col .hobby-figure img {
        width: 100%;
        height: 280px;
        object-fit: contain;
        object-position: top center;
        background: transparent;
    }
}

.article__back {
    margin-top: var(--gap-lg);
    padding-top: var(--gap-md);
    border-top: 1px solid var(--color-rule);
    text-align: center;
}
.article__back a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
    color: var(--color-primary);
    padding: 0.7rem 1.75rem;
    border: 1.5px solid var(--color-primary);
    border-radius: 2px;
    transition: background 0.2s ease, color 0.2s ease;
}
.article__back a:hover {
    background: var(--color-primary);
    color: #fff;
    opacity: 1;
}
.article__back svg { width: 15px; height: 15px; }

/* ===========================================
 * ニュース：ギャラリー（本文後）
 * =========================================== */
.article__gallery {
    margin-top: var(--gap-lg);
    margin-bottom: var(--gap-md);
}
.article__gallery-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.article__gallery-rule {
    flex-grow: 1;
    height: 1px;
    background: var(--color-rule);
}
.article__gallery-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.08em;
    margin: 0;
    padding: 0 0.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 600px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 920px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-grid__item {
    margin: 0;
    display: flex;
    flex-direction: column;
}
.gallery-grid__btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--color-bg-soft);
    cursor: pointer;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 1 / 1;
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.gallery-grid__btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.gallery-grid__btn:hover img {
    transform: scale(1.06);
}
.gallery-grid__zoom {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.gallery-grid__zoom svg { width: 22px; height: 22px; }
.gallery-grid__btn:hover .gallery-grid__zoom,
.gallery-grid__btn:focus-visible .gallery-grid__zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.gallery-grid__caption {
    margin: 0.6rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--color-muted);
}
@media (prefers-reduced-motion: reduce) {
    .gallery-grid__btn img,
    .gallery-grid__zoom { transition: none; }
}

/* ===========================================
 * ライトボックス
 * =========================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 10, 10, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; animation: lightboxFade 0.25s ease both; }
@keyframes lightboxFade { from { opacity: 0; } to { opacity: 1; } }

.lightbox__inner {
    max-width: min(1200px, 95vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.lightbox__img {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}
.lightbox__caption {
    color: #f0f0f0;
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
    line-height: 1.6;
    max-width: 80ch;
}
.lightbox__counter {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    margin: 0;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: serif;
    line-height: 1;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}
.lightbox__close {
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
    border-radius: 50%;
}
.lightbox__prev,
.lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 2rem;
    border-radius: 50%;
}
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
@media (max-width: 600px) {
    .lightbox__close { top: 0.75rem; right: 0.75rem; width: 36px; height: 36px; }
    .lightbox__prev  { left: 0.5rem; width: 40px; height: 40px; font-size: 1.6rem; }
    .lightbox__next  { right: 0.5rem; width: 40px; height: 40px; font-size: 1.6rem; }
}

/* ===========================================
 * お問い合わせフォーム
 * =========================================== */
.contact-form {
    margin-top: var(--gap-md);
}
.contact-form .form-row { margin-bottom: 1.5rem; }
.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.93rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}
.contact-form .required {
    display: inline-block;
    margin-left: 0.5em;
    padding: 0.05em 0.5em;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 1px;
    vertical-align: middle;
}
.contact-form .optional {
    display: inline-block;
    margin-left: 0.5em;
    padding: 0.05em 0.5em;
    background: #f0f0f0;
    color: var(--color-muted);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 1px;
    vertical-align: middle;
}
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-rule-2);
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    background: #fff;
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.contact-form textarea { resize: vertical; min-height: 8em; }
.contact-form .field-hint {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 0.4rem;
}
.contact-form__submit {
    margin-top: 2rem;
    text-align: center;
}
.contact-form__submit button {
    background: var(--color-primary);
    color: #fff;
    border: 0;
    padding: 1rem 2.75rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 2px;
    transition: background 0.2s ease, transform 0.2s ease;
    min-width: 220px;
}
.contact-form__submit button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* ハニーポット（非表示） */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    pointer-events: none;
    opacity: 0;
}

/* alert（フォーム結果） */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 2px;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}
.alert-success {
    background: #ecf7ed;
    border-left: 3px solid #2e7d32;
    color: #1b5e20;
}
.alert-warning {
    background: #fff8e1;
    border-left: 3px solid #f9a825;
    color: #6d4c00;
}
.alert-error {
    background: #fdecea;
    border-left: 3px solid var(--color-primary);
    color: var(--color-primary-dark);
}

/* ===========================================
 * 「データなし」表示
 * =========================================== */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.95rem;
    border: 1px dashed var(--color-rule);
    background: var(--color-bg-soft);
    border-radius: 2px;
}

/* ===========================================
 * Reveal アニメーション（スクロール時 fade-in）
 * =========================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================
 * 実績カウンターセクション
 * =========================================== */
.stats-section {
    background: var(--color-primary);
    padding: var(--gap-lg) 0;
    position: relative;
    overflow: hidden;
}

/* PC：3列横並び */
.stats-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.stats-item {
    padding: var(--gap-md) var(--gap-sm);
    position: relative;
}
/* 区切り線（PC） */
.stats-item + .stats-item::before {
    content: "";
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}
.stats-num {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(4.5rem, 8vw, 6.5rem);
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}
.stats-num__suffix {
    font-size: 0.42em;       /* 親の金色数字に対して約4割 */
    font-weight: 700;
    vertical-align: super;   /* 上付き位置 */
    margin-left: 0.08em;
    letter-spacing: 0;
}
.stats-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ドット（PC では非表示） */
.stats-dots { display: none; }

/* モバイル：CSS Scroll Snap */
@media (max-width: 767px) {
    .stats-section { padding: var(--gap-md) 0 var(--gap-sm); }

    .stats-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        text-align: center;
    }
    .stats-track::-webkit-scrollbar { display: none; }

    .stats-item {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: center;
        padding: var(--gap-md) var(--gap-sm);
    }
    .stats-item + .stats-item::before { display: none; }

    .stats-num { font-size: clamp(5rem, 22vw, 7rem); }

    /* ドットインジケーター */
    .stats-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        padding-bottom: var(--gap-sm);
    }
    .stats-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.35);
        transition: background 0.3s ease, transform 0.3s ease;
        cursor: pointer;
    }
    .stats-dot.is-active {
        background: #d4af37;
        transform: scale(1.25);
    }
}

/* ===========================================
 * Back-to-Top ボタン
 * =========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px -4px rgba(166, 25, 46, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--color-primary-dark);
    opacity: 1;
    transform: translateY(-2px);
}
.back-to-top svg {
    width: 18px;
    height: 18px;
}
@media (max-width: 600px) {
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 40px;
        height: 40px;
    }
}

/* ===========================================
 * ヘッダー：スクロール時縮小
 * =========================================== */
.site-header.is-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.site-header.is-scrolled .site-header__inner {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    transition: padding 0.3s ease;
}

/* ===========================================
 * 印刷用スタイル
 * =========================================== */
@media print {
    /* 不要な要素を非表示 */
    .site-header,
    .site-nav,
    .nav-toggle,
    .mobile-nav,
    .site-footer,
    .back-to-top,
    .hero__scroll,
    .cta-section,
    .section-head__more {
        display: none !important;
    }

    /* 余白・背景のリセット */
    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
        line-height: 1.6;
    }

    /* コンテナを印刷幅に合わせる */
    .container,
    .container-narrow {
        max-width: 100%;
        padding: 0;
    }

    /* セクションの余白を縮小 */
    .section {
        padding: 1.5rem 0;
    }

    /* リンクにURLを表示 */
    .article__body a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
        word-break: break-all;
    }

    /* ページをまたがない */
    .research-list__item,
    .news-list__item,
    .book-card {
        break-inside: avoid;
    }

    /* 見出しがページ末尾に孤立しない */
    h1, h2, h3 {
        break-after: avoid;
    }
}