/* Theme Name: GeneratePress Child
Template: generatepress
*/

/* reCAPTCHAロゴを非表示 */
.grecaptcha-badge {
    visibility: hidden;
}

/* =========================================
   1. ベース設定 & タイポグラフィ
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@300;400;500;700&display=swap');

/* フォント適用 */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span,
input,
textarea,
button {
    font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
    /* font-weight: 500;  */
    letter-spacing: 0.05em; /* 少し字間を空けると上品 */
}

/* 太字の微調整 */
strong,
b,
.journal-date,
.archive-date {
    font-weight: 500; /* Safariで太りすぎない「500」を指定 */
    color: #333;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 見出し設定 (サイト全体で統一) */
h1, h2, h3,
.entry-title, /* 投稿・固定ページのタイトル */
.page-title,  /* アーカイブページのタイトル */
.main-title a /* ★追加: サイトタイトル (ヘッダーロゴ文字) */ {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none; /* リンクの下線を消す */
}

/* GeneratePressのデフォルト余白をリセット */
.site-content {
    padding: 0 !important;
}
.entry-content {
    margin: 0 !important;
    max-width: 100% !important;
}

/* =========================================
   2. Hero Section (アスペクト比保持・見切れなし版)
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    /* 【重要】画面の高さ(100vh)ではなく、動画の比率(16:9)に合わせて高さを確保する */
    aspect-ratio: 16 / 9;
    background-color: #000;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* スマホなどで aspect-ratio が効かない古いブラウザ向けのフォールバック */
@supports not (aspect-ratio: 16 / 9) {
    .hero-section {
        height: 0;
        padding-bottom: 56.25%; /* 16:9 の比率 */
    }
}

/* 背景エリア */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* --- YouTube埋め込み用コンテナ --- */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* クリック無効化（背景扱い） */
}

.video-container iframe {
    width: 100%;
    height: 100%;
    /* 余計な拡大縮小をせず、ボックスにフィットさせる */
    object-fit: cover;
}

/* --- 網掛けフィルター --- */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 少し薄めに調整 */
    background-image: radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px);
    background-size: 4px 4px;
    z-index: 1;
}

/* --- コンテンツ位置調整 --- */
.hero-content {
    position: absolute; /* 比率固定ボックスの中央に置くため絶対配置へ */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 20px;
    width: 100%;
    text-align: center;
}

/* タイトル文字サイズ調整 */
.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5vw; /* 画面幅に応じて可変にする */
    font-weight: 300;
    letter-spacing: 0.05em;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2vw;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.9;
    color: #fff;
}

/* --- スマホ調整 --- */
@media (max-width: 768px) {
    /* スマホでは文字が小さくなりすぎるのを防ぐ */
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.8rem;
    }
}

