/* 全体のスタイル */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #e3f2fd; /* 明るい青の背景色 */
    color: #333; /* 濃いグレーの文字色 */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* コンテナのスタイル */
.container {
    background-color: #fff;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    overflow: hidden; /* はみ出し防止 */
}

/* 見出しのスタイル */
h1, h2, h3 {
    color: #1976d2; /* 濃い青の見出し */
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.5em;
}

h2 {
    margin-top: 35px;
    border-bottom: 3px solid #1976d2;
    padding-bottom: 10px;
    font-size: 1.8em;
}

h3 {
    font-size: 1.4em;
}

/* フォームグループのスタイル */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #283593;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #a7d9ed;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    color: #333;
    background-color: #f7f7f7;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #1976d2;
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.5);
    outline: none;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ラジオボタンとチェックボックスのスタイル */
.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    margin-right: 25px;
    cursor: pointer;
}

.radio-group input[type="radio"],
.radio-group input[type="checkbox"] {
    margin-right: 8px;
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #a7d9ed;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    vertical-align: middle;
}

.radio-group input[type="radio"]:checked,
.radio-group input[type="checkbox"]:checked {
    background-color: #1976d2;
    border-color: #1976d2;
    box-shadow: inset 0 0 0 3px #fff;
}

.radio-group input[type="checkbox"] {
    border-radius: 4px;
}

/* 送信ボタンのスタイル */
button[type="submit"],
input[type="submit"] {
    background-color: #2196f3;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: #1976d2;
}

/* 利用規約のスタイル */
.terms {
    height: 250px;
    overflow-y: auto;
    border: 1px solid #a7d9ed;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* フッターのスタイル */
footer {
    text-align: center;
    color: #555;
    padding: 20px 0;
    margin-top: 30px;
    font-size: 0.8rem;
}

/* 各セクションの高さを調整 */
section {
    margin-bottom: 30px;
}
#terms{
    min-height: 450px;
}
#questionnaire{
    min-height: 650px;
}
#billing{
    min-height: 300px;
}
#delivery{
    min-height: 300px;
}
#installation{
    min-height: 300px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }

    .form-group {
        margin-bottom: 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="date"],
    input[type="tel"],
    select,
    textarea {
        font-size: 0.9rem;
        padding: 10px;
    }

    .radio-group label {
        margin-right: 15px;
    }

    input[type="submit"] {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .terms {
        height: 200px;
        font-size: 0.8rem;
    }

    footer {
        font-size: 0.7rem;
    }
}

/* エラーメッセージのスタイル */
.validation-error {
    color: red;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* エラーハイライトのスタイル */
.invalid-highlight {
    border: 2px solid red !important;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5) !important;
}

/* エラーメッセージコンテナのスタイル */
.error-container {
    background-color: #fff3f3;
    border: 2px solid #ff4444;
    border-radius: 6px;
    margin-bottom: 20px;
    padding: 15px;
    animation: slideDown 0.3s ease-out;
}

/* エラーヘッダーのスタイル */
.error-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.error-icon {
    color: #ff4444;
    font-size: 1.5em;
    margin-right: 10px;
}

.error-title {
    color: #ff4444;
    font-weight: bold;
    flex-grow: 1;
}

.error-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 5px;
}

.error-close:hover {
    color: #333;
}

/* エラーメッセージのスタイル */
.error-message {
    color: #333;
    line-height: 1.5;
    padding: 5px 0;
}

/* エラー時の入力フィールドスタイル */
.error-field {
    border-color: #ff4444 !important;
    background-color: #fff3f3 !important;
}

/* エラーメッセージのアニメーション */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 個別フィールドのエラーメッセージ */
.field-error {
    color: #ff4444;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease-out;
}
@media print {
    .form_control section {
        display: block !important; /* 全てのセクションを表示 */
    }

    .form-group {
        display: block !important; /* 全てのフォームグループを表示 */
    }

    [data-show-if],
    [data-hide-if] {
        display: block !important; /* 条件付きで非表示にされている要素も表示 */
    }

    /* 必要に応じて、他の要素の表示も調整 */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    th, td {
        border: 1px solid #000;
        padding: 8px;
        text-align: left;
    }
}



@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@font-face {
    font-family: 'MEIRYO'; /* 任意のフォント名 */
    src: url('fonts/MEIRYO.TTC') format('truetype'); /* フォントファイルへのパス */
}

body {
    font-family: 'MyFont', sans-serif;
}