@charset "UTF-8";

/* 1. デフォルト（PC）の表示設定 */
.site-branding-top {
    padding: 32px 24px 6px;
    position: relative;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}
nav.global-nav {
    padding: .5em 1.25em;
    background-color: var(--active-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
p.site-description {
    font-size: 13px;
}
p.site-description {
    font-size: 13px;
}
.header-banner-links a {
    width: 248px;
    display: block;
}
.site-branding-wrap {
    display: flex;
    flex-direction: column;
}
.header-widgets {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.header-banner-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: row;
    justify-content: flex-start;
}
/* =========================================================
   ヘッダー・ハンバーガーメニュー
========================================================= */

/* --- PC（デフォルト）のスタイル --- */
.drawer-btn,
.drawer-nav {
    display: none; /* PCではハンバーガーボタンとドロワーを隠す */
}


.site-branding-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* --- タブレット・スマホ（1024px以下）のスタイル --- */
@media screen and (max-width: 1024px) {
    /* PC用のメニューと検索窓を隠す */
    .global-nav,
    .header-widgets {
        display: none !important;
    }
    .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    }
    .site-branding-top {
    padding: 16px 16px 0px;
    position: relative;
    }

    /* ハンバーガーボタンのスタイル */
    .drawer-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10001; /* メニューより上に配置 */
        padding: 0;
    }
    /* ハンバーガーの3本線 */
    .drawer-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #333; /* 線の色 */
        transition: all 0.3s ease;
    }
    .drawer-btn{
        margin-right: 16px;
        margin-top: 16px;
    }

    /* 開いた時のアニメーション（「✕」に変形） */
    body.is-drawer-open .drawer-btn span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    body.is-drawer-open .drawer-btn span:nth-child(2) {
        opacity: 0;
    }
    body.is-drawer-open .drawer-btn span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* ドロワーメニュー本体（右からスライドイン） */
    .drawer-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%; /* 初期状態は画面の右外に隠す */
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 10000;
        overflow-y: auto;
        transition: right 0.3s ease;
        padding: 40px 20px 40px; /* 上部はボタンと被らないよう余白を取る */
    }

    /* bodyにクラスが付いたらメニューを画面内へ */
    body.is-drawer-open .drawer-nav {
        right: 0;
    }

    /* 背景の暗転（オーバーレイ） */
    body.is-drawer-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
    }
    .drawer-list li a {
        margin: 24px 0px;
        display: block;
    }

    .drawer-list {
        padding-left: 0px;
    }
    .drawer-banner-links {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-top: 30px;
    }
}

.global-nav .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.global-nav .nav-list li.menu-item a {
	display: flex;
	padding: .5em 1em;
}

/* 2. モバイル（767px以下）の表示設定 */
@media (max-width: 767px) {
    .global-nav {
        display: none; /* スマホではPC用メニューを隠す */
    }


}

/* =========================================================
   2. 全体のレイアウト設定（2カラム）
========================================================= */

/* メインとサイドバーを囲む大きな箱（中央寄せして幅を制限） */
.top-page, .archive-page, .error-404-page, .search-page, .author-page, .container{
    max-width: var(--site_width);
    margin: 0 auto;    /* 左右の余白を自動にして中央寄せ */
    padding: 40px 4%;
    box-sizing: border-box;

}
.content-wrapper {
    display: flex;     /* ここが横並びにする魔法のコードです！ */
    gap: 48px;         /* メインとサイドバーの間の隙間 */
    align-items: flex-start; /* サイドバーが下に伸びないように上揃えにする */
}
.main-content{
    width: 100%;
}
/* メインコンテンツ（左側） */
.site-main {
    flex: 1; /* 余った余白をすべてメインコンテンツに割り当てる */
    min-width: 0; /* はみ出し防止のおまじない */
}

/* サイドバー（右側） */
.site-sidebar {
    width: var(--site_side_width);
    flex-shrink: 0; /* 画面が狭くなってもサイドバーの幅は縮めない */
    /* background-color: var(--sub-color);  */
}
.page-one-column {
    display: block;
}
.post-dates {
    font-size: 13px;
    display: flex;
    gap: 1em;
}
/* =========================================================
  TBからいらない要素削除
========================================================= */
@media (max-width: 1023px){
    .content-wrapper{
        display: block;
    }
    .page .site-sidebar{
        display: none;
    }
    div#pandatimes_category_widget-5 {
        display: none;
    }
    .sidebar-sticky {
    display: none;
    }
    .site-sidebar{
        width: 100%!important;
    }
    .history-widget{
        padding: 20px;
    }
     .history-widget h3{
        margin-bottom: 20px;
     }
     div#pt_ranking_widget-5{
        display: none;
     }
     div#pt_ranking_widget-5{
        display: none;
     }
     div#pandatimes_category_widget-6{
        display: none;
     }
     div#pandatimes_category_widget-8{
        display: none;
     }
     div#pandatimes_category_widget-2{
        display: none;
     }
     div#pt_ranking_widget-4{
        display: none;
     }
}

