/*
 * style.css
 */

:root {
  --bg-color: #fcfdff; /* クリムゾンレッド */
  --bg-light-gray: #bce1ff4b; /* クリムゾンレッド */
  --text-color: #333333;
  --text-light: #555555;
  --primary-color: #FF33A1;
  --primary-dark-color: #E6007E;
  --secondary-color: #33D4FF;
  --accent-color: #FFD633;
  --border-color: #eeeeee;
  --shadow-color-light: rgba(0, 0, 0, 0.08);
  --shadow-color-hover: rgba(51, 212, 255, 0.2);
  /* 追加の変数 */
  --footer-bg-color: #121212;
  --guideline-color: #7d5fff;
  --guideline-check-color: #ff69b4;
}

body {
    font-family: 'M PLUS Rounded 1c', 'Helvetica Neue', Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* パララックス効果用の変数を定義 (JavaScriptからセットされます) */
    --mouse-x-px: 50%;
    --mouse-y-px: 50%;
    --mouse-x-percent: 50%;
    --mouse-y-percent: 50%;

    background-color: var(--bg-color);
    /* 3つの背景レイヤーを重ねてパララックス効果を表現します */
    background-image:
        /* 1. スポットライト (一番手前) */
        radial-gradient(circle 400px at var(--mouse-x-px) var(--mouse-y-px), rgba(51, 212, 255, 0.1), transparent 80%),
        /* 2. 中間ドット (少し動く) */
        radial-gradient(rgba(0, 0, 0, 0.1) 2px, transparent 2px),
        /* 3. 奥のドット (ほとんど動かない) */
        radial-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px);

    background-repeat: no-repeat, repeat, repeat;
    background-size: 100% 100%, 40px 40px, 20px 20px;
    /* 各レイヤーの位置をマウス座標に応じてずらします */
    background-position:
        0 0, /* スポットライトは 'at' で位置指定済み */
        calc(50% - (var(--mouse-x-percent) - 50%) * 0.2) calc(50% - (var(--mouse-y-percent) - 50%) * 0.2),
        calc(50% - (var(--mouse-x-percent) - 50%) * 0.1) calc(50% - (var(--mouse-y-percent) - 50%) * 0.1);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark-color);
    text-decoration: underline;
}

h1, h3 {
    margin-bottom: 0.5em;
    font-weight: 700;
    color: var(--secondary-color);
}

h2 {
    font-family: 'Poppins', 'M PLUS Rounded 1c', sans-serif;
    font-size: 5.5em;
    font-weight: 700;
    color: var(--primary-dark-color);
    text-align: center;
    margin-bottom: 2.0em;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2::after {
    content: none; /* シンプルなスタイルにするため下線を削除 */
}

/* h2のレスポンシブ対応 */
@media (max-width: 768px) {
    h2 {
        font-size: 3.5em;
    }
}
section {
    padding: 0px 20px;
    text-align: center;
    background-color: transparent; /* ドット背景を活かすため透明に */
}

/* Header Section */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px var(--shadow-color-light);
    box-sizing: border-box;
}

header .logo img {
    height: 50px;
    width: auto;
}

header .logo a {
    display: block; /* Ensure the link area covers the image */
    line-height: 0; /* Remove extra space below the image */
    transition: transform 0.3s ease;
}

header .logo a:hover {
    text-decoration: none; /* Prevent underline on image link hover */
    transform: scale(1.05); /* Add a subtle zoom effect on hover */
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: block;
    background: none;
    border: none;
    color: var(--primary-dark-color);
    font-size: 2em;
    cursor: pointer;
    z-index: 1001; /* Ensure it's clickable */
    transition: color 0.3s, transform 0.3s;
}

.hamburger-btn:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

/* Navigation Menu - Overlay */
header nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    visibility: hidden;
    z-index: 1002; /* ハンバーガーボタン(1001)より手前に表示 */
}

header nav.nav-open {
    transform: translateX(0);
    visibility: visible;
}

/* Close button inside the nav */
.close-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    background: none;
    border: none;
    font-size: 2.5em;
    color: var(--primary-dark-color);
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.close-btn:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

header nav a {
    color: var(--primary-dark-color);
    text-decoration: none;
    font-size: 2.5em; /* Larger font for overlay menu */
    font-weight: 700;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--secondary-color); /* ホバー時はテーマカラーのシアンに変更 */
    text-decoration: none;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* 背景動画のため、sectionの共通背景色を上書き */
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* ドットより手前、コンテンツより後ろ */
}

