/* --- 1. リセットと基本設定 --- */
:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-dark-gray: #333333;
    --color-accent: #A78B41;
    --color-background: #F5F5F5;
    --color-light-line: #E0E0E0;
    --font-serif-header: 'Playfair Display', serif;
    --font-serif-body: 'Lora', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-serif-body); color: var(--color-dark-gray); background-color: var(--color-background); line-height: 1.7; }
body.modal-open { overflow: hidden; }

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.text-center-max { max-width: 650px; margin-left: auto; margin-right: auto; }
.text-align-center { text-align: center !important; }
a { color: var(--color-dark-gray); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--color-accent); }

/* --- 2. タイポグラフィ --- */
h1, h2, h3 { font-family: var(--font-serif-header); color: var(--color-black); margin-bottom: 0.5em; line-height: 1.2; }
h1 { font-size: 1.8rem; }
h3 { font-size: 2.2rem; }
.section-title { 
    text-align: center; 
    margin-bottom: 50px; 
    letter-spacing: 0.15em; 
    text-transform: uppercase; 
    color: var(--color-accent); 
    font-weight: 400;
    font-size: 2rem;
}

/* --- 3. ヘッダー --- */
#header { background-color: var(--color-white); border-bottom: 1px solid var(--color-light-line); padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.site-title a { font-weight: 700; font-size: 1.5rem; }

.nav-list { list-style: none; display: flex; }
.nav-list li { margin-left: 30px; }
.nav-list li a, .mobile-nav-list li a { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.9rem; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* モバイルメニュー本体 */
#mobile-menu { 
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh;
    background-color: var(--color-white); 
    z-index: 999; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
}
#mobile-menu.is-open { 
    opacity: 1;
    visibility: visible;
    height: 100vh;
}
.mobile-nav-list { 
    list-style: none; 
    padding: 100px 0 50px;
    text-align: center;
}
.mobile-nav-list li a { 
    display: block; 
    padding: 20px 30px; 
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    border-bottom: none;
}

.menu-toggle { 
    position: relative;
    z-index: 1001; 
}

/* --- 4. メインビジュアル --- */
.hero-section { height: 70vh; position: relative; overflow: hidden; }
.hero-image-container { width: 100%; height: 100%; background-image: url('images/hero-clarinettist.jpg'); background-size: cover; background-position: center 30%; display: flex; align-items: center; justify-content: center; }
.hero-name-font { font-family: var(--font-serif-header) !important; font-size: 3.5rem; font-weight: 400; color: var(--color-white); text-shadow: 0 0 10px rgba(0,0,0,0.8); }
.hero-text { text-align: center; color: var(--color-white); padding: 20px 40px; }
.hero-text .subtitle { font-size: 1.2rem; margin-bottom: 10px; color: var(--color-white); }

@media (min-width: 769px) {
    .hero-image-container { justify-content: flex-start; }
    .hero-text-desktop-left { text-align: left; margin-left: 10%; margin-top: -5vh; }
}

/* --- 5. セクション・ボタン共通 --- */
.content-section { padding: 80px 0; text-align: center; }
.separator {
    border: 0;
    border-top: 1px solid var(--color-accent);
    opacity: 0.5;
    width: 40%;
    margin: 0 auto;
}
.center-button-area { margin-top: 30px; text-align: center; }

.btn-profile, 
.note-button, 
.button-filled, 
.button-footer-close,
.table-more-button {
    display: inline-block; 
    padding: 12px 25px; 
    cursor: pointer; 
    font-family: var(--font-serif-header);
    text-transform: uppercase; 
    transition: all 0.3s; 
    border-radius: 0;
    background-color: var(--color-accent) !important; 
    color: var(--color-white) !important;
    border: 1px solid var(--color-accent) !important; 
    font-size: 0.9rem;
    text-align: center; 
    text-decoration: none; 
    letter-spacing: 0.05em;
}

.table-more-button {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-profile:hover, 
.note-button:hover, 
.button-filled:hover, 
.button-footer-close:hover,
.table-more-button:hover {
    background-color: var(--color-white) !important; 
    color: var(--color-accent) !important;
}

/* --- 6. プロフィール --- */
.profile-text { margin-top: 20px; }
.profile-summary { margin-bottom: 35px; line-height: 1.8; }
.name-display { font-size: 1.2rem; margin-bottom: 10px; }
.large-name { font-family: var(--font-serif-header); font-size: 1.5rem; font-weight: 700; }
.profile-actions { display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; }

.profile-sns-links { display: flex; justify-content: center; gap: 20px; }
.sns-button { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background-color: var(--color-white); border: 1px solid var(--color-light-line); color: var(--color-dark-gray); font-size: 1.4rem; transition: all 0.3s; }
.sns-button:hover { color: var(--color-accent); border-color: var(--color-accent); transform: translateY(-3px); }

/* --- 7. モーダル --- */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(4px); 
}

