
/* -------------------------- */
/* 1. サブページ基本レイアウト */

.sub-page-layout {
  background-color: #fff;
  padding-bottom: 5rem;
}

.sub-page-container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.breadcrumb-container {
  max-width: 75rem; 
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  color: #666;
}

.breadcrumb-list li + li::before {
  content: "〉";
  margin: 0 0.5rem;
  font-size: 0.75rem;
  color: #888;
}

.breadcrumb-list a {
  color: #7756A6; 
  text-decoration: none;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

/* -------------------------- */
/* 2. 見出しデザイン */

/* H1: ページメインタイトル */
.sub-title {
  font-size: 2rem;
  color: #333;
  margin: 1.5rem 0 2.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--soft-yellow);
  position: relative;
}

.sub-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 20%;
  height: 3px;
  background-color: var(--primary-yellow);
}

/* H2: セクション見出し */
.sub-h2 {
  font-size: 1.5rem;
  background-color: #fff;
  border-left: 8px solid var(--primary-yellow);
  padding: 0.75rem 1.25rem;
  margin: 3rem 0 1.5rem 0;
  color: #333;
}

/* H3: 小見出し */
.sub-h3 {
  font-size: 1.25rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
  margin: 2rem 0 1rem 0;
  color: #333; 
  display: flex;
  align-items: center;
}

.sub-h3::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--primary-yellow);
  margin-right: 0.75rem;
  border-radius: 2px;
}

/* H4: さらに小さい見出し */
.sub-h4 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem 0;
  color: #333;
  padding-left: 0.5rem;
  border-left: 3px solid #ddd;
}

/* -------------------------- */
/* 3. ページ内ナビゲーション（目次） */
.on-page-nav {
  max-width: 75rem; 
  background-color: var(--bg-yellow-light);
  border: 1px solid #333 !important;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 0 auto;
}

.on-page-nav-intro {
  display: block;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
  font-size: 1rem;
}

.on-page-nav-intro i {
  color: #7756A6 !important;
  font-size: 1.2rem;
  margin-right: 5px;
}

.on-page-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.on-page-nav-list li a {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  background-color: white;
  border: 1px solid #333 !important;
  border-radius: 8px;
  color: #333 !important;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s;
}

.on-page-nav-list li a i {
  color: #333;
  margin-right: 0.5rem;
  font-weight: bold;
}

.on-page-nav-list li a:hover {
  background-color: var(--soft-yellow);
  border-color: #333;
  transform: translateY(-2px);
}


/* スマホ対応 */
@media (max-width: 768px) {
  .on-page-nav-list {
    grid-template-columns: 1fr; 
  }
}

/* -------------------------- */
/* 4. 本文・リスト・装飾ボックス */

.sub-page-content {
  line-height: 1.8;
  color: #333;
}

.lead-text {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #555;
}

.standard-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.standard-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  display: flex;
  align-items: center; 
}

