@charset "UTF-8";

/* 共通部分 */
html {
    font-size: 100%;
}
body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", sans-serif;
    line-height: 1.7;
    color: #432;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
}

/* 共通のフォームスタイル */
.intro {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.intro h2,
.intro h3 {
    color: #333;
    text-align: center;
}

.intro p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin: 10px 0;
    text-align: left;
}

/* 新しく追加：注意点リスト用スタイル */
.bullet-list {
    list-style-type: disc;
    color: #555;
    margin: 20px auto;
    padding-left: 1.5em;
    line-height: 1.8;
    font-size: 1rem;
    text-align: left;
    max-width: 600px;
}
.bullet-list li {
    margin-bottom: 8px;
}

/* レイアウト */
.wrapper {
    max-width: 1520px;
    margin: auto;
    padding: 1.5rem;
}
.align-left {
    text-align: left;
}
.align-center {
    text-align: center;
}

/* 見出し */
.page-title,
.heading-large,
.heading-medium {
    font-size: 2rem;
    text-align: center;
}
.page-title {
    margin-top: 2rem;
    line-height: 1.4;
    color: #333;
}
.heading-large {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}
.align-center {
    text-align: center;
    padding: 1rem 0.5rem;
}

/* ボタン */
button {
    display: inline-block;
    font-size: 1rem;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
button:hover {
    background-color: #0056b3;
}

/* フォーム */
.question {
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.question-number {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: block;
}
form {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}
form input[type="radio"] {
    margin-right: 10px;
}
form input[type="radio"] + label {
    margin-right: 20px;
    color: #333;
    cursor: pointer;
    display: inline-block;
}
form button {
    display: block;
    margin: 20px auto 0;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
form button:hover {
    background-color: #0056b3;
}

/* 説明文のスタイル */
.description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

/* リンクのスタイル */
.link-accent {
    color: #005bbb;
    text-decoration: underline;
  }
  
  .link-accent:hover {
    color: #003f7f;         /* ホバー時に少し濃くする */
  }


/* 年齢・教育年数の入力欄 */
input#age,
input#education_years {
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input#age:focus,
input#education_years:focus {
    border-color: #999;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    outline: none;
}

/* 結果表示 */
#resultContainer {
    text-align: center;
    margin-top: 20px;
    display: none;
}
#resultImage {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
}

/* グラフ説明セクション */
#graphExplanation {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#graphExplanation h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    text-align: center; 
}
#graphExplanation p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.graph-text {
    line-height: 1.6;
    color: #333;
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: left;
}
.graph-text p {
    margin-bottom: 10px;
}

.tool-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    max-width: 600px;
    margin: 40px auto 30px auto;  /* ← 上マージンを拡大 */
    color: #333;
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
    border: 1px solid #e0e0e0;
}
.tool-info p {
    margin: 0;
}




/* ラジオボタン */
.radio-option {
    display: block;
    margin-bottom: 10px;
}
.radio-option label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #333;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
    .radio-option label {
        font-size: 1rem;
        line-height: 1.4;
    }
    .radio-option input[type="radio"] {
        margin-right: 8px;
        transform: scale(1.2);
    }
}

/* フッター */
.page-footer {
    background-color: #f9f9f9;
    text-align: center;
    padding: 2rem 0;
    margin-top: 20px;
}
.info {
    width: 100%;
    max-width: 544px;
    margin: auto;
    padding: 0 1.5rem;
    border-spacing: 0;
}
.info th,
.info td {
    border-bottom: 1px solid #c9c2bc;
    padding: 0.8rem;
}
.info th {
    text-align: left;
    font-weight: normal;
}
.info td {
    text-align: left;
}
.copyright {
    background-color: #432;
    color: white;
    padding: 1rem 0;
    margin-top: 2rem;
}
.copyright small {
    font-size: 0.9rem;
}
