@charset "UTF-8";
*, *::before, *::after
{
  box-sizing: border-box; /* パディングとボーダーを幅に含める */
}
/* スムーズスクロール（ページ内リンク用） */
html
{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* iOSの横向き時の文字サイズ自動変化を防止 */
}
/* --- 余白のリセット --- */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote
{
  margin: 0;
  padding: 0;
}
/* --- 要素ごとの使いやすさ向上 --- */
body
{
  min-height: 100vh;      /* 常に画面の高さ分を確保 */
  line-height: 1.7; 
  overflow-wrap: break-word; /* 長い英単語を折り返す */
  -webkit-font-smoothing: antialiased; /* 文字を綺麗に見せる */
}
html {
  background-color: #e1edf9;
}
.l-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%; 
  box-sizing: border-box;
}
.p-quiz-section {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  padding: 50px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
}
/* フロー全体の中央揃え */
.p-quiz-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  padding: 0;
}

/* 各ステップ（丸枠） */
.p-quiz-flow__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;  
  width: 40px;
  height: 40px;
  border-radius: 50%;
  
  background-color: #006ab8;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  line-height: 1.1;
  z-index: 1;
}
.p-quiz-flow__item:not(.is-active) {
  background-color: #9db4c6;
}
/* 数字の間の点線 */
.p-quiz-flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 40px;
  height: 0;  
  /* 点線のスタイル */
  border-top: 2px dotted #b7bcc2; 
  transform: translateY(-50%);
  z-index: -1;
}
.p-quiz-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 2em;
}
.p-quiz-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
    display: flex;
  flex-direction: column;
  gap: 15px;
}
/* 質問リストの各項目（ボタンの親） */
.p-quiz-list__item {
  width: 100%;
}
.p-quiz-list__button {
 ppearance: none;
  cursor: pointer;
  width: 100%; 
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #eff2f7;
  border: 2px solid #dadada;
  border-radius: 5px;   
  padding: 20px 25px;
  color: #333;
  font-size: 18px;
  line-height: 1.5;
  transition: all 0.2s ease;
}
/* ホバー時の装飾 */
.p-quiz-list__button:hover {
  background-color: #d4eaff;
  border-color: #0067b6; 
}
/* クローズボタンの親要素（右寄せにする） */
.p-quiz-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
/* ボタン本体 */
.p-quiz-close__button {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;  
  width: 44px;
  height: 44px;
  position: relative;
  transition: opacity 0.2s;
}
.p-quiz-close__button:hover {
  opacity: 0.7;
}
.p-quiz-nav {
  display: flex;
  gap: 15px;
  margin: 50px 30px 0;
}
/* ボタンの共通設定 */
.p-quiz-nav__btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 18px 10px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  transition: opacity 0.2s;
  text-align: center;
 overflow: hidden
}
.p-quiz-nav__btn:hover {
  opacity: 0.8;
}
/* 前へボタン */
.p-quiz-nav__btn--prev {
  background-color: #282828;
  color: #fff;
  position: relative;
  border-bottom: 2px solid #000;
  width: 40%;
}
.p-quiz-nav__btn--prev:hover {
  filter: brightness(1.2);
}
/* 矢印の「真ん中の線」 (左側) */
.p-quiz-nav__btn--prev::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 30px;       
  width: 15px;      
  height: 2px;      
  background-color: #fff;
  transform: translateY(-50%);
}
/* 矢印の「先端（くの字）」 (左向き) */
.p-quiz-nav__btn--prev::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 30px;       
  width: 8px;      
  height: 8px;      
  border-top: 2px solid #fff;  
  border-left: 2px solid #fff; 
  transform: translateY(-50%) rotate(-45deg);
}
/* 「×」印の作成 */
.p-quiz-close__button span,
.p-quiz-close__button span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
}
/* 2本の線を交差させる */
.p-quiz-close__button span {
  transform: translate(-50%, -50%) rotate(45deg);
}
.p-quiz-close__button span::after {
  transform: translate(-50%, -50%) rotate(-90deg); /* 45度に対して-90度で直角 */
}


/* =================================================
  タブレット・PC用スタイル (768px以上)
================================================= */
@media screen and (min-width: 768px) {
/* iPad 縦持ち以上のデバイス向け */
}

/* =================================================
  大型PC用スタイル (1025px または 1200px以上)
================================================= */
@media screen and (min-width: 1200px) {
/* デスクトップPC向け。max-width: 1200pxのコンテナなどを制御 */
}
