/* --- 東京カレーマガジン カスタムフロントページ用CSS (v5.0.19 - お知らせエリア最終FIX) --- */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;700&display=swap');

/* =============================================================== */
/* ★★★ 新しい専用ヘッダーのスタイル ★★★
/* =============================================================== */
.media-header {
    background-color: transparent;
    position: fixed; /* ▼▼▼ absoluteからfixedに変更 ▼▼▼ */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    transition: background-color 0.4s ease; /* ▼▼▼ 背景色の変化を滑らかにする ▼▼▼ */
}

/* ▼▼▼ スクロール後のヘッダーのスタイル ▼▼▼ */
.media-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.4); /* 半透明の白 */
    border-bottom-color: #e0e0e0;
}

/* スクロール後は、中の文字やアイコンの色を黒に変更 */
.media-header.is-scrolled .media-header__logo a,
.media-header.is-scrolled .media-header__hamburger span, 
.media-header.is-scrolled .fullscreen-hamburger span{
    color: #ff6060;
    text-shadow: none;
    background-color: #ff6060;
}

.media-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 15px 40px;
    box-sizing: border-box;
}
.media-header__logo {
    margin-top: 0px;
}
.media-header__logo a {
    text-decoration: none;
    color: #ff9901;
    text-shadow: 1px 1px 2px rgb(42 179 0 / 15%);
}
.media-header__logo-main {
    font-family: "Futura", "Jost", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: block;
}
.media-header__hamburger {
    margin-top:22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.media-header__hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #fff;
}
.media-header__slide-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: #111;
    color: #fff;
    padding: 60px 40px;
    box-sizing: border-box;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
}
.media-header__slide-menu.is-open {
    right: 0;
}
.media-header__close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
}
.media-header__slide-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.media-header__slide-nav li {
    margin-bottom: 20px;
}
.media-header__slide-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}
.media-header__slide-nav a:hover {
    text-decoration: underline;
}
.media-header__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.media-header__overlay.is-visible {
    opacity: 1;
    visibility: visible;
}


/* =============================================================== */
/* 0. 基本設定
/* =============================================================== */
body.page-template-page-media-home {
    font-family: "Zen Kaku Gothic New", YakuHanJP, YuGothic, "Yu Gothic", "游ゴシック", "游ゴシック体", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}
.new-layout-2025 .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }


/* =============================================================== */
/* 1. キービジュアル (KV)
/* =============================================================== */
.kv-section {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    box-sizing: border-box;
    flex-wrap: wrap;
    z-index: 1; 
}
.kv-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgb(0 0 0 / 41%) 0%, transparent 50%);
}
.kv-link-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    z-index: 2;
    padding: 40px;
    box-sizing: border-box;
}
.kv-content {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    text-align: left;
    z-index:99;
    width: 1110px;
}
.kv-meta-top {
    margin-bottom: 15px;
    display: none;
}
.kv-category {
    background: #ffc107;
    color: #000;
    padding: 4px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: none;
    border-radius: 4px;
    display: inline-block;
}
.kv-acf-wrapper {
    display:flex; /* 横並びにする */
    gap: 15px; /* テキスト間の隙間 */
    margin-bottom: 10px;
    opacity: 0.9;
}
.kv-title {
    font-size: 2.8rem;
    margin: 0 0 4px 0;
    line-height: 1.3;
    color:#fffdc7;
}
.kv-meta-bottom {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color:#fffdc7;
}
.kv-tags-list {
    display: flex;
    gap: 12px;
   
}
.kv-tag {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 700;
     color:#fffdc7;
}
.kv-tag:hover {
    text-decoration: underline;
}

/* ▼▼▼ KVのACFテキストにアニメーションを適用 ▼▼▼ */
.kv-acf-wrapper .acf-text-line {
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
    width: fit-content; /* 右揃え/左揃えの基準にするため */
}
.kv-acf-wrapper .acf-text-line:last-child {
    margin-bottom: 0;
}

/* テキストを隠すための白い「カーテン」の初期状態 */
.kv-acf-wrapper .acf-text-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transform: scaleX(0); /* 初期状態では隠れている */
    transform-origin: left;
}

