/* =====================================
   基本設定
===================================== */

/* ルートフォントサイズを設定 */
html {
  font-size: 62.5%;
}

/* ボディの基本スタイル */
body {
  font-size: 1.6rem;
  margin: auto 0;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.75;
  background-color: var(--Brand-LightGray);
}

/* 全体のラッパー */
.wrapper {
  background-color: var(--Brand-LightGray);
}

/* 太字テキスト用クラス */
.bold {
  font-weight: 600;
}

/* =====================================
   コンポーネント
===================================== */

/* カラー */

:root {
  --Brand-Primary: #2e3a97;
  --Brand-Secondary: #b9bcd8;
  --Brand-Gray: #c5cdda;
  --Brand-DarkGray: #252934;
  --Brand-LightGray: #f8fafd;
  --Brand-Gradation: linear-gradient(90deg, #2e3a97 0%, #c746a9 100%);

  --Accent-Yellow: #ebb729;
  --Accent-LightYellow: #fef6cb;
  --Accent-Pink: #c746a9;
  --Accent-LightPink: #e6c0dd;

  --Text-Black: #070918;
  --Text-Gray: #63666b;
  --Text-LightGray: #c4c6cb;
  --Text-White: #fff;

  --Base-Black: #000000;
  --Base-LightGray: #f4f4f4;
  --Base-White: #fff;
  --Base-Alert: #f01e39;
}

/* テキスト */

.SP-heading-Large {
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 125%; /* 40px */
  letter-spacing: 0.32px;
}

.SP-heading-Regular {
  font-size: 28px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 42px */
  letter-spacing: 0.56px;
}

.SP-heading-Small {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 36px */
  letter-spacing: 0.48px;
}

.SP-Body-Regular {
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 200%; /* 40px */
  letter-spacing: 0.2px;
}

.SP-Body-Small {
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 175%; /* 28px */
}

.SP-Body-ExtraSmall {
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 150%; /* 24px */
}

/* テキストカラー */
.text-gray {
  color: var(--Text-Gray);
}

.text-black {
  color: var(--Text-Black);
}

.text-white {
  color: var(--Text-White);
}

.text-lightGray {
  color: var(--Text-LightGray);
}

.text-primary {
  color: var(--Brand-Primary);
}

.text-secondary {
  color: var(--Brand-Secondary);
}

.text-alert {
  color: var(--Base-Alert);
}

.text-gradation {
  color: var(--Brand-Gradation);
}

.text-yellow {
  color: var(--Accent-Yellow);
}

.text-pink {
  color: var(--Accent-Pink);
}

/* モーダル */
.modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--Text-White);
  padding: 40px 20px;
  border-radius: 8px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  gap: 40px;
  margin: 0 20px;
}

.modal-content p {
  text-align: left;
}

.modal-content h2 {
  margin-bottom: 20px;
}

.modal-content button {
  padding: 8px 16px;
  background-color: var(--Brand-Primary);
  color: var(--Text-White);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #3949ab;
}

/* アニメーション */

@keyframes bgcolor {
  0% {
    background-color: var(--Brand-Secondary);
    color: var(--Brand-Primary);
  }
  100% {
    background-color: var(--Base-Primary);
  }
}

/* =====================================
   共通スタイル
===================================== */

.header {
  display: flex; /* Flexコンテナを設定 */
  justify-content: center; /* 水平方向に中央揃え */
  align-items: center; /* 垂直方向に中央揃え */
  width: 100%;
  background: var(--Brand-Primary);
  padding: 40px 0;
  flex-direction: column;
  gap: 20px;
}

.logo {
  height: 32px;
}
/* 簡易フッター */
.footer {
  background-color: var(--Brand-DarkGray);
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  color: var(--Brand-LightGray);
  position: relative;
}

.footer p {
  margin: 0;
}

/* 標準フッター */
.standard-container {
  background-color: #23232e;
  color: #fff;
  padding: 80px 24px;
  font-family: "Arial", sans-serif;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 90%;
}

.footer-logo img {
  max-width: 162px;
}

.footer-logo p {
  margin: 0;
  font-size: 14px;
  color: var(--Brand-LightGray);
}

.footer-line {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #2e3a97 0%, #c746a9 100%);
  border: none;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
}

.footer-column {
  margin-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-column h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--Text-White);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 4px;
}

.standard-container h3 a {
  color: var(--Text-White);
  text-decoration: none;
  font-size: 14px;
}

.footer-column ul li a {
  color: var(--Brand-LightGray);
  text-decoration: none;
  font-size: 14px;
}

.footer-column ul li a:hover {
  color: var(--Text-White);
}