/* スクロール誘導は、高さが短いスマホ画面では邪魔になるかもしれないので調整 */
.scroll-down {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    opacity: 0.8;
    z-index: 2;
    color: #fff;
}
.scroll-down .line {
    width: 1px;
    height: 30px; /* 少し短く */
    background: #fff;
    margin-top: 5px;
    animation: scrollLine 2s infinite;
    transform-origin: top;
}
@keyframes scrollLine {
    0% {
        transform: scaleY(0);
    }
    50% {
        transform: scaleY(1);
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* =========================================
   3. Introduction Section
   ========================================= */
.section-intro {
    padding: 150px 20px;
    background: #fff; /* 背景色を明示 */
    position: relative;
    z-index: 2; /* 動画より手前に */
    margin: 80px 0 !important;
}

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

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-image img {
    width: 100%;
    height: auto;
    box-shadow: 20px 20px 0 #f0f0f0;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

/* =========================================
   4. Simulator Section (パララックス修正版)
   ========================================= */
/* Simulatorセクションの幅を強制的にIntroと同じにする */
.section-simulator {
    width: 100%;
    max-width: 100%; /* もし変な制限がかかっていれば解除 */
    margin: 0 auto;
}

/* もし古い .simulator-content などのスタイルが残っていたら影響しないようにリセット */
.section-simulator .container {
    max-width: none; /* 親の制限を解除 */
    padding: 0;
}

/* =========================================
   5. Works Section
   ========================================= */
.section-works {
    padding: 150px 20px;
    background: #fff;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.work-item {
    text-decoration: none;
    color: #333;
    display: block;
}

/* ... (前後のコードはそのまま) ... */

.work-img {
    overflow: hidden;
    margin-bottom: 15px;

    /* 枠の比率を固定（正方形） */
    width: 100%;
    aspect-ratio: 1 / 1;

    /* ★修正: 背景色を白にし、枠線を追加 */
    background-color: #fff;
    border: 1px solid #e0e0e0; /* 境界線 */
    box-sizing: border-box; /* ボーダーを幅に含める */

    position: relative; /* SOLDバッジの基準位置 */

    /* ★追加: 作品と枠の間に少し余白を持たせる */
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-img img {
    width: 100%;
    height: 100%;

    /* ★修正: 切り取らずに全体を収める */
    object-fit: contain;
    object-position: center;

    transition: transform 0.6s;
    display: block;

    /* 画像自体の影（少し浮かせる演出） */
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

/* ホバー時に画像を少し拡大（枠からはみ出ない範囲で） */
.work-item:hover .work-img img {
    transform: scale(1.05);
}

/* ... (続きのコード) ... */

.work-item:hover .work-img img {
    transform: scale(1.05);
}

.work-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.work-info span {
    font-size: 0.9rem;
    color: #888;
}

.btn-border {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    margin-top: 50px;
    transition: 0.3s;
}
.btn-border:hover {
    background: #333;
    color: #fff;
}

.text-center {
    text-align: center;
}
.mt-50 {
    margin-top: 50px;
}

/* --- 5. Journal Section --- */
.section-journal {
    padding: 120px 20px;
    background-color: #fafafa; /* 少し色を変えて区別 */
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.journal-item {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.journal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.journal-img {
    width: 100%;
    aspect-ratio: 16 / 10; /* ブログらしく横長に */
    overflow: hidden;
}

.journal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.journal-item:hover .journal-img img {
    transform: scale(1.05);
}

.journal-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.journal-date {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 10px;
    font-family: 'Noto Sans JP', sans-serif;
}

.journal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    margin-top: 10px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.journal-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    margin-top: auto;
}

@media (max-width: 768px) {
    .journal-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================
   6. Animation (スクロールフェードイン)
   ========================================= */
.fade-up-trigger {
    /* ★重要: 表示されない問題を防ぐため、初期値を一旦「表示」にしています */
    /* opacity: 0; */
    opacity: 1;

    /* JSが正しく動いていれば、以下のクラスが付与されてアニメーションします */
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* JSで is-visible クラスが付いた時のスタイル */
/* もしJSが動くなら、初期opacityを0に戻してください */
.fade-up-trigger.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   7. Mobile Responsiveness
   ========================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .works-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .section-intro {
        margin: 20px 0 !important;
        padding-top: 20px; /* 内側の余白も少し調整 */
    }
}

/* --- Front Page 用 SOLDバッジ --- */
.fp-sold-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(210, 63, 49, 0.9); /* 赤色 */
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 5px 20px;
    border: 2px solid #fff;
    letter-spacing: 0.1em;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* SOLD作品は少しグレーにする */
.work-item:has(.fp-sold-badge) img {
    filter: grayscale(80%);
    opacity: 0.8;
    transition: 0.3s;
}

.work-item:has(.fp-sold-badge):hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* =========================================
   Single Art Page Layout
   ========================================= */

/* 全体のコンテナ */
.art-detail-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* --- 1. 上段: 作品紹介セクション (Flexbox) --- */
.art-intro-section {
    display: flex;
    gap: 50px; /* 画像と文章の間隔 */
    align-items: flex-start; /* 上揃え */
    margin-bottom: 60px;
}

/* 左側: 画像エリア */
.art-intro-image {
    flex: 1; /* 幅の比率 (1:1なら flex:1) */
    min-width: 300px; /* 極端に小さくならないように */
}

.art-intro-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #eee; /* 薄い枠線 */
    padding: 10px; /* 額装っぽい余白 */
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 右側: テキストエリア */
.art-intro-text {
    flex: 1;
}

.art-intro-text .entry-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.art-intro-text .entry-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

/* --- スマホ対応 (縦並び) --- */
@media (max-width: 768px) {
    .art-intro-section {
        flex-direction: column; /* 縦並びに変更 */
        gap: 30px;
    }

    .art-intro-image,
    .art-intro-text {
        width: 100%; /* 横幅いっぱい */
    }

    .art-intro-text .entry-title {
        font-size: 2rem;
    }
}

/* --- 区切り線 --- */
.art-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 0 0 60px 0;
}

/* --- 2. 下段: シミュレーターセクション --- */
.art-simulator-section {
    text-align: center;
}

.sim-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.sim-desc {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}

/* .art-simulator-wrapper のスタイルは
   以前記述したものが適用されます (スマホ時に360px制限など)
*/

/* --- Archive Filters --- */
.archive-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-link {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    transition: 0.3s;
    font-weight: bold;
}

.filter-link:hover,
.filter-link.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Pagination Style */
.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #333;
    color: #fff;
}

/* --- グローバルメニューの装飾 --- */

/* メニュー項目の配置調整 */
.main-navigation .main-nav ul li a {
    font-family: 'Cormorant Garamond', serif; /* フォント統一 */
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding-left: 25px; /* 横間隔を少し広げる */
    padding-right: 25px;
    position: relative; /* 線のアニメーション用 */
}

/* ホバー時に下線が中央から伸びるアニメーション */
.main-navigation .main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 10px; /* 文字の下の隙間 */
    left: 50%;
    width: 0; /* 最初は幅0 */
    height: 1px; /* 線の太さ */
    background-color: #000; /* 線の色 */
    transition: width 0.3s ease-out, left 0.3s ease-out; /* 0.3秒かけて動く */
}

.main-navigation .main-nav ul li a:hover::after,
.main-navigation .main-nav ul li.current-menu-item a::after {
    width: 70%; /* ホバー時・選択時は幅70%に */
    left: 15%; /* 中央揃え */
}

/* サイトタイトルが長いため、少し文字サイズを調整 */
.main-title a {
    font-size: 1.4rem; /* 少し小さくしてバランスを取る */
}

/* --- Simulator Slider Styles --- */

/* スライダー枠 (パララックス用クラスと併用) */
.simulator-slider {
    position: absolute;
    top: -20%; /* パララックス初期位置 */
    left: 0;
    width: 100%;
    height: 140%;
    z-index: -1;

    /* パララックスの動き設定 */
    will-change: transform;
    transform: translateZ(0);
}

/* 個別のスライド */
.sim-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;

    /* フェードアニメーション */
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* じわっと切り替える */
    z-index: 1;
}

/* アクティブなスライドだけ表示 */
.sim-slide.active {
    opacity: 1;
    z-index: 2;
}

/* --- 矢印ボタン --- */
.sim-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1); /* 半透明 */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-family: 'Cormorant Garamond', serif; /* フォント合わせる */
    font-size: 24px;
    cursor: pointer;
    z-index: 10; /* コンテンツより上 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(3px);
}

.sim-arrow:hover {
    background: #fff;
    color: #000;
}

.sim-arrow.prev {
    left: 30px;
}
.sim-arrow.next {
    right: 30px;
}

/* スマホでは矢印を小さく、端に寄せる */
@media (max-width: 768px) {
    .sim-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .sim-arrow.prev {
        left: 10px;
    }
    .sim-arrow.next {
        right: 10px;
    }
}

/* --- Introduction Slider Styles (正方形版) --- */

/* スライダー枠 */
.intro-slider {
    position: relative;
    width: 100%;

    /* ★修正: 縦横比を「正方形 (1:1)」に変更 */
    aspect-ratio: 1 / 1;

    /* 元のデザインの影を引き継ぐ */
    box-shadow: 20px 20px 0 #f0f0f0;
}

/* スライド画像 (フェード切り替え用) */
.intro-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    background: #fff;
}

.intro-slide.active {
    opacity: 1;
    z-index: 2;
}

.intro-slide img {
    width: 100%;
    height: 100%;

    /* ★重要: 枠に合わせて拡大・トリミング */
    object-fit: cover;

    display: block;
    box-shadow: none !important; /* 二重の影を防ぐ */
}

/* 矢印ボタン */
.intro-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(2px);
}