/* テキスト本体の初期状態 */
.kv-acf-text {
    display: inline; /* 背景をテキストの各行にフィットさせる */
    text-shadow: none;
    color: #000;
    background-color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.8;
    padding: 0.2em 0.4em;
    visibility: hidden; /* 初期状態では非表示 */
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.kv-acf-wrapper.is-visible .acf-text-line::after {
    animation: bg-wipe-in-out 1s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}
.kv-acf-wrapper.is-visible .acf-text-line:nth-child(2)::after {
    animation-delay: 0.2s; /* 2つ目のアニメーションを少し遅らせる */
}

.kv-acf-wrapper.is-visible .kv-acf-text {
    animation: text-appear 0.1s linear forwards;
}
.kv-acf-wrapper.is-visible .acf-text-line:nth-child(1) .kv-acf-text {
    animation-delay: 0.6s; /* 背景アニメーションの半分+α */
}
.kv-acf-wrapper.is-visible .acf-text-line:nth-child(2) .kv-acf-text {
    animation-delay: 0.8s; /* 2つ目のテキストをさらに遅らせる */
}

/* =============================================================== */
/* 2. 投稿スクロール
/* =============================================================== */
.post-scroller-section {
    background: #E8FF89; padding: 20px 0;
    overflow: hidden; white-space: nowrap;
}
.post-scroller-track { display: inline-block; animation: scroll-left 120s linear infinite; }
.post-scroller-section:hover .post-scroller-track { animation-play-state:running }
.scroller-card {
    display: inline-block; position: relative; width: 360px;
    margin: 0 10px; vertical-align: top; aspect-ratio: 16 / 12;
    background-color: #eee; background-size: cover; background-position: center;
    border-radius: 8px; overflow: hidden; color: #fff; text-decoration: none;
    transition: transform 0.3s ease;
}
.scroller-card:hover {
    transform: scale(1.03);
}
.scroller-card__overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 12px; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%, rgba(0,0,0,0.5) 100%);
}
.scroller-card__cat {
    background: #ffc107; color: #111; font-weight: 700;
    padding: 4px 10px; font-size: 0.75rem; border-radius: 4px; width: fit-content;
}
.scroller-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    /* ▼▼▼ ここから追加・修正 ▼▼▼ */
    white-space: normal; /* テキストの折り返しを許可 */
    text-align: left;    /* 折り返したテキストを左揃えに */
}


/* =============================================================== */
/* 3. 5行スクロール (流用)
/* =============================================================== */
.multi-row-scroller { background-color: #111; padding: 30px 0; display: flex; flex-direction: column; gap: 12px; }
.scrolling-terms-wrapper { width: 100%; overflow: hidden; white-space: nowrap; }
.scrolling-terms-wrapper:hover .scrolling-terms-track { animation-play-state: paused; }
.scrolling-terms-track { display: inline-block; }
.term-pill { display: inline-block; color: #fff; background-color: #333; text-decoration: none; padding: 6px 14px; margin: 0 6px; border-radius: 20px; font-size: 1.0rem; font-weight:700; transition: background-color 0.3s ease, transform 0.3s ease; }
.term-pill:hover { background-color: #555; transform: translateY(-2px); }

/* 3. 5行スクロール (流用) */
/* ... */
/* ▼▼▼ この5行を追加・復元してください ▼▼▼ */
.scrolling-terms-track.track-1 { animation: scroll-left 40s linear infinite; }
.scrolling-terms-track.track-2 { animation: scroll-left 80s linear infinite; }
.scrolling-terms-track.track-3 { animation: scroll-left 80s linear infinite; }
.scrolling-terms-track.track-4 { animation: scroll-left 300s linear infinite; }
.scrolling-terms-track.track-5 { animation: scroll-left 180s linear infinite; }

/* =================================================0============== */
/* 4. 各セクションの共通レイアウト
/* =============================================================== */
.layout-section { padding: 80px 40px; box-sizing: border-box; }
.layout-section-container {
    display: flex;
    align-items: flex-start; /* ▼▼▼ 見出しを上揃えにするための重要な指定 ▼▼▼ */
    justify-content: space-between;
    max-width: none;
    margin: 0 auto;
    padding: 0 20px;
}
.layout-section-content {
    flex-grow: 1;
    width: calc(100% - 140px);
    order: 1;
}
.layout-section-heading {
    width: 100px;
    flex-shrink: 0;
    text-align: center;
    margin-left: 40px;
    order: 2;
}
.vertical-heading {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    padding: 20px 0;
    background: #f0f0f0;
    display: inline-block;
    position: sticky;
    top: 40px;
}

/* =============================================================== */
/* ① お知らせ (パララックス)
/* =============================================================== */
.parallax-bg-wrapper {
    position: relative; /* スライドショーの基準点として */
    overflow: hidden; /* はみ出し防止 */
}
.slideshow-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* コンテンツの背景になるように */
}
.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; /* フェードイン・アウトのアニメーション */
}
.slide.is-active {
    opacity: 1; /* 表示状態 */
}

/* お知らせセクションは特別なレイアウトを適用 */
.announcements-section {
    position: relative;
    padding: 200px 40px;
    z-index: 2; /* スライドショーの上にコンテンツが乗るように */
    background: none; /* 元の背景は不要 */
}
.announcements-section .layout-section-inner-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
.announcements-section .layout-section-heading {
    position: absolute;
    top: 80px;
    right: 40px;
    width: 100px;
    text-align: center;
}
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
/* ... .horizontal-card 以降のスタイルは変更なし ... */

.horizontal-card {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 15px;
    transition: background 0.3s ease;
    text-decoration: none;
}
.horizontal-card:hover { 
    background: rgba(0,0,0,0.8); 
}

.horizontal-card__figure {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    margin-right: 15px;
    overflow: hidden !important; /* はみ出し防止を徹底 */
}

.horizontal-card__figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    transition: transform 0.4s ease !important; /* アニメーションを滑らかに */
}

