@charset "UTF-8";

/* ====================================
   Variables & Common
   ==================================== */
:root {
  --color-text: #333;
  --color-gray-bg: #f4f4f4;
  --color-border: #ccc;
  --color-accent: #f0951e;
  --font-en: "Brush Script MT", cursive; 
}

.inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  box-sizing: border-box;
}

/* ====================================
   Hero Section
   ==================================== */
.p-faq-mv {
  position: relative;
  width: 100%;
  height: 350px; /* 画像に合わせて調整 */
  overflow: hidden;
  margin-bottom: 20px;
}

.p-faq-mv__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-faq-mv__content {
  position: absolute;
  bottom: 20px;
  left: 10%;
  z-index: 2;
  text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.p-faq-mv__title .en {
  display: block;
  font-family: var(--font-en);
  font-size: 5rem; /* サイズ調整 */
  line-height: 1;
  color: #000;
}
.p-faq-mv__title .jp {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-top: 5px;
  color: #000;
  padding-left: 5px;
}

.p-faq-breadcrumb {
  font-size: 12px;
  padding: 0 0 40px;
}
.p-faq-breadcrumb a {
  text-decoration: none;
  color: #333;
}

/* ====================================
   Main Content Area
   ==================================== */
.p-faq-main {
  position: relative;
  overflow: hidden;
  /* ここにあった背景設定は削除 */
}

/* 背景を inner に適用 */
.p-faq-main__inner {
  position: relative;
  z-index: 1;
  
  /* 背景画像の設定 */
  background-image: url('../images/faq/bg_faq.png');
  background-repeat: no-repeat;
  background-position: left bottom; /* コンテンツエリアの左下に配置 */
  background-size: 450px auto;      /* 画像サイズ */
  
  /* 画像がテキストと被らないように下部に余白を確保 */
  padding-bottom: 150px; 
}

/* スマホでの調整 */
@media (max-width: 768px) {
  .p-faq-main__inner {
    background-size: 250px auto; /* スマホではサイズを縮小 */
    padding-bottom: 100px;       /* 余白調整 */
    background-position: left bottom;
  }
}

/* 不要なスタイルがあれば削除 */
.p-faq-bg-pattern {
  display: none;
}

/* Lead */
.p-faq-lead {
  text-align: center;
  margin-bottom: 60px;
  font-weight: bold;
  line-height: 1.8;
}

/* Anchor Buttons */
.p-faq-anchor {
  margin-bottom: 80px;
  background-color: #f0f0f0; /* 薄いグレー帯 */
  padding: 30px 20px;
}

.p-faq-anchor__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.p-faq-anchor__item a {
  display: block;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 4px;
  transition: opacity 0.3s;
}
.p-faq-anchor__item a:hover {
  opacity: 0.8;
}

/* FAQ Content */
.p-faq-section {
  margin-bottom: 60px;
  scroll-margin-top: 100px; 
}

/* Section Title */
.p-faq-section__title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  padding-left: 15px;
  border-left: 6px solid #333;
  line-height: 1.2;
}

/* Accordion List */
.p-faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.p-faq-item {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
}

/* Question (Trigger) */
.p-faq-item__question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
}

/* Icon */
.q-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}
.q-icon::before,
.q-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #4a8b42; /* 緑 */
  transform: translate(-50%, -50%);
}
.q-icon::before { width: 100%; height: 2px; }
.q-icon::after { width: 2px; height: 100%; }

/* Active State */
.p-faq-item__question.is-active .q-icon {
  transform: rotate(135deg); /* ×のような角度に */
}

/* Answer Area */
.p-faq-item__answer {
  display: none;
  border-top: 1px solid #eee;
}

.p-faq-item__answer-inner {
  padding: 20px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 768px) {
  .p-faq-mv__title .en {
    font-size: 4rem;
  }
  .p-faq-anchor__list{
    justify-content: left;
  }
  
  .p-faq-anchor {
    padding: 20px 10px;
  }
  .p-faq-anchor__item a {
    font-size: 0.8rem;
    padding: 10px 15px;
  }
  
  /* 背景画像を小さく */
  .p-faq-bg-pattern {
    width: 250px;
    left: -20px;
  }
  
  .p-faq-section__title {
    font-size: 1.25rem;
  }
  
  .p-faq-item__question {
    font-size: 0.9rem;
    padding: 15px;
  }
}