
/* 1. 画面の基本設定 */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* 上から順に並べる */
    align-items: center;    /* 中央寄せ */
    background-color: #fff; /* 背景を白に */
    overflow-x: hidden;     /* 横揺れ防止 */
}

/* --- ヘッダー全体（追従機能統合版） --- */
.site-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    
    /* ここから追従用の追加設定 */
    position: fixed;      /* 画面上部に固定 */
    top: 0;
    left: 0;
    z-index: 1000;        /* 最前面に表示 */
    transition: transform 0.4s ease, opacity 0.4s ease; /* 消える時のアニメーション */
}

/* ロゴ画像のサイズを制限する */
.logo-image {
    width: 280px;    /* 横幅を280pxに制限（お好みで調整してください） */
    height: auto;     /* 高さは比率を維持して自動調整 */
    display: block;   /* 下に余計な隙間を作らない */
    padding: 10px 0;  /* 上下に少し余白を設ける */
}

/* 親要素（header-left）で位置を整える */
.header-left {
    display: flex;
    align-items: center; /* 垂直方向の中央に配置 */
}

/* JSでこのクラスがついた時に、上にスライドして消える */
.site-header.hide-header {
    transform: translateY(-100%); /* ヘッダーの高さ分、上に隠す */
    opacity: 0;
}

/* --- ニュースバー（変更なし） --- */
.news-bar {
    background: #fdf2f2;
    color: #d32f2f;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: bold;
}



/* --- レイアウトの最重要部分 --- */
.header-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex; /* これで左ロゴ、右グループを横並びに */
    justify-content: space-between;
    align-items: flex-end; /* ロゴの下ラインに揃える */
    padding: 10px 0;
}

.header-right {
    display: flex;
    flex-direction: column; /* 右側の中で上下2段にする */
    align-items: flex-end; /* 全てを右寄せに */
}

/* 上段サブメニュー */
.utility-nav {
    display: flex;
    gap: 15px;
    font-size: 11px;
    margin-bottom: 8px;
    color: #666;
}
.utility-nav a { text-decoration: none; color: inherit; }

/* 下段（メニューとボタンを横一列に） */
.lower-nav-area {
    display: flex;
    align-items: center; /* 垂直方向の中央揃え */
    gap: 20px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
}
.main-nav li { font-weight: bold; font-size: 14px; white-space: nowrap; }

/* ボタンとメニューボックス */
.action-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-pink { background: linear-gradient(90deg, #ff5e62, #ff99ac); color: #fff; padding: 12px 18px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 13px; }
.btn-cyan { background: linear-gradient(90deg, #00d2ff, #3a7bd5); color: #fff; padding: 12px 18px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 13px; }

.menu-box {
    background: #000830;
    width: 55px; height: 55px; border-radius: 8px; border: none;
    display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff;
}
.line { width: 25px; height: 2px; background: #fff; margin: 2px 0; }
.menu-box p { font-size: 9px; font-weight: bold; margin-top: 2px; }

/* --- 早めに消すレスポンシブ --- */
@media (max-width: 1280px) {
    .main-nav, .utility-nav { display: none; }
}
/* top navi section */







/* 2. 動画を包む外枠：ここを横いっぱいに広げます */
/* --- 動画セクションの調整 --- */
/* --- 2. 動画を包む外枠 (位置調整・完全版) --- */
.video-outer-frame {
    /* ヘッダーの高さ＋本家のような余裕のある余白 */
    margin-top: 180px !important; 
    
    width: 98%; 
    max-width: 1920px; 
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px; /* バナーとの間も少し広げると綺麗です */
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    background-color: #000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* 3. 動画そのものの設定 */
.video-outer-frame video {
    /* 前回の「魔法のセット」を維持 */
    width: 100%;
    height: auto; 
    display: block;
}

/* 4. 重ねる文字（ついでに微調整） */
.video-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 8%; /* 横に広がった分、少し内側へ */
    pointer-events: none;
    z-index: 10;
}

.video-overlay-text p {
    color: #fff;
    /* 画面幅に合わせて文字も大きくなるように調整 */
    font-size: clamp(28px, 6vw, 80px); 
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.4);
}



/* =============================================
   1. 土台：bodyのpaddingは0
   ============================================= */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
}

/* =============================================
   2. メインラッパー (画面端まで使う設定)
   ============================================= */
.main-content-wrapper {
    display: flex;
    justify-content: center; /* タイルを中央に */
    align-items: flex-start;
    width: 100%; 
    max-width: 1600px; 
    margin: 60px auto !important; 
    position: relative;
    box-sizing: border-box;
    padding: 0; 
}



/* =============================================
   4. 中央タイルコンテナ (top banner complete)
   ============================================= */
.tile-grid-container {
    flex: 1;
    max-width: 900px; 
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 50px; 
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tile-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.tile-item img { width: 100%; height: auto; display: block; object-fit: cover; }

/* =============================================
   6. レスポンシブ (complete準拠の3段階を死守)
   ============================================= */
@media (max-width: 1250px) {
    /* 左メニューは消さずに「重なり」を維持 */
    .main-content-wrapper { justify-content: center; }
    .tile-grid-container { padding: 0 60px; }
}

@media (max-width: 992px) {
    .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
}

@media (max-width: 768px) {
    /* スマホサイズでメニュー非表示 */
    .sticky-nav-left, .sticky-nav-right { display: none; }
    .tile-grid { grid-template-columns: 1fr; }
    .tile-grid-container { padding: 0 150px; } 
}

