/* =========================
   基本設定
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    "Meiryo",
    sans-serif;

  background:
    linear-gradient(
      135deg,
      #f8f5ef 0%,
      #eef3ee 100%
    );

  color: #4f4a44;
}


/* =========================
   診断全体
========================= */

.diagnosis {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 40px 20px;
}


/* =========================
   スタート画面
========================= */

.start-screen {
  width: 100%;
  max-width: 560px;

  text-align: center;

  background-color: rgba(255, 255, 255, 0.9);

  padding: 56px 32px;

  border-radius: 28px;

  box-shadow:
    0 18px 45px rgba(80, 70, 60, 0.12);
}


/* 英字の小見出し */

.sub-title {
  margin: 0 0 16px;

  font-size: 13px;
  letter-spacing: 0.18em;

  color: #829783;
}


/* メインタイトル */

h1 {
  margin: 0;

  font-size: 34px;
  line-height: 1.5;

  font-weight: 600;

  color: #4f5f50;
}


/* 説明文 */

.description {
  margin: 28px 0 34px;

  font-size: 16px;
  line-height: 1.9;

  color: #706b65;
}


/* 診断開始ボタン */

#startButton {
  width: 100%;
  max-width: 320px;

  padding: 16px 24px;

  border: none;
  border-radius: 999px;

  background-color: #829783;

  color: #ffffff;

  font-size: 16px;
  font-weight: 600;

  letter-spacing: 0.05em;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}


/* ボタンにマウスを乗せたとき */

#startButton:hover {
  background-color: #6f856f;

  transform: translateY(-2px);

  box-shadow:
    0 10px 22px rgba(80, 100, 80, 0.18);
}


/* ボタンを押したとき */

#startButton:active {
  transform: translateY(0);
}


/* 注意書き */

.note {
  margin: 22px 0 0;

  font-size: 12px;

  color: #9a948d;
}


/* =========================
   スマートフォン表示
========================= */

@media (max-width: 600px) {

  .diagnosis {
    padding: 24px 16px;
  }

  .start-screen {
    padding: 44px 22px;

    border-radius: 22px;
  }

  h1 {
    font-size: 27px;
  }

  .description {
    font-size: 15px;
  }

  #startButton {
    font-size: 15px;
  }

}
/* =========================
   背景のやわらかな装飾
========================= */

/* =========================
   香り診断らしい装飾
========================= */

.diagnosis {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(166, 190, 164, 0.38) 0,
      rgba(166, 190, 164, 0.38) 120px,
      transparent 121px
    ),
    radial-gradient(
      circle at 88% 82%,
      rgba(231, 208, 175, 0.38) 0,
      rgba(231, 208, 175, 0.38) 150px,
      transparent 151px
    ),
    linear-gradient(
      135deg,
      #f8f5ef 0%,
      #eef4ee 100%
    );
}

.start-screen {
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(130, 151, 131, 0.22);

  background:
    radial-gradient(
      ellipse at top right,
      rgba(199, 217, 199, 0.35),
      transparent 42%
    ),
    radial-gradient(
      ellipse at bottom left,
      rgba(239, 220, 196, 0.3),
      transparent 40%
    ),
    rgba(255, 255, 255, 0.93);
}

/* 葉っぱ風の飾り */

.start-screen::before {
  content: "";
  position: absolute;

  width: 110px;
  height: 46px;

  top: 26px;
  left: -26px;

  background: rgba(142, 168, 143, 0.34);

  border-radius: 100% 0 100% 0;

  transform: rotate(-28deg);

  pointer-events: none;
}

.start-screen::after {
  content: "";
  position: absolute;

  width: 95px;
  height: 40px;

  bottom: 32px;
  right: -22px;

  background: rgba(193, 164, 126, 0.25);

  border-radius: 0 100% 0 100%;

  transform: rotate(-25deg);

  pointer-events: none;
}
/* =========================
   アロマボトルの装飾
========================= */

.aroma-visual {
  width: 150px;
  margin: 6px auto 18px;
}

.aroma-visual svg {
  display: block;
  width: 100%;
  height: auto;
}
/* =========================
   読みやすさ・質感の調整
========================= */

/* 説明文 */
.description {
  color: #6f6963;
}

/* 注意書き */
.note {
  color: #77716b;
}

/* ボタン */
#startButton {
  background-color: #637964;
}

/* ボタン hover */
#startButton:hover {
  background-color: #566d58;
}

