/* ============================================================
   ヤップアイランド よくある質問 (yap-island.jp/faq)
   現行 lp.yap-island.jp/faq (STUDIO) の完全トレース
   実測値: 背景 linear-gradient(#ebd9c2 91%, #94c1cd 100%)
           文字 #3c3c3c / Q・A・英字ラベル #713511 / 罫線 #dbcaba
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #3c3c3c;
  background: linear-gradient(#ebd9c2 91%, #94c1cd 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  padding: 40px 20px 80px;
}

/* ---- ページ見出し ---- */
.page-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 40px;
}

.page-head .en {
  font-family: "Roboto Mono", monospace;
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1.8px;
  line-height: 1.4;
  color: #713511;
}

.page-head h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.4;
  color: #3c3c3c;
}

/* ---- セクション ---- */
section + section { margin-top: 40px; }

.sec-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* 見出し左のアイコン枠。現行サイトは「基本機能」のみ画像が設定されており、
   他セクションは空のスペーサー（30px/40px）のまま公開されている（トレース通り） */
.sec-icon { flex: none; }
.sec-icon.s30 { width: 30px; height: 30px; }
.sec-icon.s40 { width: 40px; height: 40px; }
.sec-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sec-head h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 1.05px;
  line-height: 1.4;
  color: #3c3c3c;
}

/* ---- アコーディオン ---- */
.faq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px; /* 現行STUDIOは項目間に10pxのgapあり */
}

.faq-list > li {
  border-bottom: 1px solid #dbcaba;
  border-radius: 4px;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-q .tag {
  flex: none;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #713511;
}

.faq-q .txt {
  flex: 1 1 0%;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.75px;
  line-height: 1.4;
  color: #3c3c3c;
}

.faq-q .chev {
  flex: none;
  width: 24px;
  height: 24px;
  color: #333333;
  transition: transform 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

/* 閉じている時は下向き（開くと上向き） */
.has-accordion li.is-close .chev { transform: rotate(180deg); }

.faq-a {
  overflow: hidden;
  height: auto;
}

.has-accordion .faq-a {
  height: 0;
  transition: height 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  .faq-q .chev,
  .has-accordion .faq-a {
    transition: none;
  }
}

.faq-a-inner {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 24px;
}

.faq-a-inner .tag {
  flex: none;
  align-self: flex-start;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #713511;
}

.faq-a-inner .txt {
  flex: 1 1 0%;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.7px;
  line-height: 1.8;
  color: #3c3c3c;
}

/* ---- 回答文中のリンク ---- */
.faq-a-inner .txt a {
  color: #713511;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-a-inner .txt a:hover { color: #4f240b; }

/* ---- モバイル（STUDIOブレークポイント: 450px） ---- */
@media (max-width: 450px) {
  .sec-head { margin-bottom: 0; }
  .faq-q { padding: 24px 12px; }
  .faq-a-inner { padding: 24px 12px; }
}
