/* ==============================================
   diagnosis-style.css
   脳タイプ診断シリーズ共通スタイル
   ============================================== */

/* ベース */
body {
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  margin: 0;
  padding: 0;
  background: #fafafa;
  color: #333;
  line-height: 1.8;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1, h2, h3 {
  text-align: center;
  color: #007c88;
  margin-bottom: 15px;
}

p {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ----------------------------------------------
   ボタン
---------------------------------------------- */
.btn {
  display: inline-block;
  background: #00a6a6;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: 0.3s ease;
}
.btn:hover {
  background: #00b8b8;
  transform: translateY(-2px);
}

/* ----------------------------------------------
   診断カード（診断ポータル）
---------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card h2 {
  font-size: 1.3rem;
  color: #009999;
  margin: 15px 0 10px;
}

.service-card p {
  padding: 0 20px 20px;
  color: #444;
  font-size: 0.95rem;
}

/* ----------------------------------------------
   診断質問ページ（各診断ページ用）
---------------------------------------------- */
.diagnosis-page {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.question {
  margin-bottom: 25px;
  text-align: left;
}
.question p {
  font-weight: bold;
  color: #005b5b;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.options button {
  border: 1px solid #00a6a6;
  background: #e8ffff;
  color: #006666;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
}
.options button:hover {
  background: #d3ffff;
}

/* ----------------------------------------------
   診断結果表示（result-card.css と連携）
---------------------------------------------- */
#result {
  text-align: left;
  background: #fefefe;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-top: 40px;
}
.result-card {
  margin-bottom: 20px;
}
.result-card h3 {
  color: #008b8b;
  margin-bottom: 8px;
}
.result-card p {
  color: #333;
  font-size: 0.95rem;
}

/* ----------------------------------------------
   下部誘導セクション（CTA）
---------------------------------------------- */
.bottom-cta, .brain-education-link {
  background: #f0ffff;
  padding: 40px 20px;
  border-radius: 12px;
  margin-top: 60px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bottom-cta h3, .brain-education-link h3 {
  color: #007c88;
  margin-bottom: 15px;
}

.bottom-cta p, .brain-education-link p {
  color: #444;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* ----------------------------------------------
   スマホ対応
---------------------------------------------- */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }
  .btn {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
  }
  .service-card img {
    height: 150px;
  }
}