/*----------------------------------------------
  layout.css（レイアウト）- 完全版
----------------------------------------------*/

/*----------------------------------------------
  ヘッダー
----------------------------------------------*/
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  background: #F7F7F7;
  border-bottom: 1px solid #E5E5E5;
  position: relative;
  z-index: 100;
}

.site-header .logo img {
  height: 50px;
  width: auto;
  display: block;
}

.menu-button {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

/*----------------------------------------------
  フッター
----------------------------------------------*/
.site-footer {
  text-align: center;
  padding: 24px 0;
  font-size: 14px;
  color: #666;
  background: #F7F7F7;
  border-top: 1px solid #E5E5E5;
}

/*----------------------------------------------
  全体ラッパー
----------------------------------------------*/
.site-wrapper {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
}

/*----------------------------------------------
  セクションタイトル（全共通）
----------------------------------------------*/
.section-title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: bold;
  text-align: left;
  margin-bottom: 3%;
  position: relative;
  padding-bottom: 16px;
  padding-left: 2%;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 600px;        /* ★ px固定で全セクション統一 */
  height: 2px;
  background: linear-gradient(
    to right,
    #e2b239 0%,
    #e2b239 30%,
    rgba(226, 178, 57, 0) 100%
  );
  border-radius: 2px;
}

/*----------------------------------------------
  スライダー
----------------------------------------------*/
.slider {
  position: relative;
  width: 100%;
  height: auto;
  margin-top: 2%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 2%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.slide {
  width: 13%;
  min-width: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.slide:hover {
  transform: scale(1.08);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 5;
}

.slider-btn.left  { left: 1%; }
.slider-btn.right { right: 1%; }

/*----------------------------------------------
  メンバー
----------------------------------------------*/
#members {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2%;
  justify-items: center;
  margin: 3% auto;
  padding: 0 3%;
  width: 100%;
  max-width: 1400px;
  box-sizing: border-box;
}

.member-icon {
  text-align: center;
  cursor: pointer;
  width: 100%;
}

.member-icon img {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.member-icon img:hover {
  transform: scale(1.08);
}

.member-icon p {
  margin-top: 6%;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 600;
}

/*----------------------------------------------
  Information
----------------------------------------------*/
.information {
  width: 100%;
  margin: 4% auto;
  padding: 0;
  box-sizing: border-box;
}

.information-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1%;
  padding: 0;          /* ★ paddingなし・mainで統一されているので不要 */
}

.more-link {
  font-size: 13px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #333;
  padding-bottom: 2px;
  margin-bottom: 18px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.more-link:hover {
  color: #e2b239;
  border-color: #e2b239;
}

/* ★ カードだけ中央寄せ */
#info-list {
  list-style: none;
  margin: 0 auto;      /* ★ カード全体を中央に */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2%;
  padding: 0;
  box-sizing: border-box;
  max-width: 900px;    /* ★ この幅で中央寄せ */
}

#info-list li {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 4%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  min-width: 0;
}

#info-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}


/* タブレット */
@media (max-width: 1024px) {
  .information-header {
    padding: 0 4%;
  }

  #info-list {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

/* スマホ */
@media (max-width: 768px) {
  .information-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 3%;
  }

  .more-link {
    margin-bottom: 0;
  }

  #info-list {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 4%;
  }
}

/*----------------------------------------------
  main（全セクションの基準）
----------------------------------------------*/
main {
  width: 96%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ★ここから追加 */
/*----------------------------------------------
  広告バナー（フッター直前・追随なし）
----------------------------------------------*/
.ad-banner {
  width: 100%;
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
  padding: 10px 0;
  text-align: center;
}

.ad-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 0 auto;
  background: #eeeeee; /* 広告入れたら削除 */
  border-radius: 4px;
}

.ad-label {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 1px;
}

/* スマホ：小さいバナーサイズに切替 */
@media (max-width: 768px) {
  .ad-inner {
    max-width: 320px;
    height: 50px;
  }
}

/*----------------------------------------------
  ハンバーガーボタン
----------------------------------------------*/
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  margin: 5px auto;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ✕ ボタンのアニメーション */
.menu-button.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-button.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.menu-button.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/*----------------------------------------------
  ハンバーガーメニュー（スマホ用）
----------------------------------------------*/
.hamburger-menu {
  position: fixed;
  top: 50px;          /* ヘッダーの高さ分 */
  left: -280px;       /* 初期は画面外 */
  width: 280px;
  height: calc(100vh - 50px);
  background: #fff;
  box-shadow: 2px 0 12px rgba(0,0,0,0.12);
  z-index: 200;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* ★ 上にナビ・下に広告 */
  overflow-y: auto;
}

.hamburger-menu.open {
  left: 0;            /* 開いたとき */
}

.hamburger-nav {
  list-style: none;
  padding: 24px 0;
  margin: 0;
}

.hamburger-nav li a {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s ease, background 0.2s ease;
}

.hamburger-nav li a:hover {
  color: #e2b239;
  background: #fffbf0;
}

/* ★ ハンバーガーメニュー内広告 */
.ad-menu {
  padding: 16px;
  border-top: 1px solid #e5e5e5;
}