/* h1用アニメーション：下から優雅にフェードイン */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* 少し下から開始 */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* 本来の位置へ */
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* オーバーレイ */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 5em;
    text-transform: uppercase; /* 全て大文字 */
    margin-bottom: 0.2em;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.02em; /* 文字間調整 */

    /* アニメーションの初期状態と適用 */
    opacity: 0; /* 初期状態では非表示 */
    animation-name: fadeInUp;
    animation-duration: 1.2s;
    animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
    animation-delay: 3.0s;
    animation-fill-mode: forwards; /* アニメーション終了時の状態を維持 */
}

.hero-logo {
    max-width: 500px;
    width: 70%;
    height: auto;
    margin-top: 0;
    opacity: 0; /* 初期状態は非表示 */
    animation: fadeInUp 1.2s cubic-bezier(0.19, 1, 0.22, 1) 3.0s forwards; /* h1の少し後に開始 */
}

/* Members Section */
.members-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 210px; /* 30px * 7 */
    column-gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.member {
    width: 320px;
    background-color: #fff; /* 白い背景に変更 */
    border-radius: 20px;
    box-shadow: 0 8px 25px var(--shadow-color-light);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: visible; /* Allow image to pop out */
    position: relative;
    display: flex;
    flex-direction: column;
}

.member-card-header,
.member-card-body h3,
.member-card-body h4 {
    cursor: pointer; /* モーダルを開くエリアにのみカーソルを設定 */
}

.member-card-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    height: 200px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.member-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 350px; /* Adjust size as needed */
    width: auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ホバーエフェクトは、マウス操作が可能なデバイス（PCなど）に限定して適用 */
/* これにより、スマホやタブレットでの「ホバーが掛かりっぱなしになる」現象を防ぎます */
@media (hover: hover) and (pointer: fine) {
    .member:hover {
        transform: translateY(-15px);
        box-shadow: 0 15px 35px var(--shadow-color-hover);
    }
    .member:hover .member-image {
        transform: translateX(-50%) scale(1.05);
    }
}

.member-card-body {
    padding: 25px 25px 25px 25px; /* Top padding to make space for the image */
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.member-card-body h3 {
    font-size: 1.8em;
    color: var(--primary-dark-color);
    margin: 0 0 2px 0; /* 氏名(h3)の下の余白を調整 */
}

.member-card-body h4 {
    font-size: 1.1em;
    font-weight: 400; /* Normal weight */
    color: var(--text-light);
    margin: 0 0 1.5em 0; /* 英語名(h4)の上の余白をなくし、下に余白を確保 */
    line-height: 1.2;
}

.member-card-body p {
    font-size: 1.0em; /* Slightly smaller for balance */
    font-weight: 700; /* Normal weight */
    color: var(--text-light);
    text-align: left; /* Center align catchphrase */
    line-height: 1.5;
    flex-grow: 1; /* Allow p to take up space */
    margin-bottom: 1.5em;
}

.social-links {
    margin-top: auto; /* Pushes to the bottom */
}

.social-links a {
    margin: 0 12px;
    font-size: 1.6em;
    color: var(--secondary-color);
}

.social-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.video-embed {
    margin-top: 1em;
    border-radius: 8px;
    overflow: hidden;
}

/* News Section Title */
#news h2 {
    margin-bottom: 1.0em;
}

/* Pickup News Section */
.pickup-news-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pickup-news-card {
    width: 350px;
    background-color: #fff; /* 白い背景に変更 */
    border-radius: 16px;
    box-shadow: 0 5px 15px var(--shadow-color-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden; /* 画像の角を丸くするため */
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative; /* ラベルの位置決めの基準にする */
}

.pickup-news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow-color-hover);
}

.pickup-news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pickup-news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* コンテンツエリアをカードの高さに合わせて伸ばす */
}