section {
  padding: 40px 24px;
  width: calc(100% - 48px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* 縦方向に並べる場合 */
  gap: 40px; /* コンテンツ間に24pxのスペースを設定 */
}

.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input::placeholder {
  color: var(--Text-Gray);
  font-size: 1.6rem;
  font-weight: 300;
  opacity: 0.5;
}

button {
  display: flex;
  width: 250px;
  height: 60px;
  padding: 10px 50px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  /* box-shadow: 0px 0px 32px 6px rgba(14, 16, 38, 0.24); */
  border: none;
  color: var(--Text-White);
  background: var(--Brand-Primary, #2e3a97);
  font-size: 16px;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  border-bottom: solid 2px #222d81;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 2px 2px rgba(0, 0, 0, 0.19);
}

button:hover {
  background-color: #3949ab;
  cursor: pointer;
}

.start-button {
  text-align: center;
}

.pointer :hover {
  cursor: pointer;
}

.header .SP-heading-Small {
  color: var(--Text-White);
}

.question-sample,
.question-sample-img {
  width: 100%;
}

input[type="button"]:hover {
  cursor: pointer;
}

input[type="button"]:active {
  animation: bgcolor 2s infinite;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

/* =====================================
   ニックネーム入力画面
===================================== */

.form_name {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form_name input {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  height: 60px;
  padding: 0px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  border-radius: 8px;
  border: 1px solid var(--Brand-Gray, #c5cdda);
  background: var(--Text-White, #fff);
  font-size: 1.6rem;
}

/* =====================================
   設問画面スタイル
===================================== */

.question_head {
  display: flex;
  align-items: center;
  justify-content: center;
}

.question_now {
  font-size: 3.2rem;
  color: var(--Text-White);
  margin: 0 8px 0 20px;
  font-weight: 500;
}

.question_max {
  color: var(--Brand-Gray);
  font-weight: 300;
}

.tag_category {
  color: var(--Text-Black);
  padding: 4px 8px;
  margin-right: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 3px;
}

.tag_biz {
  background-color: var(--Brand-Gray);
}

.tag_creative {
  background-color: var(--Accent-Yellow);
}

.tag_tech {
  background-color: var(--Accent-Pink);
  color: var(--Text-White);
}

.question_container {
  background: var(--Brand-LightGray);
}

/* 質問エリア */
.question_wrapper {
  background: var(--Base-White);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 15px;
  width: 100%;
  height: 200px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: left;
  box-sizing: border-box;
}

.question_title {
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.5;
  text-align: left;
}

.question_sample {
  font-size: 1.4rem;
  color: var(--Text-Gray);
  text-align: left;
  position: relative;
}

/* 選択肢エリア */
.select_wrapper {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.select_form {
  position: relative;
  width: 100%;
}

.button_group {
  display: flex;
  justify-content: center;
  gap: 8px; /* 数字ボタン間のスペース */
  margin-bottom: 20px;
  text-align: center;
}

.button_group input[type="button"] {
  border: none;
  outline: none;
  appearance: none;
  cursor: pointer;
  display: flex;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  margin: 5px;
  min-width: 16%;
  width: auto;
  height: 60px;
  font-weight: 600;
  font-size: 2.4rem;
  text-align: center;
  position: relative;
  padding: 0.25em 0.5em;
  text-decoration: none;
  color: var(--Text-White);
  background: var(--Brand-Primary);
  border-bottom: solid 2px #222d81;
  border-radius: 4px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 2px 2px rgba(0, 0, 0, 0.19);
  overflow: hidden; /* 波紋エフェクトをボタンの範囲内に制限 */
  transition: background-color 0.2s, transform 0.2s; /* 背景色と押し込みアニメーション */
}

.button_group input[type="button"]::before,
.button_group input[type="button"]::after {
  content: "";
  position: absolute;
  z-index: -10;
  width: 200%;
  height: 200%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: rgba(131, 140, 203, 0.6);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
  opacity: 0;
}

.button_group input[type="button"]:active::before,
.button_group input[type="button"]:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.button_group input[type="button"]:active {
  background-color: var(--Brand-Secondary); /* 押された際の色 */
  transform: scale(0.8); /* 押し込みエフェクト */
}

.button_group input[type="button"]:hover {
  background-color: #3949ab;
}

.button_none input[type="button"] {
  background: none;
  border: none;
  outline: none;
  appearance: none;
  padding: 8px 16px;
  border-radius: 5px;
  border: 1px solid var(--Text-Gray);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--Text-Black);
  background-color: var(--Base-White);
}

/* 選択項目の補足 */

.comment_container {
  background: var(--Base-White);
}

.comment_wrapper {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  padding: 0px 10px;
  gap: 8px;
}

.comment_item {
  text-align: left;
}

/* =====================================
   確認画面スタイル
===================================== */

.confirm_category {
  width: 150px;
  background-color: var(--Brand-Gray);
  color: var(--Text-Black);
  padding: 8px 16px;
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 20px;
}

/* 確認アイテム */
.confirm_item {
  display: flex;
  align-items: center;
  height: 50px;
  margin: 20px 8px;
}

.confirm_item::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 50px;
  background-color: var(--Brand-Primary);
  position: relative;
  left: -8px;
}

/* 質問と回答 */
.confirm_question {
  width: calc(100vw - 45px);
  padding: 8px;
  font-size: 1.4rem;
  line-height: 1.8;
}

.confirm_answer {
  width: 45px;
  height: 45px;
  text-align: center;
  background: var(--Base-White);
  border: 0.583px solid #000000;
  box-shadow: 0 2.333px 2.333px rgba(0, 0, 0, 0.25);
  border-radius: 2.917px;
  margin: 0 12px;
  font-size: 1.8rem;
  font-weight: 600;
  padding-left: 10px;
}

/* 固定フッター */
.fixed {
  position: fixed;
  bottom: 50px;
  left: calc((100% - 250px) / 2);
  z-index: 100;
}

/* ボタンの擬似要素 */

.select_menu {
  position: relative; /* ドロップダウンメニューの位置基準を指定 */
  display: inline-block; /* ドロップダウンが選択肢に合わせて表示されるように */
}

.display_number {
  font-size: 16px;
  width: 40px;
  height: 40px;
  font-weight: bold;
  margin-right: 10px;
  padding: 5px;
  background-color: var(--Base-White);
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.custom-dropdown {
  position: absolute;
  width: 300px; /* 横幅を300pxに設定 */
  background-color: white;
  border: 1px solid #ccc;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1000;
  top: 110%;
  right: 10px;
  visibility: hidden; /* 初期は非表示 */
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-dropdown li {
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  text-align: left; /* テキストを左寄せにする */
}

.custom-dropdown li:hover {
  background-color: var(--Brand-LightGray);
  cursor: pointer;
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

.show {
  visibility: visible;
  opacity: 1;
}

/* =====================================
   結果画面スタイル
===================================== */

.re-start-button button {
  background-color: var(--Text-White);
  color: var(--Brand-Primary);
  border: 1px solid #2e3a97;
}

/* メインビジュアル */
.result_kv_wrapper {
  background-color: var(--Brand-Primary);
  margin-top: -40px;
  padding-bottom: 160px;
}

.result_head_title {
  font-size: 2.4rem;
  font-weight: 500;
  text-align: center;
  padding: 48px 0 8px;
  color: var(--Base-White);
}

/* PdMレベル */
.result_title {
  text-align: center;
  color: var(--Brand-LightGray);
  background: var(--Brand-Gradation);
  padding: 12px 0px;
  font-weight: 500;
  font-size: 2.4rem;
  width: 100%;
  border-radius: 5px;
  box-sizing: border-box;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

/* 市場価値 */
.result_income {
  text-align: center;
  color: var(--Text-White);
  font-weight: 300;
  font-size: 1.8rem;
}

/* レーダーチャート */
.radar_chart {
  background: rgba(217, 217, 217, 0.1);
  border-radius: 5px;
}

/* スクロール表示 */
.scroll {
  text-align: center;
  font-weight: 600;
  font-size: 1.4rem;
  padding: 12px;
  margin-top: 140px;
  color: var(--Brand-Primary);
}

/* 装飾ライン */
.deco_line {
  text-align: center;
}

.deco_line img {
  width: 3px;
}

/* リストタイトル */
.list_title {
  text-align: center;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--Accent-Pink);
  padding: 12px;
}

/* 結果サブタイトル */
.result_sub_title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 200%; /* 40px */
  letter-spacing: 0.2px;
  margin: 28px 0 12px 16px;
}

.icon_strategy::before,
.icon_team::before,
.icon_analytics::before,
.icon_develop::before,
.icon_markting::before,
.icon_ux::before {
  display: inline-block;
  content: "";
  background-size: contain;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

.icon_strategy::before {
  background-image: url(../image/icon_strategy.png);
}

.icon_team::before {
  background-image: url(../image/icon_management.png);
}

.icon_analytics::before {
  background-image: url(../image/icon_analysis.png);
}

.icon_develop::before {
  background-image: url(../image/icon_develop.png);
}

.icon_markting::before {
  background-image: url(../image/icon_marketing.png);
}

.icon_ux::before {
  background-image: url(../image/icon_ux.png);
}

/* ボックスタイトル */
.box_title {
  width: 150px;
  height: 40px;
  border: 0.5px solid #afafaf;
  background: var(--Base-White);
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.4rem;
}

/* ボックス */
.box {
  width: calc((100vw - 150px - 48px) / 5);
  height: 40px;
  border: 0.5px solid #afafaf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--Base-White);
  font-size: 1.2rem;
  background-color: var(--Base-LightGray);
}

/* ボックスアイテム */
.box_item {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* シェアセクション */
.share_start {
  position: relative;
}

.share_wrapper {
  margin: 16px 24px;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  background: var(--Base-White);
  position: absolute;
  top: -110px;
  left: 0;
  right: 0;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.share_middle_wrapper {
  margin: 50px 24px;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  background: var(--Base-White);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.share_wrapper p,
.share_middle_wrapper p {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 16px 0;
}

.share_start .share_sub {
  padding: 0 0 16px 0;
  color: var(--Text-Gray);
  font-weight: 300;
}

.share {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 16px;
}

.twitter,
.facebook,
.line,
.copy-url {
  margin: 0 14px;
  cursor: pointer;
}

.twitter img,
.facebook img,
.line img,
.copy-url img {
  width: 48px;
}

/* チャートサンプル */
.chart_sample {
  text-align: center;
  margin: 16px 0;
}

.chart_sample img {
  width: 100%;
}

/* 使用方法タイトルとガイドタイトル */
.use_title,
.guide_title {
  font-weight: 600;
  font-size: 1.8rem;
  text-align: center;
  color: var(--Base-White);
  background: #2e3a97;
  padding: 24px 0;
  margin: 40px 0 20px;
}

/* 使用方法コンテンツタイトル */
.usecase_container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}
.use_content_title {
  font-weight: 500;
  font-size: 1.8rem;
  padding: 0 16px;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.use_content_title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 50px;
  background-color: var(--Brand-Primary);
  position: relative;
  left: -16px;
}

/* 使用方法テキスト */
.use_text {
  font-size: 1.6rem;
  padding: 16px;
  line-height: 1.8;
}

/* アドバイスセクション */
.advice {
  font-size: 1.6rem;
  line-height: 1.8;
  background: var(--Base-White);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 15px;
  padding: 24px 16px;
}

/* =====================================
   メディアクエリ（768px以上）
===================================== */

@media screen and (min-width: 768px) {
  body {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    font-size: 1.8rem;
  }

  .wrapper {
    width: 650px;
    margin: 0 auto;
  }

  section {
    padding: 40px 24px;
    width: calc(100% - 48px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* 縦方向に並べる場合 */
    gap: 60px; /* コンテンツ間に24pxのスペースを設定 */
  }

  /* トップ画面 */

  /* 設問画面 */
  .question_title {
    font-size: 2rem;
    padding: 0 30px;
  }

  .question_sample {
    font-size: 1.6rem;
    padding: 0 30px;
  }

  /* 結果画面 */
  .box_title {
    width: 260px;
    height: 60px;
    font-size: 1.6rem;
    padding: 0 20px;
  }

  .box {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  .result_head_title {
    font-size: 2.8rem;
  }

  .result_title {
    font-size: 2rem;
  }

  .result_sub_title {
    font-size: 1.8rem;
  }

  .container {
    align-items: center;
  }

  .question-sample,
  .question-sample-img {
    width: 60%;
  }

  /* チャートサンプル */
  .chart_sample {
    text-align: center;
    margin: 20px 0;
  }

  .chart_sample img {
    width: 70%;
  }

  .twitter,
  .facebook,
  .line,
  .copy-url {
    margin: 0 24px;
    cursor: pointer;
  }

  /* 標準フッター */
  .standard-container {
    padding: 80px 60px;
  }

  .footer-container {
    gap: 60px;
  }

  .footer-logo {
    gap: 40px;
  }

  .footer-logo img {
    max-width: 250px;
  }

  .footer-logo p {
    font-size: 16px;
  }

  .footer-links {
    gap: 32px;
  }

  .footer-column {
    gap: 20px;
  }

  .footer-column h3 {
    font-size: 16px;
  }

  .footer-column ul li {
    margin-bottom: 8px;
  }

  .standard-container h3 a {
    font-size: 16px;
  }

  .footer-column ul li a {
    font-size: 16px;
  }

  .confirm_question {
    font-size: 1.6rem;
    line-height: 1.6;
  }
}
