/* === Theatre Power — 全ページ共通スタイル (common.css) === */
/* 更新: 2026-03-23 */
/* ルール: !important は原則禁止。Swiper等の第三者CSSを上書きする場合のみ例外 */


/* ----------------------------------------
   1. リセット・基本設定
   ---------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* モバイルメニュー展開時にスクロールを止める */
body.menu-open {
    overflow: hidden;
}

/* 画像下の隙間を排除 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: #BC221C;
}


/* ----------------------------------------
   2. 共通レイアウト
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ----------------------------------------
   3. 共通ボタン (.btn)
   ---------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid #BC221C;
    color: #BC221C;
    background-color: #fff;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #BC221C;
    color: #fff;
    opacity: 1;
    text-decoration: none;
}


/* ----------------------------------------
   4. ヘッダー
   ---------------------------------------- */
header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 7cap;
    padding-left: 20px;
    padding-right: 20px;
}

.logo img {
    height: 40px;
    width: auto;
    transition: height 0.3s ease;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    font-weight: bold;
    font-size: 0.95rem;
    color: #333;
}


/* ----------------------------------------
   5. モバイルメニュー
   ---------------------------------------- */
.hamburger {
    display: none;
    cursor: pointer;
    width: 24px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 2000;
    visibility: hidden;
    transition: visibility 0.3s;
}

.mobile-menu-overlay.active {
    visibility: visible;
}

.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-backdrop {
    opacity: 1;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.close-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.close-btn span {
    font-size: 1.4rem;
    line-height: 1;
}

.mobile-menu-content {
    padding: 0 25px;
}

.mobile-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav-list li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 1.05rem;
    color: #333;
}

.arrow {
    color: #ccc;
    font-size: 1.2rem;
    transform: scaleY(1.3);
    font-family: serif;
}


/* ----------------------------------------
   6. セクション共通見出し
   ---------------------------------------- */
.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: #BC221C;
    margin-bottom: 8px;
    display: block;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-left: 0;
    margin-bottom: 22px;
}


/* ----------------------------------------
   7. NEWSコンポーネント
   ---------------------------------------- */
.tp-news-section {
    padding: 0 0 60px;
    background: #fff;
}

.tp-news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 3px solid #BC221C;
    padding-bottom: 10px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
}

.tp-title-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.tp-news-title {
    font-size: 2rem;
    font-weight: 900;
    color: #BC221C;
    line-height: 1;
    margin: 0;
}

.tp-news-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    white-space: nowrap;
}

.tp-news-btn {
    background-color: #BC221C;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-bottom: 2px;
    border: 1px solid #BC221C;
    transition: all 0.3s ease;
}

.tp-news-btn:hover {
    background-color: #fff;
    color: #BC221C;
}

.news-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.news-item {
    border-bottom: 1px solid #eee;
}

.news-link {
    display: flex;
    align-items: center;
    padding: 15px 0 15px 30px;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.news-category {
    display: inline-block;
    background: #fff5f5;
    color: #BC221C;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1;
}


/* ----------------------------------------
   8. 記事カード
   ---------------------------------------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
}

/* カード全体をリンクにするためのラッパー */
.card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.card-img-wrapper {
    position: relative;
    height: 180px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.label-new {
    position: absolute;
    top: -8px;
    left: 20px;
    width: 45px;
    height: 55px;
    background: #fcd34d;
    color: #333;
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    padding-top: 12px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
    z-index: 10;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category-area {
    margin-bottom: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.card-category {
    display: inline-block;
    background: #fff5f5;
    color: #BC221C;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.5;
}

.card-desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    margin-top: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    font-size: 0.75rem;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
}

.more-btn-area {
    text-align: center;
    margin-top: 50px;
}

.category-area {
    margin-top: 80px;
    text-align: center;
}

.category-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.category-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-list a {
    display: inline-block;
    background: #fff5f5;
    color: #BC221C;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 4px;
    transition: background 0.3s;
}


/* ----------------------------------------
   9. フッター
   ---------------------------------------- */
footer {
    background: #f8f8f8;
    padding: 60px 0 30px;
    border-top: 1px solid #eee;
    color: #333;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #BC221C;
}

.footer-link-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-link-list li {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    width: 100%;
}

.footer-bottom-logo img {
    height: 30px;
    filter: grayscale(100%);
    opacity: 0.6;
}

footer .copyright {
    font-size: 0.75rem;
    color: #999;
    line-height: 1;
    margin: 0;
}

.footer-col-newsletter iframe {
    border-radius: 8px;
    width: 100%;
    height: 250px;
    border: none;
}


/* ----------------------------------------
   10. 固定CTAボタン
   ---------------------------------------- */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #BC221C;
    color: #fff;
    border-radius: 4px;
    padding: 12px 25px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    border: none;
    transition: all 0.3s ease;
}

.floating-cta:hover {
    background-color: #fff;
    color: #BC221C;
}

.cta-inner {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.cta-sub {
    font-size: 0.65rem;
    opacity: 0.85;
    letter-spacing: 0.03em;
}

.cta-main {
    font-size: 1rem;
    font-weight: 700;
}

.cta-icon {
    background: #fff;
    color: #BC221C;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.floating-cta:hover .cta-icon {
    background-color: #BC221C;
    color: #fff;
}


/* ----------------------------------------
   11. レスポンシブ（共通パーツ）
   ---------------------------------------- */
@media (max-width: 1024px) {

    /* ヘッダー */
    .header-inner {
        height: 70px;
    }
    .logo img {
        height: 36px;
    }
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }

    /* セクション見出し */
    .section-title {
        font-size: 1.5rem;
    }

    /* NEWS */
    .tp-news-header {
        align-items: flex-end;
        padding-bottom: 8px;
    }
    .tp-news-title {
        font-size: 1.5rem;
    }
    .tp-news-subtitle {
        font-size: 0.7rem;
    }
    .tp-news-btn {
        font-size: 0.7rem;
        padding: 6px 12px;
        margin-bottom: 0;
    }
    .news-link {
        flex-wrap: wrap;
        gap: 4px;
        align-items: flex-start;
        padding-left: 0;
    }
    .news-date {
        order: 1;
        font-size: 0.85rem;
        width: 100%;
    }
    .news-text {
        order: 2;
        width: 100%;
        font-size: 1rem;
        white-space: normal;
        line-height: 1.5;
    }
    .news-category {
        order: 3;
        margin-top: 8px;
        margin-left: 0;
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    /* 記事カード */
    .article-grid {
        grid-template-columns: 1fr;
    }
    .more-btn-area {
        margin-top: 40px;
        text-align: center;
        width: 100%;
    }
    .more-btn-area .btn {
        display: block;
        width: 80%;
        margin: 0 auto;
    }

    /* フッター */
    .footer-main-grid {
        grid-template-columns: 1fr;
    }
    .footer-col-newsletter {
        order: -1;
    }

    /* 固定CTA：画面下部に固定 */
    .floating-cta {
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        transform: none;
        justify-content: center;
        padding: 10px 20px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    }

    /* CTA分の下部余白を確保（コンテンツがCTAに隠れないように） */
    footer {
        padding-bottom: 80px;
    }

    /* タッチデバイスでホバーが残らないようにする */
    @media (hover: none) {
        .floating-cta:hover {
            background-color: #BC221C;
            color: #fff;
        }
        .floating-cta:hover .cta-icon {
            background: #fff;
            color: #BC221C;
        }
    }
}