@charset "UTF-8";

body {
  min-height: auto !important;
}

/*
  スクリーン管理
================================================ */
.screen {
  display: none;
  max-width: 780px;
  margin: 40px auto;
  font-feature-settings: "palt";
  letter-spacing: 0.05em;
  -webkit-animation: fadeIn 0.5s ease-in-out;
          animation: fadeIn 0.5s ease-in-out;
}
.screen.active {
  display: block;
}

@-webkit-keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/*
  ボタンスタイル
================================================ */
.btn-start {
  display: block;
  margin: 0 auto;
  padding: 0.55em 2em 0.5em;
  font-size: 2.2rem;
  font-weight: 600;
  border-radius: 25px;
  color: white;
  background: #B9647B;
}
button[class^="btn"] {
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.btn-next,
.btn-previous,
.restart-btn {
  padding: .8em 2em .7em;
  border-radius: 21px;
}
.btn-next {
  margin-left: auto;
  color: white;
  background: #B9647B;
}
.btn-start:hover,
.btn-next:hover {
  box-shadow: 0 4px 16px rgba(185, 100, 123, 0.6);
}
.btn-next:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-previous {
  color: #B9647B;
  border: 1px solid #B9647B;
}
.btn-previous:hover {
  color: white;
  background: #B9647B;
}
.restart-btn {
  display: block;
  margin: 60px auto 0;
  color: #595757;
  border: 1px solid #595757;
}
.restart-btn:hover {
  color: white;
  background: #595757;
}

/*
  開始画面
================================================ */
.hero-section {
  padding: 0 0 3em;
  background: white;
  box-shadow: 0 10px 40px rgba(89, 87, 87, 0.1);
}
.about {
  margin: 3em auto 2em;
  padding: 2em 1em;
  width: 80%;
  text-align: center;
  background: #F5F1F1;
  border-radius: 20px;
  box-sizing: border-box;
}
.about_title {
  display: flex;
  flex-direction: column;
  gap: .25em;
  margin-bottom: .5em;
  font-size: 2rem;
  font-weight: 700;
  color: #8e888f;
  line-height: 1.3;
}
.about_title strong {
  font-size: 3rem;
  color: #B9647B;
}
.about_description {
  margin-bottom: 1em;
  line-height: 2;
}
.about_note {
  margin: 0 auto;
  width: 80%;
  text-align: left;
}
.about_note li {
  margin-left: 2em;
  text-indent: -2em;
  line-height: 1.7;
  font-size: 1.3rem;
}

/*
  診断画面
================================================ */
.quiz-container {
  padding: 3em;
  background: white;
  box-shadow: 0 10px 40px rgba(89, 87, 87, 0.1);
}
.progress-bar {
  margin-bottom: 2em;
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #B9647B;
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}
.question-title {
  margin-bottom: 1.5em;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
}
.question-options {
  margin-bottom: 2em;
}
.option {
  display: block;
  width: 100%;
  padding: 1.5rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}
.option + .option {
  margin-top: 1em;
}
.option:hover {
  background: #fce4ec;
  border-color: #B9647B;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(185, 100, 123, 0.2);
}
.option.selected {
  background: #B9647B;
  color: white;
  border-color: #B9647B;
  box-shadow: 0 4px 15px rgba(185, 100, 123, 0.4);
}
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
}

/*
  結果画面
================================================ */
.result-container {
  margin: 0 auto;
  padding: 3em;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.result-title {
  margin-bottom: 1em;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}
.result-summary {
  margin-bottom: 2em;
  padding: 1em;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.result-summary .lead {
  margin-bottom: .5em;
}
.result-summary h3 {
  color: #B9647B;
  font-size: 2rem;
  font-weight: 600;
}
.recommended-products h3,
.also-recommended-products h3 {
  margin-bottom: 1.5em;
  font-weight: 600;
  text-align: center;
}
.product-card .outline_copy {
  display: block;
  margin: 10px 0;
  font-weight: bold;
  font-size: 1.4rem;
  line-height: 1.5;
  letter-spacing: 0.1rem;
}
.result-container .list_item.pc_3rows {
  gap: 30px 2%;
}

/*
  こちらもオススメエリア
================================================ */
.also-recommended-products {
  margin-top: 60px;
}

/*
  Angellirでのお買い物を楽しむポイント
================================================ */
.point {
  margin: 60px auto 0;
}
.point-title {
  margin-bottom: 1em;
  text-align: center;
}
.point-title .en {
  display: inline-block;
  margin-bottom: .5em;
  color: #B9647B;
  font-size: 2rem;
  font-weight: 600;
}
.point-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px 2%;
}
.point-item {
  width: 32%;
}


/*
  続きを読む
================================================ */
/* コンポーネントのベース */
.readmore {
  --collapsed-height: 6em;;   /* 折りたたみ時の高さ（好みで調整） */
  --duration: 260ms;          /* アニメーション時間 */
}

.readmore__content {
  overflow: hidden;
  max-height: var(--collapsed-height);
  transition: max-height var(--duration) ease;
  position: relative;
}

/* 下端をふわっと隠すグラデーション（折りたたみ時だけ） */
.readmore__content::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3rem;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(245, 245, 241, 0), rgb(245 241 241));
}