/* ▼▼▼ ホバー時の拡大アニメーション ▼▼▼ */
.horizontal-card:hover .horizontal-card__figure img {
    transform: scale(1.1) !important;
}

.horizontal-card__content { 
    flex-grow: 1; 
}

.horizontal-card__meta { 
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.horizontal-card__cat {
    /* このラベルの背景色は、別のCSSで上書きされます */
    background: #ffc107; 
    color: #111; 
    font-weight: 700;
    padding: 2px 8px; 
    font-size: 0.75rem; 
    border-radius: 4px;
    text-decoration: none;
}

.horizontal-card__date {
    font-size: 0.8rem; 
    color: #ccc; 
}

.horizontal-card__title { 
    font-size: 1rem; 
    font-weight: 700; 
    line-height: 1.5; 
    margin: 0; 
}
.horizontal-card__title a {
    color: #fff;
    text-decoration: none;
}
.horizontal-card__title a:hover {
    text-decoration: underline;
}
.view-more-button-wrapper { text-align: center; margin-top: 40px; }
.view-more-button {
    display: inline-block; background: #fff; color: #111; font-weight: 700;
    text-decoration: none; padding: 12px 40px; border: 2px solid #fff;
    transition: all 0.3s ease;
}
.view-more-button:hover { background: transparent; color: #fff; transform: translateY(-2px); }

/* =============================================================== */
/* ② カレー一覧
/* =============================================================== */
.curry-list-section {
    background-color: #E8FF89;
}
.curry-grid.article-grid { grid-template-columns: repeat(4, 1fr); }


/* =============================================================== */
/* ③ ピープル一覧
/* =============================================================== */
.people-list-section {
    background-color: #ffa6b0;
}
.people-grid.article-grid { grid-template-columns: repeat(4, 1fr); }


/* =============================================================== */
/* ④ メンバー一覧
/* =============================================================== */
.author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}
.author-card {
    text-decoration: none;
    color: inherit;
    text-align: center;
}
.author-avatar {
    overflow: hidden;
    border-radius: 50%;
}
.author-avatar img {
    border-radius: 50%; width: 100%; height: auto;
    transition: transform 0.3s ease;
}
.author-card:hover .author-avatar img {
    transform: scale(1.1);
}
.author-name { font-size: 16px;font-weight: 600; margin-top: 10px; }

.members-list-section .layout-section-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =============================================================== */
/* 汎用記事カードのスタイル
/* =============================================================== */
.article-grid { display: grid; gap: 20px; }
.article-card {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #000;
}
.card-main-link {
    text-decoration: none;
    color: inherit;
    display:contents;
    flex-direction: column;
    flex-grow: 1;
}

/* ▼▼▼ ホバーの検知対象を .article-card に変更 ▼▼▼ */
.article-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}
.article-card:hover .card-title a {
    text-decoration: underline;
}

/* ▼▼▼ 合わせて .card-title のaタグのスタイルも修正 ▼▼▼ */
.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}
.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.card-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.card-content {
    padding: 10px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.category-label {
    position: absolute;
    top: 10px; left: 10px; z-index: 2;
    font-size: 0.7rem; font-weight: 700;
    color: #000; background: #ffc107;
    padding: 3px 8px; border-radius: 4px;
}
.card-title {
    font-size: 1.2rem; font-weight: 700;
    line-height: 1.2; margin: 0;
    flex-grow: 1;
}
.card-meta {
    display: flex; /* ▼▼▼ 横並びにするための指定を追加 ▼▼▼ */
    align-items: center; /* ▼▼▼ 垂直方向の中央揃え ▼▼▼ */
    margin-left:16px;
    font-size: 0.8rem;
    color: #000;
    margin-top: 8px;
    padding: 0;
    font-weight: 700;
    text-align: left;
}

.card-meta a{ color: #000;}

.curry-list-section .card-meta {
    margin-left: 0;
}
.meta-separator {
    margin: 0 0.4em; /* ▼▼▼ 区切り文字の左右に余白を追加 ▼▼▼ */
}

.card-author a {
    color: inherit;
    text-decoration: none;
}
.card-author a:hover {
    text-decoration: underline;
}


/* トップページ（page-media-home）ではないページの .card-image-wrapper に適用 */
body:not(.page-template-page-media-home) .card-meta {
    margin-left:0px;
}

/* トップページ（page-media-home）ではないページの .card-image-wrapper に適用 */
body:not(.page-template-page-media-home) .card-image-wrapper {
    aspect-ratio: 2 / 1;
}

/* =============================================================== */
/* インタビューカードの特別スタイル (▼▼▼ デザイン変更 ▼▼▼)
/* =============================================================== */
.is-interview-card .card-image-wrapper {
    aspect-ratio: 3 / 4;
}
.is-interview-card .category-label {
    display: none;
}
.is-interview-card .card-content {
    padding-left: 15px;
    position: relative;
}
.is-interview-card .card-title::before {
    content: '';
    display: block;
    position: absolute;
    top: 10px;
    left: 0;
    width: 2px;
    height: 135%;
    background-color: #000;
}
.is-interview-card .acf-overlay-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 5px;
    box-sizing: border-box;
    text-align: left;
}
.acf-text-line {
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
    width: fit-content;
}

/* テキストを隠すための白い「カーテン」の初期状態 */
.acf-text-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transform: scaleX(0); /* 初期状態では隠れている */
    transform-origin: left;
}

