/* ===== 基本設定 ===== */
body {

  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: black;
  color: white;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.message-char {
  display: inline-block;
  writing-mode: vertical-rl;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.message-char.visible {
  opacity: 1;
  transform: translateY(0);
}
#content-wrapper{
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
#faq-wrapper {
  width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
#news-content{
  width: 80%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
/* ===== 背景画像（固定＆高さ60%） ===== */
/* 背景画像切り替えエリア */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60vh;
  background-size: cover;
  background-position: top;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: -2;
}

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

.bg1 { background-image: url('../img/yakushido.jpg'); }
.bg2 { background-image: url('../img/nokotsudo.jpg'); }
.bg3 { background-image: url('../img/nyorai.jpg'); }
#saikouin-label {
  position: fixed;
  top: 10vh;
  left: 3%;
  z-index: 15;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 80px;
  color: white;
  font-family: "Yu Mincho", "HGP明朝B", serif;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
  text-shadow:
    0 0 4px rgba(0,0,0,0.4),
    0 0 8px rgba(0,0,0,0.5),
    2px 2px 4px rgba(50,50,50,0.6);
}
/* ===== 黒フェード（フェードアウト→暗転→フェードイン） ===== */
#blackout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60vh;
  background: black;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: -1;
}
/* ===== 左側タイトル：西光院〜（縦3行・2倍サイズ） ===== */
#fixed-title {
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 80px;
  left: 60px; /* ← 内側に寄せる */
  display: flex;
  flex-direction: row;
  gap: 20px;
  z-index: 1000;
  font-family: "Yu Mincho", "HGP明朝B", serif; /* 寺っぽいフォント */
}

/* ===== 各縦列 ===== */
.vertical-title {
  writing-mode: vertical-rl;
  font-size: 64px;
  font-weight: bold;
  color: white;
  line-height: 1.2;
}

/* ===== メッセージ：右側固定・縦書き ===== */
#message-area.vertical-message {
   position: fixed;
  top: 5vh;
  right: 5%;
  height: 55vh;
  overflow: hidden;
  font-size: 50px;
  color: white;
  font-family: "Yu Mincho", "HGP明朝B", serif;
  z-index: 10;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  writing-mode: vertical-rl;       /* ← 親に縦書き */
  text-orientation: upright;       /* ← 正立させる */
  text-shadow:
    0 0 4px rgba(0,0,0,0.4),
    0 0 8px rgba(0,0,0,0.5),
    2px 2px 4px rgba(50,50,50,0.6);
}
.message-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin: 6px auto;
}

.message-char.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ===== 各1文字のふわっとアニメーション用 ===== */

/* ===== スクロールトリガー（透明） ===== */
#scroll-area {
  scroll-snap-type: y mandatory;
  height: 300vh;
}

.scroll-trigger {
  height: 100vh;
}

/* ===== ナビバー ===== */
.top-page .navbar {
  position: fixed;
}
.navbar {

  top: 0;
  width: 100%;
  background-color: #142f4f;
  padding: 10px 20px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* ハンバーガー展開用 */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

.nav ul.active {
  display: block;
  position: absolute;
  top: 60px;
  background-color: #142f4f;
  width: 100%;
  padding: 10px 0;
}
main {
  flex: 1; /* 空間を埋めてフッターを下へ押し出す */
  max-width: 800px;
  margin: 80px auto 40px auto; /* 上に余白 */
  padding: 0 20px; /* 左右の余白 */
  box-sizing: border-box;
}

#news-overlay {
  position: fixed;
  bottom: 20vh; /* ← 上に持ち上げる */
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px 30px;
  border-radius: 10px;
  color: white;
  max-width: 90%;
  font-family: "Yu Mincho", "HGP明朝B", serif;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.news-list li {
  margin-bottom: 8px;
  font-size: 16px;
}

.news-list a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.news-list a:hover {
  color: #aad0ff;
  text-decoration: underline;
}

/* ===== フッター：画面下固定 ===== */
.top-page .footer {
  position: fixed;

}
.footer {
  bottom: 0;
  width: 100%;
  background-color: #142f4f;
  color: white;
  text-align: center;
  padding: 10px;
  z-index: 1000;
}
#footer-container {
  margin-top: auto;
}
.footer-inner p {
  margin: 4px 0;
  font-size: 14px;
}
.navbar {
    background-color: #3a57c4;
    color: white;
    padding: 0.5em 1em;
}
.navbar-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu-toggle {
    display: none;
    font-size: 1.8em;
    background: none;
    border: none;
    color: white;
}
.navbar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.navbar-menu li {
    margin: 0 0.5em;
}
.navbar-menu a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.navbar-menu img {
    width: 20px;
    margin-right: 4px;
}
.pdf-wrapper img {
  max-width: 100%;
  height: auto;
}
/* 印刷時に非表示にする */
@media print {
  .no-print {
    display: none !important;
  }
}

