/*
Theme Name: My New Theme
Description: えほん楽団のテーマ
Version: 1.0
Author: 阿部翼
*/

/* ==========================================================================
   1. 基本レイアウトと共通設定
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #faf9ef;
    font-size: 1.05rem; 
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.l-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

main .container {
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

.container {
    box-sizing: border-box;
}

.section-title{
    text-align: center;
    margin: 0 0 30px;
    font-size: 1.8rem;
    position: relative;
}

.section-sub-title {
    text-align: left;
    margin: 0 auto 10px;
    color: #e17e3f;
    letter-spacing: 0.1em;
}

.label {
    display: inline-block;
    background: #6ade5b;
    color: #fff;
    padding: 2px 15px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

/* ==========================================================================
   2. ヘッダー / ナビゲーション
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding-bottom: 0;
}

.site-header::after {
    content: "";
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url('images/header.svg'); 
    background-position: left bottom; 
    background-repeat: repeat-x;
    background-size: auto 100px; 
    z-index: 1;
    pointer-events: none;
}

.site-header .l-container {
    max-width: 1200px; 
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0;
}

.logo {
    margin: 0;
    line-height: 1;
}

.logo img {
    display: block;
    max-height: 52px;
    width: auto;
}

/* ★ 共通ボタンコンポーネント */
.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    line-height: 1.4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
    word-break: keep-all;
    border: none;
    cursor: pointer;
}

.c-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.c-btn--capsule { border-radius: 50px; }
.c-btn--rounded { border-radius: 8px; }
.c-btn--sm { padding: 6px 16px; font-size: 0.85rem; }
.c-btn--md { padding: 12px 30px; font-size: 1rem; }
.c-btn--lg { padding: 16px 40px; font-size: 1.1rem; }

.c-btn--green { background-color: #8daf5c; }
.c-btn--orange { background-color: #93d2ea; }

.c-btn__icon {
    font-size: 1.2em;
    margin-right: 8px;
    line-height: 1;
}

.main-nav-pc { display: none; }
.header-right-block { display: none; }

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #555555;
    border-radius: 1px;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 7px; }
.hamburger span:nth-child(3) { bottom: 0; }

.main-nav-sp {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    z-index: 2000;
    flex-direction: column;
    padding: 25px 20px;
    box-sizing: border-box;
}

.main-nav-sp.is-active { display: flex; }

.nav-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
}

.nav-label {
    font-size: 0.85rem;
    color: #777;
    font-weight: bold;
}

.nav-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.nav-links-sp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    width: 100%;
}

.nav-links-sp a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.95rem;
}

.header-buttons-sp {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 230px;
    margin: 0 auto;
}

/* ==========================================================================
   3. ヒーローセクション（ファーストビュー）
   ========================================================================== */
.main-with-fixed-header {
    padding-top: 130px; /* 余白を少し確保 */
}

.hero-first-view {
    text-align: center;
    padding: 10px 0 30px;
}

.hero-static-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 丸設定を解除し、透過画像を幅いっぱいに表示 */
.hero-main-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px;
    letter-spacing: 0.1em;
}

.hero-catchphrase {
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: bold;
    color: #555;
    margin: 0;
}

.hero-outer-container {
    position: relative;
    margin-top: 20px;
    margin-bottom: 80px;
}

.hero-slider-wrapper {
    width: 100%;
    height: auto !important; 
    border-radius: 0 !important;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* スライダー画像が細くならないように元の比率を保つ */
#hero-slider .splide__slide img.hero-rectangle-img {
    width: 100%;
    height: auto; /* 固定の高さを解除 */
    border-radius: 12px;
    display: block;
    object-fit: contain;
}

/* ==========================================================================
   4. カード・グリッド・スライダー
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    height: 100%;
}

.card:hover { transform: translateY(-5px); }

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
}

.card-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
}

.card-content h3 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

#past-events-slider .splide__slide img,
.splide__slide img {
    width: 100%;
    height: 300px; 
    object-fit: cover; 
    vertical-align: bottom;
    border-radius: 8px; 
}

/* ==========================================================================
   5. 個別セクション（About, Pillars, Support）
   ========================================================================== */
.section { padding: 60px 0; text-align: center; }

