@charset "utf-8";
/* CSS Document */

<style>
/* --- 基本スタイリング --- */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}
.container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 960px;
}
.question h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}
.btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}
label {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: #eef2f3;
    border: 2px solid #dcdde1;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}
label:hover {
    background: #dcdde1;
}
/* --- 非表示レイアウト --- */
input[type="radio"] {
    display: none;
}
.question, .result-box {
    display: none; /* 初期状態はすべて非表示 */
    animation: fadeIn 0.4s ease forwards;
}
/* 最初から表示する要素 */
#q1-box {
    display: block;
}
/* --- ラジオボタン選択時のデザイン変更 --- */
input[id$="-yes"]:checked + label {
    background: #2ecc71;
    border-color: #27ae60;
    color: white;
}
input[id$="-no"]:checked + label {
    background: #e74c3c;
    border-color: #c0392b;
    color: white;
}
/* --- 条件分岐ロジック --- */
        
        /* Q1で「はい」なら ➔ Q2を表示 */
#q1-yes:checked ~ #q2-box {
    display: block;
}
/* Q1で「いいえ」なら ➔ 結果①を表示 */
#q1-no:checked ~ #result-1 {
    display: block;
}
/* Q1「はい」かつ Q2「はい」なら ➔ Q3を表示 */
#q1-yes:checked ~ #q2-yes:checked ~ #q3-box {
    display: block;
}
/* Q1「はい」かつ Q2「いいえ」なら ➔ 結果②を表示 */
#q1-yes:checked ~ #q2-no:checked ~ #result-2 {
    display: block;
}
/* Q1「はい」かつ Q2「はい」かつ Q3「メールソフト」なら ➔ 結果③を表示 */
#q1-yes:checked ~ #q2-yes:checked ~ #q3-soft:checked ~ #result-3 {
    display: block;
}
/* Q1「はい」かつ Q2「はい」かつ Q3「Webメール」なら ➔ 結果④を表示 */
#q1-yes:checked ~ #q2-yes:checked ~ #q3-web:checked ~ #result-4 {
    display: block;
}
/* Q1「はい」かつ Q2「はい」かつ Q3「メール転送」なら ➔ 結果⑤を表示 */
#q1-yes:checked ~ #q2-yes:checked ~ #q3-tensou:checked ~ #result-5 {
    display: block;
}
/* --- 結果の判定エリア --- */
.result-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: left;
}
#result-1 {
    background: #e3f2fd;
    border: 2px solid #bbdefb;
}
#result-2 {
 background: #e6f7dc;
    border: 2px solid #ACC0A1;
}
#result-3 {
    background: #fbe9e7;
    border: 2px solid #ffccbc;
}
#result-4 {
    background: #f4f4fb;
    border: 2px solid #b5a4c4;
}
#result-5 {
    background: #efebe9;
    border: 2px solid #d7ccc8;
}

        /* ふわっと表示させるアニメーション */
        @keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.wrapper {
  display: flex;
  gap: 20px;
}

.item {
  flex: 1;
}

img.font_sample{
  width: 80%;
}

@media (max-width: 768px) {
  img.font_sample{
    width: 100%;
  }
}

</style>