/* ─────────────────────────────────────────
   Reset & 変数
───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-bg-body: #9a9a9a;
  --c-bg-site: #f7f6f2;
  --c-bg-header: #ffffff;
  --c-bg-footer: #f39518;
  --c-text: #311919;
  --c-text-dark: #252525;
  --c-text-sub: #7a5050;
  --c-text-foot: #ffffff;
  --c-text-foot2: #fde8c8;
  --c-link: #0a4d8c;
  --c-focus: #0a4d8c;
  --c-border: #d0d0d0;
}

body {
  font-family: 'Zen Maru Gothic', 'Hiragino Sans', Meiryo, sans-serif;
  min-height: 100vh;
  color: var(--c-text);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.7;
  position: relative;
  z-index: 0;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  background-color: #a8d8d0;
  background-image: url('../images/haikei.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.page2::before {
  background-image: url('../images/page2/page2_haikei.jpg');
}
 
@supports not (word-break: auto-phrase) {
  body {
    word-break: keep-all;
  }
}


/* ─────────────────────────────────────────
   Googleフォント
───────────────────────────────────────── */

.zen-maru-gothic-light {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.zen-maru-gothic-regular {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.zen-maru-gothic-medium {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.zen-maru-gothic-bold {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-style: normal;
}


/* ─────────────────────────────────────────
   スキップリンク（AAA 2.4.1）
───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 12px 20px;
  background: var(--c-link);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* ─────────────────────────────────────────
   フォーカスリング（AAA 2.4.7 / 2.4.11）
───────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─────────────────────────────────────────
   スクリーンリーダー専用テキスト
───────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─────────────────────────────────────────
   サイトラッパー
───────────────────────────────────────── */
.site-wrap {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  background-color: #fff;
  min-height: 100dvh;
}

/* ─────────────────────────────────────────
   ヘッダー
───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  background: var(--c-bg-header);
  border-bottom: 1px solid var(--c-border);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-text);
  border-radius: 4px;
}

.site-logo__img {
  height: 63px;
  width: auto;
  display: block;
}

/* ─────────────────────────────────────────
   ハンバーガーボタン
───────────────────────────────────────── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.hamburger-btn:hover {
  background: #f0f0f0;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────────────────────────────────
   グローバルナビゲーション（オーバーレイ）
───────────────────────────────────────── */
.global-nav {
  position: fixed;
  inset: 0;
  background-color: #fff;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 960px;
}

.global-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);
}

.global-nav__inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  /*padding: 0 24px;*/
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-close-btn {
  position: fixed;
  top: 10px;
  right: calc(50% - 480px + 24px);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--c-text);
  border-radius: 4px;
}

@media (max-width: 960px) {
  .nav-close-btn {
    right: 16px;
  }
}

.nav-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.global-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.global-nav__item a {
  display: block;
  padding: 16px 32px;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--c-text);
  text-decoration: none;
  letter-spacing: .08em;
  text-align: center;
  border-radius: 4px;
  background: transparent;
  transition: background .2s, color .2s;
}

.global-nav__item a:hover,
.global-nav__item a:focus-visible {
  background: rgb(44 196 214 / 15%);
  color: var(--c-text);
}

.global-nav__logo {
  margin-bottom: 24px;
  text-align: center;
}

.global-nav__logo-img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* ─────────────────────────────────────────
   メインコンテンツ
───────────────────────────────────────── */
.site-main:focus {
  outline: none;
}

/* スキップリンクからのフォーカス時 */

/* ─────────────────────────────────────────
   アイキャッチ（1枚画像＋ロゴオーバーレイ）
───────────────────────────────────────── */
.eyecatch__logo-heading{
  margin: 0;
  line-height: 0;
}
.eyecatch {
  position: relative;
  overflow: hidden;
  background: #b8d8d0;
}

.eyecatch__img {
  display: block;
}

.eyecatch__logo {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(120px, 45%, 475px);
  z-index: 10;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .25));
}

/* ─────────────────────────────────────────
   セクション見出し 共通
───────────────────────────────────────── */
.section-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--c-text-sub);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 0 24px;
}

/* ─────────────────────────────────────────
   カルーセルセクション
───────────────────────────────────────── */
.carousel-section {
  background: transparent;
  margin: 0 0 50px;
}

