/**
 * よくある質問ページ - ラグジュアリーデザイン
 * テンプレート専用CSS
 */

/* ========================================
   CSS変数 - カラースキーム
   ======================================== */

:root {
  --luxury-gold: #D4AF37;
  --luxury-dark: #2C2C2C;
  --luxury-text: #333333;
  --luxury-bg: #FAFAFA;
}

/* ========================================
   ページ全体の設定
   ======================================== */

.page-faq-template {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--luxury-text);
  position: relative;
}

.page-faq-template::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.page-faq-template > * {
  position: relative;
  z-index: 1;
}

/* ========================================
   ヒーローセクション - 下層ページ統一デザイン
   ======================================== */

.page-faq-template .wp-block-cover {
  min-height: 70vh !important;
}

.page-faq-template .wp-block-cover__background {
  opacity: 0.5 !important;
}

.page-faq-template .wp-block-cover h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.page-faq-template .wp-block-cover p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(12px, 2vw, 14px);
  letter-spacing: 0.1em;
}

/* ========================================
   見出しスタイル
   ======================================== */

.page-faq-template h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--luxury-dark);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  position: relative;
  text-align: center;
}

.page-faq-template h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--luxury-gold) 50%,
    transparent 100%
  );
}

.page-faq-template > p {
  text-align: center;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 2;
  letter-spacing: 0.08em;
  color: #666;
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq-template h3:not(.swell-block-box h3) {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--luxury-dark);
  margin: 5rem 0 3rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.03) 100%);
  border-left: 5px solid var(--luxury-gold);
  border-radius: 8px;
  position: relative;
}

.page-faq-template h3:not(.swell-block-box h3)::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--luxury-gold) 0%, #B8941E 100%);
  border-radius: 50%;
  opacity: 0.2;
}

/* CTAセクション内のボックスとh3スタイル */
.page-faq-template .swell-block-fullWide .swell-block-box {
  background-color: #ffffff !important;
}

.page-faq-template .swell-block-box h3 {
  background: none !important;
  border-left: none !important;
  padding: 0 !important;
  margin: 0 0 1rem 0 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  color: #2C2C2C !important;
}

.page-faq-template .swell-block-box h3::before {
  display: none !important;
}


/* セクション画像 */
.page-faq-template .section-image {
  margin: 2rem 0 3rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.page-faq-template .section-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.page-faq-template .section-image:hover img {
  transform: scale(1.05);
}

/* ========================================
   FAQブロック
   ======================================== */

.page-faq-template .swell-block-faq {
  margin: 3rem 0 5rem 0;
  position: relative;
}

.page-faq-template .swell-block-faq::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: -3rem;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.page-faq-template .swell-block-faq::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  right: -3rem;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.page-faq-template .faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.page-faq-template .faq-item:hover {
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

/* FAQの質問部分 */
.page-faq-template .faq-q {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--luxury-dark);
  padding: 2rem 3rem 2rem 4.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-faq-template .faq-q::before {
  content: 'Q';
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--luxury-gold);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
}

.page-faq-template .faq-q::after {
  content: '+';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 300;
  color: var(--luxury-gold);
  transition: all 0.3s ease;
}

.page-faq-template .faq-item.is-open .faq-q::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.page-faq-template .faq-item:hover .faq-q {
  background: linear-gradient(135deg, #ffffff 0%, rgba(212, 175, 55, 0.03) 100%);
}

/* FAQの回答部分 */
.page-faq-template .faq-a {
  font-size: clamp(15px, 2vw, 16px);
  line-height: 2;
  letter-spacing: 0.05em;
  color: #555;
  padding: 0 3rem 0 4.5rem;
  background: white;
  position: relative;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
}

.page-faq-template .faq-item.is-open .faq-a {
  max-height: 2000px;
  padding: 2rem 3rem 2rem 4.5rem;
  opacity: 1;
}

.page-faq-template .faq-a::before {
  content: 'A';
  position: absolute;
  left: 2rem;
  top: 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--luxury-dark);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 44, 44, 0.05);
  border-radius: 50%;
}

.page-faq-template .faq-a p {
  margin-bottom: 1.5rem;
}

.page-faq-template .faq-a p:last-child {
  margin-bottom: 0;
}

/* FAQの回答内のリスト */
.page-faq-template .faq-a ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.page-faq-template .faq-a ul li {
  position: relative;
  padding-left: 2em;
  line-height: 2;
  margin-bottom: 0.8rem;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.page-faq-template .faq-a ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 6px;
  height: 6px;
  background: var(--luxury-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* ========================================
   SWELLボックスブロック
   ======================================== */

.page-faq-template .swell-block-box {
  border-radius: 16px;
  padding: 3rem;
  margin: 5rem 0;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.02) 100%) !important;
  border: 2px solid rgba(212, 175, 55, 0.2) !important;
}

.page-faq-template .swell-block-box strong {
  font-size: clamp(18px, 3vw, 22px);
  letter-spacing: 0.1em;
  color: var(--luxury-dark);
  font-weight: 700;
  display: block;
  margin-bottom: 1rem;
}

.page-faq-template .swell-block-box p {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: #555;
  margin-bottom: 1rem;
}

.page-faq-template .swell-block-box p:last-child {
  margin-bottom: 0;
}

/* ========================================
   CTAボタン
   ======================================== */

.page-faq-template .swell-block-cta {
  margin: 5rem 0;
  padding: 4rem 2rem;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.1) 100%) !important;
  border: 2px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.page-faq-template .cta-button {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 1.8rem 4.5rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
  color: white;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.page-faq-template .cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}

