/* =========================================
   Q&A Style CSS (シンクタンク・リッチプレミアム風)
========================================= */

/* --- 全体のコンテナ --- */
.faq-container {
  display: none;
  margin-top: 40px;
  background-color: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 8px; /* 少し丸みを持たせて高級感を */
  padding: 40px;
  /* リッチな奥行きを出す影 */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* 開いたときのアニメーション */
#qabtn:checked+label+.faq-container {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 各Q&Aアイテム --- */
.faq-item {
  margin-bottom: 2.5em;
  padding-bottom: 2em;
  border-bottom: 1px solid #eaeaea;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* --- 質問 (Q) --- */
.faq-question {
  padding: 16px 20px;
  font-size: 1.6rem; /* 変更：1.6rem */
  font-weight: 700;
  color: #2c2c2c;
  /* リッチな背景グラデーションとボーダー */
  background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
  border-left: 5px solid #a39161; /* 知的で高級感のあるシャンパンゴールド */
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  line-height: 1.6;
  letter-spacing: 0.03em;
}

/* --- 回答 (A) --- */
.faq-answer {
  margin: 1.5em 1em 0 1em;
  color: #4a4a4a;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* Q&A内のテキストサイズ変更 */
.faq-answer .p-normal-txt {
  font-size: 1.6rem; /* 変更：1.6rem */
}

/* --- Q&Aコンテナの見出し --- */
.qa-1 {
  font-size: 2rem; /* 変更：2rem */
  font-weight: 700;
  padding-left: 1.8em;
  margin-bottom: 35px;
  position: relative;
  color: #222222;
  border-bottom: 1px solid #dcdcdc;
  padding-bottom: 15px;
  letter-spacing: 0.05em;
}

.qa-1::before {
  position: absolute;
  content: '';
  left: 0;
  top: 0.15em;
  width: 1.2em;
  height: 1.2em;
  background-image: url("../../images/article/icn_p-mh2.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* =========================================
   Q&A 開閉ボタン機構 CSS
========================================= */
input#qabtn {
  display: none;
}

/* --- 開くボタン (.qa) - リッチバージョン --- */
.qa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  /* 深みのあるネイビー（#00196E）を基調としたグラデーション */
  background: linear-gradient(135deg, #00289e 0%, #00196E 100%);
  font-size: 1.05em;
  font-weight: 600;
  padding: 1em 2.5em;
  border-radius: 4px;
  border: 1px solid #001355; /* ベース色より少し濃い枠線で引き締める */
  text-decoration: none;
  transition: all 0.3s ease;
  outline: none;
  margin: 1em 0;
  cursor: pointer;
  letter-spacing: 0.08em;
  min-width: 320px;
  /* 立体感と高級感を出すシャドウ (外側の影＋内側のハイライト) */
  box-shadow: 0 4px 12px rgba(0, 25, 110, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
}

/* ボタン右側に矢印アイコンを追加 */
.qa::after {
  content: '▼';
  font-size: 0.75em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

/* 開いた時は矢印が上を向く */
#qabtn:checked+label.qa::after {
  transform: rotate(180deg); 
}

.qa:hover,
.qa:focus {
  /* ホバー時は少し明るく浮き上がる */
  background: linear-gradient(135deg, #0036cc 0%, #002294 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 25, 110, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.qa:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 25, 110, 0.2);
}

/* --- 閉じるボタン (.closeQA) --- */
.closeQA {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  margin-right: 0;
  margin-bottom: 25px;
  color: #999999;
  background: #ffffff;
  font-size: 1.5em;
  font-weight: 300;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  line-height: 1;
}

.closeQA:hover {
  background: #f8f8f8;
  color: #333333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: rotate(90deg) scale(1.05); /* ホバーで少し回転しながら拡大 */
}