@charset "UTF-8";

/* =========================================
   基本設定
   ========================================= */
:root {
    --primary-color: #58a77c; --primary-dark: #3a7552; --accent-color: #d66b6b;
    --manner-color: #e69b5c; --manner-dark: #d67d3e; --text-dark: #444444;
    --text-light: #777777; --bg-light: #f9fbf9; --white: #ffffff;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.05); --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --font-main: 'Noto Sans JP', sans-serif; --font-serif: 'Noto Serif JP', serif;
    --color-culture: #e08898; --bg-culture: #fdf2f4; --color-study: #dcb605;
    --bg-study: #fdfaf0; --color-enjoy: #58a77c; --bg-enjoy: #eef8f2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); font-weight: 400; color: var(--text-dark); background-color: var(--white); line-height: 1.8; overflow-x: hidden; margin: 0; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 25px; }

/* 見出し・ボタン */
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-family: var(--font-serif); font-weight: 400; font-size: 2.2rem; color: var(--text-dark); display: inline-block; margin-bottom: 10px; letter-spacing: 0.05em; }
.section-subtitle { color: var(--text-light); font-size: 0.95rem; }
.btn { display: inline-block; padding: 12px 35px; background-color: var(--primary-color); color: var(--white); border-radius: 50px; font-weight: 500; box-shadow: 0 4px 15px rgba(88, 167, 124, 0.3); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(88, 167, 124, 0.4); }

/* アニメーション */
.animate-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.animate-up.show { opacity: 1; transform: translateY(0); }
.stagger-item { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.stagger-item.show { opacity: 1; transform: translateY(0); }

/* ヘッダー */
header { position: fixed; width: 100%; top: 0; z-index: 1000; padding: 15px 0; transition: all 0.4s ease; background-color: transparent; }
header.scrolled { background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); padding: 10px 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; color: var(--white); display: flex; flex-direction: column; line-height: 1.2; letter-spacing: 0.05em; }
header.scrolled .logo { color: var(--primary-color); }
.logo span { font-family: var(--font-main); font-size: 0.75rem; font-weight: 300; opacity: 0.9; letter-spacing: 0.1em; }
.nav-menu { display: flex; gap: 20px; }
.nav-menu a { font-weight: 400; font-size: 0.9rem; color: var(--white); position: relative; }
header.scrolled .nav-menu a { color: var(--text-dark); }
.menu-toggle { display: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }
header.scrolled .menu-toggle { color: var(--text-dark); }

