/* ====================================================================
   💡 クール＆洗練されたコンテストフォーム専用 外部CSSファイル（style.css）
   ==================================================================== */

/* --- 1. 基本設定（モダンリセット＆フォント） --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #f7f9fb;
    color: #2c3e50;
    line-height: 1.7;
    padding: 40px 20px;
}

/* --- 2. 全体コンテナ（画面中央配置＆クールな浮き出し効果） --- */
body > form {
    max-width: 840px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* --- 3. テキスト・見出しのタイポグラフィ（高級コンテスト仕様） --- */
h2.form-section-title {
    font-size: 1.5em;
    color: #1a252f;
    margin: 45px 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #34495e;
    font-weight: 700;
}
p.form-info-text {
    font-size: 0.95em;
    color: #c0392b;
    background: #fdf2f2;
    padding: 15px 20px;
    border-left: 4px solid #e74c3c;
    border-radius: 0 6px 6px 0;
    margin: 35px 0 20px 0;
    line-height: 1.6;
}
.form-free-description {
    max-width: 800px;
    margin: 20px 0;
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
}
.form-free-description iframe {
    display: block;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.error {
    color: #e74c3c;
    font-size: 0.85em;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}
.exsample {
    display: block;
    color: #7f8c8d;
    font-size: 0.8em;
    margin-top: 6px;
}
.req-mark {
    color: #e74c3c !important;
    font-weight: bold !important;
    margin-right: 4px !important;
}

/* --- 4. テーブル＆フォーム入力コントロールの美化 --- */
table.tb01 {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}
table.tb01 tr {
    border-bottom: 1px solid #eaeded;
}
table.tb01 th {
    background-color: #fcfdfd;
    color: #34495e;
    font-weight: 600;
    width: 28%;
    padding: 20px;
    text-align: left;
    vertical-align: top;
    font-size: 0.95em;
}
table.tb01 td {
    padding: 15px 20px;
    vertical-align: middle;
}
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccd1d1;
    border-radius: 6px;
    background-color: #fff;
    color: #2c3e50;
    font-size: 0.95em;
    transition: all 0.25s ease;
    outline: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #34495e;
    box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.12);
}
.horizontal-item {
    display: inline-flex;
    align-items: center;
    margin-right: 18px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.95em;
}
.horizontal-item input {
    margin-right: 6px;
    width: 16px;
    height: 16px;
}

/* --- 5. アクションボタン --- */
input[type="submit"] {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 40px auto 0 auto;
    padding: 16px 20px;
    background-color: #1a252f;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 1.05em;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 37, 47, 0.2);
    text-align: center;
}
input[type="submit"]:hover {
    background-color: #34495e;
    transform: translateY(-2px);
}

/* --- 6. 📱 モバイル対応レスポンシブ --- */
@media screen and (max-width: 768px) {
    body {
        padding: 15px 10px;
    }
    body > form {
        padding: 20px 15px;
        border-radius: 8px;
    }
    h2.form-section-title {
        font-size: 1.3em;
        margin: 35px 0 15px 0;
    }
    table.tb01, table.tb01 tbody, table.tb01 tr, table.tb01 th, table.tb01 td {
        display: block;
        width: 100% !important;
    }
    table.tb01 tr {
        border-bottom: none;
        margin-bottom: 15px;
        background: #fdfefe;
        border: 1px solid #eaeded;
        border-radius: 8px;
        padding: 10px;
    }
    table.tb01 th {
        padding: 10px 10px 5px 10px;
        background: transparent;
    }
    table.tb01 td {
        padding: 5px 10px 10px 10px;
    }
    .horizontal-item {
        display: flex;
        width: 100%;
        margin-right: 0;
        padding: 8px 0;
        border-bottom: 1px dashed #eaeded;
    }
    .horizontal-item:last-child {
        border-bottom: none;
    }
    input[type="submit"] {
        max-width: 100%;
    }
}
