/* ==========================================================================
   共通設定 & 和風デザインテーマ
   ========================================================================== */
:root {
    --primary-color: #7D0000;
    --accent-color: #C5A059;
    --bg-color: #F8F6F0;
    --text-color: #2b2b2b;
    --dark-color: #121212;
    --font-family-mincho: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'MS PMincho', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family-mincho);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
}

button, input, textarea, select { font-family: var(--font-family-mincho); }

.container {
    width: 92%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 65px 0;
}

.content-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    border: 1px solid #e3decb;
}

.wafu-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 4px;
    border: 1px solid #e0ddd3;
    border-top: 3px solid var(--primary-color);
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 18px;
    margin-bottom: 40px;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.section-title::after {
    content: '◆';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--accent-color);
}

.sub-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 30px 0 15px;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 5px;
}

/* ヘッダー */
header {
    background-color: rgba(18, 18, 18, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 3%;
}

.logo { color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: 2px; }

.nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.nav-links a {
    color: #ffffff; text-decoration: none; font-size: 0.8rem;
    font-weight: 700; padding: 4px 6px; transition: color 0.3s; white-space: nowrap;
}
.nav-links a:hover { color: var(--accent-color); }

.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: #fff; margin: 5px; transition: all 0.3s ease; }

/* メインビジュアル */
.hero { position: relative; height: 90vh; width: 100%; overflow: hidden; }
.hero-slider { width: 100%; height: 100%; }
.swiper-slide { background-size: cover; background-position: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 2; }
.hero-text {
    position: absolute; top: 52%; left: 50%; transform: translate(-50%, -50%);
    z-index: 3; text-align: center; color: #fff; width: 90%;
}
.welcome-text { font-size: 1.3rem; letter-spacing: 3px; color: #f1f1f1; margin-bottom: 10px; font-weight: bold; }
.main-title { font-size: 4.8rem; font-weight: 900; color: var(--accent-color); letter-spacing: 8px; line-height: 1.25; margin-bottom: 20px; text-shadow: 3px 3px 12px rgba(0,0,0,0.85); }
.subtitle { font-size: 1.2rem; letter-spacing: 2px; }

/* コンテンツスタイル */
.about-flex { display: flex; gap: 20px; }
.about-text { flex: 3; }
.about-sns-card { flex: 2; background: rgba(125, 0, 0, 0.02); }
.sns-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.sns-btn { display: block; text-align: center; padding: 10px 15px; color: #fff; text-decoration: none; font-weight: 700; border-radius: 20px; font-size: 0.9rem; }
.insta-btn { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.x-btn { background-color: #000; border: 1px solid #444; }
.thought-list { list-style: none; margin: 15px 0; }
.thought-list li { margin-bottom: 8px; font-size: 1rem; color: var(--primary-color); }

.wafu-table { width: 100%; border-collapse: collapse; }
.wafu-table th, .wafu-table td { padding: 12px 15px; border-bottom: 1px solid #eee; }
.wafu-table th { background: rgba(125, 0, 0, 0.04); color: var(--primary-color); width: 25%; text-align: center; font-weight: 700; }

.wafu-timeline { position: relative; padding-left: 35px; border-left: 2px dashed var(--accent-color); }
.timeline-item { position: relative; margin-bottom: 25px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
    content: ''; position: absolute; left: -42px; top: 6px; width: 12px; height: 12px;
    background: var(--primary-color); border: 2px solid var(--accent-color); border-radius: 50%;
}
.timeline-item .time { font-weight: 700; color: var(--primary-color); font-size: 1.2rem; }
.timeline-item .content { background: rgba(125, 0, 0, 0.02); padding: 12px 18px; border-radius: 4px; }

/* 募集要項とボタン群 */
.recruit-banner-card { text-align: center; position: relative; padding: 30px 20px; background: #fffdfa; }
.recruit-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary-color); color: #fff; padding: 2px 18px; font-size: 0.85rem; border-radius: 12px; font-weight: 700;
}
.recruit-details-box { background: rgba(197, 160, 89, 0.1); padding: 15px; border-radius: 4px; margin: 15px 0; text-align: left; }

.doc-link-group { margin: 20px 0; padding: 15px; background: transparent; }
.doc-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.doc-btn {
    display: inline-block; padding: 10px 25px; font-size: 0.95rem; font-weight: 700;
    text-decoration: none; border-radius: 25px; transition: 0.3s; cursor: pointer; border: none;
}
.img-doc-btn { background-color: var(--dark-color); color: #fff; }
.pdf-doc-btn { background-color: #b30000; color: #fff; }
.doc-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

.action-btn {
    display: inline-block; padding: 12px 35px; color: #fff; text-decoration: none; font-weight: 700; border-radius: 30px; font-size: 1.1rem;
}
.performer-btn { background-color: var(--primary-color); }
.vendor-btn { background-color: #1e73be; }

.experience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 15px; }
.exp-item { text-align: center; font-weight: 700; border-top: none; border-left: 3px solid var(--accent-color); margin-bottom: 0; }
.news-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; gap: 12px; }
.news-category { font-size: 0.75rem; padding: 2px 8px; background: #666; color: #fff; border-radius: 3px; font-weight: 700; }
.contact-box { max-width: 650px; margin: 0 auto; text-align: center; }
.contact-email { font-size: 1.1rem; color: var(--primary-color); }

footer { background: var(--dark-color); color: #fff; text-align: center; padding: 25px 20px; border-top: 2px solid var(--accent-color); }
.footer-sns { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; }
.footer-sns a { color: #fff; font-size: 1.4rem; }

.scroll-animate { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.scroll-animate.show { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   画像ポップアップ（モーダル）最適化デザイン
   ========================================================================== */
.image-modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.85);
    justify-content: center; align-items: center; /* 画面中央に配置 */
}

/* モーダルの中身（写真）のコンテナ */
.image-modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90vw; /* 画面幅の90%までに制限 */
    max-height: 90vh; /* 画面の高さの90%までに制限 */
}

/* 2枚セットの場合（横並び） */
.image-modal-content.set-of-two {
    flex-direction: row;
    gap: 15px;
}

/* 写真自体が大きくなりすぎないように制御 */
.image-modal-content img {
    max-width: 100%;
    max-height: 85vh; /* 画面高さを超えないようにする */
    object-fit: contain; /* 縦横比を維持して綺麗に収める */
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.modal-close {
    position: absolute; top: 15px; right: 25px; color: #fff; font-size: 40px;
    font-weight: bold; cursor: pointer; z-index: 2001; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.modal-close:hover { color: var(--accent-color); }


/* ==========================================================================
   レスポンシブ (スマホ表示)
   ========================================================================== */
@media screen and (max-width: 900px) {
    .container { padding: 45px 0; }
    .content-box { padding: 20px; }
    .main-title { font-size: 2.8rem; letter-spacing: 4px; }
    .about-flex { flex-direction: column; }
    
    .nav-links {
        position: fixed; right: 0; top: 0; height: 100vh; background-color: rgba(18, 18, 18, 0.98);
        display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%;
        transform: translateX(100%); transition: transform 0.3s ease-in-out; gap: 15px;
    }
    .burger { display: block; z-index: 1001; }
    .nav-active { transform: translateX(0%); }
    .wafu-table th, .wafu-table td { display: block; width: 100%; text-align: left; }
    
    /* スマホで2枚の写真を縦に並べる */
    .image-modal-content.set-of-two {
        flex-direction: column;
        overflow-y: auto;
        justify-content: flex-start;
        padding-top: 20px;
    }
    .image-modal-content img {
        max-height: none;
        width: 100%;
    }
}
