/* =========================================
   共通変数・基本設定
   ========================================= */
:root {
    --main-sky: #00BFFF;       /* メインの水色 */
    --light-sky: #E0F7FA;      /* 背景用薄い水色 */
    --dark-sky: #0097A7;       /* 強調用濃い水色 */
    --text-main: #333333;      /* 基本文字色 */
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* スムーズスクロール */
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden; /* 横はみ出し防止 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =========================================
   ヘッダー (レスポンシブ対応)
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    background: var(--glass);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--light-sky);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* 画面幅に合わせて折り返す */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo span {
    color: var(--main-sky);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap; /* リンクが多い場合に折り返す */
    gap: 15px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--main-sky);
}

/* ニュースアーカイブ用ボックス */
.news-archive-frame { display: grid; gap: 20px; }
.news-box { background: var(--white); padding: 20px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.04); border:1px solid rgba(0,191,255,0.06); }
.news-box .date { display: block; font-size:0.8rem; color:#888; margin-bottom:6px; }

/* ヘッダー内の特別ボタン */
.nav-btn-fan {
    background: var(--main-sky) !important;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-btn-biz {
    border: 1px solid var(--main-sky);
    color: var(--main-sky) !important;
    padding: 8px 15px;
    border-radius: 5px;
}

/* =========================================
   セクション共通
   ========================================= */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 5px;
    background: var(--main-sky);
    border-radius: 5px;
}

/* =========================================
   ヒーロー・ゲートセクション (誘導)
   ========================================= */
.hero {
    height: 80vh;
    background: linear-gradient(135deg, var(--light-sky) 0%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem); /* 画面幅に合わせて文字サイズ調整 */
    font-weight: 900;
    margin-bottom: 30px;
}

.gate-flex {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.gate-card {
    flex: 1;
    min-width: 300px;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
}

.fan-gate { background: var(--light-sky); }
.biz-gate { border: 1px solid var(--light-sky); }

.btn-gate {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--main-sky);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
}

/* =========================================
   フォーム関連
   ========================================= */
.sky-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--light-sky);
}

.fan-variant {
    border: 3px dashed var(--main-sky);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-sky);
    border-radius: 10px;
    font-size: 1rem;
}

input:focus, textarea:focus {
    border-color: var(--main-sky);
    outline: none;
}

.btn-main {
    background: var(--main-sky);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.3);
}

/* =========================================
   アニメーション・進捗バー
   ========================================= */
#progress-container {
    position: fixed;
    top: 0;
    width: 100%;
    height: 5px;
    z-index: 2000;
}

#progress-bar {
    height: 100%;
    background: var(--main-sky);
    width: 0%;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   モバイル対応 (スマホ表示)
   ========================================= */
@media (max-width: 768px) {
    nav {
        justify-content: center; /* ロゴを中央に */
    }
    .nav-links {
        justify-content: center;
        width: 100%;
        margin-top: 15px;
        gap: 10px;
    }
    .nav-links li a {
        font-size: 0.8rem;
    }
    section {
        padding: 60px 0;
    }
}

/* =========================================
   セクション共通ブロックスタイル
   ========================================= */
.section-block {
    background: linear-gradient(180deg, rgba(224,247,250,0.6), rgba(255,255,255,0.6));
    padding: 34px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(8,40,60,0.06);
    margin-bottom: 30px;
    border: 1px solid rgba(0,191,255,0.06);
}