/* テキスト本体の初期状態 */
.is-interview-card .acf-overlay-text {
    display: inline;
    color: #000;
    background-color: #fff;
    font-weight: 700;
    font-size: 0.9em;
    line-height: 1.6;
    padding: 0.5em 0.4em;
    visibility: hidden; /* 初期状態では非表示 */
}

/* is-visibleクラスが付与されたらアニメーションを開始 */
.acf-text-line.is-visible::after {
    animation: bg-wipe-in-out 1s cubic-bezier(0.8, 0, 0.2, 1) forwards;
    animation-delay: 0.1s; /* 少し遅れて開始 */
}
.acf-text-line.is-visible .acf-overlay-text {
    animation: text-appear 0.1s linear 0.6s forwards; /* 背景が広がりきった後に表示 */
}


/* =============================================================== */
/* アニメーション定義
/* =============================================================== */
@keyframes char-reveal {
    to {
        opacity: 1;
        transform: rotateX(0) translateY(0);
    }
}

/* ▼▼▼ このスクロール用アニメーションを追加してください ▼▼▼ */
/* 共通アニメーション */
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* テキストを隠す背景が流れるアニメーション */
@keyframes bg-wipe-in-out {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left;
    }
    51% {
        transform-origin: right;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

/* テキストがフワッと現れるアニメーション */
@keyframes text-appear {
    to {
        visibility: visible;
    }
}

/* =============================================================== */
/* 6. 記事ページ (single.php) のレイアウト調整
/* =============================================================== */

article#entry{
    background-color: #e8ff89;
}

/* === A. ニュース記事以外（全幅KVレイアウト）のスタイル === */

    .one-column #main {
        max-width:unset;
    }
/* #content.one-column を基準にすることで、テーマのスタイルより優先させます */
#content.one-column #inner-content {
    max-width: none !important;
    width: 100% !important;
    padding:0 !important;
    margin: 0 !important;
    float: none !important;
}

/* ページ全体の余白をリセット */
.new-single-layout {
    margin: 0 !important;
}

/* タイトルと本文エリアを中央に配置し、適切な幅に設定 */
.new-single-layout .entry-header,
.new-single-layout .entry-content-wrapper {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* キービジュアル(KV)をブラウザ幅いっぱいに広げる */
.single-kv-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 40px;
    margin-bottom: 40px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.single-kv-wrapper .post-thumbnail {
    margin: 0;
    line-height: 0;
    width: 100%;
}
.single-kv-wrapper .post-thumbnail img {
    width: 100%;
    height: auto;
}
.entry-content-wrapper {
    padding-top: 20px;
}

.single-title{
    position: relative;
    margin: 0px 0 0;
    padding: 20px 15px 0px;
    color: #000;
    font-size: 2.5rem;
    line-height: calc(1em + 8px);
}

.entry-meta {
    color: #555;
    font-weight: 700;
    font-size: 0.8em;
    margin: 10px 0px 0px;
}


/* === B. ニュース記事（サイドバー有りレイアウト）のスタイル === */

/* #content に one-column が "無い" ことを条件にします */
#content:not(.one-column) #inner-content {
    max-width: 1344px !important; /* ご指定の最大幅 */
    margin: 0 auto !important;
}

.entry-content .wp-element-caption {
    color: #555;
}

/* =============================================================== */
/* 99. パンくずの対応
/* =============================================================== */

#breadcrumb li:first-child a span {
    display: none;
}
#breadcrumb li:first-child a:after {
    content: 'TOP';
}
#breadcrumb li:first-child a:before { display: none; }

#breadcrumb ul{
    text-align: right;
}

/* =============================================================== */
/* 99. 目次INDEX（）
/* =============================================================== */

/* SANGOの目次タイトルのアイコンを非表示にする */
#toc_container .toc_title::before {
    display: none !important;
}
#toc_container .toc_title{
    padding: 5px 0 5px 0px;
    color: #000;
}

