@charset "UTF-8";

/* =============================================================
   faq.css  —  FAQページ / FAQ コンポーネント
   template-faq.php  /  is_page('faq')  /  [hook_faq] ショートコード
============================================================= */


/* -------------------------------------------------------------
   Container override
------------------------------------------------------------- */
.page-template-template-faq #content.l-container,
.page-template-template-faq #content.l-content {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.page-template-template-faq .l-mainContent,
.page-template-template-faq .l-mainContent__inner {
  max-width: 100% !important;
  padding-top: 0 !important;
}


/* =============================================================
   ページラッパー
============================================================= */
.p-faq {
  overflow-x: clip;
}


/* =============================================================
   01. ヒーロー
============================================================= */
.p-faq-hero {
  background: #fff;
  overflow: hidden;
  padding: 7rem 0 6rem;
  position: relative;
}

.p-faq-hero::before {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(41, 128, 185, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(41, 128, 185, 0.05) 0%, transparent 50%);
  bottom: 0;
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
}

.p-faq-hero__inner {
  position: relative;
  z-index: 1;
}

.p-faq-hero__label {
  align-items: center;
  color: var(--color-blue, #2980B9);
  display: flex;
  font-family: var(--font-accent, sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  gap: 0.8rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  text-transform: uppercase;
}

.p-faq-hero__label::before {
  background: var(--color-blue, #2980B9);
  border-radius: 999px;
  content: "";
  flex-shrink: 0;
  height: 0.1rem;
  width: 3rem;
}

.p-faq-hero__title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.45;
  margin-top: 1.6rem;
}

.p-faq-hero__lead {
  color: var(--color-text, #1A1A1A);
  font-size: 1.5rem;
  line-height: 2.0;
  margin-top: 2.4rem;
  max-width: 64rem;
}

@media (min-width: 768px) {
  .p-faq-hero {
    padding: 9rem 0 8rem;
  }

  .p-faq-hero__title {
    font-size: 4.0rem;
    line-height: 1.4;
    margin-top: 2rem;
  }

  .p-faq-hero__lead {
    font-size: 1.6rem;
    margin-top: 3.2rem;
  }
}

@media (min-width: 1024px) {
  .p-faq-hero__title {
    font-size: 4.4rem;
  }
}


/* =============================================================
   02. カテゴリナビ
============================================================= */
.p-faq-nav {
  background: var(--color-bg-gray, #F4F7F9);
  border-bottom: 1px solid var(--color-border, rgba(26,26,26,0.1));
  overflow-x: auto;
  padding: 1.6rem 0;
  -webkit-overflow-scrolling: touch;
}

.p-faq-nav__inner {
  overflow-x: auto;
}

.p-faq-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
  padding: 0.4rem 0;
}

.p-faq-nav__link {
  background: #fff;
  border: 1px solid var(--color-border, rgba(26,26,26,0.1));
  border-radius: 999px;
  color: var(--color-text, #1A1A1A);
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.p-faq-nav__link:hover {
  background: var(--color-blue, #2980B9);
  border-color: var(--color-blue, #2980B9);
  color: #fff;
}

@media (min-width: 768px) {
  .p-faq-nav {
    padding: 2rem 0;
  }

  .p-faq-nav__list {
    flex-wrap: wrap;
  }
}


/* =============================================================
   03. FAQセクション（カテゴリ別）
============================================================= */
.p-faq-section {
  padding: 5.6rem 0;
}

.p-faq-section + .p-faq-section {
  border-top: 1px solid var(--color-border, rgba(26,26,26,0.1));
}

.p-faq-section--empty {
  background: var(--color-bg-gray, #F4F7F9);
  padding: 8rem 0;
}

.p-faq-section__title {
  color: var(--color-text, #1A1A1A);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.4;
  padding-left: 1.6rem;
  position: relative;
}

.p-faq-section__title::before {
  background: var(--color-blue, #2980B9);
  border-radius: 999px;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 0.4rem;
}

.p-faq-empty {
  color: var(--color-text-light, rgba(26,26,26,0.6));
  font-size: 1.4rem;
  text-align: center;
}

@media (min-width: 768px) {
  .p-faq-section {
    padding: 7.2rem 0;
  }
}


/* =============================================================
   04. c-faq-list コンポーネント
============================================================= */
.c-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  list-style: none;
  margin-top: 3.2rem;
  padding: 0;
}

.c-faq-list__heading {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 2.4rem;
}

@media (min-width: 768px) {
  .c-faq-list {
    margin-left: auto;
    margin-right: auto;
    max-width: 84rem;
  }
}


/* =============================================================
   05. c-faq-item コンポーネント（アコーディオン）
============================================================= */
.c-faq-item {
  background: #fff;
  border: 1px solid var(--color-border, rgba(26,26,26,0.1));
  border-radius: 1.2rem;
  box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* 質問 */
.c-faq-item__question {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 1.2rem;
  padding: 2rem 2.4rem;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.c-faq-item__question::marker,
.c-faq-item__question::-webkit-details-marker {
  display: none;
}

.c-faq-item__question-icon {
  align-items: center;
  background: var(--color-blue, #2980B9);
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-accent, sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  height: 3.2rem;
  justify-content: center;
  margin-top: 0.1rem;
  width: 3.2rem;
}

.c-faq-item__question-text {
  color: var(--color-text, #1A1A1A);
  flex: 1;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.65;
  padding-top: 0.4rem;
}

.c-faq-item__category {
  background: rgba(41, 128, 185, 0.08);
  border-radius: 0.4rem;
  color: var(--color-blue, #2980B9);
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.5rem;
  padding: 0.2rem 0.7rem;
  white-space: nowrap;
}

/* トグルアイコン（+/×） */
.c-faq-item__question-toggle {
  flex-shrink: 0;
  height: 2.4rem;
  margin-top: 0.3rem;
  position: relative;
  width: 2.4rem;
}

.c-faq-item__question-toggle::before,
.c-faq-item__question-toggle::after {
  background: var(--color-text, #1A1A1A);
  border-radius: 999px;
  content: "";
  display: block;
  height: 0.2rem;
  position: absolute;
  top: 50%;
  transition: transform 0.3s ease;
  width: 1rem;
}

.c-faq-item__question-toggle::before {
  left: 0.4rem;
  transform: translateY(-50%) rotate(45deg);
}

.c-faq-item__question-toggle::after {
  right: 0.4rem;
  transform: translateY(-50%) rotate(-45deg);
}

.c-faq-item[open] .c-faq-item__question-toggle::before {
  transform: translateY(-50%) rotate(-45deg);
}

.c-faq-item[open] .c-faq-item__question-toggle::after {
  transform: translateY(-50%) rotate(45deg);
}

/* 回答 */
.c-faq-item__answer {
  border-top: 1px solid var(--color-border, rgba(26,26,26,0.1));
  display: flex;
  gap: 1.2rem;
  padding: 2rem 2.4rem;
}

.c-faq-item__answer-icon {
  align-items: center;
  background: var(--color-bg-gray, #F4F7F9);
  border-radius: 50%;
  color: var(--color-text, #1A1A1A);
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-accent, sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  height: 3.2rem;
  justify-content: center;
  margin-top: 0.1rem;
  width: 3.2rem;
}

.c-faq-item__answer-body {
  flex: 1;
  font-size: 1.5rem;
  line-height: 1.9;
  padding-top: 0.4rem;
}

.c-faq-item__answer-body p {
  margin-bottom: 1.2rem;
}

.c-faq-item__answer-body p:last-child {
  margin-bottom: 0;
}

.c-faq-item__answer-body a {
  color: var(--color-blue, #2980B9);
  text-decoration: underline;
}

.c-faq-item__answer-body ul,
.c-faq-item__answer-body ol {
  margin-bottom: 1.2rem;
  padding-left: 2rem;
}

/* 補足リンク */
.c-faq-item__link {
  align-items: center;
  border: 1px solid rgba(41, 128, 185, 0.3);
  border-radius: 0.6rem;
  color: var(--color-blue, #2980B9);
  display: inline-flex;
  font-size: 1.3rem;
  font-weight: 600;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.c-faq-item__link::after {
  border-right: 0.15rem solid currentColor;
  border-top: 0.15rem solid currentColor;
  content: "";
  display: block;
  height: 0.7rem;
  transform: rotate(45deg);
  width: 0.7rem;
}

.c-faq-item__link:hover {
  background: var(--color-blue, #2980B9);
  color: #fff;
}


/* =============================================================
   06. 関連サービス
============================================================= */
.p-faq-related {
  background: var(--color-bg-gray, #F4F7F9);
  padding: 6rem 0;
}

.p-faq-related__grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin-top: 4rem;
  padding: 0;
}

.p-faq-related__card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border, rgba(26,26,26,0.1));
  border-radius: 1rem;
  box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.04);
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem 2rem;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.p-faq-related__en {
  color: var(--color-blue, #2980B9);
  font-family: var(--font-accent, sans-serif);
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-width: 7rem;
  opacity: 0.7;
  text-transform: uppercase;
}

.p-faq-related__title {
  color: var(--color-text, #1A1A1A);
  flex: 1;
  font-size: 1.5rem;
  font-weight: 700;
}

.p-faq-related__arrow {
  flex-shrink: 0;
}

.p-faq-related__arrow::before {
  border-right: 0.2rem solid var(--color-blue, #2980B9);
  border-top: 0.2rem solid var(--color-blue, #2980B9);
  content: "";
  display: block;
  height: 0.9rem;
  transform: rotate(45deg);
  width: 0.9rem;
}

@media (hover: hover) and (pointer: fine) {
  .p-faq-related__card:hover {
    box-shadow: 0 0.6rem 2.4rem rgba(41, 128, 185, 0.12);
    transform: translateY(-0.2rem);
  }
}

@media (min-width: 600px) {
  .p-faq-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .p-faq-related {
    padding: 8rem 0;
  }

  .p-faq-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .p-faq-related__card {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 10rem;
    padding: 2rem 2.4rem;
  }

  .p-faq-related__en {
    min-width: unset;
  }
}

@media (min-width: 1024px) {
  .p-faq-related__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
