@charset "utf-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden; /* 横スクロール・はみ出しを防止 */
}

body {
  width: 100%;
  height: auto;
  /* 共通本文フォントを記事ページに合わせる */
  font-family: "Zen Maru Gothic", serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden; /* 横スクロール・はみ出しを防止 */
}

/* 共通見出しフォント（記事ページ準拠） */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Zen Maru Gothic", serif;
}

/* モバイルでの文字サイズ最適化 */
@media screen and (max-width: 750px) {
  body {
    font-size: 15px;
  }
  h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  }
}

/*----------------------------
    ナビゲーションここから
------------------------------*/
/*ナビゲーション固定*/
.menu,
.hamburger,
.menu_nav img,
.hamburger img {
  position: fixed;
  width: 100%;
  z-index: 10000;
}

/*---------------------------------------

              変更点↓

-----------------------------------------*/

/* Max Mega Menuのトップレベル li 要素のスタイル（元の .menu_item に対応）*/
/* li要素に付与されるID(#nav-desktop)とクラス(.max-mega-menu, .mega-menu-item)を使用 */
#nav-desktop.max-mega-menu li.mega-menu-item {
  text-align: center;
  list-style: none;
  display: inline-block;
  width: auto;
  min-width: 90px;
  padding: 2em 1.5em; /* 既存のパディングを維持 */
  background: none !important; /* プラグインのデフォルト背景色をリセット */
}

/* トップレベルの a タグのホバーエフェクトをMax Mega Menuに適用 */
#nav-desktop.max-mega-menu a:hover {
  color: #03592a !important;
  border-bottom: 2px solid #f7cb4d !important;
}

/* Max Mega Menuのドロップダウン（サブメニューコンテナ）のスタイル */
/* 通常のサブメニューと区別するために、より詳細なセレクタを使用 */
#nav-desktop.max-mega-menu div.mega-sub-menu {
  background-color: #fff !important;
  border: 1px solid #ddd;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 99999; /* ヘッダーの固定要素より高いZ-indexを設定 */
  min-width: 220px !important; /* 幅を広げる */
}

/* メガメニュー内のリンクのスタイルとホバーエフェクト */
#nav-desktop.max-mega-menu div.mega-sub-menu li a {
  white-space: nowrap !important; /* 折り返しを禁止 */
}

#nav-desktop.max-mega-menu div.mega-sub-menu li a:hover {
  background-color: #f0f0f0 !important;
  border-bottom: none !important; /* トップレベルのホバー線をリセット */
}

.menu_nav img {
  width: 250px;
  opacity: 1;
  top: 40px; /*10px*/
  left: 2em;
  height: auto;
}

.logo img {
  padding-top: 6px;
  padding-left: 8px;
  width: 250px;
}
/*----------------------------
    ハンバーガーここから
------------------------------*/

.hamburger {
  z-index: 1000;
}

/* Max Mega Menuの自動生成ボタンを優先する */
.mega-toggle-animated {
  display: flex !important;
  z-index: 999999 !important;
}

/* 自作したハンバーガーボタンは非表示にする */
.hamburger-btn {
  display: none !important;
}

/* Max Mega Menuのメニューウィンドウのz-indexを調整 */
.max-mega-menu.mega-menu-horizontal.mega-mobile-menu {
  z-index: 999998 !important;
}

/* ハンバーガーメニューウィンドウのスタイル */
#hamburger-window {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 999997;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding-top: 80px;
  display: none;
}

#hamburger-window.is-open {
  right: 0;
  display: block;
}

.hamburger-window__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hamburger-window__nav-list > li {
  list-style: none;
}

.hamburger-window__nav-list > li > a {
  display: block;
  padding: 20px 30px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
  transition: background-color 0.2s ease;
}

.hamburger-window__nav-list > li > a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/*----------------------------
    ハンバーガーここまで
------------------------------*/
/*----------------------------
    ナビゲーションここまで
------------------------------*/

