/*
Theme Name: にこにこキッズパーク
Theme URI: https://ohisamaweb.com/
Author: おひさまワークス
Author URI: https://ohisamaweb.com/
Description: にこにこキッズパーク公式サイト用のオリジナルテーマです。
Version: 1.0.0
Text Domain: kidspark-theme
Domain Path: /languages
*/

/* ==========================================================================
   //  style.css目次
   // ======================================================================= */

/* --- 01. 変数定義 / 基本設定 
/* --- 02. 共通パーツの設定
/* --- 03. ヘッダーの設定
/* --- 04. フロントページ / メインビジュアルの設定
/* --- 05. フロントページ / 遊びのエリア紹介の設定
/* --- 06. フロントページ / イベント・ブログの設定
/* --- 07. フロントページ / 料金の設定
/* --- 08. フロントページ / アクセスの設定
/* --- 09. フロントページ / 問い合わせ・プライバシーポリシーの設定
/* --- 10. フロントページ / よくある質問の設定
/* --- 11. ブログ / ブログページについての共通設定
/* --- 12. ブログ / ブログ一覧ページついての設定
/* --- 13.ブログ / ブログ記事ページについての設定
/* --- 14. 上に戻るボタンについての設定
/* --- 15. フッターの設定

/* ==========================================================================
*/

/* ==========================================================================
   01.変数定義 / 基本設定
   ========================================================================== */
/* ====== 変数定義(varで呼び出し）====== */
:root {
  /* --- 色に関する設定 --- */
  --main-color: #ff9900; /* 明るいオレンジ */
  --main-color-hover: #ffaa00; /* ★ ホバー時の色 (少し濃い色) */
  --sub-color: #66ccee; /* 水色 */
  --sub-color-hover: #55bcdc; /* ★ サブカラーのホバー色 */
  --text-color: #333; /* 濃いグレー */
  --text-sub-color: #666; /* 薄いグレー */
  --white-color: #fff; /* 白色 */
  --light-gray-color: #f5f5f5; /* 白に近い薄いグレー */
  --light-green-color: #c8e6c9; /* 薄い緑色 */
  --cream-color: #fffacd; /* 薄い黄色 */
  --aliceblue-color: #f0f8ff; /* 爽やかな水色 */
  --tomato-color: #ff6347; /* トマト色 */

  /* --- フォントに関する設定 --- */
  --main-font: "M PLUS Rounded 1c", sans-serif;
  --font-base-size: 100%; /* 100%=16px=1.0rem */
  --line-height-base: 1.6; /* 本文の行間 */
  --fs-h1: 4rem; /* 64px (16 x 4.0) */
  --fs-h2: 2rem; /* 32px (16 x 2.0) */
  --fs-h3: 1.6rem; /* 25.6px */
  --fs-h4: 1.2rem; /* 19.2px */
  --fs-small: 0.875rem; /* 約14px (注意書き、日付など) */
  --fs-medium: 1rem; /* 16px (本文、標準サイズ) */
  --fs-large: 1.125rem; /*  約18px(リード文、強調したい部分) */
  --fs-extra-large: 1.5rem; /* 24px */
}

/* ====== bodyの設定 ====== */
body {
  font-family: var(--main-font);
  color: var(--text-color);
  background-color: var(--white-color);
  line-height: var(--line-height-base);
  margin: 0;
  padding: 0;
  font-size: var(--fs-medium);
}
/* ====== 見出しのフォントサイズ設定 ====== */
h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

