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

/* =============================================================== */
/* ★★★ 新しい専用ヘッダーのスタイル (変更なし) ★★★
/* =============================================================== */
.media-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}
.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: 30px;
}
.media-header__logo a {
    text-decoration: none;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.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: 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;
}
.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;
}
.kv-meta-top {
    margin-bottom: 15px;
}
.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;
}
.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;
    text-shadow: none;
}
.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-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-text {
    display: inline-block;
    color: #000;
    background-color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.8;
    padding: 0.2em 0.4em;
    visibility: hidden;
}
.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: #111; color: #fff; 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: 0.8rem; 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 65s linear infinite; }
.scrolling-terms-track.track-3 { animation: scroll-left 80s linear infinite; }
.scrolling-terms-track.track-4 { animation: scroll-left 160s linear infinite; }
.scrolling-terms-track.track-5 { animation: scroll-left 125s linear infinite; }

/* =============================================================== */
/* 4. 各セクションの共通レイアウト
/* =============================================================== */
.layout-section {
    padding: 80px 0; /* 左右のpaddingはコンテナで制御するため削除 */
    position: relative; /* 見出しを配置する基準点 */
}
.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: 60px; 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;
}

/* =============================================================== */
/* 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; text-decoration: none; padding: 15px; transition: background 0.3s ease;
}
.horizontal-card:hover { background: rgba(0,0,0,0.8); }
.horizontal-card__figure {
    width: 200px; height: 110px;
    flex-shrink: 0; margin: 0 15px 0 0;
    overflow: hidden;
}
.horizontal-card__figure img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.horizontal-card:hover .horizontal-card__figure img {
    transform: scale(1.1);
}
.horizontal-card__content { flex-grow: 1; }
.horizontal-card__meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: #ccc; margin-bottom: 8px; }
.horizontal-card__title { font-size: 1rem; font-weight: 700; line-height: 1.5; margin: 0; }
.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(120px, 1fr));
    gap: 20px;
}
.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-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;
}

.card-main-link:hover .card-image-wrapper img {
    transform: scale(1.1);
}
.card-main-link:hover .card-title {
    text-decoration: underline;
}
.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.8rem; font-weight: 700;
    line-height: 1.4; 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;
}

/* =============================================================== */
/* インタビューカードの特別スタイル (▼▼▼ デザイン変更 ▼▼▼)
/* =============================================================== */
.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;
    }
}

/* 共通アニメーション */
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}


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

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

/* ハンバーガーボタン本体 */
.fullscreen-hamburger {
    position: fixed; /* 画面に固定 */
    top: 30px;
    right: 40px;
    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: #fff;
    transition: transform 0.4s ease, top 0.4s ease, opacity 0.4s ease;
}
.fullscreen-hamburger span:nth-child(1) {
    top: 14px;
}
.fullscreen-hamburger span:nth-child(2) {
    top: 24px;
}

/* ハンバーガーが開いた時（バツ印になる）のスタイル */
.fullscreen-hamburger.is-active span:nth-child(1) {
    top: 24px;
    transform: rotate(45deg);
}
.fullscreen-hamburger.is-active span:nth-child(2) {
    top: 24px;
    transform: rotate(-45deg);
}

/* フルスクリーンナビゲーションパネル */
.fullscreen-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 初期状態は非表示 */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
}
.fullscreen-nav.is-active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

/* メニューリスト */
.fullscreen-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}
.fullscreen-nav__list li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
/* メニューを開いた時に、リスト項目が時間差で表示される */
.fullscreen-nav.is-active li {
    opacity: 1;
    transform: translateY(0);
}
.fullscreen-nav.is-active li:nth-child(1) { transition-delay: 0.3s; }
.fullscreen-nav.is-active li:nth-child(2) { transition-delay: 0.4s; }
.fullscreen-nav.is-active li:nth-child(3) { transition-delay: 0.5s; }
.fullscreen-nav.is-active li:nth-child(4) { transition-delay: 0.6s; }

.fullscreen-nav__list a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    padding: 10px;
    display: block;
}

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

/* =============================================================== */
/* 99. ヘッダー対応
/* =============================================================== */

.media-header__logo-main{  font-size: 1.1rem;}
.fullscreen-hamburger {top: 42px;}
.media-header__inner { padding: 15px 20px;}
/* =============================================================== */
/* 99. KVセクション対応
/* =============================================================== */

.kv-section {height: 70vh;}
.kv-content {
    position: absolute;
    bottom: 0px;
    left: 0px;
}
.kv-title{ font-size: 1.6rem;}

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

    .layout-section { padding: 40px 0px }
    .layout-section-container {
        display: block; /* SPではflex/gridを解除 */
        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表示を修正
/* =============================================================== */

     
    .announcements-grid {
        grid-template-columns: 1fr; /* PCでは2列、SPでは1列に */
        gap: 15px; /* 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+5) {
        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; ｝
    }
}