/*--------------------------------------
    メインビジュアル(スライドショー)ここから
----------------------------------------*/
/* PC向けスライドショーここから */
.PC {
  width: 100%;
  /*
    height:56.2vw;
    */
  height: auto;
  background-color: #42392dfe;
  /* ヘッダー固定による余白を付けない */
  padding-top: 0;
}

.textPc {
  width: 95%;
  height: auto;
  position: absolute;
  color: aliceblue;
  left: 5%;
  top: 0;
  margin-top: 15%;
  font-family: "Noto Serif JP", serif;
}

.textPc p {
  line-height: 2em;
  font-size: clamp(
    16px,
    1.2vw + 1px,
    24px
  ); /* タブレット時でも小さくなりすぎない */
}

.textPc h1 {
  margin-bottom: 5%;
  letter-spacing: 1.5em;
  font-size: 4vw;
  font-weight: lighter;
  /* ヒーローセクションのpタグと同じフォントに統一 */
  font-family: "Noto Serif JP", serif;
}

.slide {
  height: 56.2vw;
}

.slide_img {
  width: 100%;
  height: auto;
  position: absolute;
  top: auto;
  left: 0;
  opacity: 0;
  transition: all 2s ease;
}

.first {
  opacity: 1;
}

.black {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.4;
}
/* PC向けスライドショーここまで */

/* スマホ向けスライドショーここから */
.SP {
  width: 100%;
  /*height:177.6vw;*/
  height: auto;
  background-color: #42392dfe;
  /* ヘッダー固定による余白を付けない */
  padding-top: 0;
}

.slide2 {
  height: 177.6vw;
}

.firstSp {
  opacity: 1;
}

.textSp {
  top: 0;
  width: 95%;
  height: auto;
  position: absolute;
  color: aliceblue;
  font-family: "Noto Serif JP", serif;
  margin-top: 60%;
  margin-left: 5%;
}

.textSp p {
  line-height: 1.8;
  font-size: clamp(
    15px,
    4vw,
    20px
  ); /* タブレットからスマホまでスムーズに変化 */
  margin-right: 5%;
}

/* スマホ表示時は br を非表示にして自然な折り返しにする */
.textSp p br {
  display: none;
}

.textSp h1 {
  margin-bottom: 5%;
  letter-spacing: 0.15em; /* 字間を狭めて可読性向上 */
  font-size: clamp(28px, 8vw, 40px); /* スマホで大きく表示 */
  font-weight: 500;
  font-family: "Noto Serif JP", serif;
}
.blackSp {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.4;
}
/* PC向けスライドショーここまで */
/*--------------------------------------
    メインビジュアル(スライドショー)ここまで
----------------------------------------*/

/*----------------------------
    メイン(内容物)ここから
------------------------------*/
main {
  width: 100%;
  height: auto;
  background-color: #42392dfe;
  color: aliceblue;
}

/*キーコンテンツ(まい通信/谷戸学校/生物多様性)ここから*/
.key-contents {
  font-family: "Zen Maru Gothic", serif;
  width: 70%;
  display: flex;
  flex-wrap: wrap; /* 折り返し */
  justify-content: space-between; /* 横方向に均等配置 */
  gap: 30px; /* 要素の間隔（任意） */
  margin: 0 auto;
  padding-bottom: 100px;
  max-width: 1000px; /* これで固定幅にして3列固定を保証 */
}