/* =========================================================
   3. スマートフォン表示時の設定（縦並びに戻す）
========================================================= */
@media (max-width: 767px) {
    .content-wrapper {
        flex-direction: column; /* 横並びから縦並びに変更 */
        padding: 20px 15px;
    }

    .site-sidebar {
        width: 100%; /* スマホではサイドバーも横幅いっぱいに */
    }
}

/* =========================================================
   4. フッターの設定
========================================================= */
.site-footer {
    /* background-color:var(--accent_color); */
    border-top: 1px solid var(--border-color);
    margin: 60px 0px 0px;
    box-sizing: border-box;
}

/* フッターウィジェットの表示エリア */
.footer-widgets-area {
    max-width: var(--site_width);
    margin: 0 auto;
    padding: 60px 4%;
}
.fot-sns-colm{
   margin-top: 8px;
   gap: 16px;
}
.fot-first-colm p{
    font-size: 13px;
}
/* コピーライト部分 */
.copyright {
    text-align: center;
    padding: 15px;
    background-color: #333; /* 暗い背景色 */
    color: #fff; /* 白文字 */
    font-size: 14px;
}
.fot-sns-colm figure{
    margin-bottom: 0px;

}
.top-none {
    margin-top: 0px;
}
footer.site-footer .menu{
    margin-top: 0px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}
footer.site-footer .menu li{
    font-size: 13px;
}
footer p:empty {
    display: none;
}
.wp-block-group.fot_.rental {
    margin-bottom: 40px;
}
span.panda-copyright-text {
    font-size: 11px;
}
.wp-block-column.fot-last-colm.is-layout-flow.wp-block-column-is-layout-flow {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-end;
    align-items: flex-end;
}
figure.wp-block-image.size-full.is-resized.studio-img {
    margin-bottom: 0px;
}
/* =========================================================
   5. 最新記事一覧（3カラムグリッドレイアウト）
========================================================= */

/* グリッドレイアウトの設定 */
.post-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PC時は3カラム */
    gap: 16px 24px;
    margin-bottom: 40px;
}

.post-item {
    overflow: hidden; /* 画像の角丸からはみ出た部分を隠す */
    transition: transform 0.3s;
}



/* リンク全体を覆う */
.post-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

/* サムネイルとNEWマーク */
.post-thumb {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.post-thumb img {
    transition: transform 0.4s ease, opacity 0.4s ease; /* 0.4秒かけて滑らかに変化 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を歪ませず、枠いっぱいに広げてはみ出た部分をトリミング */
    
}

.new-mark {
    position: absolute;
    bottom: 0px;
    left: 0px;
    background: var(--accent_text_color); /* カスタマイザーのアクセントカラー */
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 0 6px 0 6px;
    z-index: 2;
}
/* PICKUPラベルのスタイル */
.pickup-mark {
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: var(--accent_text_subcolor);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 0 6px 0 6px;
    z-index: 2;
}

/* NEWマークがすでにある場合、位置をずらす調整 */
.pickup-mark + .new-mark {
    top: 35px; /* PICKUPの下に並べる場合 */
}
/* コンテンツ部分（カテゴリー、タイトル、著者） */
.post-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* アイキャッチ以外の残りの高さをすべて自分のものにする（重要） */
}

.post-category {
    display: inline-block;
    vertical-align: middle; /* 縦のズレを防ぐ */
    font-size: 12px;
    color: var(--accent_color);
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    margin-right: 5px;
    border-radius: var(--radius_min);
}
.post-categorys {
    margin-top: 10px;
    margin-bottom: 10px; /* タイトルとの余白も確保 */
    position: relative;  /* 右端のグラデーションを配置するための基準 */
    white-space: nowrap; /* ★タグを絶対に改行させず、1行に固定する */
    overflow: hidden;    /* ★はみ出した部分を隠す */
}
/* 右端に白いグラデーションを重ねて「続きがある感」を演出する */
.post-categorys::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px; /* グラデーションの幅（お好みで調整） */
    height: 100%;
    /* 左側は透明、右側にいくにつれて背景色（白）になるグラデーション */
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none; /* マウス操作の邪魔にならないようにする */
}