.pickup-news-card h3 {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 0.5em 0;
    color: var(--primary-color);
    line-height: 1.4;
    /* 1行で省略表示(...)するための設定 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ピックアップニュースカード内の日付タグスタイル */
.pickup-news-card .news-date {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 700; 
    display: inline-block;
    margin-bottom: 0.8em;
    text-align: center;
}

.pickup-news-card p {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    /* 3行で省略表示(...)するための設定 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/* News Card Labels */
.news-card-label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 1px 18px;
    font-size: 0.8em;
    font-weight: 700;
    color: #fff;
    z-index: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pickup-news-card .news-card-label {
    background: linear-gradient(45deg, var(--primary-dark-color), var(--primary-color));
    border-radius: 16px 0 16px 0;
}

.news-item .news-card-label {
    background: linear-gradient(45deg, var(--secondary-color), #33aaff);
    border-radius: 12px 0 12px 0;
}

/* News Section */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #fff; /* 白い背景に変更 */
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px var(--shadow-color-light);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative; /* ラベルの位置決めの基準にする */
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color-hover);
}

.news-text {
    text-align: left; /* デフォルトは左揃え */
}

/* 通常ニュースのタイトルスタイル */
.news-text h3 {
    font-size: 1.7em;
    font-weight: 700;
    margin: 0 0 0.5em 0;
    color: var(--primary-color);
    line-height: 1.4;
    /* 2行で省略表示(...)するための設定 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
}

/* 通常ニュース一覧の日付タグスタイル */
.news-item .news-date {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem; /* 通常ニュースの日付フォントサイズ。remで独立性を確保 */
    font-weight: 700; 
    display: inline-block;
    margin-bottom: 0.8em;
    text-align: center;
}

.news-text p {
    font-size: 1.1em;
    font-weight: 700; 
    line-height: 1.5;
    color: var(--text-light);
}

/* 通常ニュースカードの本文(p)下の余白をなくす */
.news-text p:not(.news-date) {
    margin-bottom: 0;
    /* 2行分の高さを確保して、カードの高さを揃える */
    min-height: 3em; /* line-height(1.5) * 2 lines */
    /* 2行で省略表示(...)するための設定 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.news-item img {
    width: 250px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1em;
    color: var(--primary-dark-color);
    background-color: transparent;
    border: 2px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: 50%; /* 円形にする */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination button:hover {
    background-color: var(--secondary-color); /* ホバー時はセカンダリカラーに */
    color: #fff;
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px var(--shadow-color-hover);
}

.pagination button.active {
    background-color: var(--primary-color); /* アクティブ時はプライマリカラーに */
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 51, 161, 0.4); /* プライマリカラーに合わせた影 */
}

.pagination button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--border-color);
    transform: none;
    box-shadow: none;
}

/* Recommended Section */
.recommended-video-container {
    display: flex; /* 動画を横並びにする */
    overflow-x: auto; /* 横方向のスクロールを有効にする */
    gap: 30px; /* 動画間のスペース */
    padding: 10px 0 20px 0; /* スクロールバーのための余白 */
    max-width: 1200px; /* コンテナの最大幅 */
    margin: 40px auto 0;
    -webkit-overflow-scrolling: touch; /* iOSでのスムーズなスクロール */
    scrollbar-width: thin; /* スクロールバーを細くする (Firefox) */
    scrollbar-color: var(--primary-color) var(--bg-light-gray); /* スクロールバーの色 (Firefox) */
}

/* Recommended Section Title */
#recommended h2 {
    margin-bottom: 0.2em; /* タイトル下の余白を調整 */
}

.recommend-video-item {
    background-color: #fff; /* 白い背景に変更 */
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-color-light);
    overflow: hidden;
    width: 320px; /* 横スクロールのために幅を固定 */
    flex-shrink: 0; /* コンテナが縮んでもアイテムは縮まないようにする */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recommend-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color-hover);
}

.video-thumbnail-link img {
    width: 100%;
    height: 180px; /* 16:9 aspect ratio for 320px width */
    object-fit: cover;
    display: block;
}

.video-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-dark-color);
    margin: 0 0 0.5em 0;
    line-height: 1.4;
}

.video-description {
    font-size: 0.9em;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Guideline Page */
.guideline-main {
    padding-top: 120px; /* ヘッダーの高さ分だけ余白を確保 */
    padding-bottom: 50px;
    background-color: transparent; /* ドット背景を活かす */
}

/* Contact Page */
.contact-main {
    padding-top: 120px; /* ヘッダーの高さ分だけ余白を確保 */
    padding-bottom: 50px;
    background-color: transparent; /* ドット背景を活かす */
}

/* Recommended Sectionのサブタイトル */
#recommended .contact-subtitle {
    font-size: 1.4em;
    font-weight: 700;
}

/* Guidelines Section - Light & Pop Style */
#guidelines {
    color: #555;
    text-align: left;
}

#guidelines h2 {
    /* 基本のh2スタイルを継承し、色のみ変更 */
    color: var(--guideline-color);
    margin-top: 0; /* h2のデフォルトの上マージンを削除 */
    margin-bottom: 1.0em; /* ガイドラインページのタイトル下の余白を調整 */
}