.carousel-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-wave--top,
.carousel-wave--bottom {
  line-height: 0;
  display: block;
  font-size: 0;
}

.carousel-wave--top{
margin-bottom: -1px;
}
.carousel-wave--bottom{
margin-top: -1px;
}

.carousel-inner {
  background: #ffff66;
  padding: 40px 0 32px;
}

.carousel-inner .section-heading {
  text-align: center;
  margin-bottom: 24px;
}

.carousel-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  height: 450px;
  overflow: hidden;
  padding: 16px 0 8px;
  cursor: grab;
}

.carousel-track:focus {
  outline: none;
}

.card {
  flex: 0 0 360px;
  width: 360px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, opacity .3s ease;
  opacity: 0.5;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #fff;
  border-radius: 15px;
}

.card.is-active {
  opacity: 1;
}

.card__frame {
  position: relative;
  width: 100%;
}

.card__frame-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  border-radius: 15px 15px 0 0;
}

.card__img-wrap {
  position: absolute;
  inset: 6% 8% 14% 8%;
  z-index: 1;
  overflow: hidden;
  border-radius: 4px;
}

.card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 12px 4px 0;
  padding: 10px 40px;
}

.card__title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 6px;
  line-height: 1.4;
  text-align: center;
}

.card__text {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: var(--c-text);
  line-height: 1.7;
}

.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-text);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background .2s;
}

.carousel-btn:hover {
  background: #4a1a1a;
}

.carousel-btn--prev {
  left: 26%;
}

.carousel-btn--next {
  right: 26%;
}

/* ドット */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 0;
  list-style: none;
}

.carousel-dots__btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dots__btn::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(100, 50, 50, 0.55);
  transition: background .2s, transform .2s;
}

.carousel-dots__btn:hover::before {
  background: var(--c-text);
}

.carousel-dots__btn[aria-current="true"]::before {
  background: var(--c-text);
  transform: scale(1.3);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  padding: 8px 15% 0;
}

.carousel-pause-btn {
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--c-text);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}

.carousel-pause-btn:hover {
  background: #4a1a1a;
}

@media (max-width: 640px) {
  .card {
    flex: 0 0 78%;
  }

  .carousel-btn--prev {
    left: 2px;
  }

  .carousel-btn--next {
    right: 2px;
  }
}

/* ─────────────────────────────────────────
   やまなみ五湖とは
───────────────────────────────────────── */
.about-section {
  padding: 0 24px 48px;
  display: flex;
  justify-content: center;
}

.about-box {
  position: relative;
  width: 100%;
  max-width: 680px;
  border: 3px solid var(--c-text);
  border-radius: 16px;
  padding: 48px 40px 40px;
  background: #fff;
  text-align: center;
}

.about-box__pin {
  position: absolute;
  top: -36px;
  left: 20%;
  transform: translateX(-50%);
}
@media (max-width: 640px) {
  .about-box__pin {
  top: -20px;
  }
}

.about-box__pin img {
  width: 60px;
  height: auto;
}

@media (max-width: 640px) {
.about-box__pin img {
  width: 45px;
}
}

.about-box__heading {
  font-size: clamp(1.5625rem, 6vw, 2.25rem);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 24px;
  line-height: 1.5;
}

.about-box__map {
  margin: 24px auto;
  max-width: 550px;
}

.about-box__map img {
  width: 100%;
  height: auto;
  display: block;
}

.about-box__text {
  font-size: 1.25rem; 
  line-height: 1.9;
  color: var(--c-text);
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
  font-weight: 500;
}

@media (max-width: 640px) {
  .about-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-box {
    padding: 48px 20px 32px;
  }
  .about-box__text {
  font-size: 1rem;
    line-height: 1.6;
  }
}

/* ─────────────────────────────────────────
   リンクバナーセクション
───────────────────────────────────────── */
.link-section {
  background: transparent;
}

.link-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

.link-wave--top,
.link-wave--bottom {
  line-height: 0;
    display: block;
  font-size: 0;
}

.link-wave--top{
margin-bottom: -1px;
}

.link-wave--bottom {
margin-top: -1px;
}

.link-inner {
  background: #ffff66;
  padding: 40px 24px;
  text-align: center;
}

