* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ライト/ダークモード共通変数 */
:root {
    /* ライトモード用変数 */
    --bg-color: #ffffff;
    --text-color: #000000;
    --header-text: #ffffff;
    --secondary-bg: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-color: #333333;
    
    /* トランジション設定 */
    --transition-time: 0.3s;
}

/* ダークモード用変数 */
.dark-mode {
    --bg-color: #000000;
    --text-color: #ffffff;
    --header-text: #ffffff;
    --secondary-bg: #121212;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --accent-color: #d3005a;
    --gold-color: #d3005a;
    --gold-light: #d3005a;
    --gold-dark: #d3005a;
}

/* 全体の見出しにBebas Neueフォントを適用 */
h1, h2, h3, h4, h5, h6,
.parallax-title,
.project-title,
.logo,
header nav ul li a,
.mobile-menu ul li a {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-time) ease, 
                color var(--transition-time) ease;
}

/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    position: fixed;
    width: 100%;
    background-color: transparent; /* 初期状態は透明 */
    z-index: 1000;
    border-bottom: none; /* 初期状態は境界線なし */
    transition: all 0.3s ease; /* 変化をスムーズに */
}

/* ライトモード時のスクロール後のヘッダー */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ダークモード時のスクロール後のヘッダー */
.dark-mode header.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 初期状態のヘッダーテキスト */
.logo, 
header nav ul li a,
.mobile-menu-btn {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: color var(--transition-time) ease, text-shadow var(--transition-time) ease;
}

/* ライトモード時のスクロール後のヘッダーテキスト */
header.scrolled .logo,
header.scrolled nav ul li a,
header.scrolled .mobile-menu-btn {
    color: #000000;
    text-shadow: none;
}

/* ダークモード時のスクロール後のヘッダーテキスト */
.dark-mode header.scrolled .logo,
.dark-mode header.scrolled nav ul li a,
.dark-mode header.scrolled .mobile-menu-btn {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    position: relative;
}

/* ページ内リンクのハイライト */
header nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.3s ease;
}

header nav ul li a:not(.active)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

header nav ul li a:not(.active):hover::after {
    transform: scaleX(1);
}

/* ホバー効果 */
header nav ul li a:hover {
    opacity: 0.8;
}

/* ライトモード時のスクロール後のホバー効果 */
header.scrolled nav ul li a:hover {
    color: #000000;
    opacity: 0.7;
}

/* ダークモード時のスクロール後のホバー効果 */
.dark-mode header.scrolled nav ul li a:hover {
    color: var(--gold-light);
    opacity: 0.8;
}

/* ダークモード切り替えスイッチスタイル */
.dark-mode-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    margin-left: 20px;
    cursor: pointer;
}

.dark-mode-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dark-mode-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cccccc;
    border-radius: 30px;
    transition: 0.4s;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.dark-mode-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), background-color 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

input:checked + .dark-mode-slider {
    background-color: #d3005a;
}

input:checked + .dark-mode-slider:before {
    transform: translateX(30px);
    background-color: #121212;
}

/* スイッチのアイコン */
.dark-mode-slider:after {
    content: "🌮";
    position: absolute;
    left: 8px;
    top: 6px;
    font-size: 14px;
    color: #121212;
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), content 0.2s ease;
    opacity: 1;
}

input:checked + .dark-mode-slider:after {
    content: "🌵";
    left: 38px;
    color: #121212;
    opacity: 1;
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2); /* 暗い覆いを追加してロゴの視認性を高める */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slider-item.active {
    opacity: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* スライダー画像の上にオーバーレイを追加 */
.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 80%;
    max-width: 1200px;
    text-align: center;
}

.logo-main {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
}

.logo-main img {
    width: auto;
    max-width: 70%;
    height: auto;
    max-height: 70vh; /* 画面の高さの70%を最大サイズとする */
    object-fit: contain;
    /*filter: drop-shadow(0px 0px 15px rgba(212, 175, 55, 0.6));*/ /* ゴールドの影 */
    transition: all 0.3s ease;
}

/* パララックスタイトルのアニメーション用スタイル */
.parallax-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

