/* ==================================================
   全体・共通設定
   ================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Shippori Mincho', "Yu Mincho", "游明朝", serif;
  color: #2b2b2b;
  background-color: #faf9f6;
  line-height: 1.8;
  overflow-x: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================================================
   ローダー（読み込み中アニメーション）
   ================================================== */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(250, 249, 246, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 4px solid #e0dad0;
  border-top: 4px solid #182333; /* 濃紺系に変更 */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-wrapper.loaded {
  opacity: 0;
  pointer-events: none;
}

/* ==================================================
   ヘッダーエリア　rgba(250, 249, 246, 0.95)
   ================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 1100px;
  /* 温かみのある背景色（和紙のような生成り色）に変更 */
  background-color: rgba(250, 249, 246, 0.95);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #1a1a1a; /* サイトタイトルはグレーで重厚感 */
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav a {
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav a:hover {
  color: #122b20; /* ホバー時の文字色を濃紺に変更 */
}

/* ==================================================
   メインビジュアルエリア
   ================================================== */
.hero {
  position: relative;
  width: 100%;
  min-width: 1100px;
  height: calc(80vh - 30px);
  background-color: #f5f5f3;
  margin-top: 60px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  width: 1100px;
  height: 100%;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  box-sizing: border-box;
}

.hero-visual-box {
  position: relative;
  width: 810px; 
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-img-wrapper {
  width: 100%;
  height: 100%;
}

.hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.hero-catch-overlay {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 2;
}

.hero-catch {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.vertical-text {
  writing-mode: vertical-rl;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  line-height: 1.8;
  max-height: calc(100% - 40px);
}

.hero-en-text {
  writing-mode: vertical-rl;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #e0f7fa;
  font-family: serif;
  margin-top: 5px;
}

/* ★サイド情報エリア */
.hero-side-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 5px;
  width: 230px; 
  min-width: 230px;
  box-sizing: border-box;
}

/* ミニ案内カード */
.mini-info-card {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 8px 12px;
  border-left: 3px solid #b22222; /* 左側ラインは朱色に変更 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.mini-info-label {
  display: block;
  font-size: 0.72rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 2px;
}

.mini-info-time {
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0;
  color: #2b2b2b;
}

/* バナーボタン */
.hero-banner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  background-color: #182333; /* 濃紺メイン色 */
  color: #ffffff;
  padding: 14px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(18, 43, 32, 0.2);
}

.hero-banner-btn:hover {
  background-color: #2D3A4D; /* ホバー時は少し明るい濃紺にして押しやすく */
  transform: translateY(-2px);
}

/* ==================================================
   コンテンツ共通セクション
   ================================================== */
.section {
  padding: 80px 0;
}

.bg-light {
  background-color: #f2f0eb;
}

.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.15em;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: #b22222; /* タイトル下線を朱色に変更 */
  margin: 15px auto 0;
}

.section-lead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ==================================================
   カード型コンテンツ（拝観案内）
   ================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.card-image-placeholder {
  height: 180px;
  background-color: #dcd8d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: 600;
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card-content p {
  font-size: 0.95rem;
  color: #555;
}

/* ==================================================
   お知らせエリア
   ================================================== */
.news-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e5e0d8;
  gap: 20px;
}

.news-date {
  font-size: 0.9rem;
  color: #888;
}

.news-category {
  font-size: 0.8rem;
  background-color: #1a1a1a; /* お知らせカテゴリタグは重厚感の灰色に統一 */
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 2px;
}

.news-title {
  font-size: 1rem;
  transition: color 0.3s;
}

.news-title:hover {
  color: #122b20;
}

/* ==================================================
   フッターエリア
   ================================================== */
.footer {
  background-color: #1a1a1a; /* フッター背景をグレーに変更して統一感と重厚感を出す */
  color: #cccccc;
  padding: 60px 0 30px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}

.footer-info h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}

.footer-info p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.copyright {
  font-size: 0.8rem;
  color: #a0b0a8;
  margin-top: 20px;
}

/* ==================================================
   下層ページ共通スタイル
   ================================================== */
.page-header {
  background-color: #2b2b2b; /* 下層ページヘッダー背景色*/
  color: #ffffff;
  padding: 100px 0 40px;
  text-align: center;
}

.page-title {
  font-size: 2rem;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 0.95rem;
  color: #dcddcd;
}

.subpage-content-box {
  background-color: #ffffff;
  padding: 35px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.subpage-section-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #122b20; /* 下層ページ見出し下線 */
  padding-bottom: 10px;
  color: #2b2b2b;
}

.subpage-text {
  font-size: 1rem;
  line-height: 1.9;
  color: #444444;
}

.consultation-banner {
  margin-top: 50px;
  background-color: #f2f0eb;
  padding: 40px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #e0dad0;
}

.consultation-banner h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #2b2b2b;
}

.contact-tel-box {
  margin-top: 20px;
}

.tel-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #122b20; /* 電話番号の色は深緑色に変更 */
}

.tel-time {
  font-size: 0.85rem;
  color: #666;
}

body.page-contact .contact-banner-section {
  display: none !important;
}

/* ==================================================
   下層ページ用 縦並び写真ギャラリー（中央寄せ）
   ================================================== */
.subpage-img-vertical {
  display: flex;
  flex-direction: column;
  align-items: center; /* 中央に配置 */
  gap: 20px; /* 画像同士の縦の間隔 */
  margin: 25px 0 30px;
  width: 100%;
}

.subpage-img-item {
  width: 100%;
  max-width: 650px; /* 画像の最大横幅（程よい大きさに制限） */
  aspect-ratio: 16 / 9; /* 1280x720などの16:9比率を崩さず保持 */
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background-color: #f0ede6;
  display: none; /* ★初期状態は非表示（画像URLがある時だけJSで表示） */
}

.subpage-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* お知らせ用 画像表示スタイルの調整 */
.news-detail-images {
  margin-top: 20px;
}

.news-detail-images .subpage-img-vertical {
  margin: 15px 0;
  gap: 15px; /* 画像同士の間隔を少し狭く */
}

/* ★お知らせ内の画像サイズを小さめに調整 */
.news-detail-images .subpage-img-item {
  display: block;
  max-width: 480px; /* ★650pxから480pxへサイズダウン */
  aspect-ratio: 16 / 9;
}