.guideline-content {
    max-width: 1000px;
    margin: auto;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px 40px;
    box-shadow: 0 8px 16px rgba(125, 95, 255, 0.1);
}

.guideline-content h3 {
    color: var(--guideline-color);
    border-left: 5px solid #7d5fff;
    padding-left: 15px;
    margin-top: 2em;
    margin-bottom: 1.5em;
    font-size: 1.4em;
    border-bottom: none; /* Reset from old style */
}

.guideline-content p, .guideline-content li {
    /* The color is inherited from #guidelines */
    line-height: 1.8;
    font-size: 1.1em; /* フォントサイズを少し大きくして読みやすくする */
}

.guideline-content ul {
    list-style: none;
    padding-left: 5px;
}

.guideline-content li {
    position: relative;
    padding-left: 1.8em;
    margin-bottom: 0.8em;
}

.guideline-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--guideline-check-color);
    font-weight: bold;
    font-size: 1.2em;
}

/* Contact Section - Friendly & Pop Style */
#contact {
    padding: 20px 20px 60px; /* 上の余白(padding-top)を60pxから20pxに調整 */
    background-color: transparent; /* ドット背景が見えるように */
}

#contact h2 {
    color: var(--secondary-color); /* テーマカラーのシアンに変更 */
    margin-top: 0; /* h2のデフォルトの上マージンを削除 */
    margin-bottom: 0.5em;
}

.contact-subtitle {
    font-size: 1.1em; /* フォントサイズを調整 */
    font-weight: 700;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2em auto;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 40px;
    background-color: rgba(255, 255, 255, 0.9); /* 少しだけ背景が透けるように */
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(51, 212, 255, 0.2);
    text-align: left;
    backdrop-filter: blur(5px); /* 背景をぼかす */
}

.form-success-message {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed var(--secondary-color);
    border-radius: 16px;
    color: var(--text-color);
}

.form-success-message .fas {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 0.5em;
}

.form-success-message h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5em;
}

.form-success-message p {
    font-size: 1.1em;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label .fas {
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2em;
    font-family: inherit; /* bodyのフォントを継承 */
    color: var(--text-color);
    background-color: var(--bg-light-gray);
    border: none;
    border-radius: 12px;
    box-sizing: border-box; /* paddingを含めてwidth 100%にする */
    transition: box-shadow 0.3s ease;
}

.form-group ::placeholder {
    color: #aaa;
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--shadow-color-hover), 0 4px 10px rgba(51, 212, 255, 0.3);
}

.form-group input.error,
.form-group textarea.error {
    box-shadow: 0 0 0 4px rgba(255, 51, 161, 0.4);
}

.error-message {
    color: var(--primary-dark-color);
    font-size: 0.9em;
    font-weight: 700;
    margin-top: 8px;
    min-height: 1.2em; /* エラーメッセージがない時も高さを確保してレイアウトが崩れないように */
}

.form-group textarea {
    resize: vertical; /* 縦方向のみリサイズ可能に */
    min-height: 180px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 51, 161, 0.3);
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 51, 161, 0.4);
}

/* Footer and Terms of Service */
/* --- Modern Footer Style --- */
footer {
    background-color: var(--footer-bg-color);
    padding: 40px 50px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* 画面が狭い場合に折り返す */
    gap: 20px;
}

footer p {
    color: #888; /* 少し明るくして可読性を保ちつつ、控えめに */
    margin: 0; /* flexboxで管理するためマージンをリセット */
    font-size: 1.0em;
}

.footer-links {
    font-size: 0.9em;
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    margin: 0;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px; /* 下線のためのスペース */
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* News Details Page */
.news-details-main {
    padding-top: 120px; /* ヘッダーの高さ分だけ余白を確保 */
    padding-bottom: 50px;
    background-color: transparent; /* ドット背景を活かすため透明に */
}

#news-detail-content {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff; /* 白い背景に変更 */
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 5px 15px var(--shadow-color-light);
    text-align: left;
}

#news-detail-title {
    /* h2スタイルを継承しつつ、ページに合わせて調整 */
    font-size: 3.0em;
    color: var(--primary-dark-color); /* メインのh2と同じ色に */
    text-align: left;
    line-height: 1.4;
    margin-bottom: 0.5em;
    text-shadow: none;
}

.news-detail-image {
    width: 80%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block; /* 中央寄せを有効にするためにブロック要素にする */
}

#news-detail-text {
    line-height: 1.8;
    color: var(--text-light); /* 本文用のテキストカラーに変更 */
    white-space: pre-line; /* JSON内の改行を反映させる */
    font-size: 1.5em;
    font-weight: 700;
}