/* ゴールドアクセントの追加 */
.parallax-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.parallax-title {
    font-size: 70px;
    font-weight: bold;
    color: var(--text-color);
    text-align: center;
    position: relative;
    white-space: nowrap;
    letter-spacing: 2px;
    line-height: 1;
    /* JSで制御するためのプロパティ（初期状態） */
    will-change: opacity, transform;
    /* transition プロパティはJSで動的に設定 */
}

.dark-mode .parallax-title {
    color: var(--accent-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* パララックスタイトルが表示されるときのスタイル（参考用、実際はJSで制御） */
.parallax-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* フェードイン要素用のキーフレーム アニメーション（オプション） */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* オプション：クラスベースでのアニメーション適用 */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* イントロセクション */
.section-intro {
    padding: 100px 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 80px;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h3 {
    font-size: 32px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: var(--text-color);
    transition: color var(--transition-time) ease;
}

.dark-mode .intro-content h3 {
    color: var(--accent-color);
}

.intro-content p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    transition: color var(--transition-time) ease;
}

/* プロジェクトグリッド */
.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 100px 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
    grid-gap: 20px;
    /* 明示的に表示を保証 */
    visibility: visible;
    opacity: 1;
}

/* プロジェクト要素のスタイル更新 */
.project {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* 左上と右下を角丸に */
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 6px 16px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    /* 明示的に表示を保証 */
    visibility: visible;
    opacity: 1 !important; /* 重要性を高めて上書き */
    background-color: var(--secondary-bg);
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dark-mode .project:hover {
    box-shadow: 0 10px 25px rgba(var(--gold-dark), 0.2);
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    /* 画像のロード完了を待たずに表示領域を確保 */
    min-height: 250px;
    background-color: #f5f5f5;
}

.project:hover img {
    transform: scale(1.05);
}

.dark-mode .project:hover img {
    filter: brightness(1.1);
}

/* 画像も角丸に合わせる */
.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    transition: background-color 0.3s ease;
}

.project:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

.dark-mode .project::before {
    background: rgba(0, 0, 0, 0.4);
}

.dark-mode .project:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(100%);
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 2;
    border-top-left-radius: 0;
    border-bottom-right-radius: 30px;
}

.dark-mode .project-info {
    background: rgba(0, 0, 0, 0.85);
}

.project:hover .project-info {
    transform: translateY(0);
}

.project-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 1px;
    color: var(--text-color);
    transition: color var(--transition-time) ease;
}

.dark-mode .project-title {
    color: var(--accent-color);
}

.project-category {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    transition: color var(--transition-time) ease;
}

.dark-mode .project-category {
    color: var(--gold-light);
    opacity: 0.8;
}

.project-description {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-color);
    transition: color var(--transition-time) ease;
}

/* パララックス背景セクション */
.parallax-bg-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    will-change: transform;
}

.parallax-content {
    width: 100%;
    max-width: 1400px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 40px;
    transition: background-color var(--transition-time) ease;
}

.dark-mode .parallax-content {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.parallax-bg-section .parallax-container {
    height: 150px;
    margin-bottom: 30px;
}

.parallax-bg-section .intro-content {
    padding: 0;
}

/* フッター */
footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    transition: border-top var(--transition-time) ease, background-color var(--transition-time) ease;
}

.dark-mode footer {
    border-top: 1px solid var(--gold-dark);
    background-color: var(--secondary-bg);
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    margin: 0 10px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: color var(--transition-time) ease;
}

.dark-mode .social-links a {
    color: var(--accent-color);
}

.social-links a:hover {
    color: var(--accent-color);
}

.dark-mode .social-links a:hover {
    color: var(--gold-light);
    opacity: 1;
    text-shadow: 0 0 10px rgba(245, 222, 157, 0.5);
}

.copyright {
    font-size: 14px;
    color: #666;
    transition: color var(--transition-time) ease;
}

.dark-mode .copyright {
    color: #888888;
}

/* モバイルメニュー */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* テキストに影をつけて視認性向上 */
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
    overflow: hidden;
}