.link-section__heading {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--c-text);
  margin-bottom: 32px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
  justify-content: center;
  gap: 24px;
}

.link-wrap {
  margin-bottom: 10px;
}

.link-card {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--c-text);
  transition: opacity .2s ease;
}

.link-card:hover {
  opacity: .85;
}

.link-card__img {
  width: 100%;
  height: auto;
  max-height: 130px;
  object-fit: contain;
  display: block;
  background: #fff;
}

.link-text {
  margin: 20px 0 10px;
  font-size: 1.375rem;
  text-align: center;
  font-weight: 500;
}

.link-sns {
  display: flex;
  gap: 38px;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}

.link-sns__link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: opacity .2s;
}
.link-sns__link:hover { opacity: .75; }

.link-sns__icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.link-sns__icon.twi{
  width: 42px;
  height: 42px;
}
.link-sns__icon.yt{
  width: 52px;
}

@media (max-width: 640px) {
  .link-grid {
    grid-template-columns: 1fr;
  }

  .link-inner {
    padding: 32px 16px;
  }
  .link-section__heading {
  font-size: 1.75rem;
  }
}

/* ─────────────────────────────────────────
   フッター
───────────────────────────────────────── */
.site-footer {
  background: #fff;
  color: var(--c-text);
  font-family: sans-serif;
}

.footer-upper {
  padding: 48px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  background: #fff;
}

.footer-logo {
  width: 130px;
  height: auto;
  margin-bottom: 30px;
}

.footer-contact,
.footer-accessibility {
 font-size: 0.875rem;
  line-height: 1.8;
}

.footer-contact a,
.footer-accessibility a {
  color: var(--c-link);
  text-underline-offset: 3px;
}

.footer-contact__icon {
  font-size: 0.8125rem;
  margin: 0 2px;
}

.footer-contact__icon img {
  display: inline-block;
  width: 20px;
  height: auto;
  vertical-align: middle;
}

.footer-accessibility__heading {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-top: 8px;
}

.footer-wave {
  display: block;
  line-height: 0;
  margin-bottom: -1px;
}

.footer-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

.footer-lower {
  background: #f39518;
  padding: 24px;
  text-align: center;
}

.footer-copy {
  font-size: 1rem;
  text-align: center;
}

@media (max-width: 640px) {
  .footer-upper {
    padding: 40px 16px 32px;
  }
}

/* ─────────────────────────────────────────
   モーション軽減（AAA 2.3.3）
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ─────────────────────────────────────────
   レスポンシブ
───────────────────────────────────────── */
@media (max-width: 640px) {
  .lead-section__heading {
    font-size: 1.25rem;
  }

  .banner-grid {
    grid-template-columns: 1fr;
  }

  .card {
    flex: 0 0 280px;
  }

  .section-heading {
    padding: 0 16px;
  }

  .lead-section,
  .placeholder-section,
  .banner-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    padding: 0 16px;
  }
}

/* ─────────────────────────────────────────
   トップへ戻るボタン
───────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 70px;
  height: 70px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
  transform: translateY(100px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  border-radius: 4px;
}

.back-to-top.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.back-to-top:hover {
  opacity: .75;
}

.back-to-top__icon {
  width: 100%;
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

/* ─────────────────────────────────────────
   パンくずリスト（AAA 2.4.8）
───────────────────────────────────────── */
.breadcrumb {
  padding: 12px 24px;
  overflow-x: auto;
  white-space: nowrap;
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--c-text-sub);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb__item:not(:last-child)::after {
  content: '›';
  color: var(--c-text-sub);
  margin-left: 6px;
}

.breadcrumb__item a {
  color: var(--c-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb__item a:hover {
  text-decoration-thickness: 2px;
}

.breadcrumb__item[aria-current="page"] {
  color: var(--c-text);
  font-weight: 700;
}

@media (max-width: 640px) {
  .breadcrumb {
    padding: 10px 16px;
  }
}
/* ─────────────────────────────────────────
   本文中インラインアイコン（page-map__text内）
───────────────────────────────────────── */
.page-map__icon {
  display: inline-block;
  width: 1.375rem;
  height: 1.375rem;
  vertical-align: -0.3em;
  margin: 0 0.15em;
}