/* =========================================
   共通FAQスタイル (ハイブリッド固定・デザイン復旧版)
========================================= */

:root {
  --primary-color: #003459; 
  --bg-color: #f3f4f6;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --answer-bg: #f9fafb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-color); /* ブラウザの裏地をグレーに塗りつぶす */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  /* 以下の1行でバウンス自体を抑制できる場合もあります */
  overscroll-behavior-y: none; 
}

.app-container {
  width: 100%;
  max-width: 28rem;
  background-color: var(--bg-color);
  position: relative;
  padding-top: 70px; 
  /* ロゴ固定エリアの高さ分だけ確保 */
  padding-bottom: 80px; 
}

/* =========================================
   上部ヘッダー（絶対固定）
========================================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 28rem;
  z-index: 100;
  background-color: var(--primary-color);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.header-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

/* =========================================
   ★修正：ジャンルタイトル（差し戻しデザイン）
========================================= */
.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 12px 0;
  border-left: 4px solid var(--primary-color);
  padding-left: 10px;
  /* 背景などはなしのシンプル構成 */
}

/* =========================================
   アコーディオン
========================================= */
.faq-item {
  background-color: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-summary {
  padding: 18px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
}

.faq-summary::after {
  content: "▼";
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  font-size: 0.7rem;
  transition: transform 0.3s;
}

details[open] .faq-summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 18px 16px; 
  line-height: 1.7;
  color: var(--text-main);
  font-size: 0.95rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--answer-bg);
}

/* =========================================
   ★修正：下部お問い合わせ＆ロゴ（固定解除・ノーマルフロー）
========================================= */
.contact-area {
  /* 固定を剥がしたので、スクロールの最後に自然に配置されます。
     一番下にセーフエリアを含めたゆったりとした余白を確保します */
  padding: 24px 16px calc(32px + env(safe-area-inset-bottom));
  text-align: center;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 18px 20px;
  border-radius: 9999px; 
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 24px; /* ★追加: ボタンと区切り線の間の余白 */
  transition: transform 0.1s;
}

.contact-btn:active {
  transform: scale(0.97);
}

.contact-btn i {
  font-size: 1.3rem;
  margin-right: 1.5rem; 
}

.btn-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 0.08em; 
}

.btn-main-text {
  font-size: 1.05rem;
  font-weight: 800;
}

.btn-sub-text {
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ★追加：薄い区切り線 */
.footer-divider {
  border: none;
  border-top: 1px solid var(--border-color); /* 薄いグレーの線 */
  width: 70%; /* 線の幅（少し短めにして上品に） */
  margin: 0 auto 24px auto; /* 左右中央寄せ ＆ 下のロゴとの余白 */
}

/* ★修正：ロゴ（サイズを20%アップ） */
.footer-logo {
  height: 36px; /* 30pxから20%大きくしました */
  width: auto;
  vertical-align: middle;
  opacity: 0.85; /* 少しだけ透過させて背景に馴染ませる */
}