.content-key {
  flex: 1 1 calc(30% - 20px);
  background-color: rgba(157, 157, 157, 0.2);
  border-radius: 5px;
  text-align: center;
  padding: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.content-key:hover {
  background-color: rgba(157, 157, 157, 0.4);
}

.fa-solid {
  color: white;
  font-size: 3rem;
  padding: 15px;
  border-radius: 50%;
  border: 2px solid #4caf50;
}

.content-key .fa-solid {
  display: inline-flex;
  box-sizing: border-box;
  width: 94px;
  height: 94px;
  align-items: center;
  justify-content: center;
}

.content-key h3 {
  margin-top: 20px;
  margin-bottom: 12px;
}

.content-key p {
  margin: 0;
}

.content-key .content-sen {
  text-align: left;
  display: inline-block;
  margin-top: 8px;
}
/*キーコンテンツ(まい通信/谷戸学校/生物多様性)ここまで*/

/*ご利用案内ここから*/
.usage-info {
  width: 80%;
  margin: 0 auto;
  padding-bottom: 120px;
  color: #fff;
  font-family: "Zen Maru Gothic", serif;
}

.usage-info__title {
  padding-bottom: 5px;
  position: relative;
  border-bottom: 3px solid #fff;
  margin-bottom: 30px;
  font-family: "Zen Maru Gothic", serif;
}

.usage-info__title::before {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 25%;
  height: 3px;
  background: #4caf50;
}

.usage-info__card {
  background: rgba(150, 150, 150, 0.15);
  border-radius: 16px;
  padding: 40px 6%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.usage-info__heading {
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.usage-info__periods {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.usage-info__period {
  flex: 1 1 240px;
  max-width: 320px;
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(46, 40, 33, 0.9);
}

.usage-info__period-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.usage-info__period--summer {
  border-color: #d4a04e;
  box-shadow: 0 0 0 1px rgba(212, 160, 78, 0.2);
}

.usage-info__period--winter {
  border-color: #508dd0;
  box-shadow: 0 0 0 1px rgba(80, 141, 208, 0.2);
}

.usage-info__period-label {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 1.4rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.usage-info__period-label-main {
  font-weight: 600;
}

.usage-info__period-label-sub {
  font-size: 0.85em;
  opacity: 0.8;
}

.usage-info__period-time {
  margin: 0;
  font-size: 1.6rem;
  font-weight: bold;
  text-align: right;
}

.usage-info__date {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 12px;
}

.usage-info__separator {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  margin: 0 auto;
}

.usage-info__note {
  border-radius: 12px;
  padding: 20px 24px;
  line-height: 1.8;
}

.usage-info__note h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.usage-info__note--wide {
  background: rgba(180, 180, 180, 0.25);
}

.usage-info__note p {
  font-size: 0.95rem;
  padding-left: 1.5em;
  text-indent: 0;
}

.usage-info__sublist {
  margin: 0 0 0 2.5em; /* インデントを調整 */
  padding: 0;
  list-style-type: disc; /* 中黒（箇条書き）を表示 */
  font-size: 0.95rem;
  line-height: 1.8;
}

.usage-info__sublist li {
  padding-left: 0.5em; /* 点と文字の間の微調整 */
}
/*ご利用案内ここまで*/

/*イベント(お知らせやニュース、開催イベントなど)ここから*/
.content-event-front {
  font-family: "Zen Maru Gothic", serif;
  display: flex;
  gap: 1rem;
  padding: 20px 0 10px 0;
  border-bottom: 1px solid #d4d4d4;
}

.event-img-front img {
  width: 150px;
  height: 100px;
  object-fit: cover;
}

.sentence-front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-guidance__info-front {
  display: inline-block;
  margin-left: 1.2em;
  font-size: 0.6em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.event-guidance__info-link-front {
  font-weight: 700;
  color: #4caf50;
  text-decoration: none;
  cursor: pointer;
}

.event-guidance__info-link-front:hover {
  text-decoration: underline;
}

.article-link-front a {
  color: #7ced80;
  text-decoration: none;
}

.article-link-front a:hover {
  color: #4caf50;
}
/*イベント(お知らせやニュース、開催イベントなど)ここから*/
.event-guidance-front {
  width: 80%;
  margin: 0 auto;
  padding: 100px 0;
  border-radius: 12px;
  padding: 40px 5%;
}

.event-guidance__title-front {
  padding-bottom: 8px;
  position: relative;
  border-bottom: 2px solid #fff;
  margin-bottom: 20px;
  font-family: "Zen Maru Gothic", serif;
  font-size: 1.5rem;
}

.event-guidance__title-front::before {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 25%;
  height: 3px;
  background: #4caf50;
}

/*---------------------------------------

              変更点↓

-----------------------------------------*/

/* 投稿日 (`<p class="date">`) のスタイル */
.content-event-front .sentence-front .date-front {
  /* 文字を小さくする */
  font-size: 0.8em;
  /* 文字色を灰色にする */
  color: #a2a2a2;
}

/* 抜粋内のリンクのデザイン */
.comment-front a {
  color: #7ced80;
  text-decoration: none;
  border-bottom: 1px solid #7ced80;
  font-weight: 500;
  transition: all 0.3s ease;
}

.comment-front a:hover {
  color: #4caf50;
  border-bottom: 1px solid #4caf50;
  opacity: 0.8;
}

/*----------------------------
    メイン(内容物)ここまで
------------------------------*/

/*----------------------------
    PC向けここから
------------------------------*/
@media screen and (min-width: 751px) {
  .PC {
    display: block !important;
  }
  .SP {
    display: none !important;
  }
  .aboutPc {
    display: block !important;
  }
  .aboutSp {
    display: none !important;
  }
}

/*---------------------------------------

              変更点↓

-----------------------------------------*/

/*----------------------------
    PC向けここまで
------------------------------*/

/*----------------------------
    タブレット向け（2列レイアウト）ここから
------------------------------*/
@media screen and (min-width: 751px) and (max-width: 950px) {
  .key-contents {
    width: 90%;
    max-width: none;
    gap: 20px;
  }

  .content-key {
    /* 2列レイアウト: 50% - gap分の調整 */
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .content-key h3 {
    font-size: 1.1rem;
  }

  .content-key .content-sen {
    font-size: 0.95rem;
  }
}
/*----------------------------
    タブレット向け（2列レイアウト）ここまで
------------------------------*/

/*----------------------------
    スマホ向けここから
------------------------------*/
@media screen and (max-width: 750px) {
  /* スマホ版でのはみ出し防止 */
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .hamburger,
  .menu {
    top: 0;
    height: 70px;
  }

  .PC {
    display: none !important;
  }
  .SP {
    display: block !important;
  }
  .aboutPc {
    display: none !important;
  }
  .aboutSp {
    display: block !important;
  }

  .instaPc {
    display: none !important;
  }
  .instaSp {
    display: block !important;
  }

  .menu_nav img {
    width: 200px;
    opacity: 1;
    top: 15px; /*10px*/
    left: 2em;
  }

  .key-contents {
    width: 95%;
    padding: 5%;
    display: block;
    justify-content: center;
    gap: 1.5rem;
  }

  .key-contents h3 {
    text-align: center;
  }

  .content-key {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 5%;
  }

  .icon {
    text-align: center;
  }
  .fa-solid {
    color: white;
    font-size: 3rem;
    padding: 15px;
    border-radius: 50%;
    border: 2px solid #4caf50;
  }

  .content-event {
    padding: 15px 0;
  }

  .usage-info {
    width: 95%;
    margin: 0 auto;
    padding: 60px 5%;
  }

  .usage-info__card {
    padding: 32px 8%;
  }

  .usage-info__period {
    max-width: none;
  }

  /*イベント(お知らせやニュース、開催イベントなど)ここから*/
  .content-event-front {
    font-family: "Zen Maru Gothic", serif;
    display: flex;
    gap: 1rem;
    padding: 20px 0 10px 0;
    border-bottom: 1px solid #d4d4d4;
  }

  .event-img-front img {
    width: 100px;
    height: 50px;
    object-fit: cover;
  }
  .event-name-front {
    font-size: 21px;
  }

  .comment-front {
    font-size: 16px;
  }

  .event-guidance-front {
    margin: 0 5%;
    width: 90%;
    padding: 30px 5%;
  }
}
/*----------------------------
    スマホ向けここまで
------------------------------*/

/*----------------------------
    628px以下向けここから
------------------------------*/
@media screen and (max-width: 628px) {
  .event-guidance__info-front {
    margin-left: 0;
  }
}
/*----------------------------
    628px以下向けここまで
------------------------------*/