.intro-arrow:hover {
    background: #333;
    color: #fff;
}

.intro-arrow.prev {
    left: 10px;
}
.intro-arrow.next {
    right: 10px;
}

/* --- Journal Category Label --- */
.journal-cat {
    display: inline-block;
    font-size: 0.75rem; /* 小さめで上品に */
    font-weight: 500;
    text-transform: uppercase; /* 英語なら大文字に */
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    font-family: 'Noto Sans JP', sans-serif;

    /* デフォルト色 (グレー) */
    color: #888;
}

/* --- カテゴリー別カラー設定 (文字色) --- */
/* 哲学系: エンジ (日本の伝統色っぽく) */
.cat-kanji-philosophy {
    color: #9e3d3d;
}

/* インテリア系: 落ち着いたネイビー */
.cat-interior-styling {
    color: #3d4c9e;
}

/* ニュース: 黒または濃いグレーでフォーマルに */
.cat-news {
    color: #333;
}

/* 制作日記: オリーブグリーン (自然体な感じ) */
.cat-studio-diary {
    color: #556b2f;
}

/* --- Archive Filters (作品一覧・Journal共通) --- */
.archive-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-link {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    transition: 0.3s;
    font-family: 'Cormorant Garamond', serif; /* 英語サイトらしくフォント指定 */
}

