/* === ダークテーマ適用 (by ChatGPT, 修正版) === */
body {
  background-color: #1e1e1e;
  color: #eeeeee;
  font-family: sans-serif;
  line-height: 1.6;
  margin: 0;
}

h1, h2, h3 {
  color: #ffffff;
}

a {
  color: #88cc88;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.btn {
  background: #288f2c;
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

section,
.panel-section,
.extra-links,
.info-section {
  background-color: #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* フッター */
footer {
  background: #288f2c !important;
  color: #fffdef;
  text-align: center;
  padding: 1rem;
}
footer a {
  color: #fffdef;
}

/* -----------------------------------------------
   お知らせの表示スタイル
-------------------------------------------------- */

/* info-section 全体の装飾：背景画像 + 下境界線 */
.info-section {
  position: relative;
  overflow-x: hidden;
/*一時的に無効  background: url('../ameba_img/gray_gradation.png') repeat-x; */
  background-size: auto 100%; /* 高さ100%で横繰り返し */
  padding: 0.2rem 1rem;
  margin-bottom: 2rem;
  border-bottom: 4px solid #00331b; /* ヘッダーと同じ赤ライン */
}

/* info 内のリンクを左揃え */
.info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;     /* ← 横方向を左揃えに変更 */
  text-align: left;            /* ← テキストも左揃え */
  gap: 0.2rem;
  margin-left: 10%;            /* ← セクション内で左から10%の位置に開始 */
  color: #b8ccbd;                 /* ← 薄めのグレー（任意） */
  font-weight: 500;            /* ← 少し軽めのフォントウェイト（オプション） */
}

/* info 内のリンク */
.info p {
  position: relative;
  padding-left: 1.2em;         /* 四角と文字の間の余白 */
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.info p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;                  /* 垂直位置の調整 */
  width: 0.6em;
  height: 0.6em;
  background-color: #00331b;   /* とれもすカラーの深緑(暗め) */
  border-radius: 2px;          /* 四角の角を少し丸める場合 */
}

.info p:hover {
  text-decoration: underline;
}

/* 左下にロゴを重ねる */
.info-logo {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 70%;
  pointer-events: none;
  object-fit: contain;
}

.red-text {
  color: #00331b !important;
  font-weight: bold;
}


/* -----------------------------------------------
   リンク文字を浮き上がらせるコード
-------------------------------------------------- */

.main-sentence a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.main-sentence a:hover {
  transform: translateY(-3px);
}

/* -----------------------------------------------
   補助ブロック（イベント・スタッフ紹介など）の構造
-------------------------------------------------- */
.extra-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}

/* 各補助ブロックの全体枠 */
.extra-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* タイトルとその下に赤いライン */
.extra-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}
.extra-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #00331b;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* 補助ブロックのリンクと画像を横並び */
.extra-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* リンクが含まれるブロックの装飾 */
.main-sentence {
  background: transparent !important;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  text-align:  center;        /* 中央寄せ */
}

/* リスト内の点を非表示にし、整列 */
.main-sentence ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  width: 100%;
}

/* 各リンクアイテムの間隔 */
.main-sentence li {
  margin: 1rem 0;
}

/* 台形ボタン風のリンク装飾 */
.main-sentence a {
  display: block;
  width: 100%;
  height: 50px;
  background: url('../ameba_img/button_gray.png') no-repeat center center;
  background-size: 100% 100%;
  text-align: center;
  line-height: 50px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  margin: 0 auto;
  transition: filter 0.3s ease;
}
.main-sentence a:hover {
  filter: brightness(80%);
}

/* スタッフリンク用のボタンを左右反転表示（文字は再反転） */
.staff-link-block a {
  transform: scaleX(-1);
  transition: transform 0.2s ease;
}
.staff-link-block a:hover {
  transform: scaleX(-1) translateY(-3px);
}

.staff-link-block a span {
  display: inline-block;
  transform: scaleX(-1);
}

/* -----------------------------------------------
   アニメーション：ふわっと表示する各要素
-------------------------------------------------- */

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-bottom {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.half {
  width: 50%;
  margin:  0 auto;            /* 中央寄せ */
}

.fade-delay1 {
  transition-delay: 1s;
}

.fade-delay2 {
  transition-delay: 2s;
}

.fade-delay3 {
  transition-delay: 3s;
}

.visible {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* fade-img クラス内の画像装飾 */
.fade-img img {
  width: 100%;
  height: auto;
  display: block;
}

.history-gallery-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* -----------------------------------------------
   ヘッダーの色とスライドショーの設定
-------------------------------------------------- */


/* ヘッダーの色は緑 */
.header-border {
  background-color: #288f2c;
}

/* メインビジュアル（スライドショー） */
.herob {
  width: 100%;
  height: 50vh;
  background-size: cover;
  background-position: bottom;
  transition: background-image 1s ease-in-out;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
.herob {  width: 100%;
  height: 22vh;  background-size: cover;
  background-position: right bottom;
  transition: background-image 1s ease-in-out;
  position: relative;
  z-index: 1;
}
}


/* スライドショーの上に開催情報を表示 */
.overlay-kaisai {
  position: absolute;
  top: 45%;            /* 表示位置の調整（上から） */
  left: 50%;         /* 表示位置の調整（右から） */
  transform: translate(-50%);  /* 自分の大きさの半分だけ引いて中央化 */
  z-index: 10;         /* 背景より前に出す */
  height: 100%;        /* 必要に応じて画像サイズ調整 */
  pointer-events: none; /* クリックを透過させたい場合はこれ */
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  max-width: 90vw; /* モバイル端末でも画面外にはみ出さない */
}

.overlay-kaisai p {
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Serif",
    "MS PMincho",
    serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  color: #ffffff;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.35);
}

.overlay-kaisai span {
  display: block;
  margin-top: 0.9rem;
  font-family:
    "Yu Gothic",
    "Hiragino Sans",
    "Meiryo",
    sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #dbe6de;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .overlay-kaisai {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 90%;
    max-width: 90vw;
    height: auto;

    text-align: center;
    white-space: nowrap;

    overflow: visible;
    pointer-events: none;
    z-index: 10;
  }

  .overlay-kaisai p {
    margin: 0;
    font-family:
      "Noto Serif JP",
      "Yu Mincho",
      "Hiragino Mincho ProN",
      serif;
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    color: #fff;
    text-shadow:
      0 2px 8px rgba(0,0,0,0.4),
      0 1px 2px rgba(0,0,0,0.3);
  }

  .overlay-kaisai span {
    display: none;
  }
}

/* -----------------------------------------------
   スマホ表示における補助ブロックのレイアウト調整
-------------------------------------------------- */


/* スマホ表示時の補助ブロックレイアウト調整 */
@media (max-width: 768px) {
  .extra-row {
    grid-template-columns: 1fr !important;
  }

  .extra-row:not([data-reverse]) > *:nth-child(1) {
    order: 2;
  }

  .extra-row:not([data-reverse]) > *:nth-child(2) {
    order: 1;
  }

  .extra-row[data-reverse] > *:nth-child(1) {
    order: 1;
  }

  .extra-row[data-reverse] > *:nth-child(2) {
    order: 2;
  }
}
