/* ============================================
   NIPPONIA 仁尾 水鏡の町 — 宿泊約款ページ用カスタムCSS
   ============================================
   
   使い方：
   WordPressの「外観 > カスタマイズ > 追加CSS」に貼り付けるか、
   テーマのstyle.cssに追記してください。
   
   ※ 約款ページのbody classや親コンテナに合わせて
     セレクタを調整してください。
   例: .page-id-xxx（約款ページのID）に限定する場合は
     .page-id-xxx を先頭に追加
   ============================================ */

/* --- 約款ページ専用ラッパー --- */
.yakkan-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: #333;
  line-height: 1.9;
  font-size: 14px;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .yakkan-page {
    padding: 48px 16px 80px;
    font-size: 13px;
    line-height: 1.85;
  }
}

/* --- ページタイトル --- */
.yakkan-page .page-title {
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  color: #222;
}

.yakkan-page .page-subtitle {
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.2em;
  color: #999;
  margin-bottom: 56px;
  text-transform: uppercase;
}

.yakkan-page .page-title-divider {
  display: block;
  width: 40px;
  height: 1px;
  background: #bbb;
  margin: 20px auto 16px;
}

/* --- 条文の見出し（H2 → 第○条のタイトル） --- */
.yakkan-page h2 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
  color: #222;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.yakkan-page h2:first-of-type {
  margin-top: 0;
}

@media (max-width: 768px) {
  .yakkan-page h2 {
    font-size: 14px;
    margin-top: 40px;
    margin-bottom: 12px;
  }
}

/* --- セクション見出し（H3 → 項目名） --- */
.yakkan-page h3 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #333;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .yakkan-page h3 {
    font-size: 13px;
    margin-top: 24px;
    margin-bottom: 8px;
  }
}

/* --- 本文段落 --- */
.yakkan-page p {
  margin-bottom: 12px;
  text-align: justify;
}

/* --- 番号付きリスト（条項の箇条書き） --- */
.yakkan-page ol {
  padding-left: 1.8em;
  margin-bottom: 16px;
}

.yakkan-page ol li {
  margin-bottom: 6px;
  line-height: 1.85;
}

/* --- 括弧付きリスト --- */
.yakkan-page ul.paren-list {
  list-style: none;
  padding-left: 1.4em;
  margin-bottom: 16px;
}

.yakkan-page ul.paren-list li {
  margin-bottom: 4px;
  text-indent: -1.4em;
  padding-left: 1.4em;
  line-height: 1.85;
}

/* --- 表（違約金等の別表） --- */
.yakkan-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13px;
}

.yakkan-page table th,
.yakkan-page table td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.6;
}

.yakkan-page table th {
  background-color: #f7f6f4;
  font-weight: 600;
  color: #333;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.yakkan-page table td {
  background-color: #fff;
}

@media (max-width: 768px) {
  .yakkan-page table {
    font-size: 11px;
  }
  .yakkan-page table th,
  .yakkan-page table td {
    padding: 8px 8px;
  }
}

/* --- 補足テキスト --- */
.yakkan-page .note {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
  margin-bottom: 20px;
}

/* --- セクション区切り --- */
.yakkan-page .section-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: #eee;
  margin: 48px 0;
}

/* --- 施行日等のフッター情報 --- */
.yakkan-page .yakkan-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #ddd;
  font-size: 13px;
  color: #666;
  text-align: right;
}

/* ============================================
   WordPressデフォルトの見出しを上書き
   （テーマによっては下記が必要）
   ============================================ */

/* 約款ページでのWPデフォルトH2/H3の巨大サイズを抑制 */
.page-template-default .yakkan-page h2,
.entry-content .yakkan-page h2 {
  font-size: 15px !important;
  margin-top: 48px !important;
  margin-bottom: 16px !important;
}

.page-template-default .yakkan-page h3,
.entry-content .yakkan-page h3 {
  font-size: 14px !important;
  margin-top: 32px !important;
  margin-bottom: 12px !important;
}