/* ========================================
   Q&A PAGE
======================================== */

.qa-page {
  position: relative;
  min-height: 100vh;

  padding-bottom: 100px;

  overflow: hidden;
}

/* ========================================
   青空背景
======================================== */

.qa-sky {
  position: fixed;

  inset: 0;

  z-index: -1;

  background-image: url("./img/bluesky.webp");

  background-size: cover;

  background-position: center;

  background-repeat: no-repeat;
}

/* ========================================
   タイトル
======================================== */

.qa-header {
  min-height: 65vh;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  text-align: center;

  margin-top: 60px;
  margin-bottom: 60px;
}

.qa-header-en {
  margin: 0 0 12px;

  font-family: "M PLUS 1p", sans-serif;

  font-size: 13px;

  letter-spacing: 0.25em;

  color: white;

  text-shadow: 0 2px 10px rgba(0, 70, 100, 0.2);
}

.qa-header h1 {
  margin: 0;

  font-family: "Shippori Mincho", serif;

  font-size: clamp(70px, 10vw, 130px);

  font-weight: 500;

  line-height: 1;

  color: white;

  text-shadow: 0 3px 15px rgba(0, 70, 100, 0.2);
}

.qa-header-text {
  margin: 30px 0 0;

  font-family: "Shippori Mincho", serif;

  font-size: 18px;

  line-height: 2;

  color: white;

  text-shadow: 0 2px 10px rgba(0, 70, 100, 0.2);
}

/* ========================================
   Q&A LIST
======================================== */

.qa-list {
  width: min(900px, calc(100% - 40px));

  margin: 0 auto;

  padding-bottom: 120px;
}

/* ========================================
   QUESTION CARD
======================================== */

.accordion {
  width: 100%;

  margin: 0 0 24px;

  background: rgba(255, 255, 255, 0.96);

  border-radius: 20px;

  overflow: hidden;

  box-shadow: 0 12px 35px rgba(30, 90, 120, 0.18);

  border: 1px solid rgba(255, 255, 255, 0.8);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* マウスを乗せたとき */

.accordion:hover {
  transform: translateY(-4px);

  box-shadow: 0 18px 45px rgba(30, 90, 120, 0.23);
}

/* ========================================
   QUESTION
======================================== */

.accordion-title {
  display: flex;

  align-items: center;

  min-height: 90px;

  padding: 20px 28px;

  cursor: pointer;

  list-style: none;

  font-family: "Shippori Mincho", serif;
}

/* Chromeなどのデフォルト三角 */

.accordion-title::-webkit-details-marker {
  display: none;
}

.accordion-title::marker {
  display: none;
}

/* ========================================
   NUMBER
======================================== */

.question-number {
  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  width: 48px;

  height: 48px;

  margin-right: 22px;

  border-radius: 50%;

  background: #00b6b6;

  color: white;

  font-family: "M PLUS 1p", sans-serif;

  font-size: 13px;

  letter-spacing: 0.05em;
}

/* ========================================
   QUESTION TEXT
======================================== */

.question-text {
  flex: 1;

  font-size: 19px;

  font-weight: 600;

  line-height: 1.6;

  color: #333;
}

/* ========================================
   PLUS / MINUS ICON
======================================== */

.accordion-icon {
  position: relative;

  flex-shrink: 0;

  width: 32px;

  height: 32px;

  margin-left: 20px;

  border-radius: 50%;

  background: #e5f7f7;
}

/* 横線 */

.accordion-icon::before {
  content: "";

  position: absolute;

  left: 50%;
  top: 50%;

  width: 14px;

  height: 2px;

  background: #00a6a6;

  transform: translate(-50%, -50%);
}

/* 縦線 */

.accordion-icon::after {
  content: "";

  position: absolute;

  left: 50%;
  top: 50%;

  width: 2px;

  height: 14px;

  background: #00a6a6;

  transform: translate(-50%, -50%);

  transition: transform 0.35s ease;
}

/* 開いたら＋→− */

.accordion[open] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* ========================================
   ANSWER
======================================== */

.accordion-content {
  display: grid;

  grid-template-rows: 0fr;

  transition: grid-template-rows 0.45s ease;
}

.accordion-answer {
  overflow: hidden;
}

/* 回答 */

.accordion-answer p {
  margin: 0;

  padding: 0 40px 0 98px;

  border-top: 1px solid rgba(0, 182, 182, 0.15);

  font-family: "M PLUS 1p", sans-serif;

  font-size: 15px;

  line-height: 2;

  color: #555;

  opacity: 0;

  transition:
    opacity 0.3s ease,
    padding 0.45s ease;
}

/* 開いた状態 */

.accordion[open] .accordion-content {
  grid-template-rows: 1fr;
}

.accordion[open] .accordion-answer p {
  padding-top: 25px;

  padding-bottom: 30px;

  opacity: 1;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {
  .qa-header {
    min-height: 60vh;

    padding: 80px 20px 60px;
  }

  .qa-header h1 {
    font-size: 72px;
  }

  .qa-header-text {
    font-size: 16px;
  }

  .qa-list {
    width: calc(100% - 24px);
  }

  .accordion {
    margin-bottom: 16px;

    border-radius: 15px;
  }

  .accordion-title {
    min-height: 75px;

    padding: 16px 18px;
  }

  .question-number {
    width: 38px;

    height: 38px;

    margin-right: 14px;

    font-size: 11px;
  }

  .question-text {
    font-size: 16px;
  }

  .accordion-icon {
    width: 28px;

    height: 28px;

    margin-left: 10px;
  }

  .accordion-answer p {
    padding-left: 70px;

    padding-right: 20px;

    font-size: 14px;

    line-height: 1.9;
  }

  .accordion[open] .accordion-answer p {
    padding-top: 20px;

    padding-bottom: 24px;
  }
}

.qa-body header {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RELATED LINK
======================================== */

.qa-related-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;

  margin-top: 5px;
  margin-left: 98px;
  margin-bottom: 30px;

  padding: 12px 22px;

  border: 1px solid #00b6b6;
  border-radius: 50px;

  background: white;

  color: #00a6a6;

  text-decoration: none;

  font-family: "M PLUS 1p", sans-serif;
  font-size: 14px;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

/* 矢印 */

.qa-related-arrow {
  font-size: 18px;

  transition: transform 0.3s ease;
}

/* ホバー */

.qa-related-link:hover {
  background: #00b6b6;
  color: white;

  transform: translateX(4px);
}

.qa-related-link:hover .qa-related-arrow {
  transform: translateX(5px);
}

@media (max-width: 600px) {
  .qa-related-link {
    margin-left: 70px;
    margin-bottom: 24px;

    padding: 10px 18px;

    font-size: 13px;
  }
}