.filter-link:hover,
.filter-link.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* --- Pagination Style (Rounded) --- */
.pagination {
    margin-top: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px; /* ボタン間の隙間 */
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 40px;
    min-width: 40px;
    padding: 0 15px;

    border: 1px solid #ddd;
    border-radius: 50px;

    text-decoration: none;
    color: #555;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
    line-height: 1;
    font-weight: bold;

    /* ★追加: 位置を少し上にずらす調整 */
    position: relative;
    top: -2px; /* 数字を上に2px移動 (見た目に合わせて -1px 〜 -3px で調整してください) */
}
/* ホバー時 & 現在のページ */
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-2px); /* 少し浮き上がる演出 */
}

/* 省略リーダー (...) のスタイル調整 */
.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 5px;
    cursor: default;
}
.pagination .page-numbers.dots:hover {
    background: transparent;
    color: #555;
    transform: none;
}

/* =========================================
   Biography Page Styles
   ========================================= */

#biography-page {
    padding-top: 60px;
}

/* --- 1. Hero Section --- */
.bio-hero {
    margin-bottom: 100px;
}

.bio-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* 画像:文章 = 1:1.2 */
    gap: 60px;
    align-items: center;
}

.bio-image img {
    width: 100%;
    height: auto;
    box-shadow: 20px 20px 0 #f0f0f0;
}

.bio-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    margin-bottom: 5px;
    line-height: 1;
    letter-spacing: 0.05em;
}

.bio-title {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bio-summary p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
}

.bio-signature {
    width: 150px;
    margin-top: 20px;
    opacity: 0.8;
}

/* --- 2. Philosophy Section --- */
.bio-philosophy {
    background-color: #fafafa;
    padding: 100px 20px;
    margin-bottom: 100px;
}

.philosophy-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
}

/* --- 3. Performance Section --- */
.bio-performance {
    margin-bottom: 100px;
}

.perf-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.perf-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.8); /* 少し暗くして文字を見やすく */
}