.ad-inner-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  background: #eeeeee;
  border-radius: 4px;
}

/*----------------------------------------------
  オーバーレイ
----------------------------------------------*/
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 150;
}

.overlay.show {
  display: block;
}

/*----------------------------------------------
  レイアウトラッパー（サイドメニュー + メイン）
----------------------------------------------*/
.layout-wrapper {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/*----------------------------------------------
  サイドメニュー（PC用）
----------------------------------------------*/
.side-menu {
  width: 100px;
  min-width: 100px;
  height: 80vh;
  position: sticky;   /* ★ スクロールしても追随 */
  top: 50px;          /* ヘッダーの高さ分 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #e5e5e5;
  background: #fafafa;
  padding: 24px 0 16px;
  box-sizing: border-box;
}

.side-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-nav li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.side-nav li a:hover {
  color: #e2b239;
  border-left-color: #e2b239;
}

/* ★ サイドメニュー内広告 */
.ad-side {
  padding: 12px;
  border-top: 1px solid #e5e5e5;
}

.ad-inner-side {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 160px;      /* サイドバー用縦長 */
  background: #eeeeee;
  border-radius: 4px;
}

/*----------------------------------------------
  メイン（サイドメニューの隣）
----------------------------------------------*/
main {
  flex: 1;
  min-width: 0;
  padding: 0 2% 80px; /* ★ 下に80px追加 */
  box-sizing: border-box;
}

/*----------------------------------------------
  広告バナー（フッター直前）
----------------------------------------------*/
.ad-banner {
  width: 100%;
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
  padding: 10px 0;
  text-align: center;
}

.ad-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 0 auto;
  background: #eeeeee;
  border-radius: 4px;
}

/*----------------------------------------------
  下部固定広告（常に表示・×で閉じられる）
----------------------------------------------*/
.ad-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 300;
  text-align: center;
  padding: 8px 0;
  transition: transform 0.3s ease;
}

.ad-fixed.hidden {
  transform: translateY(100%);  /* ★ 閉じたら下に隠れる */
}

.ad-inner-fixed {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 728px;
  height: 60px;
  margin: 0 auto;
  background: #eeeeee;
  border-radius: 4px;
}

/* ★ ×ボタン */
.ad-close {
  position: absolute;
  top: 4px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.ad-close:hover {
  color: #333;
}

.ad-label {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 1px;
}

/*----------------------------------------------
  スマホ対応（768px以下）
----------------------------------------------*/
@media (max-width: 768px) {
  /* サイドメニューは非表示 */
  .side-menu {
    display: none;
  }

  .layout-wrapper {
    display: block;
  }

  main {
    width: 96%;
    margin: 0 auto;
    padding: 0;
  }

  /* 下部固定広告を小さく */
  .ad-inner-fixed {
    max-width: 320px;
    height: 50px;
  }

  /* フッター直前広告を小さく */
  .ad-inner {
    max-width: 320px;
    height: 50px;
  }

  .section-title {
    font-size: clamp(16px, 4vw, 20px);
    padding-left: 4%;
  }

  .section-title::after {
    width: 200px;
    left: 2%;
  }

  #members {
    grid-template-columns: repeat(4, 1fr);
    gap: 4%;
    padding: 0 3%;
  }

  #info-list {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 4%;
  }

  .information-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .more-link {
    margin-bottom: 0;
  }
}

/*----------------------------------------------
  タブレット（1024px以下）
----------------------------------------------*/
@media (max-width: 1024px) {
  .side-menu {
    width: 160px;
    min-width: 160px;
  }

  #info-list {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

/* layout.cssに追加 */
.menu-button {
  display: none;         /* PCでは非表示 */
}

@media (max-width: 768px) {
  .menu-button {
    display: block;      /* スマホでは表示 */
  }
}

/*----------------------------------------------
  サイドメニュー トグル対応
----------------------------------------------*/
.side-menu {
  width: 200px;
  min-width: 200px;
  height: 100vh;
  position: sticky;
  top: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #e5e5e5;
  background: #fafafa;
  padding: 24px 0 16px;
  box-sizing: border-box;
  transition: width 0.3s ease, min-width 0.3s ease; /* ★ 開閉アニメーション */
  overflow: hidden;  /* ★ 閉じたとき中身を隠す */
}

/* ★ 閉じた状態 */
.side-menu.closed {
  width: 36px;
  min-width: 36px;
}

/* ★ 閉じたときナビとADを非表示 */
.side-menu.closed .side-nav,
.side-menu.closed .ad-side {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.side-nav,
.ad-side {
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* ★ トグルボタン */
.side-toggle-btn {
  position: absolute;
  top: 16px;          /* ★ 上部に固定 */
  right: -10px;
  transform: none;    /* ★ translateY削除 */
  width: 28px;
  height: 28px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  z-index: 10;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.side-toggle-btn:hover {
  color: #e2b239;
  border-color: #e2b239;
}

/* ★ 閉じたときボタンの矢印を反転 */
.side-menu.closed .side-toggle-btn {
  right: -8px;
}