/*
 Theme Name:     lightning Child
 Template:       lightning
 Description:    This theme is a child theme of Lightning.
 Author:         Tomoki Oka, RFC77 HP Department Chief
 Version:        3.0.0
*/



/***フォントを変更する***/
body {
    font-family: 'Zen Maru Gothic', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Sans JP', sans-serif !important;
}


/***画像のフェードイン***/
	/* 初期状態（非表示・下に少しずらす） */
.fadein {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

	/* 表示状態 */
.fadein.show {
  opacity: 1;
  transform: translateY(0);
}



/***見出しのスタイル***/
.section-heading {
  all: unset;
  display: block;
  position: relative;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  margin: 3rem auto; /* 中央揃え */
  text-align: center;
  z-index: 10;
  width: fit-content;
}

/* フェードイン表示 */
.section-heading.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 左右の線 */
.section-heading::before,
.section-heading::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 2px;
  background-color: #5D7854;
  width: 0;
  transition: width 1s ease-out;
}

.section-heading::before {
  left: 0;
  transform: translateX(-100%);
}

.section-heading::after {
  right: 0;
  transform: translateX(100%);
}

/* アニメーション中 */
.section-heading.is-visible::before,
.section-heading.is-visible::after {
  width: 50vw;
}



/***見出しの標準スタイル無効化***/
/* h2 の上下線を無効化 */
h2 {
    border-top: none !important;
    border-bottom: none !important;
}

/* h3 */
h3 {
    border-top: none !important;
    border-bottom: none !important;
}



/***一般参加団体ページ***/
/**コンテナデザイン**/
.festival-card {
  max-width: 1000px;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  background: linear-gradient(to bottom, #f5fff8, #ffffff);
  color: #000;
}

.festival-card img {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.festival-card .content {
  padding: 1.5rem;
}

.festival-title {
  margin-top: 0;
  font-size: 1.8rem;
  font-weight: bold;
  color: #006644; 
}

.festival-subtitle {
  margin-top: 1.2rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #004d33;
  border-left: 4px solid #006644;
  padding-left: 0.5rem;
}

.festival-meta {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.festival-meta div {
  background: #e8f6ee;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.festival-card p {
  margin: 0.8rem 0;
  line-height: 1.6;
}

.festival-quote {
  margin: 1rem 0;
  padding: 1rem;
  background: #f0faf4;
  border-left: 4px solid #006644;
}

.festival-links {
  margin-top: 1rem;
}

.festival-links a {
  display: inline-block;
  margin-right: 0.6rem;
  margin-bottom: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: #006644;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.festival-links a:hover {
  background: #004d33;
}

/**スライダー**/
/* スライダー全体のコンテナ */
.image-slider-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* スライダーの最大幅 */
    margin: 30px auto; /* 上下の余白と中央揃え */
    overflow: hidden; /* ビューポート外のスライドを隠す */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #f0f0f0; /* 読み込み時の背景色 */
}

/* スライドが表示される領域 (ビューポート) */
.slider-viewport {
    width: 100%;
    overflow: hidden; /* スライダーラッパーのコンテンツを隠す */
}

/* 全スライドのラッパー (これがtranslateXで移動する) */
.slider-wrapper {
    display: flex; /* スライドを横に並べる */
    transition: transform 0.5s ease-in-out; /* スライドのアニメーション */
    /* JavaScriptで初期位置を調整 */
}

/* 各スライドアイテム */
.slider-item {
    min-width: 100%; /* 各スライドがビューポートの幅いっぱいに広がる */
    flex-shrink: 0; /* スライドが縮まないようにする */
    box-sizing: border-box;
    padding: 0; /* 必要に応じてパディングを追加 */
}

.slider-item img {
    width: 100%;
    height: auto;
	 max-height: 100vh;
    display: block;
    object-fit: cover; /* 画像がアイテムにフィットするように */
    border-radius: 8px; /* コンテナと同じ角丸 */
}

.image-slider-container {
    height: auto;
    max-height: 100vh;
}

.slider-viewport,
.slider-wrapper {
    height: 100%;
}

.slider-item {
    width: 100%;
    min-width: 100%;
    height: 100%;
}

.slider-item img {
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
}



/* スライダーナビゲーションボタン */
.slider-prev-button,
.slider-next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 50%; /* 丸いボタン */
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slider-prev-button:hover,
.slider-next-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slider-prev-button {
    left: 10px;
}

.slider-next-button {
    right: 10px;
}

/* ドットナビゲーション */
.slider-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px; /* ドット間のスペース */
    z-index: 10;
}

.slider-pagination .dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slider-pagination .dot.active {
    background-color: #006644; /* アクティブなドットの色 */
    transform: scale(1.2); /* アクティブなドットを少し大きく */
}

/* モバイル対応 */
@media (max-width: 768px) {
    .image-slider-container {
        margin: 20px auto;
        border-radius: 0; /* モバイルでは角丸をなくすことも検討 */
        max-width: 100%; /* モバイルでは幅いっぱい */
    }

    .slider-prev-button,
    .slider-next-button {
        padding: 8px 12px;
        font-size: 1.2em;
    }
}

/**ボタン**/
/* ボタン全体を中央に配置するコンテナ */
.button-center-container {
    display: flex;
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center; /* 垂直方向の中央揃え (必要に応じて) */
    /* ページの大部分を占めるように高さを設定（デモ用） */
    /* 実際のサイトではこの高さは不要かもしれません */
    min-height: 200px; 
    width: 100%;
    margin-top: 30px; 
    margin-bottom: 30px;
}

/* ボタン本体のスタイル */
.back-to-list-button {
    /* デザイン指定 */
    background-color: #ffffff; /* 背景色: 白 */
    color: #006644; /* 文字色: ダークグリーン */
    border: 3px solid #006644; /* 外枠: ダークグリーン */
    
    /* レイアウトと装飾 */
    display: inline-block;
    padding: 12px 30px; /* 内側の余白 */
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none; /* リンクの下線を削除 */
    border-radius: 8px; /* 角を少し丸く */
    cursor: pointer;
    transition: all 0.3s ease; /* ホバー時のアニメーション */
}

/* ホバー時のスタイル  */
.back-to-list-button:hover {
    background-color: #006644; /* 背景色と文字色を反転 */
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

/***Lightning のヘッダー背景色を変更***/
/*
.siteHeader {
  background-color: #dde7e0 !important;
  font-family: 'Noto Sans JP', 'Noto Sans', sans-serif;
}
*/
