/* --- 基本設定とリセット --- */
html {
    scroll-behavior: smooth;
    /* スムーズスクロールを有効化 */
}

body,
h1,
h2,
p,
ul {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Yusei Magic', sans-serif;
    line-height: 1.7;
    background-color: #000000;
    /* ページの基本背景色 */
    color: #333;
    /* 基本の文字色 */
    text-align: center;
    position: relative;
}

/* --- オーバーレイ画像(左からスライドイン) --- */
.overlay-image {
    position: absolute;
    top: 2%;
    left: -100%;
    width: 100%;
    height: 200%;
    z-index: 10;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    pointer-events: none;
    animation: slideInFromLeft 1s ease-out forwards;
}

.overlay-image img {
    max-width: 50%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes slideInFromLeft {
    0% {
        left: -100%;
    }

    100% {
        left: 2%;
    }
}

/* --- オーバーレイ画像(右からスライドイン) --- */
.overlay-image-right {
    position: absolute;
    top: -10%;
    right: 50%;
    width: 100%;
    height: 300%;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: none;
    animation: slideInFromRight 1s ease-out forwards;
}

.overlay-image-right img {
    max-width: 50%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes slideInFromRight {
    0% {
        right: -100%;
    }

    100% {
        right: 0;
    }
}

.container {
    width: 90%;
    max-width: 1100px;
    /* コンテンツの最大幅 */
    margin: 0 auto;
    /* 中央揃え */
    text-align: center;
}

a {
    text-decoration: none;
    color: inherit;
    /* リンクの色を親要素から継承 */
}

/* --- 1. ヘッダー --- */
.site-header {
    background-color: rgba(0, 0, 0, 0.85);
    /* ヘッダー内の文字色（リンクはinheritで継承されます） */
    color: #ffffff;
    fill: #ffffff;
    -webkit-font-smoothing: antialiased;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    /* 細い境界線 */
    position: sticky;
    /* スクロールしてもヘッダーを固定 */
    top: 0;
    z-index: 1000;
    /* backdrop-filterを削除してパフォーマンス向上 */
}

.header-container {
    display: flex;
    justify-content: space-between;
    /* ロゴとナビを両端に配置 */
    align-items: center;
    /* 垂直方向の中央揃え */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    /* ロゴの色（白） */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    /* メニュー項目の間隔 */
}

.main-nav a {
    font-weight: 500;
    font-size: 0.9rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ffcccc;
    /* マウスオーバー時の色 */
}

/* ハンバーガーメニュー（デフォルトは非表示。モバイルで表示） */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 45px;
    height: 30px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    /* 線同士の間隔を少し狭める（以前は 4px） */
    margin: 2px 0;
    transition: transform 250ms ease, opacity 200ms ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* モバイル時のナビ表示 */
@media (max-width: 768px) {
    .header-container {
        position: relative;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.95);
        display: none;
        z-index: 1200;
        padding-bottom: 12px;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 8px 0;
    }

    .main-nav a {
        display: block;
        padding: 12px 20px;
        color: #ffffff;
    }

    .main-nav a:hover {
        background: rgba(255, 255, 255, 0.03);
    }

    .hamburger {
        display: flex;
    }

    /* メニューをデスクトップで横並びにしていた .main-nav ul の設定と被らないように調整 */
    .main-nav ul {
        justify-content: flex-start;
    }
}

/* --- 2. ヒーローセクション (メイン画像) --- */
.hero {
    width: 100%;
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ヒーロー用下からスライドアップするCTAテキスト */
.hero-cta {
    position: absolute;
    left: 50%;
    /* より上に表示する（bottom を増やす） */
    bottom: 50%;
    transform: translate(-50%, 100%);
    width: min(90%, 1100px);
    z-index: 50;
    transition: transform 700ms cubic-bezier(.22, .8, .32, 1), opacity 400ms ease;
    opacity: 0;
    pointer-events: none;
}

.hero-cta.visible {
    transform: translate(-50%, 0%);
    opacity: 1;
    pointer-events: auto;
}

.hero-cta-text {
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(1.1rem, 3.6vw, 2.4rem);
    text-align: center;
    /* 文字の後ろに半透明の黒背景を付けて可読性を向上 */
    display: inline-block;
    background: rgba(0, 0, 0, 0.55);
    padding: 10px 16px;
    border-radius: 8px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    /* 背景のぼかし（対応ブラウザのみ） */
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {

    /* タブレットではやや上に表示 */
    .hero-cta {
        bottom: 12%;
    }

    .hero-cta-text {
        font-size: clamp(1rem, 4.2vw, 1.6rem);
    }
}

@media (max-width: 480px) {

    /* モバイルでは上寄せ（だが画面に重ならないように注意） */
    .hero-cta {
        bottom: 10%;
        width: 95%;
    }

    .hero-cta-text {
        font-size: 1rem;
        padding: 6px 10px;
    }
}

/* --- 3. コンテンツセクション共通 --- */
.content-section {
    padding: 80px 0;
    /* 各セクションの上下の余白 */
}

.content-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* --- About セクション --- */
#About {
    padding: 0;
}

#About h2 {
    font-size: 2.2rem;
    text-align: center;
    margin: 40px 0;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.about-image {
    margin: 0;
    position: relative;
    /* 重ねるために相対位置を親に設定 */
    overflow: hidden;
    /* はみ出しを隠す */
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* overlay-omoi: 下からスライドアップしてくる画像 */
.overlay-omoi {
    position: absolute;
    left: 50%;
    /* デフォルトは top 指定（data-top があれば JS が上書きします） */
    top: 10%;
    transform: translate(-50%, 100%);
    /* 幅は画面に応じて変化（最大920px）。より大きく表示されるように調整 */
    width: min(85%, 920px);
    z-index: 20;
    /* テキストを選択したいため pointer-events は有効にする */
    pointer-events: auto;
    transition: transform 800ms cubic-bezier(.22, .8, .32, 1);
}

.overlay-omoi img {
    width: 100%;
    height: auto;
    display: block;
}

/* visible クラスを付与するとスライドアップする */
.overlay-omoi.visible {
    transform: translate(-50%, 0%);
}

/* omoi のテキストスタイル */
.omoi-text {
    color: #ffffff;
    background: transparent;
    padding: 22px 28px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.omoi-text h3 {
    margin: 0 0 16px 0;
    /* h3 と p の間に空白を作る（必要に応じ調整） */
    font-size: clamp(1.4rem, 3.2vw, 2.6rem);
    font-weight: 700;
}

.omoi-text p {
    margin: 0;
    line-height: 1.6;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
}

/* About テキストのコンテナ */
.about-text {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.8;
}

.about-text p {
    font-size: 1.05rem;
    color: #000000;
}

/* レスポンシブ調整: タブレット以下や小さい画面向け */
@media (max-width: 768px) {
    .overlay-omoi {
        width: 90%;
        top: 8%;
    }

    .omoi-text {
        padding: 14px 16px;
    }

    .omoi-text h3 {
        font-size: clamp(1.1rem, 3.2vw, 1.8rem);
    }

    .omoi-text p {
        font-size: clamp(0.9rem, 2.6vw, 1rem);
    }
}

@media (max-width: 480px) {

    /* スマホではオーバーレイの位置はそのままにしつつ、文字を小さくして収まるようにする */
    .overlay-omoi {
        width: 95%;
        top: 6%;
        position: absolute;
        left: 50%;
        /* 初期は下に隠れる（.visible でスライドアップ） */
        transform: translate(-50%, 100%);
        z-index: 20;
    }

    .omoi-text {
        padding: 10px 12px;
    }

    .omoi-text h3 {
        font-size: 1rem;
        margin: 0 0 8px 0;
    }

    .omoi-text p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* body の余白を元に戻す（固定オーバーレイではないため不要） */
    body {
        padding-bottom: 0;
    }
}

/* --- メニューセクション --- */
#Menu {
    padding: 0;
}

#Menu h2 {
    font-size: 2.2rem;
    text-align: center;
    margin: 40px 0;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.menu-item {
    overflow: hidden;
}

.menu-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    /* 遅延読み込み時の背景色 */
    background-color: #000000;
    transition: transform 0.3s ease;
}

.menu-item:hover img {
    transform: scale(1.02);
}

/* --- モーダル --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.modal-comment {
    margin-top: 20px;
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
    /* 属性内の改行文字 (\n) をそのまま表示するために pre-wrap を使用 */
    white-space: pre-wrap;
    /* 長い単語やURLなどがはみ出さないように折り返す */
    word-break: break-word;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
    color: #ff6b6b;
    transform: rotate(90deg);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }

    .modal-content img {
        max-height: 60vh;
    }

    .modal-comment {
        font-size: 1rem;
        padding: 15px 20px;
        margin-top: 15px;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .menu-grid {
        gap: 0;
    }
}

/* --- セクションごとの背景色 --- */
.light-bg {
    background-color: #ffffff;
    /* 明るい背景 (淡い赤) */
    color: #000000;
}

.dark-bg {
    background-color: #000000;
    /* 暗い背景 (黒) */
    color: #f4f4f4;
    /* 暗い背景用の文字色 */
}

.dark-bg h2 {
    color: #ffffff;
    /* 暗い背景用の見出し色 */
}

/* --- スポンサーセクション --- */
.sponsor-tier {
    margin-bottom: 50px;
}

.tier-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    text-transform: capitalize;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.sponsor-name {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}

/* Platinum スポンサー専用スタイル */
.sponsor-tier.platinum .tier-title {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #ffffff;
    font-weight: bold;
}

.sponsor-tier.platinum .sponsor-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
}