/* 展開時のスタイル */
.readmore.is-open .readmore__content {
  max-height: 1000vh; /* 十分大きければOK（JSで高さ計測しない簡易版） */
}
.readmore.is-open .readmore__content::after {
  display: none;
}

/* ボタン */
.readmore__button {
  margin-top: 2em;
  font-size: 3.733vw;
}
.readmore__button:focus-visible {
  outline: 3px solid #67aaf9;
  outline-offset: 2px;
}

/* ボタン内のテキストは状態で出し分け */
.readmore__label--more::after,
.readmore__label--less::after {
  content: "";
  display: inline-block;
  width: .5em;
  height: .5em;
  margin-left: .5em;
}
.readmore__label--more::after {
  border-left: 1px solid transparent;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
  border-top: 1px solid transparent;
  transform: translateY(-3px) rotate(45deg);
}
.readmore__label--less {
  display: none;
}
.readmore__label--less::after {
  border-left: 1px solid #333;
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-top: 1px solid #333;
  transform: translateY(2px) rotate(45deg);
}

.readmore.is-open .readmore__label--more { display: none; }
.readmore.is-open .readmore__label--less { display: inline; }

/* 動きが苦手な人向け（OS設定に追随） */
@media (prefers-reduced-motion: reduce) {
  .readmore__content { transition: none; }
}

@media (max-width: 768px) {
  /* スクリーン管理 */
  .screen {
    margin-top: 10vw;
  }

  .hero-section {
    padding: 0 0 2em;
  }
  .about {
    margin: 2em auto;
    padding: 1.5em 1em;
    width: 90%;
    border-radius: 2.667vw;
  }
  .about_title {
    font-size: 4.267vw;
  }
  .about_title strong {
    font-size: 5.867vw;
  }
  .about_description {
    text-align: left;
    font-size: 3.733vw;
    line-height: 1.7;
  }
  .about_note {
    width: auto;
  }
  .about_note li {
    font-size: 3.2vw;
  }
  .btn-start {
    font-size: 4.8vw;
  }
  .question-title {
    font-size: 4.8vw;
  }
  .option {
    font-size: 4.267vw;
    border-radius: 6.667vw;
  }
  .btn-next,
  .btn-previous,
  .restart-btn {
    font-size: 4.267vw;
    border-radius: 5.333vw;
  }
  .restart-btn {
    margin: 10.667vw auto 0;
  }
  .quiz-container,
  .result-container {
    padding: 1.5em 1em 2em;
    border-radius: 2.667vw;
  }
  .result-summary .lead {
    font-size: 4vw;
  }
  .result-summary h3 {
    font-size: 4.8vw;
  }
  .result-title {
    font-size: 4.8vw;
  }
  .recommended-products h3,
  .also-recommended-products h3 {
    margin-bottom: 1em;
    font-size: 4.267vw;
  }
  .result-container .list_item.pc_3rows {
    gap: 6vw 3%;
  }

  /* こちらもオススメエリア */
  .also-recommended-products {
    margin-top: 10.667vw;
  }

  /* Angellirでのお買い物を楽しむポイント */
  .point {
    margin: 10.667vw auto 0;
  }
  .point-title .en {
    font-size: 4.8vw;
  }
  .point-title .ja {
    font-size: 4vw;
  }
  .point-list {
    gap: 3vw 3%;
  }
  .point-item {
    width: 48.5%;
  }
}