/* =============================================================== */
/* 7. 新しいフッターのスタイル
/* =============================================================== */
.footer, .footer a, .footer .widget ul li a {
    color: #ffffff !important;
}

.custom-footer {
    background-color: #000;
    color: #fff;
    padding: 60px 40px;
}

/* ▼▼▼ 新しく追加した全体のコンテナ ▼▼▼ */
.custom-footer__container {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-logo {
    text-align: left;
    margin: 40px 0px;
    /* max-width と margin は親に移動したので削除 */
}
.footer-logo a {
    font-family: "Futura", "Jost", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    text-decoration: none;
}
.custom-footer__inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 10% 60% 23%; /* ▼▼▼ カラム幅の比率を変更 ▼▼▼ */
    gap: 40px;
}
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav li {
    margin-bottom: 10px;
}
.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
}
.footer-nav a:hover {
    text-decoration: underline;
}
.footer-widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    color: #fff;
}
.footer-col-center .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
}
.footer-col-center .tagcloud a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-col-center .tagcloud a:hover {
    text-decoration: underline;
}
.footer-col-center ul {
    list-style: none; /* ▼▼▼ リストのマーカーを非表示に ▼▼▼ */
    padding: 0;
    margin: 0;
    columns: 2;
}
.footer-search {
    margin-bottom: 30px;
}
.footer-search .search-form {
    display: flex;
}
.footer-search .search-field {
    width: 100%;
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 8px;
}
.footer-search .search-submit {
    display: none;
}

/* =============================================================== */
/* 7. 著者ページ (author.php) のスタイル
/* =============================================================== */

/* 著者ページのメインコンテンツエリアの最大幅を設定 */
.author-archive #inner-content {
    max-width: 1080px;
    padding: 40px 20px;
}

/* ▼▼▼ ページタイトルのスタイルを追加 ▼▼▼ */
.author-page-title-area {
    text-align: left;
    padding:60px 30px 0px;
    background-color: #e8ff8a;
}
.author-page-title-area h1 {
    font-family: "Futura", "Jost", sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0;
}

/* プロフィールエリア */
.author-profile-area {
    margin-bottom: 0px;
    background-color: #e8ff8a;
    padding: 40px;
}
.author-profile-card {
    display: flex;
    align-items: center;
    gap: 30px;
}
.author-avatar-large img {
    border-radius: 50%;
}
.author-name-large {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 15px;
}
.author-description p {
    margin: 0;
    line-height: 1.8;
}

/* ▼▼▼ SNSアイコンのスタイルを追加 ▼▼▼ */
.author-social-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}
.social-icon {
    display: block;
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.social-icon.twitter {
    background-image: url('https://tokyocurrymagazine.com/wp-content/uploads/2025/08/x_icon-3.png');
}
.social-icon.instagram {
    background-image: url('https://tokyocurrymagazine.com/wp-content/uploads/2025/08/instagram_icon-4.png');
}
.social-icon.youtube {
    background-image: url('https://tokyocurrymagazine.com/wp-content/uploads/2025/08/youtube_icon-2.png');
}

.youtube {
    position:unset; 
    margin: 0; 
    width: none; 
   padding-top: 0; 
}


/* 「Recent」セクション */
.author-posts-section {
    background-color: #e8ff89;
    padding: 60px 40px;
}
.author-posts-section .section-title {
    font-family: "Futura", "Jost", sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    text-align: left;
    margin: 10px 0 20px;
    
}
.author-posts-section .article-grid {
    padding: 0;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    text-decoration: none;
    color: #000;
    border: 2px solid #000;
    border-radius: 50%;
    font-weight: 700;
}
.pagination .page-numbers.current {
    background-color: #000;
    color: #fff;
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-size: 1.5rem;
}

/* 著者ページのメンバー一覧セクション */
.author-archive .members-list-section {
    background-color: #fff;
}


/* =============================================================== */
/* 8. フッターエリアの微調整
/* =============================================================== */
.area-group {
    margin-bottom: 15px; /* 各エリアグループの下に余白を追加 */
}
.area-group a {
    color: #fff;
    text-decoration: none;
    font-size: 1.0rem;
    font-weight: 600;
    word-break: keep-all; /* ▼▼▼ この1行を追加 ▼▼▼ */
}
.area-group a:hover {
    text-decoration: underline;
}

/* =============================================================== */
/* ★★★ フルスクリーンハンバーガーメニューのスタイル ★★★
/* =============================================================== */

/* メニューを開いている間、背景のスクロールを固定 */
body.is-menu-open {
    overflow: hidden;
}

/* ハンバーガーボタン本体 */
.fullscreen-hamburger {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}
.fullscreen-hamburger span {
    display: block;
    position: absolute;
    left: 10px;
    width: 30px;
    height: 3px;
    background-color: #ff9901;
    transition: all 0.4s ease;
}
.fullscreen-hamburger.is-active span {
    background-color: #000;
}
.fullscreen-hamburger span:nth-child(1) { top: 14px; }
.fullscreen-hamburger span:nth-child(2) { top: 24px; }
.fullscreen-hamburger span:nth-child(3) { top: 34px; }

.fullscreen-hamburger.is-active span:nth-child(1) {
    top: 24px;
    transform: rotate(45deg);
}
.fullscreen-hamburger.is-active span:nth-child(2) {
    opacity: 0;
}
.fullscreen-hamburger.is-active span:nth-child(3) {
    top: 24px;
    transform: rotate(-45deg);
}

/* フルスクリーンナビゲーションパネル */
.fullscreen-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    color: #000;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block; /* ▼▼▼ 中央揃えを解除し、ブロック要素に戻す ▼▼▼ */
}
.fullscreen-nav.is-active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}
.fullscreen-nav__inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px;
}

