/* ==============================================================

共通設定

============================================================== */

body {
  background-color: #201d57;
}

.section,
section img {
  width: 750px;
  margin: 0 auto;
  display: block;
}

.center-absolute {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.relative {
  position: relative;
  display: block;
}

.absolute {
  position: absolute;
}

.yellow {
  color: #fbf90c;
}

.marker {
  background: linear-gradient(transparent 60%, #fff176 60%);

  /* #fff176 = 黄(薄め) */

  /* 文章が複数行に折り返しても下線のように途切れず塗られる */
  padding: 0 2px;
}

.section:last-of-type {
  padding-bottom: 10%;
}

#exHeader {
  width: 750px;
  margin: 0 auto;
}

/* ==============================================================

スクロールしたら画像が出てくる設定

============================================================== */

/* 最初は透明＆下に 40px ずらす */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].is-shown {
  /* 交差したら */
  opacity: 1;
  transform: translateY(0);

  /* 交差後 0.8s で transform をリセット  -------------------- */
  transform: none;

  /* translateY を解除して GPU レイヤーから戻す */
}

/* ==============================================================

CTA設定

============================================================== */

.wd-80-cta {
  width: 85%;
  left: 50%;

  /* ← 中央基準 */
  transform: translateX(-50%);
  position: absolute;

  /* 既に付いているはず */
}

/* ────── 質問エリア用 CTA を中央に配置 ────── */
.cta-under {
  /* ❶ ラッパー section */
  text-align: center;

  /* 中央寄せの基点 */
  margin: 40px 0 10px;

  /* タイトルと少し余白を取る */
}

.cta-under .cta-wrap {
  /* ❷ <a> を行内ブロック化して中央へ */
  display: inline-block;
}

.cta-under__canvas {
  /* ❸ 2つ目だけ absolute を外す */
  position: static !important;

  /* ← 既存の absolute を打ち消す */
  display: block;
  width: 85%;

  /* 1つ目と同じ見た目 */
  max-width: 750px;

  /* PC でもハミ出さない */
  margin: 0 auto;

  /* 左右 auto でド真ん中 */
  height: auto;

  /* アスペクト比維持 */
}

/* ==============================================================

CTAボタン心臓設定

============================================================== */

.pulse {
  animation: heartbeat 1.2s infinite;
  transform-origin: center;
  width: 81%;
  transform: translateX(-50%) scale(1.2);

  /* 両方をまとめて書く */
}

@keyframes heartbeat {
  0% {
    transform: translateX(-50%) scale(1);
  }

  30% {
    transform: translateX(-50%) scale(1.2);
  }

  60% {
    transform: translateX(-50%) scale(1);
  }

  100% {
    transform: translateX(-50%) scale(1);
  }
}

/* ==============================================================

占い師説明プルダウン設定

============================================================== */

/* ───────── アコーディオン ───────── */
.accordion {
  max-width: 750px;
  margin: 0 auto;
}

