 @charset "utf-8";

/* =======================================
   ベース
======================================= */

body {
  font-family: "Noto Sans JP", "M PLUS Rounded 1c", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #35524a;
  margin: 0;
}

.wrapper {
  max-width: 900px;
  margin: 32px auto;
  background: #f4fbf9; /* ミント系の淡い背景 */
  border-radius: 24px;
  padding: 32px 0px 40px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

/* =======================================
   見出し・テキスト
======================================= */

h1,
h2,
h3,
p {
  margin: 0;
  text-align: center;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2b4740;
  margin-bottom: 8px;
}

h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #5a7f74;
  margin-bottom: 20px;
  background-color: #f4fbf9;
}
.article h2, .article h3, .article h4, .article h5, .article h6 {
    background: #f4fbf9 !important;
  }
.article h1{
  display: none;
}


h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2b4740;
  margin-bottom: 10px;
}

p {
  font-size: 1em;
  line-height: 1.7;
  color: #49675f;
}

/* 質問番号など */
.question-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: #7ea49a;
  margin-top: 8px;
}

.question-text {
  font-size: 1.5rem;
  font-weight: 600;
  color:  #5a7f74; 
  margin-top: 12px;
}
.FV {
  display: block;
  width: 100%;
  height: auto;
}

/* =======================================
   選択肢
======================================= */

.choice-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.choice-item {
  margin: 12px;
}
/* ---- 選択肢カード（丸を完全に消す） ---- */
.choice-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 18px;
    border-radius: 50px;
    border: 2px solid #5a7f74;
    background: #FBDFDE;
    cursor: pointer;
    transition: 0.28s 
ease;
    font-size: 1rem;
    font-weight: 500;
    color: #35524A; 
    box-sizing: border-box;
}

/* 選択後の視覚表現（背景色＋ボーダー＋影） */
.choice-label.selected {
   background-color: #fa7e84;  
  border: 2px solid #51c4a9;
  box-shadow: 0 0 0 6px rgba(81,196,169,0.18);
  color: #fff;
}

/* 丸アイコンを完全に消す */
.choice-label::before,
.choice-label.selected::before {
  content: none !important;
}

/* ラジオ本体は完全不可視（安全版） */
input[type="radio"] {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}


/* =======================================
   ボタン
======================================= */

.btn-row {
  text-align: center;
  font-size: large;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background: linear-gradient(135deg, #9ef1da, #51c4a9);
  color: #ffffff;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.btn-secondary {
  background: #e5f3ef;
  color: #476960;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  opacity: 0.98;
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

/* 「診断開始に戻る」などの単体ボタン */
.result-btn-row,
.btn-bottom {
  margin-top: 28px;
  text-align: center;
}

/* aタグにも .btn を付けて使えるように */
a.btn {
  display: inline-block;
}


/* =======================================
   結果タイプ表示
======================================= */

.result-types {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-type {
  border-radius: 18px;
  background: #f6fbf9;
  padding: 16px 18px 18px;
  text-align: left;
  border: 1px solid #d7eee6;
}
.result-type img {
  display: block;
  max-width: 50%;
  height: auto;
  margin: 12px auto 16px; /* 中央に配置 */
  border-radius: 12px; /* やさしく角丸にする（任意） */
}

.share-btn-wrap {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 8px;
}

.btn-share {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: #000000; /* X のブランドに合わせて黒 */
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: 0.2s ease;
}

.btn-share:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* 結果ページ CTAボタン（ミントの丸ボタン） */
.result-type .btn-cta {
  display: block;
  max-width: 260px;
  margin: 10px auto 0;        /* 中央寄せ */
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9ef1da, #51c4a9);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transition: 0.2s ease;
}

.result-type .btn-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.result-type .btn-cta:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}


/* =======================================
   レスポンシブ
======================================= */
@media (min-width: 641px){
  .pc-none{
    display:none;
  }
}

@media (max-width: 640px) {
  .wrapper {
    margin: 16px;
    padding: 24px 18px 28px;
    border-radius: 20px;
  }

  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }

  .question-text {
    font-size: 1rem;
  }

  .btn-row {
    flex-direction: column-reverse;
  }

  .score-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .score-label,
  .score-text {
    width: auto;
  }

  .score-text {
    align-self: flex-end;
    margin-top: 4px;
  }
}