.map-container {
  max-width: 1000px;
  width: 1000px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* アクセス情報全体を中央寄せ */
.access-info {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}
.access-info ul {
  list-style: none; /* 黒丸を消す */
  padding-left: 0;  /* 左余白も調整 */
}
/* --- サブページの背景色調整 --- */
body.sub-page {
  background-color: #fefefe;
  color: #222;
  font-family: "Yu Mincho", "HGP明朝B", serif;
  padding: 60px 20px 100px;
}

body.sub-page h1 {
  font-size: 28px;
  margin-bottom: 10px;
  text-shadow: 0 0 4px rgba(0,0,0,0.4);
}

body.sub-page p {
  margin-bottom: 20px;
}
/* コピー禁止系 */
.no-select {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
.faq-category {
  margin-bottom: 40px;
  font-family: "Yu Mincho", "HGP明朝B", serif;
  text-shadow: 0 0 4px rgba(0,0,0,0.8),
               0 0 8px rgba(0,0,0,0.4);
  color: white;
}

.faq-item {
  margin-bottom: 20px;
  background: rgba(255,255,255,0.05);
  padding: 16px;
  border-radius: 8px;
}

.faq-q {
  font-weight: bold;
  font-size: 18px;
}

.faq-a {
  font-size: 16px;
  margin-top: 4px;
}
 .news-container {
      max-width: 100%;
      margin: 0 auto;
  width: 100%;
      text-align: center;
  background-color: #000; /* 黒背景 */
  color: white;

   position: fixed;
  top: 60vh;
  display: flex;
  flex-direction: column;


    }
    .news-title {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: center;
    }
    .news-list {
      list-style: none;

      margin: 0;
  width: 100%;
  text-align: center;
    }
    .news-list li {
      margin-bottom: 1em;
      font-size: 1.2em;
    }
    .news-list a {
      text-decoration: none;
      color: #333;
  display: inline-block;
      border-bottom: 1px solid #aaa;
      transition: color 0.3s;
    }
    .news-list a:hover {
      color: #aaa;
    }


.pdf-desktop {
  display: block;
}

/* タイトルの見切れ防止と整形 */
.page-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 24px;
  color: white;
  padding-top: 20px;
}

/* セクションの余白調整 */
.inquiry-section {
  background-color: rgba(0, 0, 0, 0.5); /* 目立つ背景 */
  width: 800px;
  padding: 20px;
  border-radius: 8px;
}
/* セクションの余白調整 */
.inquiry_reserve-section {
  background-color: rgba(0, 0, 0, 0.5); /* 目立つ背景 */
  width: 1000px;
  padding: 20px;
  border-radius: 8px;
}
/* フォーム全体を中央に制限 */
form {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ラベルと入力を縦並びに */
form label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: bold;
  color: white;
}

/* 入力欄の基本スタイル */
form input[type="text"],
form input[type="email"],
form select,
form textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-top: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* 送信ボタン */
form button[type="submit"] {
  padding: 12px;
  font-size: 16px;
  background-color: #3a57c4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
form button[type="submit"]:hover {
  background-color: #2f469e;
}


@media (max-width: 768px) {
  #fixed-title {
    font-size: 42px;
    left: 10px;
  }

  #saikouin-label {
    font-size: 44px; /* ← スマホで適正なサイズに */
    left: 5px;       /* 少し内側に */
    top: 10vh;        /* 位置も少し上へ */
  }

  #message-area {
    font-size: 20px;
    right: 10px;
    top: 12vh;        /* 位置も少し上へ */

  }
 #message-area.vertical-message {
    font-size: 28px; /* スマホ用に小さく（調整可能） */
    line-height: 1.2;
    top: 10vh;        /* 位置も少し上へ */

  }
  .menu-toggle {
    display: block;
  }

  #navList {
    display: none;
    flex-direction: column; /* 縦に並べる */
    position: absolute;
    top: 60px; /* ヘッダーの高さに合わせて調整 */
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    padding: 0;
    margin: 0;
  }

  #navList.active {
    display: flex;
  }

  #navList li {
    list-style: none;
    padding: 12px 16px;
    border-bottom: 1px solid #ccc;
    text-align: center;
  }

  #navList li a {
    text-decoration: none;
    color: #333;
    display: block;
  }
  .pdf-wrapper img {
    width: 55%;
    height: auto;
  }
}
#news-container{
    display: none;
  }
 .pdf-desktop {
    display: none;
  }
  .pdf-mobile {
    display: block;
  }
  form {
    padding: 10px;
    font-size: 14px;
  }
  form button[type="submit"] {
    font-size: 14px;
    padding: 10px;
  }
}
