* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

img {
  height: auto;
  max-width: 100%;
}

a {
  color: #000000;
  text-decoration: none;
}

h1,
h2 {
  font-size: 32px;
  margin-bottom: 0.25rem;
}

h3 {
  font-size: 24px;
}

.small{
  font-size: 0.8em;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

.container {
  max-width: calc(1200px + 1.5rem + 1.5rem);
  margin: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.flex-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.flex-all-row {
  flex-direction: row;
}

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

.section-padding {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.text-white,
.card .text-white {
  color: #FFFFFF;
}

.text-orange {
  color: #F15A24;
}

.text-green {
  color: #669900;
}

.bg-base {
  background-color: #FFFDE6;
}

a.btn-more {
  display: inline-block;
  background-color: #F15A24;
  margin-top: 1em;
  padding: 0.5em 2em;
  border-radius: 18px;
}

.pagetop {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.pagetop.show {
  opacity: 1;
  visibility: visible;
}

.pagetop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: #FFF;
  background-color: #F15A24;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 600;
  line-height: 0;
  box-shadow: 2px 2px 0 #FFF;
}

/* 画像モーダル */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 2000;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__image {
  max-width: 100%;
  max-height: 100%;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border-radius: 4px;
  transform: scale(0.98);
  transition: transform 0.25s ease;
}

.modal.is-open .modal__image {
  transform: scale(1);
}

/* スクロール連動フェードイン */
.fadein {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fadein.is-visible {
  opacity: 1;
  transform: none;
}

/* スムーススクロール（対応ブラウザ） */
html {
  scroll-behavior: smooth;
}

/* ========================== */
/* header/breadcrumb/footer
/* ========================== */
header,
footer {
  color: #FFFFFF;
  background-color: #669900;
}

header a {
  color: #FFFFFF;
}

.hamburger-btn {
  display: none;
}

.header-nav {
  margin-left: auto;
  align-self: center;
}

.header-logo {
  margin-top: 1rem;
  margin-bottom: 0;
}

.header-nav ul.flex-all-row li {
  width: auto;
  margin-top: 0;
  margin-left: 2em;
}

.breadcrumb li:last-child {
  color: #BBBBBB;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  padding: 0 0.5em;
}

/* ========================== */
/* カードレイアウト
/* ========================== */
.card-container {
  margin-left: -15px;
  margin-right: -15px;
}

.card {
  margin-top: 2rem;
  width: 25%;
  padding-left: 15px;
  padding-right: 15px;
}

.card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #FFFFFF;
  padding: 10px;
  box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.4);
}

.card a {
  color: #0071BC;
}

.card h2,
.card h3 {
  font-size: 24px;
  margin: 0.5rem 0 0 0;
}

.card-description {
  color: #808080;
  font-size: 14px;
}

.card-footer {
  font-size: 12px;
}

.card-author img {
  vertical-align: middle;
}

.card-footer .card-date {
  margin-left: auto;
}

/* ========================== */
/* トップページ
/* ========================== */
/* --- ファーストビュー --- */
.firstview {
  position: relative;
  min-height: 706px;
  overflow: hidden;
}

.firstview-carousel {
  position: absolute;
  inset: 0;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide picture,
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  max-width: 420px;
  font-size: 21px;
}

.carousel-caption a.btn-more {
  font-size: 21px;
}

.carousel-caption,
.carousel-caption p,
.carousel-caption a,
.carousel-caption img {
  pointer-events: auto;
}

.carousel-caption img {
  width: initial;
  height: initial;
}

.carousel-caption .firstview-title {
  font-size: 60px;
  margin-bottom: 0.5em;
  width: 100%;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  bottom: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: none;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  padding: 0;
  cursor: pointer;
}

.carousel-dots button[aria-selected="true"] {
  background: #fff;
}

/* --- 楽しいイベント --- */
.event {
  background-color: #DBAF23;
}

/* --- ズーロッパとは ---*/
.about-image,
.about-description {
  margin: 1.5rem auto;
}

.about-image {
  max-width: 420px;
}

.about-image img {
  vertical-align: bottom;
}

.about-description {
  width: 85%;
  flex: 1;
  padding-left: 3rem;
}

.about-description h3{
  margin-top: 0;
}

/* --- タブ切り替え表示 ---*/
.tab__nav {
  display: flex;
  column-gap: 20px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0;
}

.tab__btn {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  cursor: pointer;
  background: #f8f8f8;
  border: none;
  border-radius: 8px 8px 0 0;
  font-size: 16px;
  transition: background 0.3s, color 0.3s;
}

.tab__btn:hover {
  background: #eee;
}

.tab__btn.active {
  background: #DBAF23;
  color: #fff;
  font-weight: bold;
}

.tab__content {
  margin-bottom: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  text-align: center;
}

.tab__panel {
  display: none;
}

.tab__panel.active {
  display: block;
  animation: tabFade 0.3s ease;
}

@keyframes tabFade {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* よくある質問 */
.faq__item {
  margin-bottom: 1rem;
  border: #ffdfd3 2px solid;
}

.faq__item__head,
.faq__item__cont__inner {
  padding: 1rem 0.5rem;
}

.faq__item__head {
  position: relative;
  cursor: pointer;
  display: flex;
  background-color: #ffeee7;
}
.faq__item__head h4 {
  margin: 0;
}
.faq__item__toggle {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  border-top: 12px solid #ffb296;
  border-bottom: 0;
}

.faq__item__cont {
  visibility: hidden;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.faq__item.open .faq__item__toggle {
  transform: translateY(-50%) rotate(180deg);
}

.faq__item.open .faq__item__cont{
  visibility: visible;
  opacity: 1;
}


/* --- 動物ギャラリー ---*/
.gallery {
  background: #ecf5e9;
  color: #666;
}

.gallery .card-container {
  justify-content: center;
}

.gallery .modal-trigger {
  cursor: pointer;
}

/* 遅延読み込み: プレースホルダーとフェード */
img.lazy {
  background: #f2f2f2;
  filter: blur(6px);
  opacity: 0.6;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

img.lazy.is-loaded {
  filter: none;
  opacity: 1;
}

.gallery .modal-trigger {
  cursor: pointer;
}

/* -------------------------------------------- */
/*  ▼ タブレット以下 (<=1023px)  */
/* -------------------------------------------- */
@media (max-width: 1023px) {
  h1,
  h2 {
    font-size: 28px;
  }

  .card-container .card {
    width: 50%;
  }

  .firstview {
    min-height: 480px;
  }

  .carousel-caption{
    width: 320px;
    font-size: 18px;
    margin-left: initial;
  }

  .carousel-caption .firstview-title {
    font-size: 34px;
  }

  .about-image {
    width: 100%;
  }

  .about-description {
    flex: initial;
    padding-left: initial;
  }

  .about-description h3 {
    font-size: 21px;
    margin-top: 0;
  }

}

/* -------------------------------------------- */
/*  ▼ スマホ (<=768px)  */
/* -------------------------------------------- */
@media (max-width: 768px) {
  .flex-container {
    flex-direction: column;
  }

  .card-container .card {
    width: 100%;
  }

  /* ========================== */
  /* ヘッダー
  /* ========================== */
  /* ハンバーガーメニューボタン */
  .hamburger-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    align-self: center;
    z-index: 1001;
  }

  .hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    margin: 3px 0;
    transition: 0.3s;
  }

  /* ハンバーガーメニューアクティブ時のアニメーション */
  .hamburger-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

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

  .hamburger-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -7px);
  }

  /* 背景オーバーレイ */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  header {
    position: relative;
  }

  header .flex-container {
    flex-direction: row;
  }

  header h1 {
    position: relative;
    z-index: 1001;
  }

  /* ナビゲーションメニュー */
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: #669900;
    z-index: 1000;
    transition: max-height 0.3s ease;
    margin-left: initial;
    align-self: initial;
  }

  .header-nav.active {
    max-height: 80vh;
  }

  .header-nav ul.flex-all-row {
    width: 100%;
    flex-direction: column;
    padding: 10px 0 20px;
  }

  .header-nav ul.flex-all-row li {
    width: 100%;
    margin-top: 0;
    margin-left: initial;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .header-nav ul.flex-all-row li a {
    display: block;
    padding: 15px 20px;
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }

  .header-nav ul.flex-all-row li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* ========================== */
  /* トップページ
  /* ========================== */
  .firstview {
    min-height: 360px;
  }

  .carousel-caption {
    transform: translateY(-40px);
    left: 1.5rem;
    width: 186px;
    font-size: initial;
  }

  .carousel-caption .firstview-title {
    font-size: 24px;
  }

  .carousel-caption a.btn-more {
    font-size: initial;
  }

  .carousel-btn {
    position: absolute;
    top: auto;
    bottom: -10px;
  }

  .about-description {
    width: initial;
  }

  .abouts .flex-container {
    align-items: initial;
  }

  .abouts .about-image {
    flex: initial;
  }

  /* --- タブ切り替え表示 ---*/
  .tab__nav {
    column-gap: 10px;
  }

  .tab__btn {
    font-size: 14px;
  }


}