.modal-content {
    position: relative; 
    background-color: var(--color-white); 
    margin: 5vh auto;
    width: 90%; 
    max-width: 700px; 
    max-height: 85vh; 
    display: flex; 
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 20px 40px; 
    border-bottom: 1px solid var(--color-light-line); 
    position: sticky; 
    top: 0; 
    background-color: var(--color-white); 
    z-index: 10; 
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.modal-title { 
    margin-bottom: 0; 
    color: var(--color-accent); 
    font-size: 1.6rem; 
    letter-spacing: 0.1em; 
    text-transform: uppercase; 
    font-weight: 400; 
    font-family: var(--font-serif-header); 
}

.modal-header .close-button {
    position: absolute; 
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: var(--color-dark-gray); 
    font-size: 40px; 
    line-height: 1; 
    cursor: pointer; 
    transition: color 0.3s;
    background: none;
    border: none;
}

.modal-body { 
    padding: 40px; 
    overflow-y: auto; 
    flex: 1; 
    text-align: left; 
}

.modal-body p { 
    margin-bottom: 2rem !important; 
    line-height: 1.8; 
    font-size: 0.95rem; 
}
.modal-body p:last-child { margin-bottom: 0; }

.modal-footer-action { 
    padding: 30px 40px; 
    border-top: 1px solid var(--color-light-line); 
    text-align: center; 
    background-color: var(--color-white);
    display: block;
    width: 100%;
}

.button-footer-close {
    position: static !important;
    transform: none !important;
    margin: 0 auto;
}

/* --- 8. WANDERLUST --- */
#wanderlust { overflow: hidden; }
.wanderlust-slider { width: 100%; margin-bottom: 60px; padding-bottom: 50px; overflow: visible !important; }
.swiper-slide { transition: all 0.4s ease; opacity: 0.5; transform: scale(0.9); }
.swiper-slide-active { opacity: 1; transform: scale(1); }
.wander-img { 
    width: 100%; aspect-ratio: 1200 / 790; 
    background-size: cover; background-position: center; border: 1px solid var(--color-light-line); 
}

.wanderlust-slider {
    position: relative;
    padding-bottom: 60px;
    overflow: visible !important;
}

.wanderlust-slider .swiper-button-next, 
.wanderlust-slider .swiper-button-prev {
    background-color: var(--color-accent) !important; 
    width: 44px !important; 
    height: 44px !important;
    border-radius: 50% !important; 
    color: var(--color-white) !important; 
    border: 1px solid var(--color-accent) !important;
    z-index: 20; 
    transition: all 0.3s ease;
    top: 0 !important;
    bottom: 0 !important;
    margin: auto !important;
    transform: translateY(-30px) !important; 
}

@media (min-width: 1025px) {
    .wanderlust-slider .swiper-button-next:hover, 
    .wanderlust-slider .swiper-button-prev:hover {
        background-color: var(--color-white) !important; 
        color: var(--color-accent) !important;
    }
}

.wanderlust-slider .swiper-button-next::after, 
.wanderlust-slider .swiper-button-prev::after { 
    font-size: 18px !important; 
}

.wanderlust-slider .swiper-button-prev { left: 5% !important; }
.wanderlust-slider .swiper-button-next { right: 5% !important; }

/* スマホ表示時の調整 */
@media (max-width: 768px) {
    .wanderlust-slider .swiper-button-prev { left: 10px !important; }
    .wanderlust-slider .swiper-button-next { right: 10px !important; }

    .wanderlust-slider .swiper-button-next, 
    .wanderlust-slider .swiper-button-prev {
        transform: translateY(-30px) !important; 
    }
}

.swiper-button-disabled { opacity: 0 !important; cursor: auto; }

.wanderlust-slider .swiper-pagination-bullet { background: #ccc; opacity: 1; }
.wanderlust-slider .swiper-pagination-bullet-active { background: var(--color-accent) !important; }

.wander-text { text-align: left; }
.wander-text p { margin-bottom: 1.5rem; font-size: 0.95rem; }

/* --- 9. NEWS / Schedule --- */
.news-grid-wrapper { max-width: 900px; margin: 0 auto 40px auto; }
.note-post-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.post-card { display: block; width: 100%; background-color: var(--color-white); border: 1px solid var(--color-light-line); overflow: hidden; text-align: left; }
.thumbnail { width: 100%; height: 180px; background-size: cover; background-position: center; border-bottom: 1px solid var(--color-light-line); }
.post-info { padding: 15px; }
.post-date { font-size: 0.85rem; color: var(--color-accent); margin-bottom: 5px; }
@media (min-width: 769px) { .post-card { width: calc(50% - 15px); } }

.schedule-table { width: 100%; border-collapse: collapse; margin-top: 30px; }
.schedule-table tr { border-bottom: 1px solid var(--color-light-line); }
.schedule-table tr:last-child { border-bottom: none; }
.schedule-cell { padding: 30px 10px; text-align: left; }
.schedule-info-row { margin-bottom: 8px; display: flex; align-items: baseline; }
.schedule-date { font-family: var(--font-serif-header); font-size: 1.4rem; color: var(--color-black); margin-right: 15px; }
.schedule-main-row { display: flex; justify-content: space-between; align-items: flex-end; }
.schedule-title { display: block; font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; }

/* --- 10. フッター --- */
footer { background-color: var(--color-dark-gray); color: var(--color-light-line); text-align: center; padding: 20px 0; font-size: 0.8rem; }

/* --- 11. レスポンシブ --- */
@media (max-width: 768px) {
    #desktop-nav { display: none; }
    .menu-toggle { display: block; }
    .profile-actions { flex-direction: column; align-items: center; }
    .btn-profile { width: 100%; max-width: 280px; }
    .schedule-main-row { flex-direction: column; align-items: flex-start; }
    .schedule-action { margin-top: 15px; }
    .modal-content { margin: 0; width: 100%; height: 100%; max-height: 100%; }
}