@charset "utf-8";
/* CSS Document */

/* =========================
  左メニュー
========================= */

/* 「カテゴリから探す」のタイトル */
.sidebar-title {
  font-family: "游明朝", "Yu Mincho", "游明朝体", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "MS P明朝", "MS 明朝", serif;
  margin: 25px 0 18px;
  padding: 0 0 12px;
  border-bottom: 2px solid #061b3a;
  color: #061b3a;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* メニュー全体のリスト */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各メニューの枠線と余白 */
.menu-item {
  margin-bottom: 20px;
}

/* ボタンの共通スタイル（クリック領域） */
.menu-trigger, .menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid #dcd6c5; /* 薄いベージュの枠線 */
  border-radius: 6px;       /* 角丸 */
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  background-color: #fff;
  transition: background-color 0.2s ease;
}

/* 一番上の「カテゴリ」だけ背景を薄い黄色にする */
#category-trigger {
  background-color: #FBFAF6;
  margin-bottom: 10px;
}

/* 右側の小さな矢印（CSSで再現） */
.item-arrow {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  transform: rotate(135deg); /* 初期状態：右向き */
  transition: transform 0.3s ease; /* 回転を滑らかに */
}

/* ----- アコーディオン（子メニュー）のスタイル ----- */

/* 子メニューの初期状態（閉じた状態） */
.sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;     /* 高さを0にして隠す */
  opacity: 0;        /* 透明にする */
  overflow: hidden;  /* はみ出た部分を非表示 */
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

/* 子メニュー内のリンク */
.sub-list li a {
  position: relative;
  display: block;
  padding: 14px 40px 14px 18px;
  border: 1px solid #e5dcc5;
  border-radius: 6px;
  background: #fff;
  color: #1b2d4a; /* 少し濃く */
  font-size: 14px;
  font-weight: 500; /* 少し太く */
  line-height: 1.5;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.sub-list li a:hover {
  background: #fbf6e6;
  border-color: #d6c79a;
  color: #061b3a;
  text-decoration: none;
}
/* 矢印 */
.sub-list li a::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid #061b3a;
  border-right: 2px solid #061b3a;
  transform: translateY(-50%) rotate(45deg);
}

/* 知る・学ぶ */
.guide-sidebar-block {
  margin-top: 30px;
}

.guide-sidebar-heading {
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e5dcc5;
  color: #061b3a;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
/*
.guide-sidebar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
*/
.guide-sidebar-grid a {
/*  min-height: 86px; */
  border: 1px solid #e5dcc5;
  border-radius: 6px;
  background: #fff;
  color: #1b2d4a; /* 少し濃く */
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  font-weight: 500; /* 少し太く */
  line-height: 1.7;
  transition: opacity 0.8s ease;
  text-decoration: none;
  margin-bottom: 10px;
}

.guide-sidebar-grid a:hover {
  opacity: 0.7;
}

.guide-sidebar-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* もっと見るボタン */
.guide-side-more {
  width: 180px;
  max-width: 100%;
  min-height: 38px;
  margin: 18px auto 0;
  border: 1px solid #f16657;
  border-radius: 4px;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.guide-side-more:hover {
  background: #888;
  color: #fff;
  border: none;
  text-decoration: none;
}

.spDrawerLearnMore a{
  font-family: "游明朝", "Yu Mincho", "游明朝体", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "MS P明朝", "MS 明朝", serif;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:35px;
  height:50px;
  border:1px solid #888;
  border-radius:10px;
  color:#000;
  text-decoration:none;
  font-size:14px;
  font-weight:bold;
  background:#fff;
}

/* ----- 開いたとき（.open クラスがついたとき）の制御 ----- */

/* 矢印を右向きから下向きに回転（135度 → 45度） */
.menu-trigger.open .item-arrow {
  transform: rotate(-45deg);
}

/* 子メニューをスライド表示 */
.sub-menu.open {
  max-index: 1;
  max-height: 1500px; /* 子メニューが収まる十分な高さを指定 */
  opacity: 1;
  margin-top: 5px;   /* 開いたときの少しの隙間 */
  margin-bottom: 5px;
  display: grid;
  gap: 10px;
}