
/* リセット */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* メインコンテンツ */
.main-content {
  margin-left: 220px; /* PC時はnav分ずらす */
  padding: 80px 20px 20px; /* ヘッダー分の余白 */
  background-color: #F8F4E6; /* 全体の背景と統一感を持たせる */
  color: #2F2F2F; /* 墨色で読みやすく */
}


/* スマホ対応 */
@media screen and (max-width: 767px) {
  .menu-toggle {
    display: block;
  }

  .side-nav {
    transform: translateX(-100%);
  }

  .side-nav.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }
}



/* ------------------------------
   見出しのレスポンシブサイズ
------------------------------ */
/* =====================================================
   見出しレスポンシブ最適化（ZIZI & VAVA 旅行記向け）
   ※全体的に控えめ、写真と本文を邪魔しない設計
===================================================== */

/* h1：ページ最上位。主張しすぎない落ち着いたサイズ */
h1 {
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  line-height: 1.3;
  margin: 0.6em 0;
  font-weight: 700;
}

/* h2：セクションタイトル。写真との相性を考えて控えめに */
h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.35;
  margin: 0.7em 0 0.4em;
  font-weight: 600;
}

/* h3：記事中の小見出し。最もよく使う想定でバランス良く */
h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.4;
  margin: 0.7em 0 0.4em;
  font-weight: 600;
}

/* h4：補助的な見出し。本文との対比を保ちつつ控えめ */
h4 {
  font-size: clamp(1.0rem, 1.6vw, 1.25rem);
  line-height: 1.4;
  margin: 0.5em 0;
  font-weight: 600;
}

/* h5：さらに補助的。本文との差を少しだけ残す */
h5 {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.4;
  margin: 0.4em 0;
  font-weight: 600;
}

/* h6：注釈的用途。本文よりほんの少し強調 */
h6 {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  line-height: 1.4;
  margin: 0.3em 0;
  font-weight: 600;
}



/* ----------------------------------------------------
   スマホ時の見出しと写真の間の余白最適化
   （横幅 767px 以下）
---------------------------------------------------- */
@media screen and (max-width: 767px) {

  /* 見出しの直後の余白を少し増やす */
  h2, h3, h4 {
    margin-bottom: 0.6em;
  }

  /* 写真の「前」に余白を追加（見出しに近づかないように）*/
  img {
    margin-top: 0.8em;
    margin-bottom: 0.8em; /* 下も少し整える */
  }

  /* 写真を囲む div（centerなど）がある場合もケア */
  div img {
    margin-top: 0.8em;
  }

}








/*カスタムヘッダー部*/

/* =========================
   ヘッダー
========================= */
.custom-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  background: #C41E3A;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1002;
  font-family: 'Zen Antique', serif;
}

.custom-header h1 {
  font-family: 'Zen Antique', serif;
  font-weight: 100; /* 700 */
  color: #FFF8F0;
  font-size: clamp(1.4em, 1.5vw + 1em, 2.2em);
  letter-spacing: 0.05em;
  margin: 0;
}

.custom-header p {
  font-family: 'Kaisei Tokumin', serif; /* Kaisei Tokumin（解星特明）*/
  font-weight: 700; /* 600 */
  font-size: clamp(0.9em, 1vw + 0.6em, 1.3em);
  color: #FAF4E8;
  margin: 0.2em 0 0;
  letter-spacing: 0.08em;
  text-align: center;
}


/* ハンバーガーボタン */
.menu-toggle {
  display: none;  /* display: none; */
  font-size: 26px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-right: 15px;/* 15px */
}

  .menu-toggle {
    display: block; /* スマホでハンバーガー表示 */
    position: absolute;
    top: 10px;
    left: 15px;
  }

  .header-content {
    margin: 0;
  }
}

/*カスタムヘッダー部*/




/* ---- 下のサムネイルをマウスオーバーでメイン画像を切り替えテキストを表示 ---- */
    .messageBox {
      margin: 0 auto; /* 全体を中央寄せ */
      text-align: center; /* align="center" の代替 */
    }

.responsive-image {
  text-align: center;         /* キャプションと画像を中央揃え */
  margin: 20px auto;
}

.responsive-image img {
  max-width: 100%;            /* 画面サイズに合わせて縮小 */
  height: auto;               /* 縦横比を維持 */
  display: block;             /* 中央揃えのためにブロック化 */
  margin: 0 auto;
}

.responsive-image figcaption {
  font-size: 16px;         /* 14px 文字サイズ */
  color: #ff0000;          /* 文字色（グレー系） */
  text-align: left;      /* center 中央揃え left*/
  margin-top: 8px;         /* 画像との間隔 */
  line-height: 1.4;        /* 行間の調整 */
  font-family: Helvetica, sans-serif;
}





/* 新　サムネイルで画像を切り替える */

.image-switcher {
  text-align: center;
}

.main {
  width: 400px;
  height: auto;
  margin-bottom: 10px;
}

