@charset "UTF-8";

/* 全体レイアウト */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ヘッダー・ロゴ */
/* ヘッダー・ロゴ */
header {
    display: flex;
    align-items: center;
    justify-content: center; /* 追加：左右中央揃え */
    /* border-bottom: 2px solid #333; */
    padding-bottom: 15px;
    margin-bottom: 30px;
}

header img.logo {
    height: 50px;
    margin-right: 20px;
}

header h1 {
    font-size: clamp(16px, 4vw, 24px); /* 画面幅に合わせて動的にサイズ調整 */
    margin: 0;
}

/* スマホ用レスポンシブ設定 (768px以下) */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        /* justify-content は column の時は垂直方向になるため、必要に応じて調整 */
    }
    header img.logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* --- 必須・任意アイコン (指定のスタイル) --- */
.must {
    display: block;
    background-color: #C00;
    border: solid 2px #C00;
    padding: 2px 5px;
    font-size: 11px;
    color: #FFF;
    float: left;
    margin: 0px 5px;
    border-radius: 4px;
    background-size: 100% 100%;
    line-height: 1.2;
}

.not_must {
    display: block;
    background-color: #336699;
    border: solid 2px #336699;
    padding: 2px 5px;
    font-size: 11px;
    color: #FFF;
    float: left;
    margin: 0px 5px;
    border-radius: 4px;
    background-size: 100% 100%;
    line-height: 1.2;
}

/* --- dl・dt・dd フォームレイアウト --- */
.form-list {
    margin-bottom: 30px;
}

.form-list dl {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
    margin: 0;
}

.form-list dt {
    width: 30%;
    padding: 20px 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center; /* アイコンと文字の垂直位置を合わせる */
}

.form-list dd {
    width: 70%;
    padding: 15px 10px;
    margin: 0;
    box-sizing: border-box;
}

/* 入力要素 */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    max-width: 100%;
    height: 200px;
    resize: vertical;
}

/* 確認画面用の表示（dd内で使用） */
.confirm-text {
    display: block;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* --- 個人情報保護方針 --- */
.privacy-policy {
    margin: 40px 0;
    text-align: center;
}

.policy-text {
    width: 100%;
    height: 300px;
    border: 1px solid #ccc;
    padding: 20px;
    overflow-y: scroll;
    background-color: #fff;
    text-align: left;
    font-size: 13px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.agreement {
    font-size: 16px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.agreement input {
    margin-right: 10px;
    transform: scale(1.2);
}

/* --- ボタンエリア --- */
.btn-area {
    text-align: center;
    margin-top: 30px;
}

.btn-area button, .btn-area input[type="submit"] {
    display: inline-block;
    padding: 10px 30px;
    margin: 0 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-area button:hover, .btn-area input[type="submit"]:hover {
    background-color: #e0e0e0;
}

/* --- 完了画面（thanks.php）設定 --- */
.thanks-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 10px;
}

.status-label {
    text-align: center;
    margin-bottom: 40px;
}

.contact-info-box {
    border: 2px solid #333;
    padding: 30px;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.contact-details .tel-num {
    font-weight: bold;
    font-size: 20px;
}

.contact-details img.mail-img {
    vertical-align: middle;
    height: 20px;
}

/* --- お問い合わせボックス専用のdl設定 --- */
.contact-info-box {
    border: 2px solid #333;
    padding: 30px;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    background-color: #fff;
}

.contact-info-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
    text-decoration: underline;
}

.contact-details {
    display: inline-block; /* 中央寄せを維持しつつ中身を左揃え */
    text-align: left;
}

.contact-details dl {
    display: flex;
    margin: 0 0 10px 0;
    align-items: center;
}

.contact-details dt {
    width: 80px; /* ラベルの幅を固定 */
    font-weight: bold;
}

.contact-details dd {
    margin: 0;
    flex: 1;
}

.contact-details .tel-num {
    font-weight: bold;
    font-size: 20px;
    color: #333;
    text-decoration: none;
}

.contact-details img.mail-img {
    vertical-align: middle;
    height: 20px;
}

/* 受付時間だけ少し小さくするなどの調整 */
.contact-details dl.time-row {
    font-size: 14px;
    color: #666;
}

/* --- スマホ用レスポンシブ (480px以下) --- */
@media screen and (max-width: 480px) {
    .contact-info-box {
        padding: 20px 15px;
        margin: 30px 10px;
    }
    
    .contact-details dl {
        flex-direction: column; /* 狭い画面では縦に並べる */
        align-items: flex-start;
        margin-bottom: 15px;
    }
    
    .contact-details dt {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .contact-details dd {
        width: 100%;
        padding-left: 5px;
    }
}

/* --- スマホ用レスポンシブ設定 (768px以下) --- */
@media screen and (max-width: 768px) {
    .form-list dl {
        flex-direction: column; /* 縦並びにする */
    }
    .form-list dt {
        width: 100%;
        background-color: #f9f9f9;
        padding: 10px;
    }
    .form-list dd {
        width: 100%;
        padding: 15px 10px;
    }
    header {
        flex-direction: column;
        text-align: center;
    }
    header img.logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* フッター */
footer {
    text-align: center;
    font-size: 12px;
    padding: 20px;
    color: #666;
    border-top: 1px solid #eee;
}