/* ハンバーガーメニューのアニメーション */
.mobile-menu-btn::before {
    content: "☰";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover::before {
    transform: scale(1.2) rotate(10deg);
}

.mobile-menu-btn:active::before {
    transform: scale(0.9);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease, background-color var(--transition-time) ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin: 20px 0;
    text-align: center;
}

.mobile-menu ul li a {
    font-size: 24px;
    letter-spacing: 1.5px;
    color: var(--text-color);
    transition: color var(--transition-time) ease;
}

.dark-mode .mobile-menu ul li a {
    color: var(--accent-color);
}

/* クローズボタンのアニメーション */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu::before {
    content: "☰";
    position: absolute;
    transition: transform 0.3s ease;
}

.close-menu:hover::before {
    transform: rotate(90deg) scale(1.2);
}

.close-menu:active::before {
    transform: rotate(90deg) scale(0.9);
}

.dark-mode .close-menu {
    color: var(--accent-color);
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: var(--gold-color);
}

/* About Usセクション内のテーブル形式リスト */
#table {
    list-style: none;
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 0;
}

#table li {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: border-color var(--transition-time) ease;
}

.dark-mode #table li {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

#table li:last-child {
    border-bottom: none;
}

#table span {
    width: 120px;
    font-weight: bold;
    color: var(--accent-color);
    text-align: left;
    padding-right: 20px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    transition: color var(--transition-time) ease;
}

#table div {
    flex: 1;
    text-align: left;
}

#table p {
    margin: 0;
    line-height: 1.6;
}

/* セクション間のスペーシング調整 */
.section-intro {
    padding-top: 100px;
    padding-bottom: 100px;
}

.section-intro + .section-intro {
    padding-top: 50px; /* 連続するセクションの間隔を調整 */
}

/* パララックスコンテンツの余白調整 */
.parallax-content .intro-content {
    padding: 20px 0;
}

/* サービスセクションのスタイル */
.section-intro:nth-of-type(3) {
    background-color: var(--secondary-bg);
    transition: background-color var(--transition-time) ease;
    margin: 0;
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.section-intro:nth-of-type(3) .intro-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* About Usセクションのスタイル */
.section-intro:nth-of-type(4) {
    border-bottom: none;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .projects {
        grid-template-columns: 1fr;
    }

    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .parallax-title {
        font-size: 50px;
    }
    
    .section-intro {
        padding: 80px 20px 40px;
    }
    
    .intro-content h3 {
        font-size: 28px;
    }
    
    .parallax-bg-section {
        height: auto;
        min-height: 80vh;
        padding: 80px 0;
    }
    
    .parallax-content {
        margin: 0 20px;
        padding: 30px;
    }
    
    .parallax-bg-section .parallax-container {
        height: 100px;
    }
    
    .hero-content {
        width: 90%;
    }
    
    .logo-main img {
        max-height: 50vh; /* モバイルでは画面の高さの50%に制限 */
    }
    
    /* モバイルメニュー内のスイッチ */
    .mobile-menu .dark-mode-toggle {
        margin: 20px auto 0;
    }
    
    #table li {
        flex-direction: column;
    }
    
    #table span {
        width: 100%;
        margin-bottom: 5px;
    }
    
    #table div {
        width: 100%;
    }
}

/* 小さい画面サイズ */
@media (max-width: 480px) {
    .logo-main img {
        max-height: 40vh; /* さらに小さい画面では高さの40%に制限 */
    }
    
    .parallax-title {
        font-size: 40px;
    }
    
    .intro-content h3 {
        font-size: 24px;
    }
}

/* 大画面サイズ */
@media (min-width: 1600px) {
    .logo-main img {
        max-height: 60vh; /* 大画面では高さの60%に制限 */
    }
}

/* 縦長の画面 */
@media (orientation: portrait) {
    .logo-main img {
        max-width: 70%; /* 縦長画面では幅を90%に制限 */
    }
}

/* 横長の画面 */
@media (orientation: landscape) and (max-height: 600px) {
    .logo-main img {
        max-height: 50vh; /* 横長で高さが低い画面では高さの50%に制限 */
    }
    
    .hero-section {
        height: 90vh;
    }
}

/* ヒーローセクションがスクロールで画面外になっても見えるようにする（必要に応じて） */
@media (min-height: 900px) {
    .hero-section {
        min-height: 900px; /* 最小の高さを設定 */
    }
}

/* 低い解像度のデバイスで背景画像を調整 */
@media (max-width: 768px) and (max-height: 800px) {
    .hero-section {
        height: 90vh;
    }
}

