@charset "UTF-8";

/* =========================================================
   こころ物流 - faq.css（よくある質問）
   ========================================================= */

/* ---------- カテゴリナビ ---------- */
.faq-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 64px;
}

.faq-nav a {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  transition: border-color .25s, color .25s, translate .2s var(--ease-pop);
}

.faq-nav a:hover { border-color: var(--pink); color: var(--pink); translate: 0 -3px; }

/* ---------- グループ ---------- */
.faq-group { max-width: 900px; margin: 0 auto 64px; scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group:last-child { margin-bottom: 0; }
.faq-group .band { margin-bottom: 24px; }

/* ---------- アコーディオン ---------- */
.faq-list { display: grid; gap: 14px; }

.faq-item {
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--white);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}

.faq-item.is-open { border-color: var(--pink); box-shadow: var(--shadow-pop); }

.faq-item__q {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 62px 22px 22px;
  text-align: left;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.6;
}

.faq-item__q span { position: relative; padding-left: 38px; display: block; }

.faq-item__q span::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
}

/* 開閉アイコン */
.faq-item__q i {
  position: absolute;
  right: 22px;
  top: 50%;
  translate: 0 -50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sky-tint);
  flex-shrink: 0;
}

.faq-item__q i::before,
.faq-item__q i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--sky-dark);
  translate: -50% -50%;
  transition: rotate .3s var(--ease-pop), opacity .3s;
}

.faq-item__q i::after { rotate: 90deg; }
.faq-item.is-open .faq-item__q i::after { rotate: 0deg; opacity: 0; }

.faq-item__q:hover { color: var(--pink); }

.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }

.faq-item__a > p {
  overflow: hidden;
  position: relative;
  margin: 0 22px;
  padding-left: 38px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.faq-item.is-open .faq-item__a > p {
  padding-bottom: 24px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}

.faq-item__a > p::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 20px;
  width: 28px;
  height: 28px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .3s .1s;
}

.faq-item.is-open .faq-item__a > p::before { opacity: 1; }

@media (max-width: 599px) {
  .faq-item__q { font-size: 15px; padding: 18px 54px 18px 16px; }
  .faq-item__q i { right: 14px; }
  .faq-item__a > p { margin: 0 16px; }
}
