/**
 * WinWin ウェブサイト共通CSS
 * 
 * このファイルには全ページで共通して使用されるスタイルを定義しています。
 * KISS原則に従い、DRY原則を守り、責任を明確に分離しています。
 */

/* ========================================
   ベーススタイル
   ======================================== */

/**
 * body要素の基本スタイル
 * 背景色、テキスト色、背景画像（紙の質感）を設定
 */
body {
    background-color: #FDFCF8;
    color: #464038;
    /* 紙の質感を表現するSVGパターン */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%236B7280' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/**
 * テキスト選択時のスタイル
 * ブランドカラーを使用した選択範囲の色を設定
 */
::selection {
    background-color: #E6F0EA;
    color: #4A6C56;
}

/* ========================================
   背景装飾要素
   ======================================== */

/**
 * 有機的な形の背景装飾
 * ぼかし効果を使用して柔らかい雰囲気を作る
 */
.bg-organic {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

/* ========================================
   アニメーション
   ======================================== */

/**
 * フェードインアニメーション
 * スクロール時に要素が下から上にフェードインして表示される
 */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/**
 * アニメーション適用用のクラス
 * JavaScriptでreveal-itemクラスが追加されるとアニメーションが開始される
 */
.reveal-item {
    animation: fadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/**
 * アニメーション開始前の状態
 * 透明度0で非表示にして、スクロール時に表示される
 */
.reveal-wait {
    opacity: 0;
}

/* ========================================
   ガラスモーフィズムパネル
   ======================================== */

/**
 * ガラスモーフィズム効果を持つパネル
 * ヘッダーなどに使用され、背景をぼかして半透明のガラスのような効果を実現
 */
.glass-panel {
    background: rgba(253, 252, 248, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(70, 64, 56, 0.03);
}

/* ========================================
   FAQアコーディオン
   ======================================== */

/**
 * FAQアコーディオンのコンテンツ部分のトランジション
 * 開閉時の高さ、透明度、マージンの変化を滑らかにする
 */
.faq-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-bottom 0.3s ease;
}

/* ========================================
   タイムライン関連スタイル
   ======================================== */

/**
 * タイムラインの接続線
 * フローやシステムページなどで使用されるタイムライン要素間を結ぶ線
 */
.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: #E0DCD0;
    z-index: 0;
}

@media (min-width: 768px) {
    .timeline-line::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

/**
 * タイムライン接続用の別スタイル（systemページなどで使用）
 */
.timeline-connect::before {
    content: '';
    position: absolute;
    top: 2rem;
    bottom: -2rem;
    left: 24px;
    width: 2px;
    background-color: #E0DCD0;
    z-index: 0;
}

.timeline-item:last-child .timeline-connect::before {
    display: none;
}

/* ========================================
   サイドバーナビゲーション
   ======================================== */

/**
 * サイドバーリンクのアクティブ状態
 * companyページなどで使用されるサイドバーの現在選択中のセクションを示す
 */
.sidebar-link.active {
    color: #4A6C56;
    border-left-color: #4A6C56;
    background-color: #F2EFE9;
    font-weight: bold;
}

/* ========================================
   地図スタイル
   ======================================== */

/**
 * OpenStreetMapコンテナのスタイル
 * index.htmlのアクセスセクションで使用される地図のスタイル
 */
#map {
    z-index: 1;
}

.leaflet-container {
    background-color: #3D5A47;
}







