/* @import url("materialize.min.css"); */

/* デフォルト（ライトモード）のスタイル */
body {
  font-family: "Noto Sans JP", sans-serif;
  font: 1.2rem "Lucida Grande", Helvetica, Arial, sans-serif;
  color: #656565;
  line-height: 1.6;
  background-color: #ffffff; /* 明示的に背景色を指定 */
  padding-bottom: 3rem;
  margin: 0;
  padding: 0;
  height: 100%;
  margin-bottom: 80px;
}

/* 見出しにNoto Serif JPを適用 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Serif JP", serif;
  font-weight: 500; /* Medium */
}

/* 特別な要素にLightウェイトを使用 */
.quote-text {
  font-family: "Noto Serif JP", serif;
  font-weight: 300; /* Light */
  font-style: italic;
}

.container {
  padding-top: 0px;
  padding-bottom: 30px;
}

.container-index {
  padding-top: 0px;
  padding-bottom: 0px;
}

.title-container {
  padding: 0 20px;
}

.mb-50 {
  margin-bottom: 50px;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  /* padding: 30px 10px 10px 10px; */
}

a {
  color: #00b7ff;
}

/* ダークモード用のスタイル */
@media (prefers-color-scheme: dark) {
  body {
    color: #d1d1d1; /* 文字色を明るく */
    background-color: #121212; /* 背景を暗く */
  }
  a {
    color: #4dabf7; /* リンク色をダークモード用に調整 */
  }
  footer {
    background-color: #1e1e1e; /* フッターの背景を少し明るく */
  }
  .btn {
    background-color: #0288d1; /* ダークモード用のボタン色 */
  }
  .btn:hover {
    background-color: #039be5;
  }
  .card {
    background-color: #1e1e1e; /* カードの背景 */
    color: #d1d1d1;
  }
}

/* index.pug */
/* ****************************************************************** */
.google-signin-wrapper {
  display: inline-block;
  max-width: 280px;
  width: 100%;
}

.line-signin-wrapper {
  display: inline-block;
  max-width: 280px;
  width: 100%;
}

/* カルーセルサイズ制御 */
.carousel {
  height: 350px; /* 適宜調整 */
  padding: 0px; /* 周囲に余白を追加 */
}

.carousel .carousel-item {
  height: 100%;
}

.carousel.carousel-slider {
  max-width: 400px; /* 最大幅を400pxに */
  margin: 0 auto; /* 中央寄せ */
}

/* カルーセル内の画像も親に合わせる */
.carousel .carousel-item img {
  max-width: 100%;
  height: 400px;
}

.carousel .indicators .indicator-item {
  background-color: rgba(0, 150, 136, 0.3);
}

.carousel .indicators .indicator-item.active {
  background-color: #009688;
}

/* .carousel .indicators .indicator-item {
  background-color: #bbb;
}

.carousel .indicators .indicator-item.active {
  background-color: #ff4081;
} */

/* #timeline-container,
#index-temple-container {
  max-width: 600px;
  margin: 0 auto;
} */

#private-temples-container {
  max-width: 600px;
  margin: 0 auto; /* 中央揃えにする場合 */
}

/* ****************************************************************** */
.fixed-header {
  position: fixed;
  top: 0px;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: white; /* 必要に応じて背景 */
  padding: 1rem;
  /* border-bottom: 1px solid #e0e0e0; */
}

.margin-top-230 {
  margin-top: 230px;
}

/* ****************************************************************** */
.collapsible-body {
  max-height: none !important;
  overflow: visible !important;
}
/* ****************************************************************** */
/* 備考欄のスタイリング */
.memo div {
  white-space: pre-line; /* 必要に応じて */
  padding: 8px;
  background-color: #f5f5f5;
  border-radius: 4px;
  margin-top: 5px;
}
/* ****************************************************************** */
/* セクションリンクのスタイル */
.link-section {
  display: block;
  padding: 20px;
  transition: background-color 0.3s;
  color: inherit; /* テキスト色を継承 */
}

.link-section:hover {
  background-color: #f5f5f5;
  cursor: pointer;
}

/* リンクの下線を消す */
a:hover,
a:focus {
  text-decoration: none;
}
/* ****************************************************************** */
.collapsible-header {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.collapsible-header i.material-icons {
  flex-shrink: 0;
}

.collapsible-header span {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* ****************************************************************** */
.lightgallery img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}
/* ****************************************************************** */
/* public/stylesheets/style.css など */

.carousel.carousel-slider {
  /* 画面の高さの80%をカルーセルの高さにする場合 */
  height: 40vh !important;
}
/* ****************************************************************** */
/* 承認リクエストモーダルのスタイル調整 */
#pending-modal {
  max-width: 500px;
}

