/* =============================================
   FAQ PAGE STYLES — faq.css
   ============================================= */

/* ① ヒーロー — 高さを下げる */
.faq-hero {
  position: relative;
  overflow: hidden;
  height: 460px;
}
.faq-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
  animation: faqHeroZoom 8s ease-out forwards;
  transform-origin: center top;
}
@keyframes faqHeroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}
/* 黒オーバーレイ — 左側を少し暗く */
.faq-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(0,0,0,0.38) 0%,
    rgba(0,0,0,0.20) 50%,
    rgba(0,0,0,0.05) 100%
  );
  z-index: 1;
}
.faq-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 210px 40px 0 16px;
}
.faq-hero-text { flex: 0 0 auto; max-width: 560px; }
.faq-hero-title {
  font-size: 58px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.20);
}
.faq-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.92);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.faq-hero-img { display: none; }

/* ② パンくずリスト — 濃く・大きく */
.faq-breadcrumb {
  background: #f7f8fc;
  border-bottom: 1px solid #e0e6ef;
  padding: 10px 0;
  font-size: 14px;
  color: #555;
}
.faq-breadcrumb .breadcrumb-sep { margin: 0 8px; color: #999; }
.faq-breadcrumb .breadcrumb-home { color: #1a4fa8; cursor: pointer; font-weight: 500; }
.faq-breadcrumb .breadcrumb-current { color: #333; font-weight: 500; }

/* 3つの特徴 */
.faq-features {
  background: #fff;
  padding: 24px 0;
  border-bottom: 1px solid #e8ecf0;
}
.faq-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.faq-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.faq-feature-icon {
  font-size: 48px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-icon-blue  { background: #e8f0fe; }
.faq-icon-green { background: #e6f4ea; }
.faq-icon-orange{ background: #fef3e2; }
.faq-feature-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 4px;
}
.faq-feature-text p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* メインレイアウト */
.faq-main {
  background: #f7f8fc;
  padding: 32px 0 64px;
}
.faq-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* ④ サイドバー — 選択状態強化 */
.faq-sidebar {
  flex: 0 0 200px;
  position: sticky;
  top: 24px;
}
.faq-sidebar-inner {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e0e6ef;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #2d5a9e;
  padding: 16px 18px;
  margin: 0;
  letter-spacing: 0.5px;
}
.faq-category-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.faq-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-left: 4px solid transparent; /* 太く */
  white-space: nowrap;
}
.faq-cat-item.active {
  background: #deeafd;
  color: #1a4fa8;
  font-weight: 700;
  border-left-color: #1a4fa8;
}
.faq-cat-item.active .faq-cat-icon {
  filter: none;
  opacity: 1;
  color: #1a4fa8;
}
.faq-cat-item.active .faq-cat-count {
  background: #1a4fa8;
  color: #fff;
}
.faq-cat-item:hover {
  background: #f0f4fb;
  color: #2a63d8;
  transform: translateX(3px);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.faq-cat-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.faq-cat-count {
  margin-left: auto;
  background: #e8ecf0;
  color: #666;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 24px;
  text-align: center;
}
.faq-cat-item.active .faq-cat-count { background: #1a4fa8; color: #fff; }
.faq-sidebar-cta {
  background: #f0f4fb;
  border-top: 1px solid #e0e6ef;
  padding: 18px;
  text-align: center;
}
.faq-sidebar-cta p {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 12px;
}
.faq-sidebar-btn {
  display: block;
  background: #1a4fa8;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.15s;
}
.faq-sidebar-btn:hover { background: #143d88; }

/* FAQ一覧エリア */
.faq-content { flex: 1; min-width: 0; }
.faq-content-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.faq-content-title { font-size: 20px; font-weight: 700; color: #1a2a4a; margin: 0; }
.faq-content-count { font-size: 13px; color: #888; }

/* ③ アコーディオン — 影追加 */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.faq-accordion-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  overflow: hidden;
  transition: box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03); /* 薄影 */
}
.faq-accordion-item:hover {
  box-shadow: 0 4px 16px rgba(26,79,168,0.10);
}
.faq-accordion-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  align-items: center;
}
.faq-accordion-q:hover { background: #f8f9fb; }
.faq-accordion-q[aria-expanded="true"] {
  background: #eef3fd;
  border-bottom: 1px solid #d0daf0;
}
.faq-q-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #2b63d9;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-accordion-q[aria-expanded="true"] .faq-q-num { background: #2b63d9; }
.faq-q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: #1a2a4a;
  line-height: 1.5;
}
.faq-accordion-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-accordion-a.open { max-height: 600px; }
.faq-a-inner {
  padding: 24px 28px 24px 70px;
  border-top: 1px solid #eef0f5;
  background: #ffffff;
  animation: faqFadeIn 0.3s ease forwards;
}
@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-a-inner p {
  font-size: 14px;
  color: #444;
  line-height: 2;
  margin: 0;
  max-width: 820px;
}
.faq-q-toggle {
  flex-shrink: 0;
  font-size: 24px;
  color: #1a4fa8;
  font-weight: 400;
  line-height: 1;
  width: 30px;
  text-align: center;
  transition: transform 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-accordion-q[aria-expanded="true"] .faq-q-toggle {
  transform: rotate(45deg);
}

/* 中間CTA（6問目後） */
.faq-mid-cta {
  background: linear-gradient(135deg, #eef3fd 0%, #e8f0fe 100%);
  border: 1px solid #c8d8f8;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0;
}
.faq-mid-cta-text p {
  font-size: 13px;
  color: #555;
  margin: 0 0 4px;
}
.faq-mid-cta-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #1a2a4a;
}
.faq-mid-cta-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.faq-mid-cta-btn-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16b553;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s;
  min-height: 44px;
}
.faq-mid-cta-btn-line:hover { background: #129a47; }
.faq-mid-cta-btn-mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a4fa8;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s;
  min-height: 44px;
}
.faq-mid-cta-btn-mail:hover { background: #143d88; }

/* 下部CTA — 背景色調整 */
.faq-bottom-cta {
  background: #f7f9fd;
  padding: 56px 0;
  border-top: 1px solid #e8ecf0;
}
.faq-bottom-cta-inner {
  display: flex;
  align-items: stretch;
  background: #eef3fc;
  border-radius: 24px;
  overflow: hidden;
  min-height: 260px;
}
.faq-bottom-cta-left {
  flex: 1;
  padding: 48px 40px 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}
.faq-bottom-cta-left h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a2a4a;
  margin: 0 0 12px;
  line-height: 1.4;
}
.faq-bottom-cta-left p {
  font-size: 14px;
  color: #555;
  margin: 0 0 24px;
  line-height: 1.7;
}
.faq-bottom-cta-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* ⑤ ボタン min-height 52px */
.btn-line-faq {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16b553;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 56px;
  border-radius: 10px;
  transition: background 0.15s;
  min-height: 52px;
}
.btn-line-faq:hover { background: #129a47; }
.line-icon-faq {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #fff;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.477 2 2 6.045 2 11.103c0 4.47 3.158 8.214 7.595 9.124.316.067.44.266.44.465 0 .233-.019.746-.019.746s-.067.383-.083.49c-.04.233-.184.912.8.497.984-.416 5.301-3.12 7.237-5.344C19.358 15.384 22 13.37 22 11.103 22 6.045 17.523 2 12 2z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.477 2 2 6.045 2 11.103c0 4.47 3.158 8.214 7.595 9.124.316.067.44.266.44.465 0 .233-.019.746-.019.746s-.067.383-.083.49c-.04.233-.184.912.8.497.984-.416 5.301-3.12 7.237-5.344C19.358 15.384 22 13.37 22 11.103 22 6.045 17.523 2 12 2z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}
.btn-mail-faq {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a4fa8;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 40px;
  border-radius: 10px;
  transition: background 0.15s;
  min-height: 52px;
}
.btn-mail-faq:hover { background: #143d88; }

/* CTA右側画像 */
.faq-bottom-cta-right {
  flex: 0 0 300px;
  position: relative;
  overflow: hidden;
  padding-right: 12px;
}
.faq-bottom-cta-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% top;
  display: block;
  border-radius: 0 20px 20px 0;
}
.faq-bottom-cta-badges {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}
.faq-badge {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #1a4fa8;
  white-space: nowrap;
}
.faq-badge:first-child {
  background: #ffffff;
  font-weight: 700;
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 768px) {
  /* ヒーロー */
  .faq-hero { height: 300px; }
  .faq-hero-inner { padding: 120px 24px 0; }
  .faq-hero-title { font-size: 36px; }
  .faq-hero-sub { font-size: 14px; }

  .faq-features-grid { grid-template-columns: 1fr; }

  /* スマホ：サイドバーを横スクロールタブに */
  .faq-layout { flex-direction: column; }
  .faq-sidebar {
    position: static;
    width: 100%;
    flex: none;
  }
  .faq-sidebar-inner {
    border-radius: 12px;
    overflow: visible;
  }
  .faq-sidebar-title { border-radius: 12px 12px 0 0; }
  .faq-category-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .faq-category-list::-webkit-scrollbar { display: none; }
  .faq-cat-item {
    flex: 0 0 auto;
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    background: #f7f8fc;
    min-height: 44px; /* タップしやすく */
  }
  .faq-cat-item.active {
    border-left: none;
    border-bottom-color: #1a4fa8;
    background: #deeafd;
  }
  .faq-sidebar-cta { display: none; }

  /* 中間CTA */
  .faq-mid-cta { flex-direction: column; align-items: flex-start; }
  .faq-mid-cta-btns { width: 100%; }
  .faq-mid-cta-btn-line,
  .faq-mid-cta-btn-mail { flex: 1; justify-content: center; }

  /* 下部CTA */
  .faq-bottom-cta-inner { flex-direction: column; }
  .faq-bottom-cta-left {
    padding: 32px 24px;
    align-items: center;
    text-align: center;
  }
  .faq-bottom-cta-right {
    flex: none;
    width: 100%;
    height: 180px;
  }
  .faq-bottom-cta-btns { flex-direction: column; width: 100%; }
  .btn-line-faq, .btn-mail-faq { justify-content: center; width: 100%; }

  /* アコーディオン */
  .faq-accordion-q { padding: 16px 18px; }
  .faq-a-inner { padding: 16px 18px; }
  .faq-q-text { font-size: 14px; }
}