.sponsor-tier.platinum .sponsor-name {
    font-size: 1.5rem;
    padding: 35px;
    font-weight: 600;
}

/* Gold スポンサー専用スタイル */
.sponsor-tier.gold .tier-title {
    font-size: 2.3rem;
    margin-bottom: 35px;
    color: #fafafa;
    font-weight: bold;
}

.sponsor-tier.gold .sponsor-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
}

.sponsor-tier.gold .sponsor-name {
    font-size: 1.3rem;
    padding: 30px;
    font-weight: 500;
}

/* Silver スポンサー専用スタイル: 行間を狭くして表示を詰める */
.sponsor-tier.silver .sponsor-name {
    /* body の line-height が 1.7 に設定されているため、Silver は狭めに調整 */
    line-height: 1.25;
}

/* レスポンシブ: 小さい画面では1列に */
@media (max-width: 768px) {
    .sponsor-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-tier.platinum .tier-title {
        font-size: 2.2rem;
    }

    .sponsor-tier.gold .tier-title {
        font-size: 1.9rem;
    }
}

/* --- Contact セクション --- */
.contact-info {
    max-width: 700px;
    margin: 0 auto;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-table tr {
    border-bottom: 1px solid #ddd;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table th {
    background-color: #8b0000;
    color: #ffffff;
    text-align: left;
    padding: 20px;
    font-weight: 600;
    width: 30%;
    font-size: 1rem;
}

.info-table td {
    padding: 20px;
    color: #333;
    font-size: 1rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {

    .info-table th,
    .info-table td {
        padding: 15px;
        font-size: 0.9rem;
    }

    .info-table th {
        width: 35%;
    }
}

/* --- 4. フッター --- */
.site-footer {
    background-color: #000000;
    /* フッターの背景色 */
    color: #ffffff;
    /* フッターの文字色 */
    padding: 50px 0;
    text-align: center;
}