/* -------------------------- */
/* サブページ基本レイアウト */

.sub-page-layout {
  background-color: #fff;
  color: #333;
  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;
  background-color: #fff;
}

.breadcrumb-list li + li::before {
  content: "〉" / "";
  margin: 0 0.5rem;
  font-size: 0.75rem;
  color: #ccc;
  background-color: #fff;
}

.breadcrumb-list a {
  color: var(--primary-blue);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

/* -------------------------- */
/* 見出しデザイン */

/* H1: ページメインタイトル */
.sub-title {
  font-size: 2rem;
  color: #333;
  background-color: #fff;
  margin: 1.5rem 0 2.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--light-blue);
  position: relative;
}

.sub-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 20%;
  height: 3px;
  background-color: var(--primary-blue); 
  color: inherit;
}

/* H2: セクション見出し */
.sub-h2 {
  font-size: 1.5rem;
  background-color: #f8faff;
  border-left: 8px solid var(--primary-blue);
  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: var(--primary-blue);
  display: flex;
  align-items: center;
}

.sub-h3::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--light-blue);
  color: inherit;
  margin-right: 0.75rem;
  border-radius: 2px;
}

/* H4: さらに小さい見出し */
.sub-h4 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem 0;
  color: #444;
  background-color: #fff;
  padding-left: 0.5rem;
  border-left: 3px solid #ddd;
}


/* -------------------------- */
/* ページ内ナビゲーション（目次） */

.on-page-nav {
  background-color: #f8faff;
  color: #333;
  border: 1px solid #e0e8f5;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.on-page-nav-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.on-page-nav-list li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: #fff;
  border: 1px solid #d0dae8;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.on-page-nav-list li a i {
  color: var(--primary-blue);
  background-color: inherit;
  font-size: 0.8rem;
}

.on-page-nav-list li a:hover {
  background-color: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 90, 173, 0.1);
}

.on-page-nav-list li a:hover i,
.on-page-nav-list li a:hover rt  {
  color: #fff;
  background-color: inherit;
}

/* 説明文のデザイン */
.on-page-nav-intro {
  font-size: 0.95rem;
  color: #666;
  background-color: #f8faff;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #d0dae8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}

.on-page-nav-intro i {
  color: var(--primary-blue);
  background-color: transparent;
  font-size: 1.1rem;
}

/* -------------------------- */
/* 本文エリア */

.sub-page-content {
  line-height: 1.8;
  color: #333;
  background-color: #fff;
}

.lead-text {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #555;
  background-color: #fff;
}

/* -------------------------- */
/* リストデザイン */

.standard-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.standard-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.standard-list li::before {
  content: "\F287"; 
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  background-color: #fff;
  font-weight: bold;
}

.number-list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.number-list li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

/* -------------------------- */
/* ファイルダウンロード */

.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;
  color: #333;
  transition: background 0.2s;
}

.file-link-item:hover {
  background: #f9f9f9;
  color: #333;
}

.file-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  text-decoration: none;
  color: #333;
  background-color: transparent;
  font-weight: bold;
}

.file-icon {
  font-size: 1.8rem;
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

/* アイコン色分け */
.file-pdf .file-icon { color: #e74c3c; background-color: transparent;}
.file-word .file-icon { color: #2980b9; background-color: transparent;}
.file-excel .file-icon { color: #27ae60; background-color: transparent;}

.file-info {
  display: flex;
  flex-direction: column;
}

.file-size {
  font-size: 0.75rem;
  color: #515050;
  background-color: #fff;
  font-weight: normal;
}

/* -------------------------- */
/* 注釈・強調ボックス */

.info-box, .alert-box {
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  position: relative;
}

.info-box {
  background-color: #f0f7ff;
  color: inherit;
  border: 1px solid #d0e5ff;
}

.alert-box {
  background-color: #fff5f5;
  color: inherit;
  border: 1px solid #ffd0d0;
}

.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: var(--primary-blue); background-color: inherit;}
.alert-box .box-title { color: #c0392b; background-color: inherit;}

/* -------------------------- */
/* ボタン */

.sub-btn-area {
  margin: 3rem 0;
  text-align: center;
}

.sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  background-color: var(--primary-blue);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: 0 4px 0 #004080;
  transition: all 0.2s;
}

.sub-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #004080;
  filter: brightness(1.1);
}

.sub-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* -------------------------- */
/* テーブルデザイン */

.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: #333;
  background-color: #fff;
}

.standard-table th, 
.standard-table td {
  border: 1px solid #e0e0e0;
  padding: 1rem;
  text-align: left;
}

.standard-table thead th {
  background-color: #f4f4f4;
  color: #333;
  font-weight: bold;
}

.standard-table tbody th {
  background-color: #fcfcfc;
  color: #333;
  width: 200px;
}

/* -------------------------- */
/* 施設案内テーブル特有のスタイル */

.facility-table td {
  vertical-align: top;
  line-height: 1.7;
}

/* 館名列を強調 */
.fac-name {
  white-space: nowrap;
  background-color: #f8faff !important;
  font-weight: bold;
  color: var(--primary-blue);
}

/* MAP */
.map-link-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 2px 10px;
  background-color: #f0f7ff;
  border: 1px solid #005aad;
  border-radius: 4px;
  color: #005aad;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.2s ease;
}