.post-title {
    line-height: 1.5;
    font-size: 17px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    margin-top: 0px;
}

.single-tags {
	margin-bottom: 15px;
}

.single-tags a {
    display: inline-block;
    background-color: #eee;
    font-size: 11px;
    padding: 4px 0.75em;
    border-radius: var(--radius_min);
}

/* ---------------------------------------------------------
   ▼ ここからがマウスホバー（hover）時の指示 ▼
--------------------------------------------------------- */
.post-item:hover .post-thumb img {
    transform: scale(1.05);
    opacity: 0.7;
}
.post-item:hover .post-title {
    color: var(--accent_color); 
}
.post-item:hover .post-author {
    opacity: 0.7;
}
/* 投稿者情報（アイコンと名前） */
.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
    margin-top: auto;
    padding-top: 0.5em;
    padding-bottom: 0.75em;
}
.author-info {
    opacity: .6;
}
.author-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.author-name, span.author-title {
    font-size: 12px;
    color: #333;
}


.btn-wrap-center {
    text-align: center;
}

.btn-more {
    display: inline-block;
    border: 1px solid var(--border-color);
    padding: 16px 40px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 60%;
    margin: 20px 0px;
    font-size: 17px;
    font-weight: 600;
}

.btn-more:hover {
    background-color: var(--accent_color, #e60012);
    color: #fff;
}

/* --- スマホ表示時の設定（1カラムに変更） --- */
@media (max-width: 767px) {
    .post-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
section.recommended-posts {
    margin: 120px 0px;
    padding: 80px 0px 0px;
    /* border: 4px; */
    border-top: 1px solid var(--border-color);
}
span.recommend-title-sub.font-en{
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 700; /* 100〜900の間でお好みの太さに */
    letter-spacing: 0.1em; /* 文字間を広げて、高級感を演出 */
    font-style: normal;
    display: block;
    text-align: center;
    font-size: 43px;
    margin-bottom: 60px;
    line-height: 1.5;
}
h2.section-title.top-recommend-title{
    font-size: 18px;
    text-align: center;
    font-weight: normal;
    line-height: 1;
    margin-bottom: 0px;
}
/* =========================================================
   6. 監修・取材協力者エリア（6列・縦積みデザイン）
========================================================= */
span.supervisors-title-sub.font-en {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-style: normal;
    display: block;
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    line-height: 1.5;
}
h3.section-title.supervisors-title {
    font-size: 16px;
    font-weight: normal;
    line-height: 1;
    margin-bottom: 0px;
}
h3.section-title {
    font-size: 24px;
    text-align: center;
}
/* グリッドレイアウトの設定（PC時は6列） */
.supervisor-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin: 40px 0px 40px;
}
section.supervisors-area{
    padding: 24px 48px;
    background: #F6F5F3;
    border-radius: var(--radius);
}
/* 各アイテムを縦に並べて中央揃えにする */
.supervisor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}
.supervisor-item a{
    text-decoration: none;
    color: #333;
}
/* 写真部分 */
.supervisor-avatar{
    margin-bottom: 8px;
}
.supervisor-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* 丸く切り抜く */
    object-fit: cover;
    margin: 0 auto;
}

/* 表示名 */
.supervisor-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px; /* 肩書との余白 */
    line-height: 1.4;
    margin-top: 0px;
    overflow-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 肩書 */
.supervisor-title {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 0px;
    opacity: .6;
}


/* --- レスポンシブ対応 --- */
/* タブレット表示時（画面が少し狭い時）は3列にする */
@media (min-width: 1400px) {
    .top-page, .archive-page, .error-404-page, .search-page, .author-page, .container{
        padding: 12px 0 40px;
    }
    .footer-widgets-area{
        padding: 60px 0%;
    }
}
@media (max-width: 1024px) {
    .supervisor-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}
@media (max-width: 781px){
    .wp-block-column.is-vertically-aligned-top.fot-first-colm.is-layout-flow.wp-block-column-is-layout-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.fot-first-colm p{
    text-align: center;
}
.wp-block-column.fot-last-colm.is-layout-flow.wp-block-column-is-layout-flow {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    
}
footer.site-footer .menu{
    margin-top: 20px;
    padding-left: 0px;
}
}
/* スマホ表示時は2列にする */
@media (max-width: 767px) {
    .supervisor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* スマホだと画面が小さいので写真も少し小さく調整 */
    .supervisor-avatar img {
        width: 80px;
        height: 80px;
    }
}

