@charset "utf-8";

/* ==================================================
   Q&A カテゴリーメニュー＆アコーディオン
================================================== */
.qa-category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  margin-bottom: 30px;
}

.qa-cat-btn {
  display: inline-block;
  padding: 8px 14px;
  background-color: #ffffff;
  border: 2px solid #ff3377;
  color: #ff3377;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.qa-cat-btn:hover,
.qa-cat-btn:active {
  background-color: #ff3377;
  color: #ffffff;
}

.qa-category-block {
  margin-bottom: 35px;
  scroll-margin-top: 80px;
}

.qa-category-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ff3377;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid #ff3377;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qa-category-title .cat-dot {
  font-size: 0.75rem;
}

/* カテゴリー見出しブロック */
.qa-category-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #333333; /* テキストをグレーに変更 */
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid #00bcd4; /* 下ラインを水色に変更 */
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ダイヤ型アイコン */
.qa-category-title .cat-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #e6e600; /* 黄色 */
  transform: rotate(45deg); /* ひし形に回転 */
  border-radius: 1px;
  flex-shrink: 0;
  font-size: 0; /* テキスト記号を消す */
}

/* 質問カードのホバーアニメーション設定 */
.qa-question {
  transition: background-color 0.25s ease;
}

/* ホバー時にカード全体を薄いクリーム色に変更 */
.qa-question:hover {
  background-color: #fffde7; /* 薄いクリーム色 */
}

/* イラスト枠の背景も透明（透ける）にしておく */
.q-ill {
  background-color: transparent;
}

/* ==================================================
   Q&A カテゴリーメニュー＆キャラクターレイアウト
================================================== */
/* 全体枠：本文と同じ左右パディング（20px）に合わせて左揃え */
.qa-category-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 30px;
  gap: 15px;
}

/* 左側：ボタン縦4列並び */
.qa-category-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  width: 58%; /* ボタン側の幅指定 */
}

/* ボタン本体の装飾 */
.qa-cat-btn {
  display: block;
  width: 100%;
  padding: 9px 12px;
  background-color: #ffffff;
  border: 2px solid #ff3377;
  color: #ff3377;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.qa-cat-btn:hover,
.qa-cat-btn:active {
  background-color: #ff3377;
  color: #ffffff;
}

/* 右側：キャラクターイラスト配置 */
.qa-category-chara {
  width: 38%; /* イラスト側の幅指定 */
  max-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-category-chara img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ==================================================
   Q&A カテゴリーアンカーボタン（水色枠・グレー文字）
================================================== */
/* ボタン本体の装飾 */
.qa-cat-btn {
  display: block;
  width: 100%;
  padding: 3px 12px;
  background-color: #ffffff;
  border: 2px solid #00bcd4; /* 枠線をピンクから水色に変更 */
  color: #666;           /* 文字色をピンクから濃いグレーに変更 */
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  transition: all 0.2s ease;
}

/* ホバー（タップ）時に水色背景・白文字へ変化 */
.qa-cat-btn:hover,
.qa-cat-btn:active {
  background-color: #f7f7bb;
  color: #666;
}

/* ==================================================
   Q&A カテゴリーメニュー＆右側ダイヤ＋グッドくん
================================================== */
/* 全体枠：高さ位置をボタン群の底面に合わせる（flex-end） */
.qa-category-wrapper {
  display: flex;
  align-items: flex-end; /* 下端を一番下のボタンに合わせる */
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 30px;
  gap: 15px;
}

/* 左側：ボタン縦4列並び */
.qa-category-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  width: 58%;
}

/* 右側：ダイヤ＋グッドくんを上下に並べるエリア */
.qa-category-chara {
  width: 38%;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* 下揃え */
  gap: 6px; /* ダイヤとグッドくんの間隔 */
}

/* 上段：ダイヤ画像 */
.qa-chara-top-diamond {
  width: 72px; /* ダイヤのサイズ */
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.qa-chara-top-diamond img {
  width: 100%;
  height: auto;
  display: block;
}

/* 下段：グッドくん画像（枠の底面にピッタリ合わせる） */
.qa-chara-img-wrap {
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.qa-chara-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.qa-question .q-ill img {
  max-width: 60px; /* お好みの横幅（例: 60pxや50pxなど）に数値を変更してください */
  height: auto;
}

/* イラスト枠の幅を縮めてテキストエリアを広げる */
.q-ill {
  width: 75px !important;
  height: 55px !important;
}

/* イラスト画像のサイズを程よい大きさに調整 */
.q-ill img {
  max-width: 70px !important;
  max-height: 55px !important;
  width: auto !important;
  height: auto !important;
}

/* テキストの折り返しを防ぎ、1行表示を保証する */
.q-text {
  white-space: nowrap !important;
}

.qa-category-banner {
  width: 55%; /* 70%や60%など、お好みのサイズに変更してください */
  margin-top: 10px;
  margin-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.qa-category-banner img {
  width: 100%;
  height: auto;
  display: block;
}