.back-to-news {
    display: inline-block;
    margin-top: 30px;
    color: var(--primary-color); /* プライマリカラーに変更 */
    font-weight: bold;
    text-decoration: none;
}

/* News Details Page - Added Contents */
.news-section-subtitle {
    font-size: 1.6em;
    color: var(--text-color); /* 通常のテキストカラーに変更 */
    border-bottom: 2px solid var(--border-color); /* 明るいテーマのボーダーに変更 */
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.news-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.news-gallery-grid a {
    display: block;
    width: calc(33.333% - 10px); /* 3列表示 (15pxのgapを考慮) */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-gallery-grid a:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.news-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#news-detail-links ul {
    list-style: none;
    padding: 0;
}

#news-detail-links li {
    margin-bottom: 10px;
}

#news-detail-links a {
    display: inline-block;
    color: var(--primary-color); /* プライマリカラーに変更 */
    text-decoration: none;
    background-color: var(--bg-color);
    padding: 12px 18px;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    border: 2px solid var(--primary-color); /* プライマリカラーの枠線 */
    font-weight: bold;
}

#news-detail-links a:hover {
    background-color: var(--primary-color); /* ホバー時に背景をプライマリカラーに */
    color: var(--bg-color); /* ホバー時に文字を白に */
    border-color: var(--primary-color);
    transform: translateY(-2px); /* 少し浮き上がる効果 */
}


/* ------------------ 統合モーダルスタイル（ここで既存のモーダル関連ブロックを置換） ------------------ */

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0; /* left/top/right/bottom 0 */
    overflow: auto;
    background-color: rgba(225, 225, 225, 0.418);
    -webkit-overflow-scrolling: touch;
}

/* Modal basic content box */
.modal-content {
    background-color: rgba(29, 29, 29, 0.83);
    padding: 30px;
    width: 75vw;
    max-width: 1500px;
    color: #f0f0f0; /* 暗い背景に合わせて基本テキスト色を明るく */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Override for Terms of Service modal to use a single-column text layout on all screen sizes */
#terms .modal-content {
    flex-direction: column;
    align-items: stretch; /* Let items fill the width, allowing text-align to work as expected */
    width: 90vw;
    max-width: 800px; /* A better width for reading text */
    padding: 30px 40px;
    gap: 1em;
}

/* Ensure h2 is centered and p is left-aligned within the new layout */
#terms .modal-content h2 {
    text-align: center;
}

#terms .modal-content p {
    text-align: left;
    line-height: 1.8;
}

/* Columns inside modal */
.modal-image-column {
    flex: 0 0 45%;
    max-width: 45%;
}
.modal-image-column img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.modal-details-column {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Modal Typography */
.modal-details-column .intro-text {
    text-align: left;
}

#modalName {
    font-size: 2.2em;
    font-weight: 700;
    color: #ff00ae; /* 名前ははっきりと白に */
    margin-bottom: 0.2em;
    line-height: 1.2;
}

#modalNameEn {
    font-size: 1.3em;
    font-weight: 500; /* 太さを調整 */
    color: #cccccc; /* 英語名は少し落ち着いた明るいグレーに */
    margin-bottom: 1.5em;
    line-height: 1.3;
}

#modalIntroduction {
    font-size: 1.1em;
    line-height: 1.7;
    font-weight: 400; /* 太さを調整 */
    color: #e0e0e0; /* 紹介文は読みやすい明るいグレーに */
    margin-bottom: 1.5em;
}

/* プロフィールリストのラベル(dt)と値(dd)のスタイルを個別に追加 */
#modalProfile dt {
    font-size: 0.9em; /* ラベルのフォントサイズ */
    font-weight: 700;
    color: #bbbbbb; /* ラベルは少し落ち着いた明るいグレーに */
}

#modalProfile dd {
    font-size: 1.0em; /* 値のフォントサイズ */
    font-weight: 500; /* 太さを調整 */
    color: #ffffff; /* 値ははっきりと白に */
    margin-left: 0; /* dd要素のデフォルトマージンをリセット */
}

/* Video wrapper (hidden by default; JS toggles display) */
.modal-video-wrapper {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: none;
}

/* responsive video container (absolute positioning only on wide layouts) */
.modal-content .video-embed {
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
}
.modal-content .video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Profile grid default (two columns: label / value) */
#modalProfile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    text-align: left;
    font-size: 1em; /* プロフィール全体の基準フォントサイズ */
    line-height: 1.6;
}

