/* ======================================
   Y2KHOME Pro - FAQページ専用CSS v4.0
   ・ヒーロー／セクション見出しは main.css に任せる
   ・質問ブロックのみをカスタム
   ・完全フラット・全幅
====================================== */

/* ページ全体のベース。必要なければ外してOK */
.y2k-faq-page {
  background: #f3f4f6;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans JP", sans-serif;
}

/* ======================================
   FAQリスト：全幅・フラット
====================================== */

/* y2k-page-section-inner の中で使う想定
   → コンテナ幅いっぱいまで使う（全幅）
*/
.y2k-faq-list {
  margin-top: 20px;
  width: 100%;
  background: #020617; /* 背景を暗めにしてカード感を出す */
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
  border-radius: 0; /* 完全フラット */
}

/* 各項目：上下の余白をなくし、線だけで区切る */
.y2k-faq-item {
  position: relative;
  background: #0b1b30;
  border-bottom: 1px solid #020617; /* 細い仕切り線のみ */
  margin: 0;
  border-radius: 0;
}

.y2k-faq-item:last-child {
  border-bottom: none;
}

/* 左の黄色ライン（アクセント） */
.y2k-faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: #facc15;
}

/* ======================================
   見出し（押すところ）：青グラデ＋光沢
====================================== */

.y2k-faq-item-question {
  width: 100%;
  border: 0;
  background: linear-gradient(
    90deg,
    #0d2340 0%,
    #163a61 30%,
    #1f4f87 70%,
    #163a61 100%
  );
  color: #ffffff;
  padding: 14px 20px 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  position: relative;
}

.y2k-faq-item-question:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: -2px;
}

/* 開いているとき：少し明るく＋下に黄色ライン */
.y2k-faq-item.is-open .y2k-faq-item-question {
  background: linear-gradient(90deg, #10263f 0%, #1c3b63 45%, #2563eb 100%);
  box-shadow: inset 0 -3px 0 #facc15;
}

/* Qバッジ：大きめ・はっきり黄色 */
.y2k-faq-item-label {
  font-size: 13px;
  font-weight: 800;
  color: #1f2933;
  background: #facc15;
  border-radius: 999px;
  padding: 3px 10px;
  border: none;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(250, 250, 250, 0.25);
}

/* 見出しテキスト */
.y2k-faq-item-text {
  font-size: 16px;
  font-weight: 700;
  color: #f9fafb;
  flex: 1;
  padding-right: 40px; /* アイコン分 */
  line-height: 1.5;
}

/* ＋／－アイコン：白寄りで見やすく */
.y2k-faq-item-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
}

.y2k-faq-item-icon::before,
.y2k-faq-item-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.22s ease, opacity 0.22s ease, background 0.22s ease;
}

.y2k-faq-item-icon::after {
  transform: rotate(90deg);
}

.y2k-faq-item.is-open .y2k-faq-item-icon::after {
  opacity: 0;
  transform: rotate(90deg) scaleX(0.3);
}

.y2k-faq-item.is-open .y2k-faq-item-icon::before {
  background: #ffffff;
}

/* ======================================
   回答エリア（アコーディオン部）
====================================== */

.y2k-faq-item-answer {
  padding: 0 20px 0 24px;
  font-size: 14px;
  color: #111827;
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.26s ease;
  background: #f9fafb;
}

.y2k-faq-item-answer-inner {
  padding: 10px 0 14px;
}

/* ======================================
   問い合わせセクション（背景画像対応）
====================================== */

/* HTML側：
   <section class="y2k-page-section y2k-faq-cta-section"
            style="background-image:url('画像URL');">
      <div class="y2k-page-section-inner"> ... </div>
   </section>
*/

.y2k-faq-cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f9fafb;
}

.y2k-faq-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7)
  );
}

.y2k-faq-cta-section .y2k-page-section-inner {
  position: relative;
}

.y2k-faq-cta-inner {
  text-align: center;
}

.y2k-faq-cta-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  color: #fefce8;
}

.y2k-faq-cta-lead {
  font-size: 14px;
  color: #e5e7eb;
  opacity: 0.95;
  margin-bottom: 24px;
}

/* CTAボタン */
.y2k-faq-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.y2k-faq-btn {
  min-width: 220px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 20px;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease,
    color 0.14s ease, border-color 0.14s ease;
}

.y2k-faq-btn-line {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.5);
}

.y2k-faq-btn-line:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.6);
}

.y2k-faq-btn-form {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.95);
}

.y2k-faq-btn-form:hover {
  background: rgba(15, 23, 42, 0.8);
}

/* ======================================
   レスポンシブ（文字大きめ寄り）
====================================== */

@media (max-width: 768px) {
  .y2k-faq-item-question {
    padding: 12px 14px 10px 20px;
  }
  .y2k-faq-item-text {
    font-size: 15px;
  }
  .y2k-faq-item-answer {
    padding: 0 16px 0 20px;
    font-size: 13px;
  }

  .y2k-faq-cta-title {
    font-size: 20px;
  }
  .y2k-faq-btn {
    min-width: 100%;
    font-size: 14px;
  }
}