/* =========================================================
   7. SNSシェアボタン
========================================================= */

* --- コンテナ全体の余白調整 --- */
.sns-share-container {
    margin: 30px 0 50px; /* 上下に適度な余白 */
    text-align: center; /* 中央寄せにしたい場合 */
}

/* --- リスト全体のスタイル --- */
.sns-share-container {
    margin-bottom: 30px;
}
.sns-share-list {
    display: flex; /* 横並び */
    flex-wrap: wrap; /* スマホで折り返す */
    gap: 15px; /* アイコン同士の間隔 */
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}

/* --- 各リストアイテムのスタイル --- */
.sns-share-list li {
    margin: 0;
}

/* --- リンクとボタンの共通スタイル（ここが重要） --- */
.sns-share-list li a,
.sns-share-list li button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 0; /* 余計なパディングを消す */
}

/* ホバー時のエフェクト（少し大きくする） */
.sns-share-list li a:hover,
.sns-share-list li button:hover {
    transform: scale(1.1); /* 1.1倍の大きさに */
    opacity: 0.9;
}

/* --- アイコン画像（ロゴ）のスタイル --- */
.sns-share-list img {
    width: 35px; /* ★ロゴのサイズ（丸のサイズに合わせて調整） */
    height: 35px; /* ★ロゴのサイズ */
    object-fit: contain; /* アスペクト比を保つ */
    
}

/* --- 各メーカーの背景色（ご提示いただいた画像のイメージ） --- */

/* X (Twitter) - 黒 */
.share-x a {
    background-color: #000000;
    border-radius: 50%;
    width: 35px;
    height: 35px;
}
.share-x a img{
    width: 20px;
    height: 20px;
}


/* note - 黒 */
.share-note a {
    background-color: #000000;
    border-radius: 50%;
}


/* URLコピー - グレー */
.share-copy button {
    background-color: #333333;
    border-radius: 50%;
     width: 35px;
    height: 35px;
}
.share-copy button img{
    width: 25px;
    height: 25px;

}

/* --- レスポンシブ対応（スマホ表示時） --- */
@media (max-width: 640px){
    .site-footer{
        margin: 0px;
    }
    .content-wrapper{
        padding: 0px;
    }
    .studio-img img{
        width: 100%;
    }
    
}
@media (max-width: 480px) {
    .sns-share-list {
        gap: 10px; /* 間隔を少し狭く */
    }
    
    .sns-share-list li a,
    .sns-share-list li button {
        width: 30px; /* スマホでは少し小さく */
        height: 30px;
    }
    
    .sns-share-list img {
        width: 30px; /* ロゴも少し小さく */
        height: 30px;
    }
    section.supervisors-area{
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        width: 100vw;
        max-width: 100vw;
        padding: 24px 2%;
    }
    .top-page{
        padding: 0px 2%!important;
    }
    section.recommended-posts{
        margin: 40px 0px;
        padding: 40px 0px 0px;
    }
}

/* =========================================================
   タブレット・スマホ用 ボトムナビゲーション
========================================================= */

/* PC表示（1025px以上）の時は隠しておく */
.mobile-bottom-nav {
    display: none;
}

/* 1024px以下（iPad等のタブレット・スマホ）で適用 */
@media screen and (max-width: 1024px) {
    
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px; /* 押しやすいように少し高めに */
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
        justify-content: space-evenly; /* 4つのボタンを均等に配置 */
        align-items: center;
        z-index: 9990; /* かなり手前に表示 */
        padding-bottom: env(safe-area-inset-bottom); /* iPhone下部のバー対策 */
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        /* ご提示いただいたベージュカラー */
        color: #D3C9C0; 
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 600;
        transition: color 0.2s ease, opacity 0.2s ease;
        width: 25%; /* 4つなので25%ずつ */
    }
    
    /* タップした時のアクション */
    .bottom-nav-item:active {
        opacity: 0.5;
    }

    .bottom-nav-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 3px;
    }
    
    .bottom-nav-icon svg {
        width: 24px;
        height: 24px;
        fill: currentColor; /* ベージュ色を自動で引き継ぐ */
    }

    .bottom-nav-text {
        line-height: 1;
    }
}