/* Close button */
.close {
    position: absolute;
    top: 5px;
    right: 25px;
    color: var(--primary-color); /* 閉じるボタンの色をテーマカラーに変更 */
    font-size: 28px;
    font-weight: bold;
    z-index: 1001; /* 他の要素より手前に表示 */
}

.close:hover,
.close:focus {
    color: var(--primary-color); /* ホバー時はプライマリカラーに */
    text-decoration: none;
    cursor: pointer;
}

/* Terms of Serviceモーダル専用の閉じるボタン位置調整 */
#terms .close {
    top: 5px;
    right: 25px;
}

.modal-content h2 {
    font-size: 2.5em;
    color: #ffffff; /* モーダル内のタイトルも白に */
    text-align: center;
    margin-bottom: 1em;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Modal Video Section */
.modal-video-wrapper {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #444444; /* 区切り線も背景に合わせて調整 */
    display: none; /* JSで動画がある時だけ表示 */
}

.modal-video-wrapper h4 {
    margin-bottom: 15px;
    font-size: clamp(1rem, 0.8rem + 0.5vw, 1.2rem); /* 可変フォントサイズ */
    color: #e0e0e0; /* トレーラーの見出しも明るく */
    font-weight: bold;
    text-align: left;
}

/* Responsive video embed for modal */
.modal-content .video-embed {
    aspect-ratio: 16 / 9; /* モダンなアスペクト比指定 */
    overflow: hidden;
    width: 100%;
    background: #000;
    border-radius: 8px;
    position: relative; /* iframeを内包するための基準位置 */
}

.modal-content .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/*
 * Tablet (Landscape) & Narrow Desktops
 * 769px -1023px
 * Note: Forces vertical layout for the modal on these specific screen sizes.
 */
@media (min-width: 769px) and (max-width: 1023px) {
    /* keep member grid spacing */
    .members-container {
        row-gap: 210px; /* 48px * 7 */
        column-gap: 48px;
    }

    /* Force modal to stack vertically (image -> profile -> trailer)
     * NOTE: The use of !important here is aggressive. It might be better to refactor
     * the modal's base styles to avoid this in the future. */
    .modal-content {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90vw !important;
        max-width: 900px !important;
        padding: 24px !important;
        gap: 20px !important;
        display: flex !important;
        flex-direction: column !important; /* <-- ensure vertical */
        align-items: center !important;
        justify-content: flex-start !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    /* Image first */
    .modal-image-column {
        order: 1 !important;
        flex: none !important;
        width: 100% !important;
        max-width: 420px !important;
    }
    .modal-image-column img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Profile second */
    .modal-details-column {
        order: 2 !important;
        flex: none !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }

    /* Video/trailer last */
    .modal-video-wrapper {
        order: 3 !important;
        display: block !important;
        width: 100% !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
    }

    /* Profile grid is now two columns for better space usage */
    #modalProfile {
        grid-template-columns: auto 1fr !important; /* 2列レイアウトに変更 */
        gap: 8px 16px !important; /* 横のgapを適切に設定 */
    }

    /* keep card sizing tweaks */
    .member { width: 300px; max-width: 300px; }
    .pickup-news-card { width: 320px; }

    /* 通常ニュースのタイトルフォントサイズをタブレット向けに調整 */
    .news-text h3 {
        font-size: 1.4em;
    }
}

/*
 * Tablet (Portrait) & Large Phones
 * 768px and below
 * Note: Modal styles in this block use !important to override base styles forcefully.
 */
@media (max-width: 768px) {
    body { overflow-x: hidden; }

    h2 {
        font-size: 3.5em;
        margin-bottom: 1.5em; /* Adjust margin for smaller screens */
    }

    /* Modal Typography on mobile */
    #modalName {
        font-size: 1.8em;
    }
    #modalNameEn {
        font-size: 1.1em;
    }
    #modalIntroduction {
        font-size: 1.0em;
    }
    #modalProfile {
        font-size: 0.9em;
    }

    /* ヒーロータイトルのフォントサイズを調整 */
    .overlay h1 {
        font-size: 3.5em;
    }

    /* メンバーセクションのタイトル下余白を倍にする */
    #members h2 {
        margin-bottom: 3.5em; /* 1.5em * 2 */
    }

    section { padding: 20px; }

    /* ピックアップニュースを1列化 */
    .pickup-news-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .pickup-news-card {
        width: 100%;
        max-width: 360px;
    }

    /* メンバーは1列、通常ニュースは2列に */
    .members-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 210px; /* 40px * 7 */
        padding-left: 12px;
        padding-right: 12px;
    }
    .news-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px; /* カード間の隙間を小さくする */
    }
    .member, .news-item {
        width: 100%;
        max-width: 760px;
    }
    .member { max-width: 360px; }

    /* 通常ニュースもカード表示に変更 */
    .news-item {
        flex-direction: column;
        padding: 0; /* パディングをリセット */
        overflow: hidden; /* 画像の角丸を適用するため */
        width: calc(50% - 6px); /* 2列表示 (gap 12px / 2) */
        max-width: 360px; /* 他のカードとサイズ感を合わせる */
        gap: 0;
        border: none; /* カードスタイルに合わせる */
    }
    .news-item img {
        width: 100%;
        height: auto; /* 高さを自動調整 */
        aspect-ratio: 16 / 9; /* アスペクト比を16:9に固定 */
        border-radius: 12px 12px 0 0; /* 上部の角だけ丸くする */
    }
    .news-text {
        padding: 15px; /* カードサイズに合わせパディングを少し小さく */
        width: 100%;
        text-align: center; /* 768px以下では中央揃え */
        box-sizing: border-box;
    }

    /* 通常ニュースカードのフォントサイズ調整 */
    .news-item .news-date {
        font-size: 0.8rem;
        padding: 3px 8px;
        margin-bottom: 0.6em;
    }
    .news-text h3 {
        font-size: 1.1em; /* カードサイズに合わせてタイトルを調整 */
        line-height: 1.3;
        /* 2行で省略表示(...)するための設定 */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2; /* 2行表示に変更 */
        line-clamp: 2;
        overflow: hidden;
        text-align: left; /* タイトルは左揃えに戻す */
    }
    .news-text p {
        font-size: 0.8em; /* カードサイズに合わせて本文を調整 */
        line-height: 1.5; /* 行間を調整 */
        /* 3行で省略表示(...)するための設定 */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
    }
    /* 本文は左揃えに戻す */
    .news-text p:not(.news-date) {
        text-align: left;
    }

    /* フッターを縦並び中央揃えに */
    footer {
        flex-direction: column;
        padding: 30px 20px;
    }

    /* ヒーローやヘッダー調整 */
    header { padding: 15px 20px; }
    .close-btn { right: 25px; }

    /* ニュース詳細ギャラリーを2列化 */
    .news-gallery-grid a { width: calc(50% - 8px); }

    /* ニュース詳細ページのレスポンシブ調整 */
    .news-details-main {
        padding-top: 100px; /* ヘッダー分を少し調整 */
    }
    #news-detail-content {
        padding: 20px; /* パディングを小さく */
    }
    #news-detail-title {
        font-size: 2.2em; /* タイトルフォントサイズを調整 */
    }
    #news-detail-text {
        font-size: 1.2em; /* 本文フォントサイズを調整 */
    }
    .news-detail-image {
        width: 100%; /* 画像幅を100%に */
    }
    /* --- Modal Override for Vertical Layout --- */
    .modal {
        position: fixed;
        inset: 0;
    }

    .modal-content {
        display: flex !important;
        flex-direction: column !important;    /* 縦並びを強制 */
        align-items: center !important;
        justify-content: flex-start !important;
        width: 92vw !important;
        max-width: 680px !important;
        padding: 16px !important;
        gap: 12px !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    .modal-image-column {
        flex: none !important;
        width: 100% !important;
        max-width: 420px !important;
    }

    .modal-image-column img {
        width: 100% !important;
        height: auto !important;
    }

    .modal-details-column {
        flex: none !important;
        width: 100% !important;
    }

    /* プロファイルは2列表示に変更し、可読性を維持 */
    #modalProfile {
        grid-template-columns: auto 1fr !important; /* 2列レイアウトに変更 */
    }
    #modalProfile dd {
        margin-bottom: 0 !important; /* 縦並び用のマージンをリセット */
    }

    /* 埋め込み動画のレスポンシブ化 */
    .modal-content .video-embed,
    .modal-content .video-embed iframe {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }
}

