/* ─────────────────────────────────────────
   子ページ共通スタイル
   page1.html / page2.html / page3.html
───────────────────────────────────────── */

section {
  margin: 0 auto;
}

/* ─────────────────────────────────────────
   アイキャッチ
───────────────────────────────────────── */
.page-eyecatch {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-bottom: 4rem;
}

.page-eyecatch__img {
  width: 100%;
  height: auto;
  display: block;
}

.page-eyecatch__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 2rem;
  margin-top: 20%;
}

/* ─────────────────────────────────────────
   ページタイトル
───────────────────────────────────────── */
.page-title-wrap {
  text-align: center;
  max-width: 480px;
  margin: 0 auto .8rem;
  width: 100%;
}

.page-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  text-shadow: 0 0px 10px rgba(0, 0, 0, 1);
}

.page-title__wave {
  width: min(30rem, 100%);
  line-height: 0;
  margin-bottom: 1rem;
}

.page-title__wave svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ─────────────────────────────────────────
   サブタイトル（半透明白帯＋シャドウ＋スライドイン）
───────────────────────────────────────── */
.page-subtitle-wrap {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 420px;
  margin: 0 auto;
}

.page2-subtitle-wrap {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
}


.page-subtitle-wrap .page-subtitle {
  display: inline-block;
  position: relative;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.1;
  padding: 0.2rem 1rem .5rem;
  isolation: isolate;
}
.page2-subtitle-wrap .page2-subtitle {
  display: inline-block;
  position: relative;
  font-size: clamp(1.2rem, 2.3vw, 2rem);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.1;
  padding: 0.2rem .5rem .5rem;
  isolation: isolate;
}

.page-subtitle-wrap .page-subtitle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s ease;
}

.page2-subtitle-wrap .page2-subtitle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s ease;
}

.page-subtitle.is-visible::before,.page2-subtitle.is-visible::before {
  transform: scaleX(1);
}

.page-subtitle:nth-child(2)::before,.page2-subtitle:nth-child(2)::before {
  transition-delay: 0.15s;
}

.page-subtitle:nth-child(3)::before {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .page-subtitle::before {
    transition: none;
    transform: scaleX(1);
  }
}

/* ─────────────────────────────────────────
   リード文
───────────────────────────────────────── */
.page-lead-wrapper {
  max-width: 700px;
  padding: 20px;
  width: 100%;
}

.page-lead {
  padding: 20px;
  max-width: 650px;
  margin: 0 auto;
  background-color: #fffbc6;
  border-radius: 30px;
  font-weight: 500;
  width: 100%;
}

.page-lead__text {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.9;
  text-align: justify;
}

/* ─────────────────────────────────────────
   スポットブロック
───────────────────────────────────────── */
.spots {
  padding: 0 24px;
  max-width: 700px;
  margin: 4rem auto 0;
  width: 100%;
}

.spot {
  margin-bottom: 7rem;
}

.spot__heading {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.spot__text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
  font-weight: 500;
}

.spot__figure {
  margin: 0;
}

.spot__img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 550px;
  margin: 2rem auto;
}

/* ─────────────────────────────────────────
   まとめ文
───────────────────────────────────────── */
.page-summary {
  padding: 0 24px 48px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.page-summary__text {
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
  font-weight: 500;
}

/* ─────────────────────────────────────────
   ドライブマップ
───────────────────────────────────────── */
.page-map {
  background: #ffff66;
  padding: 2rem;
  text-align: center;
  max-width: initial;
}

.page-map__heading {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 16px;
  line-height: 1.5;
}

.page-map__text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.9;
  margin-bottom: 24px;
  text-align: left;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  width: 100%;
}

.google-map-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 800px;
  margin: 0 auto;
}

.google-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.google-map-wrapper iframe:focus-visible {
  outline: 3px solid #0056b3;
  outline-offset: 4px;
}

/* ─────────────────────────────────────────
   トップページへ戻る
───────────────────────────────────────── */
.page-back {
  text-align: center;
  padding: 2rem;
}

.page-back__link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px;
  height: 50px;
  margin: 0 auto;
  background-color: var(--c-text);
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 35px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.page-back__link:hover {
  opacity: .7;
  transform: translateY(2px);
}


/* ─────────────────────────────────────────
   ヘッダー下カラーバー
───────────────────────────────────────── */
.header-colorbar {
  position: sticky;
  top: 4rem;
  z-index: 199;
  display: flex;
  height: 0.625rem;
  width: 100%;
}

.header-colorbar__orange {
  flex: 1;
  background: #f39518;
}

.header-colorbar__yellow {
  flex: 1;
  background: #ffff66;
}

.header-colorbar__brown {
  flex: 1;
  background: var(--c-text);
}

.site-header {
  border-bottom: none;
}

/* ─────────────────────────────────────────
   記事中カラーバー
───────────────────────────────────────── */
.colorbar {
  position: sticky;
  top: 4rem;
  z-index: 199;
  display: flex;
  height: 0.5rem;
  width: 15vw;
  margin: 7rem auto 0;
}

.colorbar__orange {
  flex: 1;
  background: #f39518;
}

.colorbar__yellow {
  flex: 1;
  background: #ffff66;
}

.colorbar__brown {
  flex: 1;
  background: var(--c-text);
}

/* ─────────────────────────────────────────
   レスポンシブ
───────────────────────────────────────── */
@media (max-width: 768px) {
  .page-eyecatch {
    margin-bottom: 2rem;
  }

  .page-subtitle-wrap {
    width: 350px;
  }
}

@media (max-width: 640px) {
  .page-eyecatch__overlay {
    padding: 0 1rem;
  }

  .page-title-wrap {
    margin-bottom: 0.75rem;
  }

  .page-subtitle {
    padding: 0.4rem .5rem .4rem;
  }

  .page-subtitle-wrap {
    width: 320px;
    gap: .5rem;
  }

  .page-lead {
    padding: 15px;
  }

  .spots {
    padding: 0 16px;
    margin-top: 2rem;
  }

  .spot {
    margin-bottom: 3rem;
  }

  .colorbar {
    margin: 3rem auto 0;
    width: 35vw;
  }

  .page-summary {
    padding: 0 16px 40px;
  }

  .page-map {
    padding: 32px 16px;
  }

  .page-back {
    padding: 1.2rem;
  }

  .google-map-wrapper {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 480px) {
  .page-subtitle-wrap {
    width: 100%;
    padding: 0 2%;
    ;
  }
}