/* モバイルメニュー関連の修正 */

/* 閉じボタンのスタイル修正 - 位置とデザインの調整 */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002; /* ハンバーガーメニューよりも上に表示 */
}

/* 閉じボタンのテキストを×マークに変更 */
.close-menu::before {
    content: "✕"; /* ハンバーガーアイコンから×アイコンに変更 */
    position: absolute;
    transition: transform 0.3s ease;
}

/* モバイルメニューアクティブ時のハンバーガーメニューボタンを非表示に */
.mobile-menu.active + header .mobile-menu-btn,
.mobile-menu.active ~ * .mobile-menu-btn {
    display: none;
}

/* モバイルメニューが開いている時は、一時的にハンバーガーメニューボタンを隠す */
body.menu-open .mobile-menu-btn {
    visibility: hidden;
}

/* ヘッダーとモバイルメニューの修正スタイル */
/* style.cssに追加してください */

/* ヘッダー右側のフレックスレイアウト */
.header-right {
  display: flex;
  align-items: center;
}

/* モバイルメニュー構造修正 */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 上下に分ける */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition: transform 0.3s ease, 
              opacity 0.3s ease,
              visibility 0s linear 0.3s,
              background-color var(--transition-time) ease;
}

/* モバイルメニューが開いたとき */
.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.3s ease, 
              opacity 0.3s ease,
              visibility 0s linear 0s;
}

/* モバイルメニューヘッダー */
.mobile-menu-header {
  padding: 20px;
  display: flex;
  justify-content: flex-end;
}

/* モバイルメニューフッター */
.mobile-menu-footer {
  padding: 20px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border-color);
}

/* モバイルメニュー本体 */
.mobile-menu ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  margin: 0;
}

/* 閉じるボタン */
.close-menu {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
  transition: transform 0.3s ease, color 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.close-menu:hover {
  transform: rotate(90deg);
}

/* モバイルメニューボタンの修正 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  margin-left: 15px;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 通常のレイアウトではモバイルメニューボタンを非表示に */
@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

/* モバイルレイアウトでの表示調整 */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  /* ダークモードトグルの調整 */
  .dark-mode-toggle {
    margin-left: 10px;
  }
  
  /* モバイルでのヘッダー余白調整 */
  header {
    padding: 10px 15px;
  }
}

/* インスタグラム埋め込みの中央配置用CSS */
/* style.cssに追加してください */

/* インスタグラム埋め込みのコンテナを中央揃えに */
.instagram-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 20px 0;
}

/* ダークモード対応 */
.dark-mode .instagram-media {
  background-color: #121212 !important;
  border-color: #333 !important;
}

/* レスポンシブ対応 */
@media (max-width: 540px) {
  .instagram-container {
    margin: 15px 0;
  }
  
  /* モバイルでの幅調整（オプション） */
  .instagram-container .instagram-media {
    width: 100% !important;
    min-width: unset !important;
  }
}

/* ソーシャルメディアアイコンのスタイル */
.social-links {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 25px;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #d3005a; /* 指定された背景色 */
  color: white; /* 指定されたアイコン色 */
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 20px;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(211, 0, 90, 0.3);
  opacity: 0.9;
}

.social-icon svg {
  stroke: white; /* SVGのストロークを白に設定 */
  fill: none; /* SVGの塗りつぶしなし */
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .social-links {
    gap: 15px;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}
/* Xアイコンのテキストスタイル（色を明示的に白に設定） */
.social-icon .x-text {
  font-weight: bold;
  font-size: 22px;
  line-height: 1;
  font-family: Arial, sans-serif;
  letter-spacing: -0.5px;
  color: white; /* テキストを明示的に白に指定 */
}

/* フォントサイズ調整（モバイル用） */
@media (max-width: 480px) {
  .social-icon .x-text {
    font-size: 20px;
  }
}
/* イベント情報セクションのスタイル */
.info-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  width: 100%;
}

.info-item {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ダークモード対応 */
.dark-mode .info-item {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .info-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .info-container {
    gap: 20px;
    margin: 20px 0;
  }
  
  .info-item {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .info-container {
    gap: 15px;
  }
}