.about-section {
    padding: 60px 0;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.about-flex {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 30px;
    margin-top: 30px;
    text-align: center; 
}

.about-img img {
    width: 100%;
    max-width: 100%; 
    height: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ─── 3つの柱セクション ─── */
.three-pillars {
    overflow: hidden;
    padding-bottom: 20px;
}

.three-pillars .splide__track {
    overflow: visible !important;
}

.pillar-grid {
    margin: 0;
    padding: 0;
    list-style: none;
}

.three-pillars .splide__slide {
    box-sizing: border-box;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-item {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.pillar-icon {
    width: 100%;
    height: auto;
}

.pillar-icon img { 
    width: 100%; 
    height: auto;
    aspect-ratio: 1 / 1; 
    object-fit: contain; 
    display: block;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ─── SNSセクション ─── */
.sns-section {
    background-color: #faf9ef; 
    padding: 60px 20px;
}

.sns-center-wrap {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.sns-center-wrap h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.sns-center-wrap .follow-me {
    font-family: Arial, sans-serif;
    font-style: italic;
    font-weight: bold;
    color: #888;
    margin: 15px 0 5px;
}

.insta-icon-wrap {
    width: 120px; 
    height: auto;
    margin: 0 auto;
    transition: transform 0.3s;
}

.insta-icon-wrap:hover {
    transform: scale(1.05);
}

.insta-icon-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ─── サポートセクション ─── */
.support-section {
    padding: 60px 0;
}

.support-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.support-img-cluster img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.support-text-area {
    text-align: center;
}

.support-lead {
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 30px;
}

.support-text-area .footer-action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.support-text-area .c-btn {
    width: 100%;
    max-width: 400px;
}


/* ==========================================================================
   6. 演奏会スケジュール（アーチデザイン＆波線背景）
   ========================================================================== */
.calendar-arch-container {
    background-color: #bde2f5;
    background-image: url('images/wave-bg.png'); 
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-radius: 50% 50% 0 0 / 15% 15% 0 0; 
    padding: 60px 30px 40px;
    margin: 40px 0 0;
    box-sizing: border-box;
    text-align: center;
    color: #333;
}

/* 透過背景を削除し、直接波線背景が見えるように修正 */
.calendar-arch-inner {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    background-color: transparent; /* ここを白から透明に変更 */
    padding: 0;
    border-radius: 0;
}

.calendar-arch-container h2.section-title {
    margin: 0 0 20px !important;
    font-size: 1.5rem !important;
    color: #333 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.calendar-arch-container h2.section-title span {
    display: block;
    font-size: 0.9rem;
    color: #e67e22;
    font-family: 'Arial', sans-serif;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.calendar-wrapper {
    background: transparent;
    margin-bottom: 20px;
    width: 100%;
}

.calendar-arch-container .fc .fc-toolbar-title {
    font-size: 1.5rem !important; 
}
.calendar-arch-container .fc .fc-daygrid-day-number {
    font-size: 1.1rem !important;
}

.calendar-arch-container .fc .fc-button-primary {
    background-color: transparent !important;
    border: none !important;
    color: #333 !important;
    font-size: 1.1rem;
    box-shadow: none !important;
    transition: opacity 0.2s;
}

.calendar-arch-container .fc .fc-button-primary:hover {
    opacity: 0.5;
    background-color: transparent !important;
}

.calendar-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.banner-section {
    padding: 40px 0;
}

.banner-3columns {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.banner-3columns .banner-item {
    flex: 1 1 0;
    width: 33.333%;
    max-width: 33.333%;
    box-sizing: border-box;
}

.banner-3columns .banner-item a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.banner-3columns .banner-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-3columns .banner-item img:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* スマホ表示（幅768px以下では見やすく縦1列に切り替え） */
@media (max-width: 768px) {
    .banner-3columns {
        flex-direction: column !important;
        gap: 15px;
    }
    
    .banner-3columns .banner-item {
        width: 100%;
        max-width: 100%;
    }
}

/* 1. ヘッダー上の変な隙間対策 */
/* ブラウザの初期余白を強制リセット */
html, body {
    margin: 0 !important;
    padding: 0;
}

/* WordPressの「黒い管理バー」が表示されている時のズレを自動補正 */
body.admin-bar .site-header {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px !important;
    }
}

/* 2. サポートセクションのボタンのパンパン感（窮屈さ）を解消 */
.support-text-area .footer-action-buttons {
    gap: 20px; /* ボタン同士の間隔（縦横）を少し広げてスッキリさせる */
}

/* スマホ表示時のゆったり化 */
.support-text-area .c-btn {
    width: 90% !important; /* 画面幅いっぱいにならず、左右に少し抜け感を作る */
    max-width: 360px !important; /* 以前の300pxから拡大し、文字が収まる幅を確保 */
    padding: 18px 24px !important; /* ★内側の余白（上下・左右）をたっぷり取ってパンパン感を消す */
    letter-spacing: 0.05em; /* 文字の隙間を少し空けて読みやすくする */
    box-sizing: border-box;
}

/* PC表示時（画面幅が992px以上）のゆったり化 */
@media (min-width: 992px) {
    .support-text-area .c-btn {
        width: auto !important; /* 文字数に合わせて幅を可変に */
        min-width: 260px !important; /* 最低限の幅を確保して形を揃える */
        padding: 20px 40px !important; /* PCではさらに左右の余白を大きくして優雅に */
    }
}
/* ==========================================================================
   7. フッターセクション
   ========================================================================== */
.site-footer {
    background-color: #faf9ef; 
    position: relative;
    padding-top: 60px;
    padding-bottom: 0;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 20px 0;
}

.footer-logo img {
    max-width: 260px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.footer-sns {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.sns-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.2s, opacity 0.2s;
}

.sns-icon:hover { transform: scale(1.1); opacity: 0.9; }
.sns-icon.insta { background: linear-gradient(135deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); }
.sns-icon.facebook { background-color: #1877F2; }
.sns-icon.youtube { background-color: #FF0000; }
.sns-icon.x-twitter { background-color: #000000; }

.footer-contact { color: #333; font-size: 1.1rem; line-height: 1.8; }
.footer-contact p { margin: 0; }
.contact-representative { font-weight: bold; margin-bottom: 8px !important; }

.footer-links-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.footer-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
}

.footer-nav-list a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
}
.footer-nav-list a:hover { color: #e17e3f; }

.footer-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.category-box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 0 0 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    text-align: center;
}

.category-title {
    background-color: #ffe8d1;
    color: #333;
    margin: 0 0 15px 0;
    padding: 8px 15px;
    font-size: 1rem;
    font-weight: bold;
}

.category-items {
    margin: 0;
    padding: 0 15px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-items li, .category-items a {
    color: #000;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: bold;
}

.site-footer {
    background-color: #faf9ef; 
    position: relative;
    padding-top: 60px;
    /* 背景画像設定（3枚目の画像パスに変更） */
    background-image: url('images/footer-background.svg'); 
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 100% auto; /* 幅に合わせて下部にぴったり配置 */
    padding-bottom: 0px; /* 画像の波にコンテンツがかぶらないよう下部に余白を確保 */
}

.footer-copyright {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    z-index: 5;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.85rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   8. PCレスポンシブ (992px〜 / 1200px〜)
   ========================================================================== */
@media (min-width: 992px) {
    .support-flex {
        flex-direction: row;
        justify-content: center;
        text-align: left;
        gap: 60px;
    }
    .support-text-area { text-align: left; }
    .support-text-area .footer-action-buttons {
        flex-direction: column; 
        justify-content: flex-start;
    }
    .support-text-area .c-btn { 
        width: 100%; 
        max-width: 300px;
    }
}

@media (min-width: 1200px) {    
    .hamburger { display: none; }
    
    .header-left-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        position: relative;
        z-index: 10;
    }

    /* 右上ヘッダーボタンの余白・間隔調整 */
    .header-right-block {
        display: block;
        position: relative;
        z-index: 10;
        margin-top: 10px; /* 上部に少し余白 */
    }

    .main-nav-pc {
        display: flex;
        gap: 16px;
        margin-top: 1px;
    }

    .main-nav-pc a {
        text-decoration: none;
        color: #333;
        font-weight: bold;
        font-size: 0.78rem;
    }

    .header-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px; /* ボタン同士の間隔を広げて窮屈さを解消 */
        width: auto;
        min-width: 160px;
    }

    .card-grid { grid-template-columns: repeat(3, 1fr); }

    /* Aboutセクションの写真拡大・文字中央寄せ */
    .about-flex {
        flex-direction: row;      
        align-items: stretch; /* 高さを揃える */      
        gap: 50px;                
    }

    .about-img {
        flex: 0 0 60%; /* 写真エリアを大きく（60%） */
    }
    .about-img img {
        width: 100%;
        height: 100%; /* 親に合わせて高さ調整 */
        object-fit: cover;
    }

    .about-text {
        flex: 1; /* 残りのスペースを文字エリアに */
        display: flex;
        flex-direction: column;
        justify-content: center; /* 縦方向の中央に配置 */
        align-items: center; /* 横方向の中央に配置 */
        text-align: center;
    }

    /* 3つの柱 (PC用) */
    .pillar-grid { 
        display: flex !important; 
        flex-direction: row !important; 
        justify-content: center !important; 
        gap: 40px !important; 
        transform: none !important; 
        width: 100% !important;
    }
    .three-pillars .splide__track { overflow: hidden !important; }
    .three-pillars .splide__slide { width: calc(33.333% - 27px) !important; aspect-ratio: auto !important; }

    .calendar-arch-container {
        border-radius: 50% 50% 0 0 / 12% 12% 0 0;
        padding-top: 80px;
    }

    /* フッター (PC用) */
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 50px;
    }
    .footer-info {
        flex: 0 0 320px;
        align-items: flex-start;
        text-align: left;
        padding-top: 40px;
    }
    .footer-sns { justify-content: flex-start; padding-left: 10px; }
    .footer-contact { padding-left: 10px; }
    
    .footer-links-area { flex: 1; }
    .footer-nav-list {
        justify-content: flex-start;
        gap: 15px 40px;
        padding-left: 10px;
    }
    .footer-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .footer-bottom-hills { min-height: 380px; }
}