/* ====== リンクのスタイル ====== */
a {
  text-decoration: none;
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */
@media (max-width: 768px) {
  /* html要素の変数だけを上書き */
  html {
    --fs-h1-sp: 2.2rem; /* 35.2px に縮小 */
    --fs-h2-sp: 1.5rem; /* 24px に縮小 */
    --fs-h3-sp: 1.3rem; /* 20.8px に縮小 */
    --fs-extra-large-sp: 1.25rem; /* 20px に縮小 */
    --fs-large-sp: 1.05rem; /* 約17px に縮小 */
    /* 本文と小さいサイズはそのまま維持しているため記述していません */
  }
  /* ====== 変数が上書きされた後、スマホ用のフォントサイズを適用 ====== */
  h1 {
    font-size: var(--fs-h1-sp);
  }

  h2 {
    font-size: var(--fs-h2-sp);
  }

  h3 {
    font-size: var(--fs-h3-sp);
    text-align: center;
  }
}

/* ==========================================================================
   02.共通パーツの設定
   ========================================================================== */
/* ====== 全体のコンテナ（コンテンツの幅を制限）====== */
.container {
  max-width: 1200px; /* PCでの最大幅 */
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== 各セクションの余白 ====== */
section {
  padding: 80px 0;
}

/* ====== 見出しのスタイル ====== */
.section-title {
  font-weight: bold;
  color: var(--white-color);
  text-align: center;
  margin-bottom: 60px;
  padding: 15px 30px;
  background: linear-gradient(90deg, #ffcc00, #ff6699);
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ====== 注意書き ====== */
.sample_notice {
  color: var(--tomato-color);
}

/* ====== カードリストのレイアウト設定 ====== */

.card-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.card {
  width: calc(33.333% - 20px);
  background-color: var(--white-color);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* ----- テキストエリアの設定----- */
.card__content {
  padding: 15px;
  text-align: left; /* デフォルトは左寄せ */
}

/* --- カテゴリバッジの設定 --- */
.card__category-badge {
  display: inline-block;
  background-color: var(--sub-color);
  color: var(--white-color);
  font-size: var(--fs-small);
  padding: 4px 8px;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* --- 見出しの設定 --- */
.card__content h3 {
  color: var(--text-color);
  font-weight: bold;
  margin-bottom: 5px;
  line-height: 1.4; /* 1行の高さ */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2行でクリップ（切り詰め）する */
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* --- 日付部分の設定 --- */
.card__content .card__date {
  color: var(--text-sub-color);
  font-size: var(--fs-small);
}

/* --- 抜粋テキストの設定 --- */
.card__content p {
  color: var(--text-sub-color);
}

/* ====== 共通ボタン設定 ====== */
.btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  /*  text-decoration: none; */
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
  font-size: var(--fs-large);
}

/* --- 色のバリエーション --- */
/* クラス名: .btn-primary（メインカラー） */
.btn-primary {
  background-color: var(--main-color); /* 明るいオレンジ */
  color: var(--white-color);
}

.btn-primary:hover {
  background-color: var(--main-color-hover);
}

/* クラス名: .btn-secondary（サブカラー） */
.btn-secondary {
  background-color: var(--sub-color); /* 水色 */
  color: var(--white-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color-hover);
}

/* ====== Google Iconsの設定 ====== */
.material-icons {
  vertical-align: middle; /* アイコンとテキストの垂直方向の位置を揃える */
  margin-right: 4px; /* アイコンとテキストの間に少しスペースを開ける */
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */
@media (max-width: 768px) {
  /* ====== 見出しのスタイル ====== */
  .section-title {
    margin-bottom: 30px;
  }

  /* ====== カードリストのレイアウト設定 ====== */

  .card-list {
    flex-direction: column;
    gap: 20px;
    padding: 0 5%;
  }

  .card {
    width: 100%;
    margin: 0;
  }

  .card img {
    height: auto;
  }

  /* ====== ボタンの設定（サイズ調整） ====== */
  .btn {
    padding: 12px 25px;
  }
}

/* ==========================================================================
   03.ヘッダーの設定
   ========================================================================== */
/* ====== ヘッダー全体の設定 ======  */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- ヘッダー内のコンテナ（ロゴとナビを横並びにするため）---  */
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ====== ロゴの設定 ======  */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  font-size: var(--fs-extra-large);
  font-weight: bold;
}

.logo img {
  height: 80px;
  margin-right: 10px;
}

/* ====== ナビゲーションメニューのスタイル ======  */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-nav ul li {
  margin-left: 30px;
}
.main-nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: var(--fs-large);
  font-weight: bold;
  padding: 5px 0;
  position: relative;
}

/* --- ナビゲーションのホバーエフェクト（マウスを乗せた時のアニメーション）---  */
.main-nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
  width: 100%;
}

/* ======  ハンバーガーメニュー(PCでは表示しない) ======  */
.hamburger-menu {
  display: none;
}

.hamburger-menu.is-active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.hamburger-menu.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.is-active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */

@media (max-width: 768px) {
  /* ====== メニュー設定 ====== */
  .main-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 90;
    transition: right 0.4s ease;
    overflow-y: auto;
    display: none;
  }

  /* --- is-open クラスが付いた時の表示 --- */
  .main-nav.is-open {
    display: block;
    right: 0;
  }

  /* --- ナビゲーションメニューのスタイル --- */
  .main-nav ul {
    display: block;
    padding-top: 100px;
    text-align: center;
  }

  .main-nav ul li {
    margin: 30px 0;
  }

  .main-nav ul li a {
    display: block;
    padding: 15px;
  }

  /* --- ハンバーガーメニューのスタイル --- */
  .hamburger-menu {
    display: block;
    position: absolute;
    top: 25px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--main-color);
    border-radius: 5px;
    border: none;
    cursor: pointer;
    z-index: 100;
    transition: background-color 0.3s;
  }

  .hamburger-menu span {
    display: block;
    height: 4px;
    width: 70%;
    background: var(--white-color);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s;
  }

  .hamburger-menu span:nth-child(1) {
    top: 8px;
  }
  .hamburger-menu span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .hamburger-menu span:nth-child(3) {
    bottom: 8px;
  }

  /* --- スクロール禁止用CSS --- */
  .no-scroll {
    overflow: hidden; /* スクロールを禁止 */
  }
}

/* ==========================================================================
   04.フロントページ / メインビジュアルの設定
   ========================================================================== */
main-visual {
  height: 600px;
  background-image: url("images/kidspark-mainvisual.jpg");
  background-size: cover;
  background-position: center;
  margin-top: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: var(--white-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ====== テキスト部分の設定 ====== */
/* -- アニメーション設定 -- */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -30%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* -- テキストの配置設定 -- */
.main-visual-content {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  max-width: 800px;
  opacity: 0;
  transform: translate(-50%, -30%); /* 初期位置を下げる */
  /* アニメーションの適用 */
  animation: fadeInSlideUp 1s ease-out forwards; /* 1秒かけて実行 */
  animation-delay: 0.5s; /* ページロードから0.5秒後に開始 */
}
.main-visual-content h1 {
  font-size: var(--fs-h1);
  margin-bottom: 20px;
}

.main-visual-content p {
  font-size: var(--fs-extra-large);
  margin-top: 0;
  margin-bottom: 30px;
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */
@media (max-width: 768px) {
  main-visual {
    background-image: url("images/kidspark-mainvisual-sp.jpg");
    background-size: cover;
    background-position: center;
  }

  /* テキスト部分の調整 */
  .main-visual-content {
    top: auto;
    transform: translate(-50%, 0); /* 縦方向の移動をリセット */
    bottom: 5%; /* 画面の下端から5%の位置に配置 */
    left: 50%; /* 左から50%の位置 */
    width: 100%;
    max-width: none;
    transform: translate(
      -50%,
      0
    ) !important; /* ★★ 【重要】アニメーション終了時の transform を強制的に上書き ★★ */
  }

  .main-visual-content h1 {
    font-size: var(--fs-h1-sp);
    margin-bottom: 5px;
  }

  .main-visual-content p {
    font-size: var(--fs-extra-large-sp);
    margin-bottom: 20px;
  }
}

/* ==========================================================================
   05.フロントページ / 遊びのエリア紹介の設定
   ========================================================================== */
.facility-intro {
  background-color: var(--cream-color);
}

/* ====== カード部分の設定（遊びのエリア用に一部変更） ====== */
.card-area--item img {
  border-bottom: 5px solid var(--sub-color);
}

/* ====== テキスト部分の設定（遊びのエリア用に一部変更） ====== */
.card-list--area .card__content {
  text-align: center;
}

/* ==========================================================================
  06.フロントページ / イベント・ブログの設定
   ========================================================================== */

.event-news {
  background-color: var(--aliceblue-color);
}

.card-event--item {
  text-align: left;
}

/* ===== ボタンの設定（最新イベント用に一部変更） ===== */

.event-news .view-more {
  text-align: center;
  margin-top: 30px;
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */
@media (max-width: 768px) {
  .event-news h3 {
    text-align: left;
  }
}

/* ==========================================================================
  07.フロントページ / 料金の設定
   ========================================================================== */
.pricing-hours {
  background-color: var(--aliceblue-color);
}

.pricing-hours .section-content {
  margin-bottom: 50px;
}

.pricing-hours h3 {
  font-size: var(--fs-h3);
  color: var(--text-color);
  border-bottom: 2px solid var(--main-color);
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.pricing-hours h4 {
  font-size: var(--fs-h4);
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-color);
}

.price-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.price-table th,
.price-table td {
  padding: 15px;
  text-align: center;
  border: 1px solid #ddd;
}

.price-table thead {
  background-color: #ffe0b2;
  font-weight: bold;
}

/* 奇数行カラー */
.price-table tbody tr:nth-child(odd) {
  background-color: var(--white-color);
}

/* 偶数行カラー */
.price-table tbody tr:nth-child(even) {
  background-color: var(--aliceblue-color);
}

.plan-list {
  list-style: none;
  padding-left: 0;
}

.plan-list li {
  background-color: var(--white-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.note {
  font-size: var(--fs-small);
  color: #888;
  margin-top: 20px;
}

.divider {
  width: 100px;
  height: 5px;
  background-color: var(--main-color);
  margin: 50px auto;
  border-radius: 5px;
}

.hours-list {
  list-style: none;
  padding-left: 0;
  font-size: var(--fs-large);
}

.hours-list li {
  margin-bottom: 10px;
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */

@media (max-width: 768px) {
  .price-table table,
  .price-table thead,
  .price-table tbody,
  .price-table th,
  .price-table td,
  .price-table tr {
    display: block;
  }

  .price-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .price-table tbody tr:nth-child(even) {
    background-color: var(--white-color);
  }

  .price-table tr {
    border: 1px solid #ccc;
    margin-bottom: 15px;
  }

  .price-table td {
    border: none;
    position: relative;
    padding-left: 50%;
    padding-top: 8px;
    padding-bottom: 8px;
    text-align: left;
  }

  .price-table td:before {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    content: attr(data-label);
    font-weight: bold;
    transform: translateY(-50%);
  }
}

/* ==========================================================================
  08.フロントページ / アクセスの設定
   ========================================================================== */
.access {
  background-color: var(--aliceblue-color);
}

.access-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.access-map {
  flex: 1;
  min-width: 300px;
}

.access-info {
  flex: 1;
  min-width: 300px;
}

.contact-info {
  width: 100%;
  margin-top: 20px;
}

.access h3 {
  border-bottom: 2px solid var(--sub-color);
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.access h4 {
  margin-top: 0;
}

.access ul,
.access p {
  margin-bottom: 15px;
}

.access-item {
  margin-bottom: 30px;
}

.note {
  font-size: var(--fs-small);
  color: var(--text-sub-color);
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */

@media (max-width: 768px) {
  .access-content {
    flex-direction: column;
    gap: 30px;
  }

  .access-map,
  .access-info {
    width: 100%;
    min-width: auto;
  }

  .access-map iframe {
    height: 300px;
  }

  .contact-info {
    margin-top: 0;
    text-align: center;
  }
}

/* ==========================================================================
 09.フロントページ / 問い合わせ・プライバシーポリシーの設定
   ========================================================================== */

.contact-form-section {
  background-color: var(--aliceblue-color);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-text {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-sub-color);
}

/* Q&Aへのリンクテキスト */
.qa-link-text {
  text-align: center;
  margin-top: -20px; /* contact-textとの間隔を調整 */
  margin-bottom: 30px;
  /*  font-size: 0.9em; */
}

.qa-link-text a {
  color: var(--sub-color);
  text-decoration: underline;
  font-weight: bold;
}

.qa-link-text a:hover {
  color: var(--sub-color-hover);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box; /* パディングを含めて幅を計算 */
}

.form-group textarea {
  resize: vertical; /* 縦方向のみリサイズ可能に */
}

.required {
  color: var(--main-color);
  margin-left: 5px;
}

/* セレクトボックスのデザイン */
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: var(--fs-medium);
}

.privacy-policy-check {
  margin-top: 30px;
  margin-bottom: 20px;
  font-size: var(--fs-small);
}

.privacy-policy-check a {
  color: var(--sub-color);
  text-decoration: underline;
}
/* ===== ボタンの設定（フォーム用に一部変更） ===== */
.contact-form-section .btn-primary {
  display: block;
  width: 100%;
}

/* ========================================
   プライバシーポリシー
   ======================================== */
.privacy-policy-section {
  background-color: var(--white-color);
}

.privacy-policy-section h3 {
  /*  font-size: 1.5em; */
  margin-top: 40px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.policy-content p {
  /*  font-size: 1em; */
  line-height: 1.8;
  color: var(--text-sub-color);
}

/* ====モーダルウィンドウの設定（JSで制御）==== */
/* モーダル背景（初期状態は非表示） */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000; /* 他の要素より手前に表示 */
  overflow-y: auto; /* コンテンツが長い場合スクロール可能にする */
}

/* モーダル本体 */
.modal-content {
  background-color: var(--white-color);
  margin: 50px auto; /* 上下中央に配置 */
  padding: 30px;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* 閉じるボタン */
.close-button {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}
.close-button:hover {
  color: #333;
}

/* ==========================================================================
  10.フロントページ / よくある質問の設定
   ========================================================================== */
.faq-section {
  background-color: var(--white-color);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white-color);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.faq-item a {
  color: var(--sub-color);
  text-decoration: underline;
  font-weight: bold;
}

.faq-item a:hover {
  color: var(--sub-color-hover);
}

.faq-question {
  font-size: var(--fs-large);
  font-weight: bold;
  color: var(--text-color);
  padding: 20px;
  cursor: pointer; /* クリック可能であることを示す */
  position: relative;
  list-style: none; /* デフォルトの矢印を消す */
}

.faq-question::before {
  content: "+"; /* 閉じた状態のアイコン */
  font-size: fx(--fs-extra-large);
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--main-color);
  transition: transform 0.3s;
}

details[open] .faq-question::before {
  content: "−"; /* 開いた状態ではマイナス記号を表示 */
  top: 10px;
  transform: none;
}

.faq-answer {
  padding: 0 20px 20px;
  /*  font-size: 1em; */
  line-height: 1.6;
  color: var(--text-sub-color);
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */

@media (max-width: 768px) {
  .faq-question {
    display: block;
    padding-right: 50px;
    position: relative;
  }

  .faq-question::before {
    position: absolute;
    top: 10px;
    transform: none;
    right: 20px;
  }

  /* 画面幅が狭い場合、開いている時の位置を再設定 */
  details[open] .faq-question::before {
    content: "−";
    top: 10px;
    transform: none;
  }
}

/* ==========================================================================
  11.ブログ / ブログページについての共通設定
   ========================================================================== */

/* --- 全体のコンテナ --- */
.blog-container {
  display: flex; /* Flexboxで左右に並べる */
  gap: 30px; /* メインとサイドバーの間のスペース */
  flex-direction: row-reverse;
  padding: 30px 0;
}

/* ====== メインコンテンツの設定 ====== */
.blog-main {
  flex: 1; /* 残りのスペースを全て使用 */
  min-width: 0;
}

/* ====== 見出しの設定 ====== */
.blog-main h1 {
  line-height: 1.4;
  font-size: var(--fs-h2);
}

.blog-main h2 {
  font-size: var(--fs-h3);
  margin-top: 40px;
  margin-bottom: 15px;
  border-left: 5px solid var(--main-color);
  padding-left: 10px;
}

.blog-main h3 {
  line-height: 1.4;
  font-size: var(--fs-h4);
}

/* ====== サイドバーの設定 ====== */
.blog-sidebar {
  width: 300px; /* サイドバーの固定幅 */
  flex-shrink: 0; /* 幅が縮まないようにする */
  background-color: var(--light-gray-color);
  padding: 20px;
  border-radius: 10px;
}

/* --- ウィジェットタイトルの基本デザイン --- */
.blog-sidebar .wp-block-heading {
  font-size: var(--fs-large); /* 少し大きくして強調 */
  font-weight: bold;
  border-bottom: none;
  border-left: 5px solid var(--sub-color);
  background-color: var(--white-color);
  padding: 8px 10px;
  margin-bottom: 20px;
  border-radius: 3px;
}
/* --- サイドバー内のリストスタイル --- */
.blog-sidebar ul {
  padding-left: 0;
  margin-left: 0;
}

.blog-sidebar ul li {
  list-style: none;
  padding: 8px 0 8px 10px;
  border-bottom: 1px solid #eee;
  line-height: 1.4;
}

.blog-sidebar ul li:last-child {
  border-bottom: none;
}

.blog-sidebar ul li a {
  /*  text-decoration: none; */
  color: var(--text-color);
  display: block;
}

.blog-sidebar ul li a:hover {
  color: var(--sub-color);
  background-color: var(--white-color);
}

/* ====== カード部分の設定（ブログページ用はサイドバーがあるため、PC表示は2列に調整） ====== */
.card-list--blog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card-blog--item {
  margin-bottom: 30px;
}

/* --- カードの幅をリセット --- */
.card-list--blog .card {
  width: 100%;
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */

@media (max-width: 768px) {
  /* --- 全体のコンテナ (1カラムに戻す) --- */
  .blog-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
  }
  /* --- メインエリア --- */
  .blog-main {
    order: 1;
    width: 100%; /* モバイルでは横幅をいっぱい使う */
  }

  /* -- メインエリア -- */
  .blog-main h1 {
    /*   line-height: 1.4; */
    font-size: var(--fs-h2-sp);
  }

  .blog-main h2 {
    font-size: var(--fs-h3-sp);
  }

  /* --- サイドバー --- */
  .blog-sidebar {
    order: 2;
    width: 100%; /* モバイルでは横幅をいっぱい使う */
    margin-top: 20px;
    padding-left: 5%;
    padding-right: 5%;
    box-sizing: border-box;
  }

  /* --- ブログ用カード部分設定 --- */
  .card-list--blog {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }
}

/* ==========================================================================
  12.ブログ / ブログ一覧ページついての設定
   ========================================================================== */
/* ====== 見出しの設定 ====== */
.section-title--blog {
  margin-bottom: 30px;
}

/* ====== アーカイブの説明文の設定 ====== */
.archive-description {
  max-width: 900px; /* 説明文の幅を制限 */
  margin: 0 auto;
  line-height: 1.8;
}

/* ==========================================================================
  13.ブログ / ブログ記事ページについての設定
   ========================================================================== */

.blog-post {
  max-width: 800px; /* 記事の最大幅 */
  margin: 0 auto;
  background-color: var(--white-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ====== メタ情報の設定 ====== */
.post-meta {
  display: flex; /* 横並びにする */
  justify-content: flex-end; /* 右端に寄せる */
  align-items: center; /* 縦方向の配置を中央に揃える */
  gap: 20px; /* 日付とカテゴリの間の余白 */
  margin-bottom: 20px;
  color: var(--text-sub-color);
  font-size: 0.9rem;
}

.post-date {
  display: flex;
  align-items: center;
}

/* ====== カテゴリー情報の設定 ====== */
/* --- the_category() が出力する<ul>の初期設定をリセット　--- */
.post-category ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; /* タグを横並びにする */
  gap: 8px; /* タグ同士の間隔 */
}

/* タグのリンク要素のデザイン */
.post-category a {
  background-color: var(--sub-color);
  color: var(--white-color);
  padding: 3px 10px;
  border-radius: 15px;
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: bold;
  transition: background-color 0.3s;
}

.post-category a:hover {
  background-color: var(--sub-color-hover);
}

/* ====== アイキャッチの設定 ====== */
.post-eyecatch-image {
  margin-bottom: 30px;
}

.post-eyecatch-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.post-eyecatch-image figcaption {
  font-size: 0.9em;
  color: var(--text-sub-color);
  text-align: center;
  margin-top: 10px;
}

/* .post-content p {
   font-size: 1em;
  line-height: 1.8;
  margin-bottom: 1.5em;
  color: #444;
} */

/* ====== リストの設定 ====== */
.post-content ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 1.5em;
}

.post-content ul li {
  margin-bottom: 0.5em;
}

/* ====== 画像の設定 ====== */
.post-content figure {
  margin: 30px 0;
  text-align: center;
}

.post-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ====== 引用ブロックの設定 ====== */
.post-content blockquote {
  background-color: var(--cream-color);
  padding: 10px 20px;
  margin: 30px 0;
  border-radius: 8px;
  font-weight: bold;
}

/* ====== 目次のスタイル ====== */
.post-content table,
.post-content iframe {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

/* ====== ブログのナビゲーション設定 ====== */

.post-navigation {
  display: flex;
  justify-content: space-between; /* 均等なスペースで配置 */
  align-items: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--light-gray-color);
}

/* --- ボタンのデザイン設定 --- */
.post-navigation a {
  color: var(--main-color);
  font-weight: bold;
  padding: 15px;
  border: 2px solid var(--main-color);
  border-radius: 50px;
  transition: background-color 0.3s, color 0.3s;
}

.post-navigation a:hover {
  background-color: var(--main-color-hover);
  color: var(--white-color); /* ホバー時は白文字 */
  border: 2px solid var(--main-color-hover);
}

/* ブログトップボタン専用のデザイン調整 */
.post-navigation .top-post .nav-link {
  background-color: var(--main-color);
  color: var(--white-color);
  padding: 15px 30px;
}

.post-navigation .top-post a.nav-link:hover {
  background-color: var(--main-color-hover);
  border: 2px solid var(--main-color-hover);
}

/* --- ボタンの配置設定 --- */
.post-navigation .top-post {
  flex-shrink: 0;
  flex-basis: auto;
  text-align: center;
}

/*  --- 前の記事、次の記事へ移動ボタン用の設定 --- */
.post-navigation .prev-post,
.post-navigation .next-post {
  flex-grow: 1;
  flex-basis: 35%;
  min-width: 0;
}
.post-navigation .prev-post {
  text-align: left;
}
.post-navigation .next-post {
  text-align: right;
}

/* PCデフォルト設定: スマホ用テキストを非表示にする */
.mobile-nav-text {
  display: none;
}

/* PCデフォルト設定: PC用テキストを表示する */
.desktop-nav-text {
  display: inline;
}

/* ============ 専門家プロフィールボックス ============ */

/* --- プロフィール全体を囲むコンテナ --- */
.expert-profile {
  display: flex;
  align-items: flex-start;
  background-color: var(--light-gray-color);
  padding: 20px;
  border-radius: 10px;
  margin: 30px 0; /* 上下の余白 */
  border: 1px solid var(--light-green-color);
}

/* --- 画像（figure）のスタイル --- */
.expert-profile figure {
  flex-shrink: 0; /* 画像が縮まないように固定 */
  width: 220px;
  text-align: center;
  margin: 0 20px 0 0; /* 右側にマージンを設定 */
}

/* プロフィール画像のスタイル */
.expert-profile figure img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%; /* 丸くする */
  border: 3px solid var(--white-color); /* 白色の枠 */
  margin-bottom: 5px;
}

/* 画像下のキャプション（名前など） */
.expert-profile figcaption {
  font-size: var(--fs-small);
  font-weight: bold;
  color: var(--text-color);
  line-height: 1.3;
}

/* プロフィール文章（pタグ） */
.expert-profile p {
  flex-grow: 1; /* 残りのスペースをすべて使う */
}
/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */

@media (max-width: 768px) {
  /* モバイル設定: PC用テキストを非表示にする */
  .desktop-nav-text {
    display: none;
  }
  /* モバイル設定: スマホ用テキストを表示する */
  .mobile-nav-text {
    display: inline;
  }

  /* 専門家プロフィール */
  .expert-profile {
    flex-direction: column; /* スマホでは縦並びにする */
    align-items: center; /* 中央揃えにする */
    text-align: center;
    padding: 15px;
  }

  .expert-profile figure {
    margin: 0 0 10px 0; /* 下にマージンを設定 */
  }
}

/* ==========================================================================
  14.上に戻るボタンについての設定
   ========================================================================== */
.page-top {
  position: fixed;
  right: 20px; /* 右端からの距離 */
  bottom: 20px; /* 下端からの距離 */
  display: none; /*  初期状態は非表示 */
  z-index: 999; /* 最前面に表示 */
  width: 50px;
  height: 50px;
  background-color: var(--main-color);
  color: var(--white-color);
  border-radius: 50%;
  text-align: center;
  line-height: 50px; /* テキストを垂直中央に */
  font-size: var(--fs-small);
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s;
}

.page-top:hover {
  opacity: 0.8;
}

/* ==========================================================================
  15.フッターについての設定
   ========================================================================== */

footer {
  background-color: var(--aliceblue-color);
  color: var(--text-color);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* スマホで折り返す */
  border-bottom: 1px solid var(--light-green-color); /* 軽い区切り線 */
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 60px; /* ロゴ画像の高さ */
}

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

.footer-nav a,
.legal-links a {
  /*  text-decoration: none; */
  color: var(--text-color);
  font-weight: bold;
  transition: color 0.3s;
}

.footer-nav a:hover,
.legal-links a:hover {
  color: var(--main-color);
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  width: 100%;
  margin-bottom: 5px;
}

.social-links img {
  height: 30px; /* SNSアイコンのサイズ */
  transition: transform 0.3s;
}

.social-links img:hover {
  transform: scale(1.1); /* ホバーで少し拡大 */
}

.copyright {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-sub-color);
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding-bottom: 30px;
  }

  .footer-nav,
  .footer-info {
    width: 100%;
    margin-bottom: 0;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
  }

  .footer-nav ul li {
    margin: 0;
  }

  .legal-links {
    margin-top: 15px;
  }

  .footer-logo {
    margin-bottom: 10px;
  }
}