.perf-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.perf-caption h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* --- 4. Timeline Section --- */
.bio-timeline {
    max-width: 800px;
    margin: 0 auto 100px auto;
}

.timeline-list {
    border-top: 1px solid #ddd;
}

.timeline-row {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.timeline-row dt {
    width: 120px;
    font-weight: bold;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: #333;
    flex-shrink: 0;
}

.timeline-row dd {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .bio-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bio-name {
        font-size: 2.5rem;
    }

    .timeline-row {
        flex-direction: column;
    }

    .timeline-row dt {
        margin-bottom: 5px;
    }
}

/* --- Biography List Styles (文字サイズ調整版) --- */

.timeline-row {
    display: flex;
    padding: 15px 0; /* 上下の余白も少し詰めてスッキリさせる */
    border-bottom: 1px solid #eee;
    align-items: baseline;
    transition: background-color 0.3s;
}

.timeline-row:hover {
    background-color: #fafafa;
}

.timeline-row dt {
    width: 100px; /* 年の幅 */
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;

    /* ★修正: 文字サイズを小さく */
    font-size: 0.96rem;

    color: #333;
    flex-shrink: 0;
}

.timeline-row dd {
    margin: 0;
    line-height: 1.6;
    flex-grow: 1;

    /* ★修正: 文字サイズを小さく */
    font-size: 0.85rem;

    color: #555;
}

/* リンクがある場合の文字色なども、このサイズに合わせて調整されます */
.bio-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px; /* 下線の距離も微調整 */
    transition: opacity 0.2s;
}
.bio-link:hover {
    opacity: 0.7;
}

/* --- カテゴリ別 色分け (文字色) --- */
/* ※管理画面で作るスラッグと一致させてください */

/* 書道パフォーマンス (performance) -> ネイビー */
.timeline-row.bio-cat-performance dd {
    color: #2c3e50;
}

/* 受賞 (award) -> ゴールド/黄土色 */
.timeline-row.bio-cat-award dd {
    color: #b8860b;
    /* font-weight: bold; */
}

/* 個展 (exhibition) -> エンジ */
.timeline-row.bio-cat-exhibition dd {
    color: #800000;
}

/* メディア (media) -> 黒 */
.timeline-row.bio-cat-media dd {
    color: #333;
}

/* アートワーク (artwork) -> グレー */
.timeline-row.bio-cat-artwork dd {
    color: #666;
}

/* 門下生 (students) -> 緑 */
.timeline-row.bio-cat-students dd {
    color: #556b2f;
}

/* その他 (others) -> 薄い黒 */
.timeline-row.bio-cat-others dd {
    color: #555;
}

.timeline-row.bio-cat-workshop dd {
    color: #008080;
}

/* --- Language Switch Buttons --- */
.bio-lang-switch .lang-btn {
    border: none;
    background: transparent;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #999;
    cursor: pointer;
    padding: 5px 15px;
    border-bottom: 2px solid transparent; /* 下線準備 */
    transition: all 0.3s;
}

.bio-lang-switch .lang-btn:hover {
    color: #333;
}

/* アクティブ状態 */
.bio-lang-switch .lang-btn.active {
    color: #000;
    border-bottom: 2px solid #000; /* 黒い下線 */
    font-weight: 600;
}

/* --- Biography Filter Buttons (JS) --- */
.bio-filter-btn {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: #fff;
    color: #555;
    font-size: 0.9rem;
    font-family: 'Cormorant Garamond', serif;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1.2;
}

.bio-filter-btn:hover {
    background: #f9f9f9;
    color: #000;
    border-color: #aaa;
}

.bio-filter-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* 絞り込み時のアニメーション用（簡易） */
.bio-item {
    /* 表示切り替え時にふわっとさせるならJSでクラス付与が必要ですが、
       今回はdisplay:none切り替えなので即時反映されます */
}

/* ===============================
   PERFORMANCE PAGE
   =============================== */

.performance-page {
    font-family: 'YuGothic', 'Yu Gothic', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color: #222;
    background-color: #faf7f4;
}