/* 閉じるボタン */
.fullscreen-nav__close {
    position: fixed;
    top: 30px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 102;
    color: #000;
    font-size: 3rem;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.fullscreen-nav.is-active .fullscreen-nav__close {
    opacity: 1;
}


/* メニュー内のフッタースタイル */
.fullscreen-nav .footer-logo a,
.fullscreen-nav .footer-widget-title,
.fullscreen-nav .area-group a,
.fullscreen-nav .footer-nav a {
    color: #000;
}
.fullscreen-nav .footer-search .search-field {
    background-color: #f0f0f0;
    border-color: #ccc;
    color: #000;
}
.fullscreen-nav .area-group {
    margin-bottom: 25px;
}

/* =============================================================== */
/* 8. CURRY一覧ページ (page-curry.php) のスタイル
/* =============================================================== */
.page-template-page-curry {
    background-color: #e8ff89;
}
.page-template-page-curry .section-title {
    font-family: "Futura", "Jost", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 30px;
    padding: 0 40px;
}

/* =============================================================== */
/* 8. カテゴリーアーカイブページのスタイル
/* =============================================================== */
.category-archive-content {
    margin-bottom: 30px;
    line-height: 1.8;
    margin-top: -34px;
    font-weight: 600;
}

/* =============================================================== */
/* 13. WE AREページ のスタイル
/* =============================================================== */
.page-we-are-content {
    margin-bottom: 80px;
}

/* =============================================================== */
/* 12. WordPress テーブルのスタイル調整 (最終FIX v2)
/* =============================================================== */

/* 記事本文内のテーブルのすべての罫線を #555 にする */
.entry-content table,
.entry-content th,
.entry-content td {
    border: 1px solid #555 !important;
}

/* セル同士の二重線をなくす */
.entry-content table {
    border-collapse: collapse !important;
}

/* テーマがtrに直接下線を引いている場合の上書き */
.entry-content tr {
    border-bottom: 1px solid #555 !important;
}

/* =============================================================== */
/* 13. WordPress リストの枠線を削除
/* =============================================================== */

/* 記事本文内のul, olタグに適用されるスタイルを上書き */
.entry-content ul,
.entry-content ol {
    border: none !important;
}

/* リスト項目のスタイルを調整 */
.entry-content ul li,
.entry-content ol li {
    padding-left: 1.2em !important; /* 内側の余白を調整してインデントを再現 */
}



#content {
    padding-bottom: 0em;
    margin-top:60px !important;
}

/* =============================================================== */
/* 15. 特定の著者を非表示にする
/* =============================================================== */

/* 例としてユーザー名（スラッグ）が "soratoworks" の場合 */
.author-card.user-sampleuser,
.author-card.user-tcm_004,
.author-card.user-tcm_003 {
    display: none;
}

/* =============================================================== */
/* 17. カテゴリーラベルの個別スタイル
/* =============================================================== */

/* 「news」カテゴリーの背景色 */
.category-label.category-news {
    background-color: #a0e6ff; /* 水色 */
}

/* 「イベントレポート」カテゴリーの背景色 (スラッグが event-report の場合) */
.category-label.category-report {
    background-color: #ffc0cb; /* ピンク */
}

/* =============================================================== */
/* 18. SANGO「NEW」マークの位置調整
/* =============================================================== */