.map-link-tag:hover {
  background-color: #005aad;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 90, 173, 0.2);
}

/* 電話番号リンク */
.tel-link {
  color: #333;
  background-color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.tel-link:hover {
  color: var(--primary-blue);
  background-color: inherit;
  text-decoration: underline;
}

.v-middle {
  vertical-align: middle !important;
  text-align: center;
}

.closed-cell {
  background-color: #fafafa;
  color: inherit;
  font-size: 0.9rem;
}

/* 施設案内：写真レイアウト */
.facility-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.facility-photo {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.facility-photo-title {
  font-size: 1.1rem;
  color: var(--primary-blue);
  font-weight: bold;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.facility-photo-desc {
  font-size: 0.95rem;
  margin-bottom: 0;
}


/* -------------------------- */
/* FAQ (よくある質問) デザイン */

.faq-list {
  margin-bottom: 3rem;
}

.faq-item {
  border: 1px solid #d0dae8;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 90, 173, 0.05);
}

.faq-q {
  padding: 1.25rem 1.5rem;
  background-color: #f0f7ff; 
  font-weight: bold;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #333;
}

.faq-q span {
  color: var(--primary-blue);
  font-size: 1.8rem;
  line-height: 1.1;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  flex-shrink: 0;
  font-weight: 900;
}

.faq-a {
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-top: 1px dashed #d0dae8;
  background-color: #fff; 
}

.faq-a span {
  color: #e74c3c;
  font-size: 1.8rem;
  line-height: 1.1;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  flex-shrink: 0;
  font-weight: 900;
}

.faq-text {
  flex: 1;
  line-height: 1.7;
  padding-top: 0.3rem;
}

/* -------------------------- */
/* ルビ（ふりがな）用スタイル */

ruby {
  ruby-align: center; 
}

rt {
  font-size: 0.7rem;
  color: #666;
  font-weight: normal;
  letter-spacing: 0;
}

.kids-content {
  line-height: 2.2;
  font-size: 1.1rem;
}

.kids-content p {
  margin-bottom: 1.5rem;
}

.kids-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.kids-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem; 
  background-color: #fff;
  border: 2px solid var(--light-blue);
  border-radius: 16px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.1rem; 
  transition: all 0.2s ease;
  box-shadow: 0 4px 0 var(--light-blue);
  white-space: nowrap !important; 
}

.kids-btn span {
  display: block;
  white-space: nowrap;
}

.kids-btn i {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 0; 
}

.kids-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--light-blue);
  background-color: #f0f7ff;
}

.kids-btn:active {
  transform: translateY(4px);
  box-shadow: none;
}

/* -------------------------- */
/* ティーンページ用リンクボタン */

.teen-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.teen-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 1rem;
  background-color: #fff;
  border: 2px solid var(--primary-blue); 
  border-radius: 12px;
  text-decoration: none;
  color: var(--primary-blue); 
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.teen-btn i {
  font-size: 1.6rem;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.teen-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 90, 173, 0.15);
  background-color: var(--primary-blue);
  color: #fff;
}

.teen-btn:hover i {
  color: #fff;
}

/* -------------------------- */
/* スマホ用メディアクエリ */

@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;
  }

  .sub-h3 {
    font-size: 1.1rem;
  }

  .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;
  }

  .facility-table th, 
  .facility-table td {
    padding: 1rem 0.75rem;
  }
  
  .map-link-tag {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding: 8px;
  }

    .on-page-nav {
    padding: 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: 4.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;
  }

    .facility-photo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .faq-q, .faq-a {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .faq-q span, .faq-a span {
    font-size: 1.5rem;
  }

  .faq-text {
    font-size: 0.95rem;
    padding-top: 0.15rem;
  }

}