/* style.css 修正版（1/2） */
/* モバイルファースト設計 */
body {
  margin: 0 auto;
  font-family: 'Helvetica Neue', 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
  max-width: 650px;
}

header {
  text-align: center;
  padding: 0.5rem 0;
  background: #e8f5e9;
}
.logo {
  max-width: 100px;
  height: auto;
}
h1 {
  font-size: 1.5em;
}
.imgmax {
  width: 100%;
}
.hero {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #A5D6A7, #E8F5E9);
}
.hero h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.green {
  color: #2e7d32;
}
.lead {
  font-size: 1rem;
  margin-bottom: 2rem;
}
.btn-start {
  background: #4CAF50;
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  display: inline-block;
  transition: 0.2s;
}
.btn-start:hover {
  background: #388E3C;
}
.about, .types, .cta {
  padding: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.about h2, .types h2 {
  font-size: 1.4rem;
  color: #388E3C;
}
.types ul {
  list-style: none;
  padding: 0;
}
.types li {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  margin: 0.3rem 0;
  background: #f0f0f0;
  font-size: 0.9em;
}
.type.tamagoke        { background:#FFE082; }
.type.zenigoke        { background:#A5D6A7; }
.type.ikubigoke       { background:#FFAB91; }
.type.toukaikomousengoke { background:#F48FB1; }
.type.sugigoke        { background:#f0f0f0; }
.type.himejogogoke    { background:#81D4FA; }
.type.fudegoke        { background:#CE93D8; }
.type.mukumukugoke    { background:#BBDEFB; }

.cta {
  text-align: center;
}
.btn-start.large {
  font-size: 1.2rem;
  padding: 1.2rem 2.5rem;
}

/* フッター */
footer {
  text-align: center;
  font-size: 0.8rem;
  padding: 1rem;
  background: #e0f2f1;
  color: #555;
}
/* ========= 診断フロー専用スタイル ========= */

.q {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  padding: 2rem 1.5rem 2.4rem;
  margin: 1.2rem auto;
  text-align: center;
}

.q p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.6rem;
}

.radio-wrap {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.radio-btn {
  display: inline-block;
  position: relative;
}
.radio-btn span {
  display: inline-block;
  min-width: 90px;
  padding: .5rem 1.2rem .45rem;
  text-align: center;
  border: 2px solid #4caf50;
  border-radius: 9999px;
  color: #4caf50;
  font-weight: 600;
  transition: .15s;
}
.radio-btn input:checked + span {
  background: #4caf50;
  color: #fff;
}

.nav-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-back,
.btn-next,
.btn-submit {
  flex: 1 1 140px;
  padding: .8rem 0;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}

.btn-back {
  background: #e0e0e0;
  color: #333;
}
.btn-back:hover {
  background: #cacaca;
}
.btn-next {
  background: #4caf50;
  color: #fff;
}
.btn-next:hover:not(:disabled) {
  background: #43a047;
}
.btn-next:disabled {
  background: #dcdcdc;
  color: #888;
  cursor: not-allowed;
}
.btn-submit {
  background: #ff7043;
  color: #fff;
}
.btn-submit:hover {
  background: #f45a2b;
}

.progress-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  padding: .8rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

progress {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: #eee;
}
progress::-webkit-progress-value {
  background: #4caf50;
  border-radius: 3px;
}
#remain {
  font-size: .9rem;
  color: #555;
}

@media(min-width:768px) {
  .q {
    padding: 2rem 2.5rem 2.8rem;
  }
  .q p {
    font-size: 1.25rem;
  }
  .btn-back,
  .btn-next,
  .btn-submit {
    flex: 0 0 160px;
    font-size: 1.05rem;
  }
  #remain {
    font-size: 1rem;
  }
}
input[type="radio"] {
    display: none;
}

/* ======== 血液型ステップ専用の調整CSS ======== */

/* フォームボタンを中央寄せ */
.about form button.btn-start {
  display: block;
  margin: 2rem auto 1rem;
  font-size: 1rem;
  padding: .8rem 2rem;
  border-radius: 30px;
  background: #4caf50;
  color: #fff;
  border: none;
  font-weight: bold;
  transition: .2s;
}
.about form button.btn-start:hover {
  background: #388E3C;
}

/* ラジオボタンラップが狭い画面で折り返せるように */
.about .radio-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* ← これがなかった */
  gap: 1rem;
  margin: 1rem 0;
}

/* トグルボタンをフォームサイズに合わせて調整 */
.about .radio-btn span {
  min-width: 90px;
  padding: .6rem 1.4rem;
  border: 2px solid #4caf50;
  border-radius: 9999px;
  color: #4caf50;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  transition: .15s;
}
.about .radio-btn input:checked + span {
  background: #4caf50;
  color: #fff;
}
.center-img {
  display: block;
  margin: 1.5rem auto;
  max-width: 200px;
}
.btn-submit {
  background: #4caf50;
  color: #fff;
  flex: 1 1 140px;
  padding: .8rem 0;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}
.btn-submit:hover {
  background: #43a047;
}
/* ========= シェアボタン用スタイル ========= */
.share {
  text-align: center;
  padding: 2rem 1rem;
}
.share h2 {
  font-size: 1.2rem;
  color: #388E3C;
  margin-bottom: 1rem;
}
.share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.share-btn {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.share-btn:hover {
  opacity: 0.8;
}
.share-btn.twitter  { background: #1DA1F2; }
.share-btn.facebook { background: #3b5998; }
.share-btn.line     { background: #00C300; }



/* ───────────────────────────
   レイアウト
─────────────────────────── */
.result {
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding:00;
}

.hero__lead   { font-size: 1rem; }
.hero__catch  { font-size: 1.3rem; margin: .2rem 0; }
.hero__catch--red { color: #d80000; }
.hero__title  { font-size: 2.1rem; margin: 0 0 .8rem; line-height: 1.2; }
.hero__title--main { color: var(--brandDark); font-weight: 700; }
.hero__title--sub  { font-size: 1.3rem; margin-left: .3rem; }

.detail { margin-top: 1.5rem; }
.detail__text { margin-bottom: 1.2rem; }
.detail__figure { text-align: center; margin: 1rem 0; position: relative; }
.detail__img { width: 100%; }
.detail__balloon {
  position: absolute;
  top: .4rem; right: 7%;
  font-weight: 700; color: var(--brandDark);
}

.compat { list-style: none; padding: 0; margin: 1.2rem 0; }
.compat li { margin-bottom: .3rem; }
/* ─── アクションボタン再デザイン ─── */
.actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

.actions .btn {
  display: block;
  text-align: center;
  padding: 0.9rem 1.2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

/* メインアクション */
.btn--primary {
  background-color: #4CAF50;
  color: #fff;
}
.btn--primary:hover {
  background-color: #388E3C;
}

/* セカンダリアクション */
.btn--secondary {
  background-color: #fff;
  color: #4CAF50;
  border: 2px solid #4CAF50;
}
.btn--secondary:hover {
  background-color: #4CAF50;
  color: #fff;
}

/* 横並びに切り替え */
@media (min-width: 480px) {
  .actions {
    flex-direction: row;
  }
  .actions .btn {
    flex: 1;
  }
}


@media (min-width:480px) {
  .actions { flex-direction: row; }
  .actions__btn { flex: 1; }
}

.site-footer {
  padding: 1.5rem 0;
  background: #fafafa;
  text-align: center;
  border-top: 1px solid var(--border);
}
.site-footer img { width: 120px; }

/* ───────────────────────────
   デバイス幅が広いときの微調整
─────────────────────────── */
@media (min-width:768px) {
  :root { font-size: 17px; }
  .hero__title { font-size: 2.4rem; }
}