.page-faq-template .cta-button:hover::before {
  width: 500px;
  height: 500px;
}

.page-faq-template .cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--luxury-gold);
  color: white;
}

/* ========================================
   レスポンシブ
   ======================================== */

@media (max-width: 768px) {
  .page-faq-template h3 {
    padding: 1.2rem 1.5rem;
    margin: 3rem 0 2rem 0;
  }

  .page-faq-template h3::before {
    width: 30px;
    height: 30px;
    right: 1.5rem;
  }

  .page-faq-template .faq-q {
    padding: 1.5rem 3rem 1.5rem 3.5rem;
    font-size: 16px;
  }

  .page-faq-template .faq-q::before {
    left: 1.2rem;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .page-faq-template .faq-q::after {
    right: 1.5rem;
    font-size: 24px;
  }

  .page-faq-template .faq-a {
    padding: 0 2rem 0 3.5rem;
    font-size: 15px;
  }

  .page-faq-template .faq-item.is-open .faq-a {
    padding: 1.5rem 2rem 1.5rem 3.5rem;
  }

  .page-faq-template .faq-a::before {
    left: 1.2rem;
    top: 1.5rem;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .page-faq-template .swell-block-box {
    padding: 2rem 1.5rem;
  }

  .page-faq-template .cta-button {
    padding: 1.5rem 3rem;
    font-size: 16px;
  }
}

/* ========================================
   320px幅対応 - 超小型スマートフォン
   ======================================== */

@media (max-width: 375px) {
  /* 見出しサイズ調整 */
  .page-faq-template h2 {
    font-size: 1.6rem !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
  }

  .page-faq-template > p {
    font-size: 14px !important;
    margin-bottom: 3rem;
    padding: 0 10px;
  }

  .page-faq-template h3 {
    font-size: 1.15rem !important;
    letter-spacing: 0.08em !important;
    padding: 1rem 1rem 1rem 1.2rem !important;
    margin: 2rem 0 1.5rem 0 !important;
    border-left-width: 3px;
  }

  .page-faq-template h3::before {
    width: 25px !important;
    height: 25px !important;
    right: 1rem !important;
  }

  /* セクション画像 */
  .page-faq-template .section-image {
    margin: 1.5rem 0 2rem 0;
    border-radius: 12px;
  }

  /* FAQブロック調整 */
  .page-faq-template .swell-block-faq {
    margin: 2rem 0 3rem 0;
  }

  .page-faq-template .swell-block-faq::before,
  .page-faq-template .swell-block-faq::after {
    display: none;
  }

  .page-faq-template .faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
  }

  .page-faq-template .faq-q {
    padding: 1.2rem 2.5rem 1.2rem 3rem !important;
    font-size: 14px !important;
  }

  .page-faq-template .faq-q::before {
    left: 0.8rem !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 18px !important;
  }

  .page-faq-template .faq-q::after {
    right: 1rem !important;
    font-size: 22px !important;
  }

  .page-faq-template .faq-a {
    padding: 0 1.5rem 0 3rem !important;
    font-size: 13px !important;
  }

  .page-faq-template .faq-item.is-open .faq-a {
    padding: 1.2rem 1.5rem 1.2rem 3rem !important;
  }

  .page-faq-template .faq-a::before {
    left: 0.8rem !important;
    top: 1.2rem !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
  }

  .page-faq-template .faq-a p {
    margin-bottom: 1rem;
  }

  .page-faq-template .faq-a ul {
    margin: 1rem 0;
  }

  .page-faq-template .faq-a ul li {
    font-size: 13px !important;
    padding-left: 1.5em;
    margin-bottom: 0.6rem;
  }

  .page-faq-template .faq-a ul li::before {
    width: 5px;
    height: 5px;
  }

  /* ボックス調整 */
  .page-faq-template .swell-block-box {
    padding: 1.5rem 1rem !important;
    margin: 3rem 0 !important;
    border-radius: 12px;
  }

  .page-faq-template .swell-block-box strong {
    font-size: 15px !important;
    margin-bottom: 0.8rem;
  }

  .page-faq-template .swell-block-box p {
    font-size: 14px;
    line-height: 1.8;
  }

  /* CTA調整 */
  .page-faq-template .swell-block-cta {
    padding: 2rem 1rem !important;
    margin: 3rem 0 !important;
  }

  .page-faq-template .cta-button {
    padding: 1rem 2rem !important;
    font-size: 14px !important;
  }
}

/* 320px幅での特別な調整 */
@media (max-width: 320px) {
  .page-faq-template h2 {
    font-size: 1.4rem !important;
  }

  .page-faq-template h3 {
    font-size: 1.05rem !important;
    padding: 0.9rem 0.8rem 0.9rem 1rem !important;
  }

  .page-faq-template .faq-q {
    padding: 1rem 2rem 1rem 2.8rem !important;
    font-size: 13px !important;
  }

  .page-faq-template .faq-q::before {
    left: 0.6rem !important;
    width: 26px !important;
    height: 26px !important;
    font-size: 16px !important;
  }

  .page-faq-template .faq-a {
    padding: 0 1.2rem 0 2.8rem !important;
    font-size: 12px !important;
  }

  .page-faq-template .faq-item.is-open .faq-a {
    padding: 1rem 1.2rem 1rem 2.8rem !important;
  }

  .page-faq-template .faq-a::before {
    left: 0.6rem !important;
    width: 26px !important;
    height: 26px !important;
  }

  .page-faq-template .swell-block-box {
    padding: 1.2rem 0.8rem !important;
  }

  .page-faq-template .cta-button {
    padding: 0.9rem 1.5rem !important;
    font-size: 13px !important;
  }
}