/* SANGOのNEWマークを画像右上に配置 */
.sng-new-mark {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

/* =============================================================== */
/* 19. お知らせ欄のカテゴリーラベル背景色
/* =============================================================== */

/* 「お知らせ」セクション内のカテゴリーラベルに限定してスタイルを適用 */
.announcements-grid .category-label {
    background-color: #a0e6ff !important; /* 水色 */
    color: #000 !important; /* 文字色を黒に指定 */
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
}

/* =============================================================== */
/* 20. 横長カードのメタ情報レイアウト
/* =============================================================== */
.card-top-line {
    display: flex;
    align-items: center;
    gap: 10px; /* カテゴリーと日付の間の余白 */
}



/* PC表示の時だけ3カラムにする */
@media (min-width: 769px) {
    .fullscreen-nav .custom-footer__inner {
        display: grid;
        grid-template-columns: 25% 45% 30%;
        gap: 40px;
        max-width: 1300px;
        margin: 40px auto 0;
    }
}





















/* =============================================================== */
/* 99. SP向けレスポンシブ対応
/* =============================================================== */
@media (max-width: 768px) {

  /* ▼▼▼ 記事ページのKVをSP表示用に調整 ▼▼▼ */
    /* より詳細なセレクタで指定し、PC用のスタイルを確実に上書きします */
    body.single:not(.category-news) .single-kv-wrapper {
        display: block; /* PC用のflexを解除 */
        height: 75vh;   /* 縦長の比率にするため高さを指定 */
        max-height: 75vh;
    }
    body.single:not(.category-news) .single-kv-wrapper .post-thumbnail {
        height: 100%;
    }
    body.single:not(.category-news) .single-kv-wrapper .post-thumbnail img {
        width: 100%;
        height: 100%; /* 高さをコンテナに合わせる */
        object-fit: cover; /* 縦横比を保ったまま領域を埋める */
        object-position: center center; /* 中央を基準にトリミング */
    }


/* =============================================================== */
/* 99. ヘッダー対応
/* =============================================================== */
.media-header__logo { margin-top: 10px;}
.media-header__logo-main{  font-size: 1.2rem;}
.fullscreen-hamburger {top: 12px;}
.media-header__inner { padding: 10px 20px;}

/* =============================================================== */
/* 99. KVセクション対応
/* =============================================================== */

.kv-section {height: 70vh;}
.kv-content {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width:100%;
    padding:8px;
}
.kv-title{ font-size: 1.2rem;}

.kv-acf-wrapper {
    display: inline-block;
}

.kv-acf-text{
    font-size: 0.9rem;
}

/* =============================================================== */
/* 99. 記事タイトル
/* =============================================================== */

/* タイトルと本文エリアを中央に配置し、適切な幅に設定 */
.new-single-layout .entry-header,
.new-single-layout .entry-content-wrapper {
    padding: 0px 5px;
}

.single-title{
    font-size: 1.75rem;
}

/* =============================================================== */
/* 99. 全セクション共通の調
/* =============================================================== */

    .layout-section { padding: 40px 0px }
    .layout-section-container {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    /* ▼▼▼ SP用の新しい見出しスタイル ▼▼▼ */
    .layout-section-heading {
        order: -1;
        width: 100%;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 15px; /* 線とテキストの間の隙間 */
        margin-left:-12px;
    }
    /* 見出しの左側の黒い線 */
    .layout-section-heading::before {
        content: '';
        display: block;
        height: 1px;
        flex-grow: 1; /* 自動で幅を伸ばす */
        background-color: #000;
    }
    .vertical-heading {
        writing-mode: horizontal-tb;
        display: block;
        padding: 0; /* paddingをリセット */
        background: none; /* 背景色を削除 */
        font-size: 1rem; /* フォントサイズを小さく */
        letter-spacing: 0.1em;
        flex-shrink: 0; /* テキストが縮まないように */
        position: static; /* stickyを解除 */
    }
    
    .layout-section-content {
        width: 100%;
        order: 0;
        min-width: 0;
    }

/* =============================================================== */
/* 99. ▼▼▼ 投稿スクロールのSP表示を修正
/* =============================================================== */

/* ▼▼▼ 投稿スクローラーのSP表示を修正 ▼▼▼ */
    .post-scroller-section {
        overflow-x: auto; /* 横スクロールを許可 */
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch; /* iOSでの慣性スクロール */
    }
    /* スクロールバー自体は非表示にする */
    .post-scroller-section::-webkit-scrollbar {
        display: none;
    }
    .post-scroller-track {
        display: flex; /* flexboxで横並び */
        width: max-content; /* 中身の幅に合わせて広がる */
        gap: 15px; /* カード間の隙間 */
        animation: none; /* SPでは自動スクロールを停止 */
    }
    .scroller-card {
        width: 70vw; /* カード1枚の幅を画面の70%に */
        flex-shrink: 0; /* カードが縮まないように */
        margin: 0; /* gapで指定するのでマージンは不要 */
    }

/* =============================================================== */
/* 99. ▼▼▼ お知らせエリアのSP表示を修正
/* =============================================================== */

    /* 5件目以降の記事を非表示にし、4件だけ表示する */
    .announcements-grid .horizontal-card:nth-child(n+5) {
        display: none;
    }

    .horizontal-card__figure {
    width: 100px;
    height: 100px;
    }

    .announcements-section .layout-section-heading {
    top: -2px;
    color: #FFF;
    }
    
/* =============================================================== */
/* ① お知らせ (パララックス) (▼▼▼ デザイン変更 ▼▼▼)
/* =============================================================== */
.parallax-bg-wrapper {
    background-attachment: fixed; background-position:bottom;
    background-repeat: no-repeat; background-size:cover;
}

    .announcements-grid {
        grid-template-columns: 1fr; /* PCでは2列、SPでは1列に */
        gap: 15px;
    }
    .announcements-grid .hide-on-sp {
        display: none;
    }
    /* 5件目以降の記事を非表示にし、4件だけ表示する */
    .announcements-grid .horizontal-card:nth-child(n+5) {
        display: none;
    }

    

/* =============================================================== */
/* 99. ▼▼▼ カレー一覧のSP表示を修正 ▼▼▼
/* =============================================================== */    
  .curry-list-section .layout-section-heading {
        display: flex; /* PC用の縦書き見出しは非表示に */
    }
    .curry-list-section .layout-section-content {
        order: 0; /* 表示順をリセット */
        width: 100%;
    }
    .curry-grid.article-grid {
        grid-template-columns: 1fr; /* 1列にして縦に並べる */
    }
    /* 5件目以降は非表示にする */
    .curry-grid.article-grid .article-card:nth-child(n+9) {
        display: none;
    }

     .curry-list-section .layout-section-container { padding: 0px 10px 0px 10px; }

 
/* =============================================================== */
/* 99. ▼▼▼ ピープル一覧のSP表示を修正 ▼▼▼
/* =============================================================== */
    .people-grid-wrapper {
        overflow-x: auto; /* 横スクロールを許可 */
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch; /* iOSでの慣性スクロール */
    }
    /* スクロールバー自体は非表示にする */
    .people-grid-wrapper::-webkit-scrollbar {
        display: none;
    }
    .people-grid {
        display: flex;
        width: max-content; /* 中身の幅に合わせて広がる */
        gap: 15px;
    }
    .people-grid .article-card {
        width: 70vw; /* カード1枚の幅を画面の70%に */
        flex-shrink: 0; /* カードが縮まないように */
    }

    .people-list-section .layout-section-container { padding-left: 10px;}

     /* ▼▼▼ SPでパンくずを非表示にする ▼▼▼ */
    .breadcrumb {
        display: none;
    }

/* =============================================================== */
/* 99. ▼▼▼ フルスクリーンナビ ▼▼▼
/* =============================================================== */

    .fullscreen-nav__inner {
    padding: 20px;
}

.fullscreen-nav__inner .footer-logo{
    margin:0px;
}

.fullscreen-nav__close {
    top:0px;
}

/* =============================================================== */
/* 99. ▼▼▼ フッター ▼▼▼
/* =============================================================== */

        /* フッターのSP対応 */
    .custom-footer{
        padding: 60px 20px;
    }

    .custom-footer__inner {
        grid-template-columns: 1fr; /* SPでは1カラムに */
    }
    .footer-col-center ul {
        columns: 1; /* 1段組に戻す */
    }

    .footer-logo a {
    font-size: 1.2rem;
    }


/* =============================================================== */
/* 99. ▼▼▼ フルスクリーン▼▼▼
/* =============================================================== */
    .fullscreen-nav .custom-footer__inner {
        display: block;
    }
    .fullscreen-nav .custom-footer__col {
        margin-bottom: 40px;
    }

/* =============================================================== */
/* 99. ▼▼▼ 著者▼▼▼
/* =============================================================== */

/* ▼▼▼ 著者ページのSP表示を調整 ▼▼▼ */
    .author-profile-card {
        flex-direction: column; /* PCでは横並び、SPでは縦並びに変更 */
        text-align: center;     /* プロフィール文などを中央揃えに */
    }
    .author-name-large {
        font-size: 1.5rem; /* SP用に少しフォントサイズを調整 */
    }

    .author-description{
            text-align: left;
    }

    .author-social-links{
           justify-content: center;
    }

    .author-posts-section{
        padding: 10px 20px;
    }
    /* =============================================================== */
/* 14. SP用スクロール促進アニメーション
/* =============================================================== */

/* 1. ピクッと動くアニメーションの定義 */
@keyframes peek-a-boo-scroll {
  0% {
    transform: translateX(0); /* 開始位置 */
  }
  50% {
    transform: translateX(-40px); /* 25px左に動く */
  }
  100% {
    transform: translateX(0); /* 開始位置に戻る */
  }
}

/* 2. SP表示の時だけ、スクロールトラックにアニメーションを適用 */
@media (max-width: 768px) {
  .post-scroller-track {
    /* アニメーション名, 時間, 動き方, 開始までの遅延時間, 繰り返し回数 */
    animation: peek-a-boo-scroll 1.0s ease-in-out 1.3s 1;
  }
}
}