.accordion__text {
  font-family:
    "Hiragino Kaku Gothic ProN",
    /* macOS 新 ‐ 推奨 */
    "Hiragino Sans",
    /* iOS / macOS 共通 */
    "Yu Gothic",
    "YuGothic",
    /* Windows10/11 */
    "Noto Sans JP",
    /* Android & Web フォールバック */
    Arial,
    /* 非日英混在時の安全策 */
    sans-serif;
  color: #201d57;
  font-weight: bold;
  line-height: 1.8;
  background: #fff;

  /* 白箱 */
  padding: 20px 22px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.accordion__text:last-child {
  margin-bottom: 0;
}

.accordion__item + .accordion__item {
  /* ボタン間の余白 */
  margin-top: 20px;
}

/* ボタン本体 */
.accordion__button {
  position: relative;
  width: 100%;
  padding: 0;

  /* 画像をそのまま表示 */
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

/* ───────── ▼ 三角アイコン ───────── */
.accordion__icon {
  position: absolute;
  top: 50%;
  right: 12.5%;
  width: 26px;
  height: 26px;

  /* 大きさはお好みで */
  pointer-events: none;

  /* クリックを邪魔しない */

  /* ▼ 下向き三角を clip-path で描画 */
  background: #fff;

  /* ← 色を変えたい時はここ */
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transform: translateY(-50%) rotate(0deg);

  /* ▼ が初期状態 */
  transition: transform 0.3s ease;
}

/* 展開時に ▲（上向き）へ反転 */
.accordion__button[aria-expanded="true"] .accordion__icon {
  transform: translateY(-50%) rotate(180deg);
}

@media (max-width: 750px) {
  .accordion__icon {
    right: 15%;
    width: 15px;
    height: 15px;
  }
}

/* SP レスポンシブ */
@media (max-width: 750px) {
  .accordion__panel {
    font-size: 14px;
  }
}

.accordion__panel {
  padding: 18px 12px;
}

/* ==============================================================

マージン設定

============================================================== */

.wd-40 {
  width: 30%;
}

.wd-80 {
  width: 60%;
}

.mt-3 {
  margin-top: 3%;
}

.mt-5 {
  margin-top: 5%;
}

.mb-3 {
  margin-bottom: 5%;
}

.mb-5 {
  margin-bottom: 5%;
}

.mt-125 {
  margin-top: 130%;
}

/* ==============================================================

ofa設定

============================================================== */

.fade-in-image {
  opacity: 0;
  transform: scale(0.95);
  filter: blur(10px);
  transition: opacity 1.5s ease-out, transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), filter 1.5s ease-out;
}

/* 表示トリガーがかかると */
.fade-in-image.show {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* ==============================================================

ofa設定

============================================================== */

.qa-6 {
  max-width: 700px;
  margin: 0 auto 5px auto;
  border-bottom: 2px solid #d6dde3;
}

.qa-6 summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1em 2em 1em 3em;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.qa-6 summary::before,
.qa-6 p::before {
  position: absolute;
  left: 1em;
  font-weight: 600;
  font-size: 1.3em;
}

.qa-6 summary::before {
  color: #75bbff;
  content: "Q";
}

.qa-6 summary::after {
  transform: translateY(-25%) rotate(45deg);
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
  content: '';
  transition: transform 0.5s;
}

.qa-6[open] summary::after {
  transform: rotate(225deg);
}

.qa-6 p {
  position: relative;
  transform: translateY(-10px);
  opacity: 0;
  margin: 0;
  padding: 0.3em 3em 1.5em;
  color: #fff;
  transition: transform 0.5s, opacity 0.5s;
  line-height: 1.6;
}

.qa-6[open] p {
  transform: none;
  opacity: 1;
}

.qa-6 p::before {
  color: #ff8d8d;
  line-height: 1.2;
  content: "A";
}

/* ==============================================================

占い師紹介設定

============================================================== */

.teacher__imfo {
  background-color: #201d57;
}

/* ==============================================================

占い師タイトル設定

============================================================== */

.title {
  width: 80%;
}

.sab-title {
  width: 50%;
  padding-top: 3%;
  padding-bottom: 3%;
}

@media only screen and (max-width: 750px) {
  /* ==============================================================

  共通設定

  ============================================================== */

  .section,
  section img {
    width: 100%;
  }

  .introduction-text {
    font-size: 15px;
    width: 350px;
  }

  .form-container {
    height: 686px;
  }

  .note {
    margin-right: 27%;
  }

  .btn_canvas {
    width: 100%;
  }

  .wd-40 {
    width: 80%;
  }

  .section .mb-3,
  .mb-3 {
    margin-bottom: 5% !important;
  }

  .mt-3 {
    margin-top: 2%;
  }

  /* CTAセクション下の背景追加 */

  .section:last-of-type {
    padding-bottom: 30%;
  }

  #exHeader {
    width: 100%;
  }
}

/* ==============================================================

フッターメニュー

============================================================== */

footer {
  font-size: 13px;
  letter-spacing: 0.1rem;
  font-weight: 100;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #000b00;
}

li {
  float: left;
  width: 50%;
}

li:last-child {
  border-right: none;
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.copywriter {
  font-size: 10px;
  color: var(--white);
  background-color: #000b00;
  text-align: center;
  padding: 14px 16px;
}

a:link,
a:visited,
a:hover,
a:active {
  color: var(--white);
}

/* PC版 */
@media screen and (min-width: 450px) {
  main {
    background: #201d57;
  }
}

@media screen and (min-width: 750px) {
  footer {
    width: 750px;
    margin: 0 auto;
  }
}