.thumbnails img {
  width: 80px;
  height: auto;
  margin: 0 5px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.thumbnails img:hover {
  opacity: 0.7;
}




/* 地図の埋め込み */
/* ===== 観光紹介セクション全体 ===== */
.spot-section {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 1rem;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: #333;
}

.spot-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-left: 5px solid #c73a31; /* 京緋色 */
  padding-left: 0.6rem;
}

.spot-section h3 span[aria-hidden="true"] {
  margin-right: 0.4em;
}

/* ===== カード全体 ===== */
.spot-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .spot-card {
    grid-template-columns: 1fr;
  }
}

/* ===== 画像・キャプション ===== */
.spot-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.spot-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.spot-photo:hover img {
  transform: scale(1.05);
}



/*　地図の表示 ===== 記事本文 ===== */

.article-content {
  padding: 0em 0.5em 0em;
  margin-bottom: 0.1em;/*5em;*/
}

.article-content h4 {
  font-size: 1.2em;
  color: #c73a31;
  margin: 1px 0px;
}


.article-content p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-top: 0em;
  margin-bottom: 1em;
}


.map-link {
  display: inline-block;
  background: #c73a31;
  color: #fff;
  text-decoration: none;
  padding: 0.5em 1.2em;
  border-radius: 8px;
  transition: background 0.3s;
}

.map-link:hover {
  background: #a42c25;
}




/* ▼ レスポンシブデザイン（パソコン・タブレット・スマートフォン） */

/* ▼ 基本デザイン（PC向け: 幅 1024px 以上） */
body {
  font-size: clamp(13px, 1vw + 12px, 16px);
  margin: 0;
  padding: 0;
}


/* ▼ タブレット（幅 768px～1023px） */
@media screen and (max-width: 1023px) and (min-width: 768px) {
  body {
    font-size: 14px; /* 15px */
    background-color: #f9f9f9;
  }

  nav {
    display: flex;
    flex-direction: row;
  }

  .container {
    width: 95%;
  }
}

/* ▼ スマートフォン（幅 767px 以下） */
@media screen and (max-width: 767px) {
  body {
    font-size: 13px; /* 14px */
    background-color: #fff;
  }

  nav {
    display: block; /* 縦並び */
  }

  .container {
    width: 100%;
    padding: 10px;
  }

  img {
    max-width: 100%; /* 画像が画面幅に収まる */
    height: auto;
  }
}



/* =========================
     zoom  
========================= */
.zoom {
  display: block;
  width: fit-content;
  margin: 0 auto; /* ←左右中央寄せ */
}

.zoomLens {
  border-radius: 50% !important; /* ←円形化 */
  border: 2px solid rgba(0,0,0,0.3); /* 枠線を少し半透明に */
  box-shadow: 0 0 8px rgba(0,0,0,0.3); /* ふんわり影をつける */
  cursor: none; /* マウスカーソルを非表示に（お好み） */
}






/* =========================
   フッター
========================= */
.site-footer {
  background-color: #C41E3A; /* #C41E3A; */
  color: #ffffff;
  text-align: center;
  padding: 1.5em 1em;
  margin: 0px auto;
}

.site-footer p {
  font-size: clamp(0.7em, 0.6vw + 0.7em, 1em);
  margin-bottom: 0.8em;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav li {
  margin: 0 10px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.8em, 0.7vw + 0.7em, 1em);
}

.footer-nav a:hover {
  text-decoration: underline;
}



/* =========================
   スクロールトップコントロール
========================= */
/* ===== Scroll to Top Button 共通デザイン ===== */
#topcontrol {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  transform: translateY(20px);
}

#topcontrol.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scrolltop-icon {
  display: block;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.scrolltop-icon:hover {
  transform: scale(1.1);
}

/* ===== スクロール中（色変化用クラス） ===== */
.scrolltop-icon.scrolled {
  background: #C41E3A; /* 京緋色 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ===== PC（1024px〜） ===== */
@media screen and (min-width: 1024px) {
  .scrolltop-icon {
    width: 55px;
    height: 55px;
    padding: 10px;
  }
}

/* ===== タブレット（768〜1023px） ===== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .scrolltop-icon {
    width: 45px;
    height: 45px;
    padding: 8px;
  }
}

/* ===== スマートフォン（〜767px） ===== */
@media screen and (max-width: 767px) {
  .scrolltop-icon {
    width: 38px;
    height: 38px;
    padding: 6px;
  }

  #topcontrol {
    right: 15px;
    bottom: 30px;
  }
}





/* ====== 文章中の特定の言葉（例：「花しょうぶ」）を強調する  ====== */
.wa-em {
  font-style: normal;          /* 斜体を解除して和文に合う形に */
  font-weight: 600;            /* 少し強めの太字 */
  color: #B44C4C;              /* 京緋色（きょうひいろ） */
  background: linear-gradient(to bottom, #fff7f0 40%, #fde6e0 100%); /* 柔らかな背景 */
  padding: 0.1em 0.3em;        /* 文字まわりに少し余白 */
  border-radius: 0.3em;        /* やわらかい角丸 */
  box-shadow: inset 0 -2px 0 #e4a9a9; /* 下に淡い影で引き締め */
}