/* HERO */
.performance-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
}

.performance-hero-media {
    position: relative;
    height: 60vh;
    min-height: 360px;
}

.performance-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.performance-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 5, 20, 0.8), rgba(80, 10, 40, 0.7));
    mix-blend-mode: multiply;
}

.performance-hero-inner {
    position: absolute;
    inset: 0;
    max-width: 1120px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.performance-eyebrow {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.performance-title {
    font-size: clamp(2.4rem, 4vw, 3.1rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.performance-title-sub {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.performance-lead {
    max-width: 640px;
    font-size: 0.98rem;
    line-height: 1.9;
    margin-bottom: 1.8rem;
}

.performance-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.performance-stats li {
    min-width: 110px;
}

.performance-stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
}

.performance-stat-label {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* BUTTONS */

.performance-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.performance-btn-primary {
    background: #d34b6a;
    border-color: #d34b6a;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.performance-btn-primary:hover,
.performance-btn-primary:focus {
    background: #b93955;
    border-color: #b93955;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

/* SECTIONS */

.performance-section {
    padding: 4rem 1.5rem;
}

.performance-section:nth-of-type(even) {
    background-color: #f3eee8;
}

.performance-section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.performance-section-inner--narrow {
    max-width: 780px;
}

.performance-heading {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.performance-heading-small {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.performance-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #b43b58;
    margin-bottom: 0.5rem;
}

/* TEXT & IMAGE LAYOUT */

.performance-text-block p {
    margin-bottom: 1.1rem;
    line-height: 1.9;
    font-size: 0.96rem;
}

.performance-section-intro .performance-section-inner,
.performance-two-column {
    display: grid;
    gap: 2rem 3rem;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
}

.performance-image-block img,
.performance-wide-image img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.performance-wide-image {
    margin-top: 2.5rem;
}

/* FEATURE GRID */

.performance-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.performance-feature {
    background: #fff;
    border-radius: 18px;
    padding: 1.6rem 1.5rem 1.8rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.performance-feature h3 {
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
}

.performance-feature p {
    font-size: 0.92rem;
    line-height: 1.8;
}

/* CLIENTS */

.performance-clients {
    margin-top: 2.5rem;
    font-size: 0.9rem;
}

/* JAPAN SECTION */

.performance-section-japan .performance-highlight-box {
    margin-top: 2.5rem;
    padding: 1.6rem 1.5rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.performance-section-japan .performance-highlight-box h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.performance-section-japan .performance-highlight-box ul {
    padding-left: 1.2rem;
    margin: 0;
    font-size: 0.92rem;
}

/* WORLD SECTION */

.performance-world-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 3rem;
    margin-top: 2rem;
}

.performance-world-column h3 {
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.performance-world-column ul {
    margin: 0 0 1.2rem;
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

/* COSTUME SECTION */

.performance-costume-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem 3rem;
    align-items: center;
}

.performance-costume-grid figcaption {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.4rem;
    color: #555;
}

/* =========================================================
   JAPAN SECTION — Two Column Responsive Fix
   ========================================================= */

.japan-two-column {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
}

.japan-image-block img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* --- SP Responsive --- */
@media (max-width: 960px) {
    .japan-two-column {
        grid-template-columns: 1fr;
    }
    .japan-image-block {
        order: -1; /* 画像を先に出したい場合は -1、後に出したい場合は 2 */
    }
}

@media (max-width: 720px) {
    .japan-two-column {
        gap: 2rem;
    }
    .performance-highlight-box {
        padding: 1.2rem 1rem;
    }
}

@media (max-width: 500px) {
    .performance-feature-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- 音声切り替えボタン --- */
.sound-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10; /* 動画より手前に */

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.6); /* 半透明の黒 */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;

    cursor: pointer;
    font-family: sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.sound-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

.sound-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

/* ミュート中のスタイル（少し薄くするなど） */
.sound-btn.muted {
    opacity: 0.7;
}
.sound-btn.muted:hover {
    opacity: 1;
}

/* --- 共通レイアウト (IntroとSimulatorで共有) --- */

/* グリッドレイアウト（PC用） */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右均等に分割 */
    gap: 60px; /* 画像と文章の間隔 */
    align-items: center; /* 上下中央揃え */
    padding: 80px 20px;
    background-color: #fff; /* 背景を白（明るく）に固定 */
}

/* --- 画像エリアとスライダーの設定 --- */
.intro-image {
    position: relative;
    width: 100%;
    /* 正方形の枠を確保（横幅に対して1:1） */
    aspect-ratio: 1 / 1;
}

.intro-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 4px; /* お好みで角丸に */
}

.intro-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.intro-slide.active {
    opacity: 1;
    z-index: 2;
}

/* 画像自体の表示設定 */
.intro-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせてトリミング（歪まない） */
    display: block;
}

/* --- 矢印ボタン (Introと共通) --- */
.intro-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    font-size: 18px;
    transition: 0.3s;
}

.intro-arrow:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.intro-arrow.prev {
    left: 15px;
}
.intro-arrow.next {
    right: 15px;
}

/* --- スマホ対応 --- */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr; /* 1カラムにする */
        gap: 40px;
        padding: 40px 20px;
    }

    /* スマホでは画像を先に見せる設定 */
    /* Simulatorセクション（テキストが先、画像が後）の場合 */
    .intro-grid.simulator-reverse .intro-image {
        order: -1; /* 強制的に画像を先頭に持ってくる */
    }
}

/* --- ボタン共通スタイル --- */
.btn-text {
    /* 配置：中央揃えにするための設定 */
    display: block; /* ブロック要素にする */
    width: fit-content; /* 文字数に合わせて幅を調整 */
    margin: 32px auto 0; /* 上に余白、左右は自動（これで中央に来ます） */

    /* 形状：カプセル型（Pill Shape） */
    padding: 16px 48px; /* 横長に見えるよう左右を広めに */
    border-radius: 100px; /* 完全に丸くする */
    min-width: 220px; /* 最低限の幅を確保 */
    box-sizing: border-box;

    /* デザイン：白背景＋黒文字＋影 */
    background-color: #fff; /* ボタンの背景色 */
    color: #333; /* 文字色（墨色） */
    border: 1px solid #333; /* 枠線 */

    /* 影（ドロップシャドウ） */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* ふんわりした影 */

    /* フォント設定 */
    font-family: inherit;
    font-size: 16px;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-align: center;

    /* アニメーション */
    transition: all 0.3s ease;
}

/* ホバー時の動き */
.btn-text:hover {
    background-color: #333; /* 背景を黒に */
    color: #fff; /* 文字を白に */
    transform: translateY(-3px); /* ふわっと浮き上がる */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); /* 影を濃く・広くする */
    border-color: #333;
}

/* スマホでの調整 */
@media (max-width: 768px) {
    .btn-text {
        width: 100%; /* スマホでは幅いっぱいに */
        margin-top: 24px;
        border-radius: 50px; /* 角丸は維持 */
    }
}

/* --- Footer Customization (Dark Theme) --- */

/* フッター全体設定 */
.site-info {
    padding: 20px 20px;
    background-color: #222; /* 背景を濃いグレー（ほぼ黒）に */
    color: #ccc; /* 基本の文字色を薄いグレーに */
    border-top: none; /* 区切り線は不要なので削除 */
}

/* 中央揃えのためのFlexbox設定（変更なし） */
.inside-site-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

/* 1. ロゴ画像 */
.footer-branding {
    line-height: 1;
}

.footer-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s;
    /* もしロゴが「黒い文字」の画像の場合、以下の1行を追加すると白く反転できます */
    /* filter: invert(1); */
}

.footer-logo-img:hover {
    opacity: 1;
}

/* 2. SNSアイコン */
.footer-social-icons {
    display: flex;
    gap: 16px;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ccc; /* アイコンの色を明るく */
    border: 1px solid #444; /* 枠線を背景より少し明るいグレーに */
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    color: #fff; /* ホバーで真っ白に */
    border-color: #fff; /* 枠線も白に */
    background-color: transparent;
}

/* 3. リンクとコピーライト */
.footer-bottom-row {
    text-align: center;
}

.footer-links {
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.footer-links a {
    color: #ccc; /* リンク文字色を明るく */
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff; /* ホバーで白 */
}

.footer-links .separator {
    margin: 0 12px;
    color: #555; /* 区切り線を暗めのグレーに馴染ませる */
    font-size: 10px;
    vertical-align: middle;
}

.copyright-bar {
    font-size: 11px;
    color: #777; /* コピーライトは少し控えめな色に */
    letter-spacing: 0.05em;
    margin-top: 8px;
}

/* スマホ表示時の微調整（変更なし） */
@media (max-width: 768px) {
    .inside-site-info {
        gap: 24px;
    }

    .footer-links .separator {
        display: none;
    }

    .footer-links a {
        display: block;
        margin-bottom: 8px;
    }
}
/* --- Cookie Consent Banner (維持) --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 24px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.cookie-banner.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-content p {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.btn-cookie {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 13px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 100px; /* カプセル型に統一 */
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cookie:hover {
    background-color: #000;
}

/* スマホ表示時の微調整 */
@media (max-width: 768px) {
    .inside-site-info {
        gap: 24px;
    }

    .footer-links .separator {
        display: none; /* スマホでは区切り線を消す */
    }

    .footer-links a {
        display: block; /* 縦積みにする */
        margin-bottom: 8px;
    }

    .cookie-banner {
        left: 20px;
        right: 20px;
        width: auto;
    }
}

/* --- Journalカード内の行間・余白調整 --- */

.journal-content .journal-cat {
    display: inline-block;
    margin-bottom: 12px; /* カテゴリーの下の余白を広げる */
}

/* 日付エリア (front-page.php と page-journal.php 両方に対応) */
.journal-content .journal-date,
.journal-content .journal-meta-row {
    display: block;
    margin-bottom: 14px; /* 日付の下の余白を広げる */
    line-height: 1.6; /* 日付自体の行間も少し広げる */
}

.journal-content .journal-title {
    margin-bottom: 18px; /* タイトルの下の余白を広げる */
    line-height: 1.5; /* タイトルが2行になった時の行間を読みやすく */
    font-size: 18px;
}

/* ボタン周りも少し離す */
.journal-content .read-more {
    margin-top: 0px;
}

/* --- お気に入り投稿ウィジェット --- */
.afv-fav-posts-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.afv-fav-item {
    display: flex;
    text-decoration: none;
    align-items: flex-start; /* 上揃え */
    transition: transform 0.2s ease;
}

.afv-fav-item:hover {
    transform: translateX(5px); /* ホバーで少し右へ */
}

/* 左側：画像 (4:3比率) */
.afv-fav-img {
    flex: 0 0 100px; /* 幅固定 */
    height: 75px; /* 幅100pxに対して4:3なら75px */
    background-size: cover;
    background-position: center;
    border-radius: 4px;

    /* オシャレな影 */
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
    margin-right: 15px;
    background-color: #eee;
}

/* 右側：タイトル */
.afv-fav-content {
    flex: 1;
    display: flex;
    align-items: center; /* 縦中央 */
    min-height: 75px; /* 画像と同じ高さ以上にする */
}

.afv-fav-title {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    margin: 0;
    font-weight: 500;
    font-family: inherit;

    /* 背景白で読みやすく（ウィジェット背景がし柄等の場合） */
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 2px;
}

/* スマホ調整 */
@media (max-width: 480px) {
    .afv-fav-item {
        align-items: center;
    }
    .afv-fav-img {
        flex: 0 0 80px;
        height: 60px;
    }
    .afv-fav-content {
        min-height: 60px;
    }
    .afv-fav-title {
        font-size: 13px;
    }
}