/* ニュース一覧をカードグリッドに */
.news-frame { display:flex; flex-direction:column; gap:14px; }
.news-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; padding: 0; margin: 0; }
.news-list li {
    background: var(--white);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0,0,0,0.04);
}
.news-list .date { font-size: 0.8rem; color: #888; min-width: 86px; }
.news-list .tag { font-size: 0.72rem; padding: 6px 10px; border-radius: 999px; }
.news-list .tag.event { background: rgba(0,191,255,0.08); color: var(--main-sky); border: 1px solid rgba(0,191,255,0.12); }
.news-list .news-text { font-weight: 700; color: #222; }
.view-more { justify-self: end; display: inline-block; margin-top: 6px; color: var(--main-sky); font-weight: 700; text-decoration: none; }

/* スケジュールのカードレイアウト */
.schedule-container { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.today-card {
    flex: 1 1 340px;
    background: var(--white);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(0,133,179,0.04);
    border: 1px solid rgba(0,191,255,0.06);
}
.card-header { font-weight: 900; color: var(--main-sky); margin-bottom: 8px; }
.card-body .time { font-weight: 900; font-size: 1.2rem; color: #333; }
.week-frame { flex: 1 1 260px; }
.week-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.week-list li { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-radius:10px; background: rgba(224,247,250,0.6); }
.week-list li.active { background: var(--main-sky); color: #fff; font-weight: 800; }

/* プロフィールのグリッド */
.profile-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 28px; align-items: center; }
.profile-img .img-placeholder { height: 100%; min-height: 260px; border-radius: 16px; }
.profile-text .bio { color: #444; margin-bottom: 14px; }
.profile-table th { text-align: left; padding-right: 12px; color: #666; font-weight: 700; }
.profile-table td { color: #333; }

/* フッターSNS とコピーライト */
.footer-sns { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; }
.footer-sns i { font-size: 1.3rem; color: var(--text-main); opacity: 0.85; transition: 0.18s; }
.footer-sns i:hover { color: var(--main-sky); transform: translateY(-3px); }

footer {
    text-align: center;
    padding: 22px 0;
}

footer p {
    font-size: 0.78rem;
    color: #555;
    opacity: 0.75;
}

/* レスポンシブ微調整 */
@media (max-width: 768px) {
    .profile-grid { grid-template-columns: 1fr; }
    .schedule-container { flex-direction: column; }
}

/* 動画ブロック */
.videos-container { display: grid; gap: 18px; background: transparent !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; border: none !important; }

/* 個別のビデオセクションをカード化 */
.videos-container .latest-video,
.videos-container .recommended {
    background: linear-gradient(180deg, rgba(224,247,250,0.6), rgba(255,255,255,0.6));
    padding: 34px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(8,40,60,0.06);
    border: 1px solid rgba(0,191,255,0.06);
}

.latest-video .video-flex { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
/* RTA specific smaller embed */
#rta .video-embed {
    flex: 0 0 160px;
    max-width: 160px;
    /* enforce horizontal 16:9 ratio */
    aspect-ratio: 16 / 9;
}

.latest-video .video-embed { flex: 2; min-width: 240px; position: relative; padding-top: 56.25%; overflow: hidden; border-radius: 12px; }
.latest-video .video-embed iframe { position: absolute; top:0; left:0; width:100%; height:100%; border-radius: 12px; }
.latest-video .video-desc { flex: 1; min-width: 120px; }
.latest-video .video-desc ul { list-style: disc; margin-left: 1.2rem; color: #333; }
.latest-video .video-desc ul li { padding: 6px 0; border-bottom: 2px solid rgba(0,0,0,0.2); }
.latest-video .video-desc ul li:last-child { border-bottom: none; }

/* smaller recommended cards */
.rec-grid { gap: 6px; }
.video-card { padding: 4px; }
.video-card .thumb { border-radius: 6px; }
.video-card .v-title { font-size: 0.75rem; }
.recommended .rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.video-card { display: block; text-decoration: none; color: inherit; }
.video-card .thumb { width: 100%; padding-top: 56%; background-size: cover; background-position: center; border-radius: 10px; box-shadow: 0 8px 20px rgba(8,40,60,0.06); border: 1px solid rgba(0,0,0,0.04); }
.video-card.shorts .thumb { padding-top: 178%; }
.video-card .v-title { margin-top: 8px; font-weight: 700; font-size: 0.95rem; }

@media (max-width: 1024px) {
    .recommended .rec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .recommended .rec-grid { grid-template-columns: 1fr; }
}

/* グッズカード */
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.goods-card { display:block; text-decoration:none; color:inherit; background:var(--white); padding:10px; border-radius:12px; border:1px solid rgba(0,0,0,0.04); box-shadow: 0 8px 24px rgba(8,40,60,0.04); }
.goods-title { margin-top:8px; font-weight:800; text-align:center; }

@media (max-width: 1024px) {
    .goods-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .goods-grid { grid-template-columns: 1fr; }
}

/* 上に戻るボタン */
.to-top { position: fixed; right: 18px; bottom: 22px; width:44px; height:44px; border-radius:50%; background:var(--main-sky); color:#fff; border:none; display:none; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 8px 20px rgba(0,191,255,0.18); z-index:2001; }
.to-top:hover { transform: translateY(-3px); }

/* おすすめ動画セクション */
#recommended .rec-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-sky);
}

#recommended .rec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 20px;
}

/* RTA枠用 */
#rta .rec-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
}

#recommended .video-card {
    transition: 0.3s ease;
}

#recommended .video-card:hover {
    transform: translateY(-8px);
}

#recommended .video-card:hover .thumb {
    box-shadow: 0 12px 28px rgba(0,191,255,0.2);
}

/* ensure anchor sections are visible when header is fixed */
section[id] {
    scroll-margin-top: 100px; /* adjust to match header height */
}

#recommended .v-title {
    margin-top: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
}

@media (max-width: 1024px) {
    #recommended .rec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    #recommended .rec-grid { grid-template-columns: 1fr; }
}