:root {
    --primary-font: 'DotGothic16', sans-serif;
    --background-color: #ffffff;
    --text-color: #333333;
    --accent-color: #333333; 
}

html {
    /* スムーズスクロールを有効にする */
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden; /* 横スクロールバーを非表示に */
    transition: background-color 0.3s ease; /* 背景色の変化を滑らかに */
}


/* 右下固定ナビゲーション */
.top-right-nav {
    position: fixed;
    bottom: 20px;
    right: 25px;
    z-index: 1001;
    display: flex;
    flex-wrap: wrap; /* 画面幅が狭い時に折り返す */
    justify-content: flex-end;
    gap: 15px;
}

.top-right-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1em;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.top-right-nav a:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}


/* 左上固定エリア */
.top-left-fixed-elements {
  position: fixed; /* 画面に固定 */
  top: 20px;       /* 上から20pxの位置 */
  left: 25px;      /* 左から20pxの位置 */
  z-index: 1001;   /* 他の要素より手前に表示 (ローディングよりは奥、通常コンテンツよりは手前) */
  display: flex;
  flex-direction: column; /* ロゴとソーシャルアイコン群を縦に並べる */
  align-items: flex-start; /* 左揃え */
}

.site-logo-link {
  display: block;
  margin-bottom: 10px; /* ロゴとソーシャルアイコンの間の余白 */
}

.site-logo-img {
  height: 40px; /* ロゴの高さを40pxに設定（適宜調整してください） */
  width: auto;  /* 幅は高さに応じて自動調整 */
}

.social-icons-container {
  display: flex; /* アイコンを横に並べる */
  flex-direction: column; /* アイコンを縦に並べる */
  gap: 20px; /* アイコン間の余白 */
}

.social-icon-link {
  display: block;
}

.social-icon-img {
  height: 25px; /* アイコンの高さ (適宜調整してください) */
  width: auto;
}

.site-logo-img {
  height: 40px; /* ロゴの高さを40pxに設定（適宜調整してください） */
  width: auto;  /* 幅は高さに応じて自動調整 */
}


.main-visual-container {
    position: relative;
    width: 100%;
    height: 100vh; /* ビューポートの高さに合わせる */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

    /* レスポンシブ時のナビゲーション位置調整 */
    .top-right-nav {
        gap: 8px;
        right: 15px;
        bottom: 15px; /* topからbottomに変更 */
    }

.key-visual {
    max-width: 100%; /* ウィンドウ幅の80%を最大幅とする */
    max-height: 100vh; /* ウィンドウの高さの80%を最大高とする */
    width: auto;      /* アスペクト比を保つために幅は自動調整 */
    height: auto;     /* アスペクト比を保つために高さは自動調整 */
    transition: opacity 0.4s ease-in-out; /* フェード効果のためのトランジション */
}

/* スクロール時に表示するサイケデリックな画像を重ねて配置 */
.key-visual.psychedelic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0; /* 初期状態では非表示 */
    pointer-events: none; /* 下の画像をクリックできるように */
}

.event-title-overlay {
    position: absolute;
    color: black;
    font-size: 5em; /* フォントサイズを調整 */
    text-align: center;
    z-index: 10;
    letter-spacing: 0.1em;
}

.content-wrapper {
    padding: 60px 5%;
    max-width: 960px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
    opacity: 0; /* JSでアニメーションさせるため初期値は0 */
    transform: translateY(50px); /* JSでアニメーションさせるため初期値は少し下に */
}

.section-content {
    background-color: rgba(238, 180, 79, 0.8); /* 半透明の背景 */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease; /* 背景色の変化を滑らかに */
}

/* 日時とアクセスセクションのテキストを中央揃えに */
#datetime .section-content,
#access .section-content,
#guest-performer .section-content {
    text-align: center;
}


h2 {
    font-size: 2.5em;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -100;
    pointer-events: none;
    display: block;
}

.main-visual-container,
.content-wrapper {
    position: relative;
    z-index: 0;
}

/* ゲストパフォーマーセクション */
.guest-performer-image {
    width: 100%;
    max-width: 450px; /* 写真の最大幅を大きめに設定 */
    height: auto;
    border-radius: 8px;
    margin: 20px auto; /* 上下の余白と、左右の自動マージンで中央揃え */
    display: block; /* 中央揃えのためにブロック要素に */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.guest-performer-name {
    font-size: 2em;
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.guest-performer-profile {
    font-size: 1em;
    line-height: 1.8;
    max-width: 600px; /* 長い文章でも読みやすいように最大幅を設定 */
    margin: 0 auto 20px auto; /* 中央揃え */
    color: #000000;
}


/* パフォーマーセクションのグリッドレイアウト */
.performer-grid {
    display: grid;
    /* 1列の最小幅を280pxとし、コンテナ幅に応じて列数を自動調整 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* グリッド間の余白 */
    margin-top: 40px;
}

.performer-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden; /* 角丸を画像に適用するため */
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.performer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.performer-image {
    width: 100%;
    height: 280px; /* 高さを固定 */
    object-fit: cover; /* アスペクト比を保ちつつ、要素を完全に覆う */
    display: block;
}

.performer-name {
    font-size: 1.5em;
    margin: 20px 20px 10px 20px;
    color: var(--text-color);
}

.performer-profile {
    font-size: 1em;
    line-height: 1.6;
    margin: 0 20px 20px 20px;
    color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .event-title-overlay {
        font-size: 3em;
    }

    h2 {
        font-size: 2em;
    }

    .section {
        padding: 40px 0;
    }
}