/* 全体の基本スタイル */
body {
  font-family: "游ゴシック", "YuGothicStd D", "LinotypeUnivers Basic Regular","Arial",sans-serif; /* シンプルで読みやすいサンセリフ体を使用 */
  padding: 0;                         /* 全体に余白（32px）をつけて読みやすく */
  background-color: #ffffff;             /* 薄いグレーの背景で柔らかい印象に */
  color: #222;                           /* テキストの基本色をやや濃いグレーにして目に優しく */
}

/* テキスト設定 */
h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 3px;
}
h2 {
  /* text-align: center; */
  font-size: 20px;
  margin-bottom: 0;
}

p {
  font-size: 16px;
  margin-top: 0;     /* pの上の余白をなくす */
  margin-bottom: 0;
}

.marukakko{
  letter-spacing: -0.25em; /* ← これで字間を少し詰める */
}

.marukakko2{
  letter-spacing: -0.5em; /* ← これで字間を少し詰める */
}


/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* スクロールの誘導 */
.scroll_hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 999;
}

.scroll_text {
  font-size: 20px;
  color: #666;
}

.arrow {
  margin-top: 0px;
  width: 12px;
  height: 12px;
  border-left: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(-45deg);
  animation: bounce 1.5s infinite;
}

/* アニメーション */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  50% {
    transform: translateY(6px) rotate(-45deg);
  }
}



/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* メイン部分 */
.box_main {
  height: 100vh;
  background-size: cover;
  background-position: center;
}

.logo {
  position: fixed;       /* ← 画面に固定 */
  width: 100px;
  height: auto;
  display: block;
  top: 10%;
  left: 3%;
  z-index: 1000;         /* 必要なら他要素より前面に */
}


.main_image {
  position: absolute;
  top: 5%;
  right: 48%;               /* 右からの距離で調整 */
  max-height: 85vh;         /* 高さは画面に収める */
  max-width: calc(100vw - 48%); /* 右寄せ時にはみ出し防止 */
  height: auto;
  z-index: -1;
}



.main_text_image {
  position: absolute;
  width: 500px;
  height: auto;
  display: block;
  top: 72%;         /* 位置はtopで制御 */
  right: 3%;       /* 右から10%の位置に配置 */
}

/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* 会期・会場情報 */
.box_kaiki_kaizyou {
  justify-content: center;     /* 横方向の中央揃え */
  align-items: flex-end;       /* ← 下揃えにするポイント！ */
  gap: 2rem;                   /* セクション間の隙間（任意） */
  margin: 0 auto;              /* ブロック要素として中央揃え（任意） */
}

.day{
  font-size: 30px;
}

.address{
  font-size: 26px;
}

.text_kaiki {
  font-size: 16px;
  text-align: center;         /* ← テキストは左揃えに */
  max-width: 900px;         /* テキストの行幅を制限 */
  margin: 0 auto;           /* ブロック全体を左右中央に配置 */
  /* padding: 1rem;            内側の余白 */
  /* margin-left: 4rem; ← 左に外側の余白を追加 */
}

/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* 開催概要 */
.box_gaiyou {
  padding: 3rem 1.5rem;
  max-width: 500px;   /* テキスト行の幅を制限 */
  margin: 0 auto;     /* 左右中央寄せにする */
  padding: 1rem;      /* 内側の余白 */
}

/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* 出展者 */
.box_syuttensya{
  padding: 3rem 1.5rem;
  max-width: 700px;   /* テキスト行の幅を制限 */
  margin: 0 auto;     /* 左右中央寄せにする */
  padding: 1rem;      /* 内側の余白 */
}

.text_name{
  text-align: center;         /* ← テキストは左揃えに */
  max-width: 700px;         /* テキストの行幅を制限 */
  margin: 0 auto;           /* ブロック全体を左右中央に配置 */
  font-size: 24px;
}

/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* 各作家の作品画像とキャプション */
.box_work {
  padding: 3rem 1.5rem;
}

.works_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));  /* 最低400px確保 */
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.works_grid figure {
  text-align: left;
}

.works_grid img {
  width: 400px;      /* ← 固定サイズにする */
  max-width: 100%;   /* ← 小さい画面では崩さない */
  height: auto;
  display: block;
  margin: 0 auto;    /* 画像を中央に */
}

.works_grid figcaption {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 12px;
  color: #555;
}

/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* アクセス */
.image_access {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ← 左揃え */
  justify-content: center;
  max-width: 700px;
  padding: 2rem 1rem;
}



/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* クレジット関係 */
.box_credits_list {
  padding: 3rem 1.5rem;
  max-width: 700px;   /* テキスト行の幅を制限 */
  margin: 0 auto;     /* 左右中央寄せにする */
  padding: 1rem;      /* 内側の余白 */
}

.title_credits{
  text-align: center; /* 中のiframeを中央寄せ */
  margin-bottom: 5px; /* 上下に余白を追加 */
}

.text_credits{
  text-align: center;         /* ← テキストは左揃えに */
  max-width: 700px;         /* テキストの行幅を制限 */
  margin: 0 auto;           /* ブロック全体を左右中央に配置 */
  margin-bottom: 10px;
}




/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* スクロール制御関係 */

.box_main,
.box_kaiki_kaizyou_list,
.box_gaiyou,
.box_syuttensya,
.box_work,
.box_credits_list,
.box_access {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center; /* 上下中央寄せ */
  flex-direction: column;
}

.scroll_container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.scroll_container > section {
  scroll-snap-align: start;
}


.fadein {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.fadein.visible {
  opacity: 1;
  transform: translateY(0);
}



/* ドットナビ */
.dot_nav {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 10000;
}

.dot_nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dot_nav li {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #bbb;
  margin: 10px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot_nav li.active {
  background-color: #000000; /* 青色 */
}