@charset "UTF-8";

/* =========================================================
   1. リセットと基本設定 (White Theme)
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333; /* 文字色を黒に近いグレーに */
    background-color: #fff; /* 背景を白に */
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 共通コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   2. ヘッダーエリア (White Style)
   ========================================================= */
header {
    position: fixed; /* 常時固定表示に変更 */
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95); /* 半透明の白背景 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* うっすら影 */
}

/* ロゴ */
.logo-link {
    display: block;
    z-index: 101;
}

.logo-img {
    height: 40px; /* 少し小さく上品に */
    width: auto;
    display: block;
    /* ロゴが白い場合、反転させるか黒いロゴ画像を使う必要があります */
    /* 下記は黒いロゴがない場合の緊急用フィルタ（黒くする） */
    /*filter: brightness(0); 
    opacity: 0.8;*/
}

/* ナビゲーション (PCレイアウト) */
.main-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    text-align: center;
}

.main-nav ul {
    list-style: none;
    display: inline-flex;
    gap: 30px;
}

.main-nav a {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #444; /* メニュー文字色：濃いグレー */
    padding-bottom: 5px;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #00b4d8;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00b4d8;
}

/* PC用パートナーロゴ */
.partner-logos {
    display: flex;
    gap: 20px;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #666;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.partner-item:hover {
    color: #00b4d8;
}

.icon-box {
    width: 20px;
    height: 20px;
    background-color: #eee; /* アイコン背景をグレーに */
    border-radius: 3px;
}

/* モバイル用メニュー内要素 */
.mobile-partners {
    display: none; 
}

/* ハンバーガーボタン */
.hamburger-btn {
    display: none;
    cursor: pointer;
    z-index: 1102; /* ヘッダーより上 */
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger-btn span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #333; /* 黒に変更 */
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger-btn span:nth-child(1) { top: 0px; }
.hamburger-btn span:nth-child(2) { top: 9px; }
.hamburger-btn span:nth-child(3) { top: 18px; }

.hamburger-btn.open span { background: #fff; } /* 開いたときは白（背景が黒になるため） */

.hamburger-btn.open span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* =========================================================
   3. フッターエリア (Clean Style)
   ========================================================= */
.site-footer {
    background-color: #f9f9f9; /* 明るいグレーに変更 */
    color: #666;
    padding: 80px 20px 20px;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    flex: 2;
    min-width: 300px;
}

.footer-logo {
    width: 140px;
    margin-bottom: 20px;
    /*
    filter: brightness(0); 
    opacity: 0.7;*/
}

.footer-tagline {
    color: #888;
    line-height: 1.8;
    margin-bottom: 30px;
}

.site-footer h4 {
    color: #333; /* 見出しを黒に */
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00b4d8;
    text-decoration: underline;
}

/* フッターバナーリンク（白ベースに合うデザイン） */
.footer-banner-link {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    color: #555;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.footer-banner-link:hover {
    background: #fff;
    color: #00b4d8;
    border-color: #00b4d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,180,216,0.1);
}

.copyright {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #999;
}

/* =========================================================
   4. レスポンシブ (スマホ対応) - Ultra Rich Edition
   ========================================================= */

   @media (max-width: 900px) {
    /* --- ヘッダー本体 --- */
    header {
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.85); /* 少し透けさせる */
        backdrop-filter: blur(10px); /* すりガラス効果 */
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

    .partner-logos {
        display: none;
    }

    /* --- ハンバーガーボタン (アニメーション付き) --- */
    .hamburger-btn {
        display: block;
        position: relative;
        width: 30px;
        height: 24px;
        z-index: 200; /* メニューより手前 */
        cursor: pointer;
    }
    
    .hamburger-btn span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* バネのような動き */
    }

    /* 3本線の配置 */
    .hamburger-btn span:nth-of-type(1) { top: 0; }
    .hamburger-btn span:nth-of-type(2) { top: 50%; transform: translateY(-50%); }
    .hamburger-btn span:nth-of-type(3) { bottom: 0; }

    /* 開いたときのボタン変形 (×印になる) */
    .hamburger-btn.open span:nth-of-type(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        background-color: #00b4d8; /* 開くと青くなる */
    }
    .hamburger-btn.open span:nth-of-type(2) {
        opacity: 0; /* 真ん中の線は消える */
        transform: translateX(20px);
    }
    .hamburger-btn.open span:nth-of-type(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
        background-color: #00b4d8;
    }

    /* --- フルスクリーンメニュー画面 --- */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        
        /* リッチな背景設定 */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px); /* 強力なぼかし */
        
        /* アニメーション基点 */
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%); /* 左からスライドインに変更 */
        transition: all 0.4s cubic-bezier(0.215, 0.610, 0.355, 1.000);
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 100;
        padding-top: 40px;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateX(0); /* スライドイン */
    }

    /* --- メニューリスト (シンプルデザイン) --- */
    .main-nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        gap: 0;
        padding: 0 20px;
    }

    .main-nav li {
        width: 100%;
        display: block;
        /* border-bottomなし */
        
        /* アニメーション用初期値 */
        opacity: 0;
        transform: translateX(-15px);
        transition: all 0.4s ease;
    }

    /* 時間差で出現 */
    .main-nav.open li:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateX(0); }
    .main-nav.open li:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateX(0); }
    .main-nav.open li:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
    .main-nav.open li:nth-child(4) { transition-delay: 0.25s; opacity: 1; transform: translateX(0); }
    .main-nav.open li:nth-child(5) { transition-delay: 0.3s; opacity: 1; transform: translateX(0); }
    .main-nav.open li:nth-child(6) { transition-delay: 0.35s; opacity: 1; transform: translateX(0); }
    .main-nav.open li:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateX(0); }
    
    /* --- リンクのスタイリング --- */
    .main-nav a {
        display: block;
        padding: 8px 0;
        color: #333;
        font-weight: 700;
        font-size: 1rem;
        text-decoration: none;
        transition: color 0.3s;
        text-align: left;
    }

    /* モバイルではアンダーライン削除 */
    .main-nav a.active::after {
        display: none;
    }

    /* ホバー(タップ)時のエフェクト */
    .main-nav a:hover,
    .main-nav a:active,
    .main-nav a.active {
        color: #00b4d8;
    }

    /* --- フッター調整 --- */
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    .footer-brand, .footer-links, .footer-external {
        min-width: 100%;
        text-align: center;
    }
    .footer-banner-link {
        justify-content: center;
    }
}
/* =========================================
   モバイルメニュー内のパートナーリンク設定
   ========================================= */

/* 基本設定：PCなど通常の画面幅では非表示にする */
.mobile-partners {
    display: none;
}

/* スマホ・タブレット表示（ハンバーガーメニュー有効時）の設定 */
@media (max-width: 900px) {
    
    /* モバイルメニュー内では表示させる */
    .main-nav .mobile-partners {
        display: flex;
        flex-direction: column; /* 縦並び */
        justify-content: flex-start;
        align-items: flex-start;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        max-width: 400px; /* メニュー幅に合わせる */
        padding-left: 20px;
        padding-right: 20px;
    }

    /* リンクアイテムのスタイル */
    .mobile-partners .partner-item {
        text-decoration: none;
        color: #333;
        text-align: left;
        font-size: 0.9rem;
        width: 100%;
        padding: 12px 0;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: color 0.3s;
    }
    
    .mobile-partners .partner-item:hover {
        color: #00b4d8;
    }

    .mobile-partners .icon-box {
        width: 24px;
        height: 24px;
        background-color: #eee;
        border-radius: 4px;
        margin: 0;
        flex-shrink: 0;
    }
}