/* カードの影 */
.start-screen {
  box-shadow:
    0 22px 55px rgba(91, 115, 92, 0.16);
}
/* タイトルのメリハリ */

h1 {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.title-small {
  font-size: 27px;
  font-weight: 500;
}

.title-main {
  font-size: 36px;
  font-weight: 600;
}

@media (max-width: 600px) {

  .title-small {
    font-size: 22px;
  }

  .title-main {
    font-size: 29px;
  }

}
/* =========================
   ラベンダーの装飾
========================= */

.lavender-decoration {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 90px;
  height: auto;

  opacity: 0.85;

  mix-blend-mode: multiply;

  transform: rotate(12deg);

  pointer-events: none;
}

@media (max-width: 600px) {

  .lavender-decoration {
    top: 12px;
    right: 10px;

    width: 64px;
  }

}
/* 今までの葉っぱ装飾を一度隠す */
.start-screen::before,
.start-screen::after {
  display: none;
}

/* 背景のラベンダー共通 */
.lavender-bg {
  position: absolute;
  width: 140px;
  height: auto;

  opacity: 0.3;

  pointer-events: none;
  z-index: 0;
}

/* 左側 */
.lavender-1 {
  left: 11%;
  top: 14%;

  width: 75px;
  opacity: 0.28;

  transform:
    translate(75px, 55px)
    rotate(10deg);
}

/* 右側 */
.lavender-2 {
  right: 5%;
  bottom: 8%;

  transform: rotate(12deg) scaleX(-1);
}
/* =========================
   質問画面
========================= */

.start-screen h2 {
  margin: 12px 0 34px;

  font-size: 28px;
  line-height: 1.65;
  font-weight: 500;

  color: #4f5f50;
}


/* 選択肢全体 */
.answer-list {
  display: flex;
  flex-direction: column;
  gap: 14px;

  width: 100%;
  max-width: 390px;

  margin: 0 auto;
}


/* 選択肢ボタン */
.answer-button {
  width: 100%;

  padding: 16px 20px;

  border: 1px solid #b9c8b7;
  border-radius: 14px;

  background-color: rgba(255, 255, 255, 0.82);

  color: #536253;

  font-size: 15px;
  line-height: 1.6;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


/* マウスを乗せたとき */
.answer-button:hover {
  background-color: #dfe8dc;
  border-color: #6f876f;

  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(88, 110, 88, 0.16);
}


/* キーボード操作でも分かるようにする */
.answer-button:focus-visible {
  outline: 3px solid rgba(99, 121, 100, 0.28);
  outline-offset: 3px;
}


/* スマートフォン */
@media (max-width: 600px) {

  .start-screen h2 {
    font-size: 23px;
    margin-bottom: 28px;
  }

  .answer-button {
    padding: 15px 16px;
    font-size: 14px;
  }

}
/* =========================
   結果画面
========================= */

.result-visual {
  width: 82px;
  height: 82px;

  margin: 10px auto 18px;

  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 34px;
}

.result-label {
  margin: 0 0 12px;

  font-size: 16px;
  line-height: 1.8;

  color: #6d6862;
}

.result-title {
  margin: 0 0 24px;

  font-size: 44px;
  line-height: 1.4;
  font-weight: 600;
}

.result-message {
  max-width: 520px;

  margin: 0 auto 32px;

  font-size: 16px;
  line-height: 2;

  color: #5f5a54;
}

#restartButton {
  padding: 14px 28px;

  border: none;
  border-radius: 999px;

  background-color: #637964;
  color: #ffffff;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

#restartButton:hover {
  background-color: #556c57;

  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(88, 110, 88, 0.16);
}

@media (max-width: 600px) {

  .result-visual {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }

  .result-title {
    font-size: 34px;
  }

  .result-message {
    font-size: 15px;
    line-height: 1.9;
  }

}
/* =========================
   スマホ用・背景装飾調整
========================= */

@media (max-width: 600px) {

  .diagnosis {
    background:
      radial-gradient(
        circle at 12% 12%,
        rgba(166, 190, 164, 0.30) 0,
        rgba(166, 190, 164, 0.30) 75px,
        transparent 76px
      ),
      radial-gradient(
        circle at 92% 88%,
        rgba(231, 208, 175, 0.30) 0,
        rgba(231, 208, 175, 0.30) 90px,
        transparent 91px
      ),
      linear-gradient(
        135deg,
        #f8f5ef 0%,
        #eef4ee 100%
      );
  }

  .lavender-bg {
    width: 55px;
    opacity: 0.22;
  }

}