/*
 * Small Phones
 * 480px and below
 */
@media (max-width: 480px) {
    .members-container {
        gap: 168px; /* 24px * 7 */
        padding-left: 8px; padding-right: 8px; }
    .member { max-width: 100%; width: 92%; }
    .pickup-news-card { width: 100%; }
    .news-gallery-grid a { width: 100%; }

    /* おススメセクションのタイトルフォントサイズを調整 */
    #recommended h2 {
        font-size: 2.8em; /* 小さい画面向けに調整 */
        margin-bottom: 0.2em; /* タイトル下の余白をさらに小さく調整 */
    }

    /* おススメセクションのサブタイトルフォントサイズを調整 */
    #recommended .contact-subtitle {
        font-size: 1.2em; /* 小さい画面向けに調整 */
        margin-bottom: 1.8em;
    }

    /* ガイドラインページのフォントサイズを調整 */
    .guideline-content p,
    .guideline-content li {
        font-size: 1.0em; /* 小さい画面向けに調整 */
    }

    /* ニュース詳細ページのレスポンシブ調整 */
    #news-detail-content {
        padding: 15px;
    }
    #news-detail-title {
        font-size: 1.8em;
    }
    #news-detail-text {
        font-size: 1.0em;
    }
    .modal-content {
        width: 94vw;
        max-width: 680px;
        padding: 14px;
        gap: 12px;
    }
    .modal-image-column { width: 100%; max-width: none; }
    .modal-details-column { width: 100%; }
    .modal-content .video-embed { width: 100%; }
}

