@charset "UTF-8";

/* =========================================================
   [ FAQ Page ] Base Layout
========================================================= */
.faq-section {
  width: 100%;
  padding: 110px 0 130px;
  display: flex;
  justify-content: center;
  background-color: #ffffff;
}

.faq-inner {
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* =========================================================
   [ FAQ Page ] Header
========================================================= */
.faq-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 50px;
}

.faq-title-en {
  color: #1F1F1F;
  font-family: 'Marcellus', serif;
  font-size: calc(56px * var(--en-title-scale)); /* 元 56px */
  font-weight: 400;
  margin: 0;
  line-height: 1;
}

.faq-title-ja {
  color: #737373;
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0;
}


/* =========================================================
   [ FAQ Page ] Category Tabs
   （PRODUCTSのタブ意匠を踏襲：伸びる黒線＋スマホ横スワイプ）
========================================================= */
.faq-tabs {
  list-style: none;
  padding: 0;
  margin: 0 0 60px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #BFBFBF;
}

.faq-tabs .tab-item a {
  display: block;
  padding: 14px 40px;
  color: #737373;
  font-family: 'Marcellus', serif;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.faq-tabs .tab-item a:hover {
  color: #1F1F1F;
}

.faq-tabs .tab-item a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #414141;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-tabs .tab-item.is-active a {
  color: #1F1F1F;
}
.faq-tabs .tab-item.is-active a::after,
.faq-tabs .tab-item a:hover::after {
  width: 100%;
}


/* =========================================================
   [ FAQ Page ] Tab Content 表示切り替え
========================================================= */
.faq-content {
  display: none;
  width: 100%;
}
.faq-content.is-active {
  display: block;
}

/* カテゴリに質問が無い場合の一言テキスト（INTERIOR等） */
.faq-empty-text {
  color: #737373;
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
  margin: 0;
  padding: 60px 0;
}


/* =========================================================
   [ FAQ Page ] Accordion
========================================================= */
.faq-accordion {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid #E5E5E5;
}
.faq-item:first-child {
  border-top: 1px solid #E5E5E5;
}

/* --- 質問（dt） --- */
.faq-q {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 10px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}
.faq-q:hover {
  background-color: #FAFAFA;
}

.q-icon {
  flex-shrink: 0;
  font-family: 'Marcellus', serif;
  font-size: 22px;
  color: #1F1F1F;
  line-height: 1;
}

.q-text {
  flex: 1;
  color: #1F1F1F;
  font-family: 'Zen Old Mincho', serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

/* 開閉アイコン（＋ / −） */
.toggle-icon {
  flex-shrink: 0;
  position: relative;
  width: 16px;
  height: 16px;
}
.toggle-icon::before,
.toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #1F1F1F;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toggle-icon::before {
  width: 16px;
  height: 1px;
  transform: translate(-50%, -50%);
}
.toggle-icon::after {
  width: 1px;
  height: 16px;
  transform: translate(-50%, -50%);
}
/* 開いている時は「−」にする（縦線を消す） */
.faq-q.is-open .toggle-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

/* --- 回答（dd） --- */
.faq-a {
  height: 0;
  overflow: hidden;
  transition: height 0.4s ease;
  margin: 0; /* dd のブラウザ既定 margin-inline-start:40px を打ち消す（左ズレの原因） */
}

.faq-a-inner {
  display: flex;
  gap: 20px;
  padding: 8px 10px 32px;
}

.a-icon {
  flex-shrink: 0;
  font-family: 'Marcellus', serif;
  font-size: 22px;
  color: #A9A9A9;
  line-height: 1;
}

.a-content {
  flex: 1;
  min-width: 0;
}
.a-content p {
  color: #555555;
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  margin: 0;
}
.a-content p + p {
  margin-top: 14px;
}

.faq-link {
  color: #1F1F1F;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s ease;
}
.faq-link:hover {
  opacity: 0.6;
}

.faq-caution {
  color: #999999 !important;
  font-size: 13px !important;
  margin-top: 12px !important;
}


/* =========================================================
   [ FAQ Page ] 回答内の埋め込み要素
========================================================= */
/* 動画グリッド */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.video-grid video {
  width: 100%;
  height: auto;
  display: block;
  background-color: #000;
}

/* 画像 */
.faq-image {
  margin-top: 18px;
}
.faq-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* テーブル（横スクロール対応） */
.table-scroll {
  margin-top: 18px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.faq-table {
  width: 100%;
  min-width: 480px; /* 狭い画面ではスクロールさせる */
  border-collapse: collapse;
  font-family: 'Zen Old Mincho', serif;
}
.faq-table th,
.faq-table td {
  border: 1px solid #D9D9D9;
  padding: 12px 14px;
  font-size: 14px;
  text-align: center;
  vertical-align: middle;
}
.faq-table thead th {
  background-color: #F2F2F2;
  color: #1F1F1F;
  font-weight: 500;
}
.faq-table tbody th {
  background-color: #F8F8F8;
  color: #1F1F1F;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.faq-table tbody td {
  color: #555555;
}


/* =========================================================
   [ スマホ対応 ] レスポンシブ調整
========================================================= */
@media (max-width: 768px) {
  .faq-section {
    padding: 80px 0 90px;
  }
  .faq-inner {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  /* ヘッダー */
  .faq-header {
    margin-bottom: 36px;
  }
  .faq-title-en {
    font-size: var(--page-title-size-sp); /* スマホのページタイトル＝フッター英字と同じ（元 40px） */
  }
  .faq-title-ja {
    font-size: 13px;
  }

/* タブのスマホ調整（Productsと同仕様） */
  .faq-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100vw; 
    margin-left: calc(50% - 50vw); 
    padding-left: 20px; 
    padding-right: 20px; 
    box-sizing: border-box;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch; 
    margin-bottom: 40px;
    touch-action: pan-x; /* ★これを追加（横スワイプ時の縦揺れ防止） */
  }
  .faq-tabs::-webkit-scrollbar {
    display: none;
  }
  .faq-tabs .tab-item a {
    padding: 12px 24px;
    font-size: 14px;
    white-space: nowrap;
  }

  /* 質問 */
  .faq-q {
    gap: 14px;
    padding: 22px 4px 22px 0;
  }
  .q-icon {
    font-size: 18px;
  }
  .q-text {
    font-size: 15px;
  }
  .toggle-icon {
    width: 14px;
    height: 14px;
  }
  .toggle-icon::before {
    width: 14px;
  }
  .toggle-icon::after {
    height: 14px;
  }

  /* 回答：スマホでは左余白とアイコン間隔を詰めて左に寄せる（Aアイコンは残す） */
  .faq-a-inner {
    gap: 8px;
    padding: 4px 4px 28px 0;
  }
  .a-icon {
    font-size: 18px;
  }
  .a-content p {
    font-size: 14px;
  }

  /* 動画は縦積み */
  .video-grid {
    grid-template-columns: 1fr;
  }
}
