/* =======================
   ご利用の流れ page
   ======================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
  color: #145087;
}

/* 背景より前に出す */
.page-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* 共通レイアウト */
.main {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* -----------------------
   SECTION 共通
   ----------------------- */

.section {
  margin-top: 40px;
}

.section__inner {
  max-width: 480px;
  margin: 0 auto;
}

.section-title {
  font-size: 18px;
  letter-spacing: 0.25em;
  color: #145087;
  margin: 0 0 16px;
}

.section-title--center {
  text-align: center;
}

/* -----------------------
   ご利用の流れ
   ----------------------- */

.section-flow {
  margin-top: 24px;
}

/* 見出しカード */
.flow-heading {
  background: #ffffffee;
  border-radius: 18px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(13, 71, 125, 0.08);
  border: 1px solid #e2f1ff;
  margin-bottom: 24px;
}

.flow-heading__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: #145087;
}

/* ステップリスト */
.flow-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.flow-step {
  display: block;
}

/* ステップ頭（番号＋タイトル） */
.flow-step__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.flow-step__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffc94a;
  color: #ffffff;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.flow-step__title {
  font-size: 14px;
  font-weight: bold;
  color: #145087;
}

/* 本文＋画像を包むカード */
.flow-step__body {
  background: #ffffffee;
  border-radius: 18px;
  padding: 12px 12px 14px;
}

/* 説明テキスト部分 */
.flow-step__text {
  font-size: 12px;
  line-height: 1.8;
  color: #34536f;
}

.flow-step__text p {
  margin: 0 0 8px;
}

.flow-step__note {
  font-size: 11px;
  color: #6a7c93;
}

/* 画像エリア（グレーの枠） */
.flow-step__media {
  margin-top: 10px;
  width: 100%;
  border-radius: 16px;
  background: #dcdcdc;
  height: 180px;   /* 画像の縦サイズ目安 */
  position: relative;
  overflow: hidden;
}

/* 実際に画像を入れる場合用 */
.flow-step__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ボタン共通 */
.flow-step__button {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: #1c63d2;
  color: #ffffff;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.12em;
}

/* 画像の下中央にボタンを配置 */
.flow-step__button--on-image {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
}

/* URLリンク（画像の下） */
.flow-step__links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.flow-step__links a {
  font-size: 12px;
  color: #1c63d2;
  text-decoration: none;
  position: relative;
  padding-right: 14px;
}

.flow-step__links a::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 0;
}


/* -----------------------
   FAQ
   ----------------------- */

.section-faq {
  margin-top: 48px;
}

/* FAQリスト */
.faq-list {
  display: grid;
  gap: 12px;
}

/* details 全体 */
.faq-item {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(13, 71, 125, 0.08);
  overflow: hidden;
}

/* summary 行 */
.faq-item__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

/* Q マーク */
.faq-item__qmark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #1c63d2;
  color: #1c63d2;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 質問テキスト */
.faq-item__question {
  font-size: 12px;
  color: #145087;
  flex: 1;
}

/* プラス／マイナス */
.faq-item__toggle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #f5d45d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #f5d45d;
  flex-shrink: 0;
}

.faq-item__toggle::before {
  content: "+";
}

/* 開いているときはマイナス表示 */
.faq-item[open] .faq-item__toggle::before {
  content: "−";
}

/* 回答エリア */
.faq-item__content {
  border-top: 1px solid #f2f3f7;
  padding: 8px 14px 12px;
  background: #fffcf4;
}

.faq-item__answer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-item__amark {
  font-size: 12px;
  color: #f5a400;
  font-weight: 600;
  margin-top: 2px;
}

.faq-item__answer-text {
  font-size: 12px;
  color: #555f6d;
  line-height: 1.8;
}

.faq-item__answer-text p {
  margin: 0 0 6px;
}

.faq-item__answer-text ul {
  margin: 0 0 6px 1.2em;
  padding: 0;
  font-size: 12px;
}

.faq-item__link a {
  font-size: 12px;
  color: #1c63d2;
  text-decoration: none;
}

/* -----------------------
   小さめ端末用
   ----------------------- */

@media (max-width: 360px) {
  .flow-step__body {
    padding: 12px 10px 14px;
  }
  .flow-step__title {
  font-size: 13px;
  font-weight: bold;
  color: #145087;
}
}

/* -----------------------
   PC向けレイアウト
   ----------------------- */

@media (min-width: 768px) {

  .main,
  .section__inner {
    max-width: 960px;
  }

  .section {
    margin-top: 56px;
  }

  .section-flow {
    margin-top: 40px;
  }

  /* PCではステップを少し横に広げて読みやすく */
  .flow-step-list {
    gap: 24px;
  }

  .flow-heading {
    margin-bottom: 28px;
  }

  .section-faq {
    margin-top: 64px;
  }

  .faq-list {
    gap: 14px;
  }

.flow-step__media {
  margin-top: 10px;
  width: 60%;
  border-radius: 16px;
  background: #dcdcdc;
  height: 280px;   /* 画像の縦サイズ目安 */
  position: relative;
  overflow: hidden;
}
}