.modal-content h4 {
  color: #ee6e73;
  margin-bottom: 20px;
}

.modal-footer .btn-flat {
  color: #ee6e73;
}
/* ****************************************************************** */
/* ポリシーページ用スタイル */
.card-panel {
  padding: 20px;
  margin: 20px 0;
}

.card-panel h5 {
  margin-top: 30px;
  color: #26a69a;
  font-weight: 500;
}

.card-panel ul,
.card-panel ol {
  padding-left: 20px;
}
/* ****************************************************************** */
/* LINEログインボタン */
.line-login-btn {
  width: 280px;
  height: 40px;
  line-height: 40px;
  padding: 0 16px;
  background-color: #ffffff;
  border: 1px solid #06c755;
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow: none !important;
  color: #06c755;
  margin: 0 auto;
  display: block;
}

.line-login-btn i.material-icons {
  color: #06c755;
}

/* ホバー時のスタイル */
.line-login-btn:hover {
  background-color: rgba(157, 198, 175, 0.1); /* 薄い緑色（10%の不透明度） */
}

/* ****************************************************************** */
.media-card.selected {
  border: 3px solid #26a69a; /* Materialize teal lighten-1 */
  box-shadow: 0 0 15px rgba(38, 166, 154, 0.8);
}
/* ****************************************************************** */
.multiple-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 12px;
}
/* ****************************************************************** */

.slide__goodsWrap {
  height: 100vh; /* 画面いっぱい */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.slide__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 200px;
}

.item img {
  width: 100px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* アニメーション */
@keyframes scroll-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}

.slide__goodsWrap {
  animation: scroll-up 20s linear infinite;
}

/* ****************************************************************** */
.approval-request-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 10px;
  /* border: 1px solid #ddd; */
  border-radius: 8px;
  /* background-color: #f9f9f9; */
  text-align: center;
}
/* ****************************************************************** */
.cover-image-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 800px; /* 高さを調整 */
  /* 追加: 携帯でのレイアウト崩れを防ぐ */
  contain: layout style;
}

.slideshow-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

  /* フェード効果 */
  opacity: 0;
  transition: opacity 2s ease-in-out;

  /* ズーム効果 - 携帯での高さ変動を防ぐ */
  animation: zoomEffect 12s ease-in-out infinite;
  transform-origin: center center;
  /* 追加: スケール変換がコンテナの外に影響しないようにする */
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.slideshow-image.active {
  opacity: 1;
}

/* 徐々にズームするアニメーション - 修正版 */
@keyframes zoomEffect {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* より滑らかなフェード効果のオプション */
.cover-image-container.smooth-fade .slideshow-image {
  transition: opacity 3s ease-in-out;
}

/* クロスフェード効果を強調したい場合 */
.cover-image-container.cross-fade .slideshow-image {
  transition: opacity 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 携帯端末での追加修正 */
@media screen and (max-width: 768px) {
  .cover-image-container {
    /* 携帯では viewport の高さに影響されないよう固定 */
    /* height: 800px; 携帯用の適切な高さに調整 */
    /* overflow を強制的に隠す */
    /* overflow: hidden !important; */
    height: 80vh; /* 画面幅に基づく高さ */
    /* aspect-ratio: 16 / 9; */
  }

  /* .slideshow-image { */
  /* 携帯でのズーム効果を少し控えめに */
  /* animation: zoomEffectMobile 12s ease-in-out infinite; */
  /* 変形の影響を最小限に */
  /* transform-style: flat;
  } */
}

/* 携帯用のより控えめなズーム効果 */
/* @keyframes zoomEffectMobile {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
} */

/* 追加: 画像読み込み時のちらつきを防ぐ */
.slideshow-image {
  /* 画像が読み込まれるまで背景色を設定 */
  background-color: #f5f5f5;
}

/* 高解像度ディスプレイでの最適化 */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
  .slideshow-image {
    /* Retina ディスプレイでのパフォーマンス向上 */
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ****************************************************************** */
/* 初期状態（非表示） */
/* .fade-in-scroll {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-section {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .fade-in-scroll {
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  }
  .fade-in-section {
    animation-duration: 0.6s;
  }
} */

/* ****************************************************************** */
/* モバイル (600px 以下) の場合だけマージン左右を 0 に */
@media only screen and (max-width: 600px) {
  .card-content.no-margin-mobile {
    padding-left: 0;
    padding-right: 0;
  }
}
/* ****************************************************************** */

/* ****************************************************************** */
/* ****************************************************************** */
/* ****************************************************************** */
/* ****************************************************************** */
/* ****************************************************************** */
/* ****************************************************************** */
/* ****************************************************************** */