/* ヒーローエリア */
.hero { height: 85vh; min-height: 600px; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); background-image: url('images/floor.jpg'); background-size: cover; background-position: center; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(180, 160, 140, 0.85), rgba(80, 60, 50, 0.4)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: 3rem; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); line-height: 1.4; opacity: 0; }
@keyframes titleCinematicReveal { 0% { opacity: 0; filter: blur(12px); transform: translateY(30px) scale(1.1); letter-spacing: 0.1em; } 100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); letter-spacing: 0.05em; } }
.hero-title-anim.show { opacity: 1; animation: titleCinematicReveal 2.5s cubic-bezier(0.2, 1, 0.3, 1) forwards; }
.hero p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.95; font-weight: 300; }
.hero-btns { display: flex; gap: 20px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero-btn-primary { background-color: var(--primary-color); color: #fff; padding: 15px 40px; border-radius: 50px; font-weight: 500; }
.hero-btn-secondary { background-color: #fff; color: var(--text-dark); padding: 15px 40px; border-radius: 50px; font-weight: 500; }

/* NEWS */
.news-section { background-color: var(--white); padding: 50px 0; border-bottom: 1px solid #eee; }
.news-container { max-width: 800px; margin: 0 auto; }
.news-list { list-style: none; }
.news-item { display: flex; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #eee; transition: 0.2s; }
.news-item:hover { background-color: #fafafa; padding-left: 10px; }
.news-date { font-family: var(--font-main); font-weight: 400; color: var(--text-light); margin-right: 20px; min-width: 90px; }
.news-tag { font-size: 0.75rem; padding: 3px 10px; border-radius: 4px; margin-right: 15px; color: #fff; background: #ccc; min-width: 80px; text-align: center; }
.news-tag.event { background-color: var(--accent-color); }
.news-tag.info { background-color: var(--primary-color); }
.news-title { font-weight: 400; color: var(--text-dark); flex: 1; text-decoration: underline; text-decoration-color: transparent; transition: 0.3s; }
.news-item:hover .news-title { text-decoration-color: var(--primary-color); color: var(--primary-color); }

/* コンセプト */
.concept-section { padding: 80px 0; background-color: var(--white); }
.concept-container { display: flex; align-items: center; gap: 60px; max-width: 1100px; margin: 0 auto; padding: 0 25px; }
.concept-image { flex: 1; height: 350px; border-radius: 20px; background-image: url('https://placehold.co/600x800/e6f2eb/58a77c?text=Cafe+Space'); background-size: cover; background-position: center; box-shadow: var(--shadow-sm); }
.concept-text { flex: 1; }
.concept-title { font-family: var(--font-serif); font-weight: 400; font-size: 2rem; line-height: 1.5; color: var(--text-dark); margin-bottom: 30px; border-left: 5px solid #a83e3e; padding-left: 20px; }

/* =========================================
   フォトギャラリー
   ========================================= */
.gallery-section { padding: 50px 0 80px; background-color: #fcfcfc; }

/* 外枠 (スクロール機能) */
.gallery-slider-wrapper {
    width: 100%; height: auto;
    padding: 20px 25px 40px; 
    
    /* PCではJS制御のためスクロール禁止 */
    overflow-x: hidden;
    overflow-y: hidden;
    
    cursor: grab;
}
/* PCではスクロールバーを隠す */
.gallery-slider-wrapper::-webkit-scrollbar { display: none; }

/* 内枠 (横並び) */
.gallery-track {
    display: flex;
    gap: 30px;
    width: max-content; /* 折り返し防止 */
}

/* 各画像アイテム */
.gallery-item {
    flex: 0 0 320px;
    display: flex; flex-direction: column; align-items: center;
    gap: 15px;
    cursor: pointer;
    
    /* ▼ 初期状態: 半透明 */
    opacity: 0.7;
    transform: scale(1.0);
    
    /* ▼ 戻る時のアニメーション (0.5秒かけて戻る・遅延なし) */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 20px; background-size: cover; background-position: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.gallery-label { font-size: 0.9rem; font-weight: 500; color: var(--text-dark); text-align: center; font-family: var(--font-main); position: relative; padding-bottom: 8px; }
.gallery-label::after { content: ''; display: block; width: 40px; height: 2px; background-color: var(--primary-color); margin: 8px auto 0; opacity: 0.8; }

/* ▼ アクティブ状態 (ホバー または タップ) */
.gallery-item:hover,
.gallery-item.active {
    opacity: 1.0;
    transform: scale(1.1);
    z-index: 10;
    
    /* 強調される時は即座に */
    transition-duration: 0.2s;
}
.gallery-item:hover .gallery-photo,
.gallery-item.active .gallery-photo {
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* PCでは案内文字を隠す */
.mobile-only { display: none; }

/* その他セクション (変更なし) */
.reasons-section { padding: 80px 0; background-color: var(--bg-light); }
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.reason-card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-sm); text-align: center; transition: all 0.3s ease; height: 100%; padding: 30px 20px; }
.reason-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.reason-icon-wrapper { width: 120px; height: 120px; margin: 0 auto 20px; background-color: transparent; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.reason-icon { width: 80px; height: 80px; object-fit: contain; }
.reason-title { color: #a83e3e; font-size: 1.3rem; margin-bottom: 15px; font-weight: 500; font-family: var(--font-main); }
.reason-desc { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; text-align: left; }

.staff-section { padding: 80px 0; background-color: var(--white); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; justify-content: center; }
.staff-card { background: #fff; padding: 30px; border-radius: 20px; text-align: center; border: 1px solid #eee; transition: 0.3s; }
.staff-card:hover { border-color: var(--primary-color); box-shadow: var(--shadow-sm); }
.staff-img { width: 180px !important; height: 180px !important; border-radius: 50%; margin: 0 auto 20px; background-image: url('https://placehold.co/200x200/58a77c/ffffff?text=Staff'); background-size: cover; background-position: center top; border: 4px solid var(--bg-light); transition: transform 0.5s ease; }
.staff-card:hover .staff-img { transform: scale(1.1); }
.staff-role { color: var(--primary-color); font-weight: 500; font-size: 0.9rem; margin-bottom: 5px; display: block;}
.staff-name { font-size: 1.4rem; margin-bottom: 15px; font-family: var(--font-serif); font-weight: 400; }
.staff-msg { font-size: 0.95rem; color: var(--text-light); text-align: left; }

.system-section { background-color: var(--bg-light); padding: 80px 0; }
.tab-nav { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn { background: transparent; border: none; font-family: inherit; font-size: 1.1rem; font-weight: 500; color: var(--text-light); padding: 12px 35px; border-radius: 30px; cursor: pointer; transition: all 0.3s ease; display: inline-block; text-decoration: none; }
.tab-btn:hover { background-color: #e0e0e0; }
.tab-btn.active { pointer-events: none; }
.tab-btn[data-target="culture"].active { background-color: var(--color-culture); color: white; }
.tab-btn[data-target="study"].active { background-color: var(--color-study); color: white; }
.tab-btn[data-target="enjoy"].active { background-color: var(--color-enjoy); color: white; }
.tab-content { display: none; animation: fadeIn 0.6s ease; }
.tab-content.active { display: block; }
.course-card { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); max-width: 850px; margin: 0 auto; text-align: center; border-top: 8px solid #ddd; margin-bottom: 40px; }
.course-card.theme-culture { border-color: var(--color-culture); }
.course-card.theme-study   { border-color: var(--color-study); }
.course-card.theme-enjoy   { border-color: var(--color-enjoy); }
.course-body { padding: 40px; }
.tag-pill { display: inline-block; font-size: 0.9rem; padding: 5px 20px; border-radius: 20px; margin-bottom: 15px; background: #eee; color: #555; font-weight: 500; }
.theme-culture .tag-pill { background: var(--bg-culture); color: var(--color-culture); }
.theme-study .tag-pill { background: var(--bg-study); color: var(--color-study); }
.theme-enjoy .tag-pill { background: var(--bg-enjoy); color: var(--color-enjoy); }
.course-title { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 400; margin-bottom: 30px; color: var(--text-dark); }
.course-layout { display: flex; gap: 30px; text-align: left; align-items: stretch; }
.course-left { flex: 1; display: flex; flex-direction: column; gap: 30px; align-items: center; justify-content: center; text-align: center; }
.course-right { flex: 1; display: flex; }
.detail-block { padding: 10px 0; width: 100%; }
.detail-title { font-size: 1.1rem; color: #999; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 500; }
.detail-content { font-size: 1.6rem; color: var(--text-dark); font-weight: 500; line-height: 1.3; }
.detail-price { font-size: 2.6rem; margin-right: 5px; font-family: var(--font-serif); font-weight: 400; }
.recommend-box { padding: 30px; border-radius: 15px; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.theme-culture .recommend-box { background: var(--bg-culture); }
.theme-study .recommend-box { background: var(--bg-study); }
.theme-enjoy .recommend-box { background: var(--bg-enjoy); }
.recommend-title { text-align: center; font-weight: 500; margin-bottom: 15px; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; gap: 5px; }
.theme-culture .recommend-title { color: var(--color-culture); }
.theme-study .recommend-title { color: var(--color-study); }
.theme-enjoy .recommend-title { color: var(--color-enjoy); }
.check-list li { margin-bottom: 12px; position: relative; padding-left: 28px; font-weight: 400; color: #555; font-size: 1.05rem; }
.check-list li::before { content: '✔'; position: absolute; left: 0; font-weight: bold; top: 1px; }

.rental-section { padding: 80px 0; background-color: #fafafa; }
.rental-container { background: var(--white); border-radius: 20px; padding: 50px 40px; box-shadow: var(--shadow-md); max-width: 950px; margin: 0 auto; border: 1px solid #eee; }
.rental-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 30px; }
.rental-card { background: #fff; border-radius: 15px; padding: 25px; text-align: center; transition: 0.3s; border: 2px solid #f0f0f0; }
.rental-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.rental-day { color: var(--primary-color); font-weight: 500; margin-bottom: 10px; display: block; font-size: 1.2rem; }
.rental-price { font-size: 1.6rem; font-weight: 500; color: var(--text-dark); font-family: var(--font-serif);}
.rental-note { text-align: center; margin-top: 40px; font-size: 0.9rem; color: #888; }

.rule-section { padding: 80px 0; background-color: var(--white); }
.rule-group-label { text-align: center; font-size: 0.9rem; color: #999; margin-bottom: 10px; font-weight: 500; }
.rule-nav-group { display: flex; justify-content: center; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.rule-tab-btn { border: none; font-family: inherit; font-size: 1rem; font-weight: 500; color: var(--text-light); padding: 10px 25px; border-radius: 5px; cursor: pointer; transition: all 0.3s ease; background: #f0f0f0; }
.rule-tab-btn:hover { opacity: 0.8; }
.rule-tab-btn.rule-type-game.active { background-color: var(--primary-color); color: var(--white); }
.rule-tab-btn.rule-type-manner.active { background-color: var(--manner-color); color: var(--white); }
.rule-content-box { background: #ffffff !important; border: 2px solid #eee; border-radius: 15px; padding: 40px; max-width: 900px; margin: 0 auto; min-height: 350px; box-shadow: var(--shadow-sm); }
.rule-content-box.mode-game { border-color: var(--primary-color); }
.rule-content-box.mode-manner { border-color: var(--manner-color); }
.rule-tab-content { display: none; animation: fadeIn 0.4s ease; background-color: transparent !important; }
.rule-tab-content.active { display: block; }
.rule-title { font-size: 1.4rem; margin-bottom: 20px; display: inline-block; border-bottom: 3px solid #ddd; padding-bottom: 5px; font-weight: 400; }
.rule-type-game .rule-title { color: var(--primary-dark); border-color: var(--primary-color); }
.rule-type-manner .rule-title { color: var(--manner-dark); border-color: var(--manner-color); }
.rule-list li { margin-bottom: 15px; padding-left: 1.5em; position: relative; border-bottom: 1px dashed #eee; padding-bottom: 10px; color: var(--text-dark); }
.rule-list li:last-child { border-bottom: none; }
.rule-list li::before { content: '●'; position: absolute; left: 0; font-size: 0.8em; top: 6px; }
.rule-type-game .rule-list li::before { color: var(--primary-color); }
.rule-type-manner .rule-list li::before { color: var(--manner-color); }

.access-section { background-color: #f0f4f2; padding: 80px 0; }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.access-info { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow-sm); }
footer { background-color: #2c3e34; color: rgba(255,255,255,0.7); padding: 50px 0; text-align: center; }

@media (max-width: 768px) {
    .nav-menu { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: var(--white); flex-direction: column; justify-content: center; padding: 40px; transition: 0.4s; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
    .nav-menu.active { right: 0; }
    .menu-toggle { display: block; z-index: 1001; }
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.9rem; }
    .news-item { flex-direction: column; }
    .news-date { margin-bottom: 5px; }
    .concept-container { flex-direction: column; gap: 30px; }
    .concept-image { width: 100%; height: 250px; }
    .reason-grid, .rental-grid { grid-template-columns: 1fr; }
    .course-layout { flex-direction: column; }
    .course-left, .course-right { width: 100%; }
    .recommend-box { height: auto; }
    .access-grid { grid-template-columns: 1fr; }
    .tab-content { display: block !important; opacity: 1 !important; }
    .tab-btn.active { pointer-events: auto; background-color: transparent; color: var(--text-light); }
    .course-title { font-size: 1.8rem; }
    .recommend-title { font-size: 1.1rem; }
    
    /* ▼ スマホ用ギャラリー設定 */
    /* overflow-x: auto を明示してスワイプ可能に */
    .gallery-slider-wrapper { overflow-x: auto; padding-bottom: 30px; }
    
    /* スクロールバーを見せる場合の設定 */
    .gallery-slider-wrapper::-webkit-scrollbar { display: block; height: 5px; }
    .gallery-slider-wrapper::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.2); border-radius: 3px; }
    
    .gallery-item { flex: 0 0 250px; }
    
    /* スマホで案内を表示 */
    .mobile-only { display: block; }
    
    .rule-tab-btn { padding: 8px 15px; font-size: 0.9rem; }
}
@media (min-width: 769px) { .mobile-only { display: none !important; } }