/* Fix: constrain standard news list to centered max-width container */
#news .news-container,
.news-section .news-container,
.news-container {
  width: 100%;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
}

/* Ensure each news item respects the parent container and doesn't overflow */
#news .news-item,
.news-container .news-item {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Normalize duplicates: ensure iframe rules consistent */
.video-embed iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

/* --- Mobile overflow fixes / 強制安定化（ファイル末尾に追加） --- */
/* 全要素の box-sizing を統一（パディングで幅がずれるのを防ぐ） */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 基本の横はみ出し防止 */
html, body {
  width: 100%;
  min-width: 320px; /* 必要に応じて調整 */
  -webkit-text-size-adjust: 100%; /* iOS の自動文字拡大抑制 */
  overflow-x: hidden; /* 追加の保険（既に body に設定があれば冗長） */
}

/* 画像・メディアは親幅に収める（はみ出し防止） */
img, picture, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 長い単語や大きな見出しの改行を許可 */
h1, h2, h3, p, li, a {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* コンテナの幅安定化（小画面で余白を作る要素があればここで吸収） */
section, .members-container, .pickup-news-container, .news-container, .recommended-video-container {
  width: 100%;
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* 固定幅/vw を使っている要素があれば、超小画面での振る舞いをここで抑制 */
.modal-content, header, .member, .pickup-news-card, .recommend-video-item {
  max-width: 100%;
  box-sizing: border-box;
}

/* 特定の超小画面での追加安定化（387px 以下で発生する症状を防ぐ） */
@media (max-width: 387px) {
  html, body {
    min-width: 320px;
  }

  /* 余計な左右マージン／パディングを減らす */
  section {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* 大見出しのサイズ抑制 */
  h1 {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    line-height: 1.2 !important;
  }

  /* 大見出しのサイズ抑制 */
  h2 {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    line-height: 1.2 !important;
  }

  /* おすすめセクションのサブタイトルを調整 */
  #recommended .contact-subtitle {
    font-size: 1.1em !important;
    margin-bottom: 1.5em !important;
  }

  /* メンバーセクションのタイトル下余白をさらに調整 */
  #members h2 {
    margin-bottom: 7.0em !important; /* 3.5em * 2 */
  }

  /* メンバーカード等の横幅安定化 */
  .member, .pickup-news-card, .recommend-video-item {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* ヘッダーの左右位置を強制 */
  header {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

/* 汎用テキスト行数制限ユーティリティ
   使用例: .clamp { --lines: 3; } または <p class="clamp" style="--lines:2"> */
.clamp {
  display: -webkit-box;               /* WebKit の多行クランプ用 */
  -webkit-box-orient: vertical;       /* WebKit の向き指定 */
  overflow: hidden;                   /* はみ出しを切る */
  text-overflow: ellipsis;            /* 末尾省略（行数クランプと組み合わせる） */

  /* ベンダープレフィックスと標準（可能であれば）を両方指定 */
  -webkit-line-clamp: var(--lines, 3);
  line-clamp: var(--lines, 3);
}

/* Constrain Recommended section to centered max-width container (override generic rule) */
.recommended-video-container {
  width: 100%;
  max-width: 1200px !important;
  margin: 40px auto 0 !important; /* 上の余白を維持して中央寄せ */
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
  overflow-x: auto; /* アイテムがはみ出す場合は内部でスクロール */
}

/* Ensure items still use horizontal scroll inside constrained container */
.recommended-video-container .recommend-video-item {
  flex-shrink: 0; /* 横スクロールのアイテムが縮まないように */
}
