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

:root {
  --primary-color: #0d2130; 
  --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: 16px; 
}

/* =========================================
   上部ヘッダー（絶対固定）
========================================= */
.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 {
  /* =============================================
   ▼ (1) 「最後の質問」と「ボタン」の隙間 ▼
   ここの 32px を大きくすると隙間が広がり、小さくすると狭くなります。
   =============================================
  */
  padding-top: 64px; 
  
  /* ▼ ロゴ下の余白（以前の1/3程度に大幅カット） ▼
   （※iPhoneのホームバーの余白 env は残してあります）
  */
  padding-bottom: calc(12px + env(safe-area-inset-bottom)); 
  
  padding-left: 16px;
  padding-right: 16px;
  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);
  
  /* =============================================
   ▼ (2) 「ボタン」と「薄い線」の隙間 ▼
   ここの 16px を大きくすると線が下へ離れ、小さくすると近づきます。
   =============================================
  */
  margin-bottom: 32px; 
  
  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: 上 左右 下; になっています。
   下の 16px を変えると、線とロゴの距離が変わります。
   =============================================
  */
  margin: 16 auto 0px auto; 
}

/* ★修正：ロゴ（完全な中央寄せ） */
.footer-logo {
  /* display: block と margin: 0 auto の組み合わせで、どんな環境でも絶対に中央に配置されます */
  display: block; 
  margin: 0 auto; 
  
  height: 36px; 
  width: auto;
  opacity: 0.85; 
}