/* --- 1. 変数定義 (色・フォント・設定) --- */
:root {
    /* カラーパレット */
    --bg-dark: #151d19;      /* 深い緑黒 (エナベースの森の色) */
    --text-main: #F2F2F2;    /* 読みやすい白 */
    --text-muted: #A8B3AF;   /* 落ち着いたグレー */
    --accent-gold: #D4AF37;  /* 侘び寂びを感じる金 */
    --accent-wood: #8B5A2B;  /* DIY・木の温もり */
    
    /* グラスモーフィズム設定 */
    --glass-bg: rgba(20, 30, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;
    
    /* フォント */
    --font-serif: "Zen Old Mincho", serif;
    --font-sans: "Inter", sans-serif;
}

/* --- 2. リセット & 基本設定 --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.9;
    overflow-x: hidden;
    font-feature-settings: "palt";
}

/* --- 3. 背景 & テクスチャ --- */

/* ノイズテクスチャ (画面全体にフィルムのような粒子感を出す) */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjA1Ii8+PC9zdmc+');
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* 背景画像設定 */
.bg-fixed {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.5) sepia(0.2); /* 少し暗く、セピアを入れてレトロ感を演出 */
}

/* --- 4. タイポグラフィ --- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: 0.08em; }

.section-title { 
    font-size: clamp(1.8rem, 4vw, 2.5rem); 
    margin-bottom: 1.5rem; 
    line-height: 1.4; 
}
.section-label { 
    display: block; 
    font-size: 0.75rem; 
    color: var(--accent-gold); 
    letter-spacing: 0.3em; 
    margin-bottom: 1rem; 
}
.text-link {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-gold);
    margin-top: 0.5rem;
    display: inline-block;
}

/* --- 5. 共通レイアウト & コンポーネント --- */
.section-padding { padding: 6rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.center-header { text-align: center; margin-bottom: 4rem; }

/* グラスモーフィズム（カード・コンテナ共通） */
.glass-card, .glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

/* Storyなどのテキストコンテナは余白を持たせる */
.glass-container {
    padding: 2.5rem;
}

/* カード型（プランなど）は画像を端まで表示するため余白ゼロにする */
.glass-card {
    padding: 0; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; /* 角丸から画像がはみ出ないように */
}
.glass-card:hover { 
    transform: translateY(-5px); 
    border-color: rgba(255,255,255,0.3); 
}


/* --- 6. 各セクションのスタイル --- */

/* === ヒーローセクション === */
.hero { 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    position: relative; 
}
.hero-tagline { font-size: 0.9rem; letter-spacing: 0.2em; margin-bottom: 1.5rem; opacity: 0.9; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.5rem; text-shadow: 0 4px 20px rgba(0,0,0,0.7); }
.hero-subtitle { font-size: 1rem; letter-spacing: 0.3em; color: var(--accent-gold); margin-bottom: 3rem; }
.scroll-indicator { 
    position: absolute; bottom: 2rem; 
    font-size: 0.7rem; letter-spacing: 0.2em; 
    writing-mode: vertical-rl; opacity: 0.7; 
    animation: bounce 2s infinite; 
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* === ストーリー === */
.story { display: flex; justify-content: center; }
.story .glass-container { max-width: 800px; text-align: center; border-left: 3px solid var(--accent-gold); }
.story-text { font-size: 1rem; color: var(--text-muted); margin-top: 2rem; }

/* === Bento Grid (Values) === */
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) {
    .bento-grid { grid-template-columns: repeat(3, 1fr); }
    .item-large { grid-column: span 2; }
    .item-wide { grid-column: span 3; }
}
/* Bentoアイテムはテキストのみなので余白を復活させる */
.bento-item { 
    padding: 2rem !important; 
    display: flex; flex-direction: column; justify-content: center; 
    min-height: 220px; position: relative; 
}
.bento-num { font-size: 3rem; position: absolute; top: 0; right: 1rem; color: rgba(255,255,255,0.05); font-family: var(--font-serif); }
.bento-content h3 { color: var(--accent-gold); margin-bottom: 0.5rem; font-size: 1.3rem; }
.bento-content p { font-size: 0.9rem; color: var(--text-muted); }

/* === プランセクション === */
.plans-container { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.plan-card { flex: 1; min-width: 300px; max-width: 450px; position: relative; }

/* プラン画像の設定 */
.card-image {
    width: 100%;
    height: 220px; /* 画像の高さ */
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠いっぱいにトリミング */
    transition: transform 0.5s ease;
}
.plan-card:hover .card-image img {
    transform: scale(1.1); /* ホバーでズーム */
}

/* プラン本文 */
.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex; flex-direction: column;
}

.badge { 
    position: absolute; top: 1rem; right: 1rem; 
    background: var(--bg-dark); border: 1px solid var(--accent-gold); 
    color: var(--accent-gold); padding: 0.3rem 1rem; 
    font-size: 0.75rem; border-radius: 50px; letter-spacing: 0.05em; z-index: 10;
}
.badge.highlight { background: var(--accent-gold); color: var(--bg-dark); }

.plan-target { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.price-box { background: rgba(0,0,0,0.3); padding: 1rem; margin-bottom: 1.5rem; border-radius: 4px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.price-row:last-child { margin-bottom: 0; }
.amount { font-size: 1.4rem; font-family: var(--font-serif); }
.plan-features { list-style: none; margin-bottom: 2rem; font-size: 0.9rem; color: var(--text-muted); }
.plan-features li { margin-bottom: 0.5rem; padding-left: 1.2rem; position: relative; }
.plan-features li::before { content: "•"; color: var(--accent-gold); position: absolute; left: 0; }

/* === ボタン === */
.btn-primary, .btn-outline { text-align: center; padding: 1rem 2rem; border-radius: 50px; text-decoration: none; font-weight: bold; transition: all 0.3s; display: inline-block; }
.btn-primary { background: var(--text-main); color: var(--bg-dark); }
.btn-primary:hover { background: var(--accent-gold); }
.btn-outline { border: 1px solid var(--text-main); color: var(--text-main); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.full-width { width: 100%; display: block; margin-top: auto; }

/* === インフォメーション & CTA === */
.info { margin: 4rem auto 8rem; text-align: center; }
.info-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; }
.info-item h4 { color: var(--accent-gold); margin-bottom: 0.5rem; font-size: 0.9rem; letter-spacing: 0.2em; }

.sticky-cta { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px; z-index: 100; }
.cta-button { display: block; width: 100%; padding: 1rem; background: rgba(212, 175, 55, 0.95); color: var(--bg-dark); text-align: center; text-decoration: none; font-weight: bold; border-radius: 4px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); backdrop-filter: blur(4px); }

/* フッター */
footer { text-align: center; padding: 2rem; font-size: 0.8rem; color: var(--text-muted); padding-bottom: 6rem; }

/* --- 7. アニメーション --- */
.fade-in { animation: fadeIn 2.5s ease forwards; opacity: 0; }
@keyframes fadeIn { to { opacity: 1; } }
.scroll-trigger { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.scroll-trigger.visible { opacity: 1; transform: translateY(0); }