@charset "utf-8";

/* 基本スタイル */
body {
  font-family: "Noto Serif JP", serif;
  background-color: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.8;
}

/* ヒーローセクション */
.hero {
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-shadow: 1px 1px 10px rgba(17, 17, 17, 0.6);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero.hero-hondou {
  background-image: url('../img/koukyouzi/hondou1.webp');
}

.hero.hero-yakushidou {
  background-image: url('../img/koukyouzi/yakushidou1.webp');
}

.hero.hero-eitai {
  background-image: url('../img/koukyouzi/goudou.webp');
}

.hero.hero-haruhigan {
  background-image: url('../img/funeral/haruhigan.webp');
}

.hero.hero-segaki {
  background-image: url('../img/funeral/segakihouyou.webp');
}

.hero.hero-akihigan {
  background-image: url('../img/funeral/akihigan.webp');
}

.hero.hero-juya {
  background-image: url('../img/funeral/juuya.webp');
}

.hero.hero-ominugui {
  background-image: url('../img/funeral/ominugui.webp');
}

.hero.hero-omamori {
  background-image: url('../img/facility/yakushi1.webp');
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.hero p {
  font-size: 0.95rem;
  margin-top: 12px;
  letter-spacing: 0.2em;
}

/* 詳細コンテンツ */
.detail-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
}

.detail-lead {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--color-ink-soft);
  margin-bottom: 3rem;
  text-align: center;
}

.detail-gallery {
  margin: 0 auto 3.5rem;
  max-width: 640px;
}

.detail-gallery.slick-slider {
  margin: 0 auto 3.5rem;
  padding: 10px 0;
  position: relative;
}

.detail-gallery .slick-slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 7px 7px 15px -5px #666;
  cursor: pointer;
}

/* モーダル拡大表示 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 800px) {
  .detail-gallery .slick-slide img {
    height: 240px;
  }
}

.detail-section {
  margin-bottom: 3rem;
}

.detail-section h2 {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  color: var(--color-ink);
  border-left: 5px solid var(--color-gold);
  padding-left: 0.8rem;
  margin-bottom: 1.2rem;
}

.detail-section p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-ink-soft);
  margin-bottom: 1rem;
}

.detail-section ul.detail-list {
  list-style: disc;
  padding-left: 1.6rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-ink-soft);
}

.detail-section ul.detail-list li {
  margin-bottom: 0.4rem;
}

/* お守りデザイン画像 */
.omamori-design {
  text-align: center;
  margin: 1rem 0;
}

.omamori-design img {
  max-width: 100%;
  height: auto;
}

.omamori-design-caption {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  margin-top: 0.6rem;
}

/* お守り授与品テーブル */
.omamori-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 1rem;
}

.omamori-table th,
.omamori-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.7;
  vertical-align: middle;
}

.omamori-table th {
  width: 30%;
  font-weight: bold;
  color: var(--color-ink);
  background-color: rgba(230, 180, 34, 0.08);
  white-space: nowrap;
}

.omamori-table td {
  color: var(--color-ink-soft);
}

.omamori-table a {
  color: var(--color-gold-dark);
  text-decoration: underline;
}

.detail-back {
  text-align: center;
  margin-top: 3rem;
}

.detail-back a {
  display: inline-block;
  padding: 0.8rem 2.4rem;
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--color-ink);
  transition: background-color 0.3s, color 0.3s;
}

.detail-back a:hover {
  background-color: var(--color-gold);
  color: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 800px) {
  .hero {
    height: 200px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.8rem;
  }

  .detail-content {
    padding: 1rem 1.2rem 3.5rem;
  }

  .detail-gallery img {
    height: 180px;
  }
}
