/*
  Theme Name: MURAKAMI FOREST LIFE
  Description: 村上市 林業ポータルサイト用オリジナルテーマ
  Author: Your Name
*/

:root {
    --color-primary: #1b4533;
    --color-primary-light: #28845a;
    --color-secondary: #5fc191;
    --color-accent: #d97706;
    --color-accent-hover: #b45309;
    --color-bg: #f9fafb;
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --font-main: "Zen Maru Gothic", sans-serif;
    --font-accent: "Kaisei Tokumin", serif;
    --font-en: "Rye", serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* はみ出しによる横揺れを完全に防ぐ */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    font-style: normal;
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

.section-padding {
    padding: clamp(60px, 10vw, 100px) 0;
}

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

.section-title-wrap {
    margin-bottom: clamp(2rem, 5vw, 3rem);
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-en);
    color: var(--color-white);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.section-title {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 900;
    color: var(--color-white);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* 汎用ボタンスタイル */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 3vw, 12px) clamp(24px, 5vw, 32px);
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    gap: 8px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(27, 69, 51, 0.2);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-white:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bg-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.bg-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.bg-parallax>.container {
    position: relative;
    z-index: 1;
}

/* 各セクションの背景画像（全5種類） */
.parallax-1 {
    background-image: url('https://murakamiforest.jp/wp-content/uploads/2026/07/bg_1.jpg');
}

.parallax-2 {
    background-image: url('https://murakamiforest.jp/wp-content/uploads/2026/07/bg_2.jpg');
}

.parallax-3 {
    background-image: url('https://murakamiforest.jp/wp-content/uploads/2026/07/bg_5.jpg');
}

.parallax-4 {
    background-image: url('https://murakamiforest.jp/wp-content/uploads/2026/07/bg_4.jpg');
}

.parallax-5 {
    background-image: url('https://murakamiforest.jp/wp-content/uploads/2026/07/bg_3.jpg');
}

@media (max-width: 768px) {
    .bg-parallax {
        background-attachment: scroll;
        /* スマホでは元背景をリセット */
        background-image: none !important;
        clip-path: inset(0 0 0 0);
        /* 描画領域をセクション内に制限 */
    }

    .bg-parallax::before {
        /* 暗幕レイヤーをzIndex:1へ */
        z-index: 1;
    }

    .bg-parallax::after {
        /* 疑似要素を使って固定背景を作成 */
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        z-index: 0;
        pointer-events: none;
        transform: translateZ(0);
        /* ハードウェアアクセラレーション */
    }

    .bg-parallax>.container {
        z-index: 2;
    }

    /* スマホ用の軽量画像割り当て */
    .parallax-1::after {
        background-image: url('https://murakamiforest.jp/wp-content/uploads/2026/07/bg_1.jpg');
    }

    .parallax-2::after {
        background-image: url('https://murakamiforest.jp/wp-content/uploads/2026/07/bg_2.jpg');
    }

    .parallax-3::after {
        background-image: url('https://murakamiforest.jp/wp-content/uploads/2026/07/bg_5.jpg');
    }

    .parallax-4::after {
        background-image: url('https://murakamiforest.jp/wp-content/uploads/2026/07/bg_4.jpg');
    }

    .parallax-5::after {
        background-image: url('https://murakamiforest.jp/wp-content/uploads/2026/07/bg_3.jpg');
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(60px, 8vh, 80px);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 clamp(15px, 5vw, 40px);
}

.logo img {
    height: clamp(30px, 5vh, 50px);
    object-fit: contain;
}

.nav-links {
    font-family: var(--font-en);
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: color 0.3s;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

header.scrolled .nav-links a {
    color: var(--color-text-main);
    text-shadow: none;
}

.nav-links a:hover {
    color: var(--color-primary-light);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-white);
    cursor: pointer;
}

header.scrolled .mobile-menu-btn {
    color: var(--color-text-main);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-cta {
        display: none;
    }
}

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(27, 69, 51, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    z-index: 1;
    padding: 0 20px;
    width: 100%;
}

.hero-logo-img {
    width: 100%;
    max-width: clamp(300px, 54vw, 720px);
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.hero-title-secondary {
    display: block;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
}

.hero-text {
    font-size: clamp(0.95rem, 1.5vw, 1.25rem);
    margin-top: 3rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.75);
    font-weight: 500;
    line-height: 2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
    z-index: 1;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-15px) translateX(-50%);
    }

    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

.immersive-text-block {
    max-width: 960px;
    margin: 0 auto clamp(3rem, 8vw, 5rem);
    padding: clamp(1rem, 5vw, 2rem);
    text-align: center;
    position: relative;
}

.immersive-text-block p {
    font-size: clamp(1rem, 3vw, 1.15rem);
    line-height: 2.2;
    margin-bottom: clamp(2rem, 8vw, 3.5rem);
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.immersive-text-block p:last-child {
    margin-bottom: 0;
}

.immersive-highlight {
    font-size: clamp(1.15rem, 4vw, 1.35rem);
    font-weight: 700;
    color: var(--color-secondary);
    display: inline-block;
    margin: 0.5rem 0;
}

.immersive-conclusion {
    font-size: clamp(1.1rem, 3.5vw, 1.3rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: clamp(2rem, 8vw, 3.5rem);
}

.immersive-conclusion span {
    color: var(--color-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 4vw, 2rem);
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    padding: clamp(1.5rem, 5vw, 2.5rem);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.stat-icon {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--color-primary);
    width: 45px;
    text-align: center;
}

.stat-title {
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0;
}

.stat-value {
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.stat-value-unit {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
}

.stat-desc {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.stat-source {
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.info-graph-area {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-bar-wrap {
    flex-grow: 1;
    background: #e5e7eb;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.info-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-out;
}

.info-percentage {
    font-weight: 900;
    color: var(--color-primary);
}

.info-highlight-box {
    background: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
    justify-content: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.info-highlight-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.info-highlight-value {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 900;
    color: var(--color-primary-light);
    margin-left: 10px;
}

.pie-wrap {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 1rem;
}

.pie-chart {
    width: clamp(80px, 20vw, 100px);
    height: clamp(80px, 20vw, 100px);
    border-radius: 50%;
    background: #e5e7eb;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pie-chart.filled {
    background: conic-gradient(var(--color-accent) 0% 31.4%, #e5e7eb 31.4% 100%);
}

.pie-inner {
    width: 70%;
    height: 70%;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--color-primary);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.pie-text {
    margin: 0;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.2;
}

.tree-icons {
    display: flex;
    gap: 10px;
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 1rem;
}

.tree-icon-item {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.tree-icon-sugi {
    color: var(--color-primary-light);
}

.tree-icon-hinoki {
    color: var(--color-secondary);
}

.tree-icon-koyoju {
    color: var(--color-accent);
}

.is-visible .tree-icon-item {
    opacity: 1;
    transform: translateY(0);
}

.building-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.building-icon-item.active {
    color: var(--color-accent);
}

.opacity-50 {
    opacity: 0.5;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: clamp(420px, 65vw, 550px);
    margin: 0 auto clamp(2rem, 6vw, 3rem);
    perspective: 1200px;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-card {
    position: absolute;
    width: clamp(280px, 65vw, 360px);
    /* ←ここを大きくしました */
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transform: scale(0.6) translateX(0);
}

.carousel-card .message-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: var(--color-bg);
    height: 100%;
    margin: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.carousel-card.pos-center {
    transform: scale(1.1) translateX(0);
    z-index: 10;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.carousel-card.pos-center .message-card {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.carousel-card.pos-left {
    transform: scale(0.85) translateX(-110%);
    z-index: 5;
    opacity: 0.7;
    visibility: visible;
    pointer-events: auto;
    filter: blur(1px);
}

.carousel-card.pos-left:hover {
    opacity: 0.9;
    filter: blur(0);
}

.carousel-card.pos-right {
    transform: scale(0.85) translateX(110%);
    z-index: 5;
    opacity: 0.7;
    visibility: visible;
    pointer-events: auto;
    filter: blur(1px);
}

.carousel-card.pos-right:hover {
    opacity: 0.9;
    filter: blur(0);
}

.carousel-card.pos-hidden {
    transform: scale(0.6) translateX(0);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: clamp(35px, 8vw, 45px);
    height: clamp(35px, 8vw, 45px);
    border-radius: 50%;
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--color-primary);
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

#carousel-prev {
    left: 10px;
}

#carousel-next {
    right: 10px;
}

@media (min-width: 768px) {
    #carousel-prev {
        left: 30px;
    }

    #carousel-next {
        right: 30px;
    }
}

@media (max-width: 900px) {
    .carousel-card.pos-left {
        transform: scale(0.8) translateX(-90%);
    }

    .carousel-card.pos-right {
        transform: scale(0.8) translateX(90%);
    }
}

@media (max-width: 768px) {
    .carousel-card.pos-left {
        transform: scale(0.75) translateX(-65%);
        opacity: 0.8;
        filter: blur(2px);
    }

    .carousel-card.pos-right {
        transform: scale(0.75) translateX(65%);
        opacity: 0.8;
        filter: blur(2px);
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--color-secondary);
    width: 20px;
    border-radius: 5px;
}

.card-header {
    height: clamp(150px, 25vw, 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--color-white);
}

.card-header.work {
    background-color: var(--color-primary-light);
}

.card-header.life {
    background-color: #7b8b82;
}

.card-header.culture {
    background-color: var(--color-primary);
}

.card-header.future {
    background-color: #3b82f6;
}

.card-header.community {
    background-color: var(--color-accent);
}

.card-header i.bg-icon {
    position: absolute;
    font-size: clamp(5rem, 15vw, 8rem);
    right: -20px;
    bottom: -20px;
    opacity: 0.15;
}

.card-header h4 {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    font-weight: 700;
    z-index: 2;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 5px;
}

.card-body {
    padding: clamp(1rem, 3vw, 2rem);
}

.card-body h5 {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    line-height: 1.5;
    /* 行の高さを指定 */
    height: 3em;
    /* 2行分の高さを強制的に確保 (1.5 × 2) */
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 700;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* 2行で3点リーダーアウト */
    overflow: hidden;
}

.card-body p {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: var(--color-text-main);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    /* 3行制限 */
    overflow: hidden;
}

.nextgen-intro {
    max-width: 960px;
    margin: 0 auto 3rem;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    line-height: 2;
    text-align: center;
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
}

.nextgen-intro-title {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
    text-align: center;
}

.nextgen-intro-title img {
    max-width: 240px;
    margin: 0 auto;
}

.insta-link-wrap {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.insta-icon {
    font-size: 2rem;
    color: #E1306C;
}

.insta-text {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.insta-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 30vw, 160px), 1fr));
    gap: clamp(10px, 2vw, 15px);
    margin-bottom: 3rem;
}

.insta-item {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.insta-item:hover img {
    transform: scale(1.1);
}

/* .insta-item::after { content: '\f16d'; font-family: 'Font Awesome 6 Brands'; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; color: white; font-size: 2rem; opacity: 0; transition: opacity 0.3s; } */
.insta-item:hover::after {
    opacity: 1;
}

.info-card {
    padding: clamp(1.5rem, 5vw, 4rem);
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

.info-card-title {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 900;
}

.info-card-desc {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.info-card-desc strong {
    font-size: clamp(1.125rem, 2.75vw, 1.25rem);
    margin-bottom: 0.5rem;
    display: block;
}

.border-top-dashed {
    border-top: 1px dashed #ccc;
    padding-top: clamp(1.5rem, 5vw, 2rem);
    margin-top: clamp(1.5rem, 5vw, 2rem);
}

.tv-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tv-logo-img {
    max-width: 100%;
    width: clamp(200px, 50vw, 300px);
    height: auto;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background-color: #000;
}

.video-title {
    background: var(--color-primary);
    color: white;
    padding: 10px 15px;
    font-weight: 700;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    text-align: center;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
}

.video-responsive video,
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-desc {
    color: white;
    margin-top: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.post-thumb {
    height: clamp(160px, 35vw, 200px);
    position: relative;
    overflow: hidden;
}

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

.post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.post-category.bg-blue {
    background: #3b82f6;
}

.post-content {
    padding: clamp(1.2rem, 3.5vw, 2rem);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: block;
}

.post-title {
    font-size: clamp(1.1rem, 3.5vw, 1.2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-excerpt {
    font-size: clamp(0.9rem, 2.5vw, 0.95rem);
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.external-icon {
    align-self: flex-end;
    color: #ccc;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.post-card:hover .external-icon {
    color: var(--color-primary);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-header {
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary);
    font-size: clamp(0.95rem, 3vw, 1.05rem);
}

.faq-header i {
    transition: transform 0.3s;
    color: var(--color-accent);
}

.faq-content {
    padding: 0 clamp(1.5rem, 4vw, 2rem);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--color-text-main);
    font-size: clamp(0.9rem, 2.5vw, 0.95rem);
    line-height: 1.6;
}

.faq-item.active .faq-content {
    padding: 0 clamp(1.5rem, 4vw, 2rem) clamp(1rem, 3vw, 1.5rem);
    max-height: 500px;
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
}

.footer-cta {
    background: linear-gradient(135deg, #1b4533 0%, #0d271c 100%);
    padding: clamp(4rem, 10vw, 6rem) 0;
    text-align: center;
    color: white;
}

.footer-cta-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-cta-desc {
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    line-height: 1.8;
}

.footer-cta-buttons {
    display: flex;
    flex-direction: column;
    /* スマホでは縦並びにしてボタンを大きく見せる */
    align-items: center;
    gap: clamp(1.2rem, 4vw, 2rem);
}

@media (min-width: 768px) {
    .footer-cta-buttons {
        flex-direction: row;
        /* PCでは横並び */
        justify-content: center;
    }
}

.footer-cta-buttons .btn {
    /* ボタン全体をかなり大きくする */
    padding: clamp(15px, 4vw, 22px) clamp(20px, 5vw, 40px);
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    font-weight: 800;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3); /* 浮き出し感を強める */
}
@media (min-width: 768px) {
    .footer-cta-buttons .btn {
        width: auto;
    }
}

.main-footer {
    background-color: #000000;
    color: #9ca3af;
    padding: clamp(3rem, 8vw, 4rem) 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1.5fr;
    gap: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-logo-wrap {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.footer-logo-img {
    height: clamp(48px, 8.5vw, 72px);
    object-fit: contain;
}

.footer-desc {
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
}

.footer-heading {
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--color-white);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    font-size: 0.85rem;
}

.news-drawer-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: clamp(50px, 12vw, 65px);
    height: clamp(50px, 12vw, 65px);
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.4);
    border: none;
    transition: transform 0.3s;
}

.news-drawer-btn:hover {
    transform: scale(1.1);
}

.news-drawer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.news-drawer-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: min(350px, calc(100vw - 60px));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 9998;
    padding: 1.5rem;
    transform: translateX(150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    will-change: transform, opacity;
}

.news-drawer-panel.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.news-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.news-drawer-header h5 {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 700;
    margin: 0;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
}

.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.news-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.news-date {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-bottom: 3px;
}

.news-list a {
    font-size: 0.95rem;
    color: var(--color-text-main);
    font-weight: 500;
    transition: color 0.3s;
}

.news-list a:hover {
    color: var(--color-accent);
}

.news-more {
    text-align: right;
    margin-top: 15px;
}

.news-more a {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 700;
}

/* -------------------------------------------
           インラインスタイル移行用ユーティリティクラス
           ------------------------------------------- */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.stats-section-title {
    margin-bottom: 2rem;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.w-85-1 {
    width: 85.1%;
}

.stat-value-lg {
    font-size: clamp(1.4rem, 4vw, 1.6rem);
}

.stat-value-md {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
}

.mb-2rem {
    margin-bottom: 2rem;
}

.mt-3rem {
    margin-top: 3rem;
}

.mr-5 {
    margin-right: 5px;
}

.btn-outline {
    border: 2px solid var(--color-primary);
}

/* フッターサイトマップ用グリッド */
.footer-sitemap-grid {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    gap: 1rem;
}


/* ==========================================================================
   Single Page (記事詳細・2カラム・サイドバー用)
   ========================================================================== */
.site-main {
    padding-top: clamp(80px, 12vh, 120px);
    background-color: var(--color-bg);
}

/* 2カラムレイアウト */
.two-column-layout {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: clamp(60px, 10vw, 100px);
}

.main-column {
    flex: 1 1 0;
    min-width: 0;
    /* 本文の読みやすさを考慮し、最大幅を制限 */
    max-width: 800px;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .two-column-layout {
        flex-direction: column;
    }

    .main-column {
        max-width: 100%;
    }

    .sidebar {
        width: 100%;
    }
}

/* パンくずリスト */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: var(--color-primary);
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

/* 記事ヘッダー */
.article-header {
    margin-bottom: 2.5rem;
}

.article-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .article-meta {
        justify-content: center;
    }
}

.article-meta .post-category {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
}

.article-title {
    font-family: var(--font-accent);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.5;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .article-title {
        text-align: center;
    }
}

/* アイキャッチ */
.article-thumbnail {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.article-thumbnail img {
    width: 100%;
    height: auto;
    /* max-height: 500px; */
    object-fit: cover;
}

/* 本文 (WordPressのエディタ出力用スタイル) */
.article-content {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 2;
    color: var(--color-text-main);
}

.article-content h2 {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 4rem 0 1.5rem;
    padding-left: 15px;
    border-left: 5px solid var(--color-primary);
}

.article-content h3 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    font-weight: 700;
    color: var(--color-text-main);
    margin: 3rem 0 1rem;
    border-bottom: 2px dashed #e5e7eb;
    padding-bottom: 10px;
}

.article-content p {
    margin-bottom: 1.8rem;
}

.article-content img {
    border-radius: var(--border-radius-sm);
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: auto;
}

.article-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(217, 119, 6, 0.3);
    text-underline-offset: 4px;
    transition: all 0.3s;
}

.article-content a:hover {
    color: var(--color-accent-hover);
    text-decoration-color: var(--color-accent-hover);
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.5rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--color-secondary);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--color-text-light);
    font-style: italic;
    background: white;
    padding: 1rem;
    border-radius: 4px;
}

/* シェアボタン */
.article-share {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.share-label {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none !important;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.share-tw {
    background-color: #000000;
}

.share-fb {
    background-color: #1877F2;
}

.share-line {
    background-color: #06C755;
}

/* サイドバー */
.sidebar-widget {
    background: #fff;
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-secondary);
}

.sidebar-banner {
    display: block;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-banner img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.sidebar-banner:hover img {
    transform: scale(1.05);
}

/* サイドバーの最新記事リスト */
.sidebar-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-post-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e5e7eb;
}

.sidebar-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none !important;
}

.sidebar-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-post-info {
    flex: 1;
}

.sidebar-post-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 0.3rem;
}

.sidebar-post-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.4;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-link:hover .sidebar-post-title {
    color: var(--color-accent);
}

/* ロード時に自動でフェードインするアニメーション（スクロール判定なし） */
@keyframes fadeInUpAuto {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-onload {
    opacity: 0;
    animation: fadeInUpAuto 0.8s ease-out forwards;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

/* ==========================================================================
   Overrides for Single Page Layout
   ========================================================================== */
.site-main {
    padding-top: 0 !important;
    background-color: transparent !important;
}

.article-container {
    max-width: 100% !important;
}

.single-article {
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

/* ロード時に自動でフェードインするアニメーション（スクロール判定なし） */
@keyframes fadeInUpAuto {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-onload {
    opacity: 0;
    animation: fadeInUpAuto 0.8s ease-out forwards;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

/* 関連記事をPCで3カラム固定に */
@media (min-width: 993px) {
    .related-posts .event-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.btn-forestry {
    background-color: #a3e635; /* 目立つ黄緑色 */
    color: var(--color-primary); /* 文字は濃い緑でコントラストを確保 */
}
.btn-forestry:hover {
    background-color: #bef264; /* ホバーで少し明るく */
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(163, 230, 53, 0.3); /* 影も黄緑系に */
}

.footer-cta-buttons .btn-accent:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(217, 119, 6, 0.4);
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
    /* 背景を少しぼかす */
}

.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: clamp(30px, 5vw, 40px);
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.modal-overlay.is-active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal-title {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px dashed #e5e7eb;
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--color-text-main);
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.6;
}

.modal-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    font-size: 2rem;
    color: var(--color-accent);
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item span {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
    font-weight: 700;
}

.contact-item strong {
    /* スマホで大きくなりすぎないよう調整 */
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
    color: var(--color-text-main);
    line-height: 1.3;
    margin-bottom: 4px;
    /* 長いメールアドレスが枠をはみ出さないように強制折り返しを適用 */
    word-break: break-all;
    overflow-wrap: anywhere;
}

.contact-item strong a {
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item strong a:hover {
    color: var(--color-primary);
}

.contact-item small {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ==========================================================================
   特集セクション用スタイル (index.php)
   ========================================================================== */

/* セクション全体の余白と境界線 */
.feature-section {
    margin-top: clamp(3rem, 6vw, 4rem);
    padding-top: clamp(2rem, 5vw, 3rem);
    border-top: 1px dashed rgba(255, 255, 255, 0.4);
}

/* セクションタイトル */
.feature-section-title {
    color: var(--color-white);
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
}

/* 記事が0件の時のメッセージ */
.feature-empty-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-white);
    padding: 2rem 0;
    font-size: clamp(1rem, 3vw, 1.1rem);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

/* 特集カテゴリバッジの色（既存のアクセントカラーを適用） */
.feature-category-badge {
    background-color: var(--color-accent) !important;
}

/* JSで表示制御するための非表示クラス */
.hidden-card {
    display: none !important;
}

/* ==========================================================================
   特集ページ・セクション用追加スタイル
   ========================================================================== */

/* --- index.php の特集セクション --- */
.feature-section {
    margin-top: clamp(3rem, 6vw, 4rem);
    padding-top: clamp(2rem, 5vw, 3rem);
    border-top: 1px dashed rgba(255, 255, 255, 0.4);
}
.feature-section-title {
    color: var(--color-white);
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
}
.feature-empty-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-white);
    padding: 2rem 0;
    font-size: clamp(1rem, 3vw, 1.1rem);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}
.feature-category-badge {
    background-color: var(--color-accent) !important;
}

/* --- 特集一覧ページ (category-feature.php) --- */
.feature-page-wrapper {
    padding-top: clamp(80px, 10vh, 120px);
}
.feature-page-title {
    margin-bottom: 2rem;
}
.feature-page-desc {
    margin-bottom: 2rem;
    color: var(--color-text-main);
}
.feature-external-icon {
    margin-top: auto; /* カード最下部にアイコンを押し下げる */
}
.feature-pagination {
    margin-top: 3rem;
    text-align: center;
    font-weight: bold;
}

/* --- Vol ラベルのデザイン --- */
.feature-vol-label {
    display: inline-block;
    background-color: var(--color-secondary); /* アクセントに緑色を使用 */
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
    top: -2px; /* タイトルと高さを合わせる微調整 */
}

/* ==========================================================================
   新着情報（ドロワーパネル関連）追加スタイル
   ========================================================================== */

/* 記事リスト内のバッジ共通スタイル */
.news-badge {
    display: inline-block;
    color: var(--color-white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
}

/* カテゴリごとのバッジ背景色 */
.news-badge-event {
    background-color: var(--color-accent);
}
.news-badge-video {
    background-color: #3b82f6;
}
.news-badge-post {
    background-color: var(--color-primary);
}

/* 外部リンクアイコン */
.news-external-icon {
    font-size: 0.8em;
    color: #999999;
}

/* ベルボタン右上のNEWバッジ */
.news-btn-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e11d48;
    color: var(--color-white);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: bold;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* 記事リストのスクロールエリア */
.news-list-scroll {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* 下部ボタンエリアのラッパー */
.news-more-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid #eeeeee;
    padding-top: 15px;
}

/* 下部リンクボタン */
.news-drawer-btn-link {
    flex: 1;
    padding: 8px;
    font-size: 0.85rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
}
.news-drawer-btn-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
}

/* 背景の黒いフィルター（オーバーレイ） */
.news-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9997; /* ドロワーパネル(9998)より1つ下層に配置 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    backdrop-filter: blur(3px); /* わずかにぼかす */
}
.news-overlay.active {
    opacity: 1;
    visibility: visible;
}