.standard-list li::before {
  content: ""; 
  position: absolute;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: #7756A6;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

/* 注釈ボックス */
.info-box {
  background-color: #f0f9ff !important;
  border: 1px solid #81d4fa !important; 
}

.alert-box {
  background-color: #fff5f5;
  border: 1px solid #ffd0d0;
}

.info-box, .alert-box {
  padding: 1.5rem;
  margin: 2rem 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  position: relative;
}

.box-title {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box .box-title { color: #0277bd !important; }
.alert-box .box-title { color: #c0392b; }

/* -------------------------- */
/* 5. ファイルダウンロード  */

.file-link-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
  gap: 1rem;
}

.file-link-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  transition: background 0.2s;
}

.file-link-item:hover {
  background: var(--bg-yellow-light);
}

.file-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.file-icon {
  font-size: 1.8rem;
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

.file-pdf .file-icon { color: #e74c3c; }
.file-word .file-icon { color: #2980b9; }
.file-excel .file-icon { color: #27ae60; }

.file-info {
  display: flex;
  flex-direction: column;
}

.file-size {
  font-size: 0.75rem;
  color: #777;
  font-weight: normal;
}


/* -------------------------- */
/* 7. テーブルデザイン */

.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid #e0e0e0;
}

.standard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.standard-table caption {
  text-align: left;
  font-size: 0.8rem;
  padding: 0.5rem;
  color: #777;
}

.standard-table th, 
.standard-table td {
  border: 1px solid #e0e0e0;
  padding: 1rem;
  text-align: left;
}

.standard-table thead th {
  background-color: #eee;
  border-bottom: 2px solid #e0e0e0;
  color: #333;
  font-weight: bold;
}

.standard-table tbody th {
  background-color: #fafafa;
  width: 200px;
}

.custom-schedule {
  width: 100%;
  border-collapse: collapse;
  line-height: 1.4;
}

.custom-schedule .col-label {
  width: 160px;
  background-color: #fff9ed;
  text-align: center;
}

.custom-schedule td {
  text-align: center;
  vertical-align: middle;
  line-height: 1.2;
  padding: 10px 5px;
}

.custom-schedule th, 
.custom-schedule td {
  border: 1px solid #e0d8c0;
}

.custom-schedule thead th {
  background-color: #fff9ed;
  color: #7a4b31; 
}

.tilde-vertical {
  display: inline-block;
  transform: rotate(90deg);
  margin: 2px 0;
  font-family: sans-serif;
}


/* MAPリンクボタン */
.map-link-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 2px 10px;
  background-color: #fff;
  border: 1px solid #7756A6;
  border-radius: 4px;
  color: #7756A6;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.2s ease;
}

.map-link-tag:hover {
  background-color: #7756A6;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(119, 86, 166, 0.2);
}


.v-middle {
  vertical-align: middle !important;
  text-align: center;
}

/* サブページ内の画像エリア */
.sub-page-img {
  margin: 1.5rem 0 3rem 0;
  text-align: center;
}

.sub-page-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sub-page-img-s {
  margin: 1rem 0 2rem 0;
  text-align: center;
}
.sub-page-img-s img {
  width: 60%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.facility-item {
  margin-bottom: 4rem; 
}

/* 予約ボタン */
.sub-btn {
  display: inline-flex; 
  width: auto !important; 
  padding: 0.75rem 2rem;
  background-color: var(--primary-yellow);
  color: #333 !important;
  font-weight: bold;
  border: 2px solid #333;
  border-radius: 8px; 
  margin: 0.5rem 0 1.5rem 0;
}

.sub-btn:hover {
  background-color: #f5a600;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* スケジュール専用テーブル */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem; 
  min-width: 800px;   
}

.schedule-table th, .schedule-table td {
  border: 1px solid #e0e0e0;
  padding: 0.5rem 0.2rem;
  text-align: center;
}

.schedule-table thead th {
  background-color: var(--bg-yellow-light);
  color: var(--text-yellow);
}

.schedule-table tbody th {
  background-color: #fafafa;
  font-weight: bold;
  width: 60px;
}

.schedule-table .highlight-row td, 
.schedule-table .highlight-row th {
  background-color: var(--soft-yellow);
  font-weight: bold;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
}

/* 利用時間の行（矢印の代用） */
.duration-row td {
  font-size: 0.8rem;
  color: #666;
  background-color: #fafafa;
  letter-spacing: 0.1em;
}

.caution-list li {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.event-card-container {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.event-card {
  display: flex;
  background: #fff;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.event-card.has-image {
  display: flex;
}

.event-card.no-image {
  display: block;
  background-color: #fff;
  border: 1px solid #333; 
  border-top: 6px solid var(--primary-yellow); 
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.event-card.no-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.event-card.no-image .event-title {
  display: inline-block;
  border-bottom: 2px solid var(--soft-yellow);
  padding-bottom: 0.2rem;
  margin-bottom: 1.2rem;
}

.event-card.no-image .event-body {
  padding: 2.5rem 2rem;
  border-left: none;
}

.event-img {
  width: 30%;
  object-fit: cover;
  background-color: #f0f0f0;
}

.event-body {
  padding: 1.5rem;
  flex: 1;
}

.event-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-yellow); 
  margin-bottom: 0.5rem;
}

.event-meta {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.event-meta span {
  display: inline-block;
  margin-right: 1rem;
  padding: 2px 8px;
  background: var(--bg-yellow-light);
  border-radius: 4px;
  border: 1px solid var(--soft-yellow);
}

.event-sub-info p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.event-sub-info strong {
  color: var(--text-yellow);
}

/* 予約ボタン */
.event-apply-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background-color: var(--primary-yellow);
  color: #333 !important;
  font-weight: bold;
  border: 1px solid #333;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.event-apply-btn:hover {
  background-color: #f5a600;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .event-card { flex-direction: column; }
  .event-img { width: 100%; height: 150px; }
}

/* FAQ全体のコンテナ */
.faq-item {
    border: 1px solid #333; 
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #fff;
    list-style: none;
}

/* 質問エリア (Q) */
.faq-q {
    padding: 20px;
    background: #fff8ec;
    font-weight: 600;
    display: flex;
    align-items: flex-start; 
    border-bottom: 1px solid #eee;
    margin: 0;
}

.faq-q span {
    color: #f7931e;
    font-size: 28px;
    margin-right: 15px;
    font-family: var(--f-sub-en);
    line-height: 1;
}

/* 回答エリア (A) */
.faq-a {
    padding: 20px;
    display: flex;
    background: #fff;
    align-items: flex-start;
    margin: 0;
}

.faq-a span {
    color: #7756A6;
    font-size: 28px;
    margin-right: 15px;
    font-family: var(--f-sub-en);
    line-height: 1;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .faq-q, .faq-a {
        padding: 15px;
    }
    .faq-q span, .faq-a span {
        font-size: 22px;
        margin-right: 10px;
    }
}

/* -------------------------- */
/* 8. スマホ用メディアクエリ */

@media (max-width: 768px) {
  .sub-title {
    font-size: 1.5rem;
    margin: 1rem 0 1.5rem 0;
  }

  .sub-h2 {
    font-size: 1.25rem;
    padding: 0.6rem 1rem;
    border-left-width: 6px;
  }

  .sub-h3 {
    font-size: 1.1rem;
  }

  .on-page-nav-intro {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .on-page-nav-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem; 
  }

  .on-page-nav-list li a {
    min-height: 2rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: #333;
  }
  
  .on-page-nav-list li a i {
    font-size: 0.75rem;
  }

  .file-link-list {
    grid-template-columns: 1fr;
  }

  .standard-table th, 
  .standard-table td {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  
  .standard-table tbody th {
    width: auto;
    white-space: nowrap;
  }

  .sub-btn {
    width: 100%;
    padding: 1rem;
  }

  .sub-page-img-s img {
    width: 90%;
  }

  .map-link-tag {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding: 8px;
  }
}