/* リセットとベース設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'M PLUS 1', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Meiryo', 'メイリオ', sans-serif;
    background-color: #ffffff;
    line-height: 1.4;
    color: #333333;
}

button{
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
}

/* FV none */
#c00.firstview_area {
    width: 100%;
    margin: 3rem auto 0;
    text-align: center;
}
#c00.firstview_area img{
    margin: 0 auto;
}

/* コンテナ */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 0 3rem;
}

/* タイトル */
.form-title {
    font-family: 'M PLUS 1', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 32px;
    color: #000099;
    text-align: center;
    margin-bottom: 0;
}

/* フォーム */
.inquiry-form {
    width: 100%;
    max-width: 760px;
    margin-top: 2.5rem;
}

/* フォームグループ */
.form-group {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: center;
    margin-bottom: 5px;
    min-height: 100px;
}

.email-group {
    align-items: flex-start;
    min-height: 160px;
}

.inquiry-type-group {
    min-height: 120px;
}

.content-group {
    align-items: flex-start;
    min-height: auto;
}

.privacy-group {
    min-height: 80px;
}

/* ラベルセクション */
.label-section {
    background-color: #f1fdff;
    width: 280px;
    min-height: 100px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.email-label {
    min-height: 160px;
}

.inquiry-type-label {
    min-height: 120px;
    overflow: hidden;
}

.content-label {
    min-height: 200px;
}

.privacy-label {
    min-height: 80px;
    overflow: hidden;
}

.form-label {
    font-family: 'M PLUS 1', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 18px;
    color: #333333;
    white-space: nowrap;
}

.privacy-label .form-label {
    font-size: 16px;
    line-height: 20.8px;
}

/* バッジ */
.badge {
    width: 50px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'M PLUS 1', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    flex-shrink: 0;
}

.badge.required {
    background-color: #ff4444;
    color: #ffffff;
}

.badge.optional {
    background-color: #c0c0c0;
    color: #333333;
}

/* 入力セクション */
.input-section {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-section img {
    position: absolute;
    right: 10px;
    top: 15px;
}

.email-inputs {
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 10px 0;
    min-height: 160px;
}

/* 入力フィールド */
.form-input {
    width: 460px;
    height: 38px;
    background-color: #ffffff;
    border: 2px solid #c0c0c0;
    border-radius: 2px;
    padding: 0 12px;
    font-size: 16px;
    font-family: inherit;
    color: #333333;
}

.form-input:focus {
    outline: none;
    border-color: #000099;
}

/* メール確認 */
.email-confirm {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.confirm-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.6;
    color: #000099;
    margin: 0;
    text-align: left;
}

.form-error-message {
    font-size: 14px;
    color: #d63939;
    margin: 0;
}

/* セレクトボックス */
.select-container {
    position: relative;
    width: 460px;
}

.form-select {
    width: 100%;
    height: 38px;
    background-color: #ffffff;
    border: 2px solid #c0c0c0;
    border-radius: 2px;
    padding: 0 40px 0 20px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: #333333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #000099;
}


/* ラジオボタン */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 480px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #000099;
}

.radio-option label {
    font-family: 'M PLUS 1', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #333333;
    cursor: pointer;
    white-space: nowrap;
}

/* テキストエリア */
.form-textarea {
    width: 460px;
    height: 160px;
    background-color: #ffffff;
    border: 2px solid #c0c0c0;
    border-radius: 2px;
    padding: 8px 12px;
    font-size: 16px;
    font-family: inherit;
    color: #333333;
    resize: vertical;
    min-height: 160px;
}

.form-textarea:focus {
    outline: none;
    border-color: #000099;
}

/* チェックボックス */
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #000099;
    border: 1px solid #333333;
    border-radius: 2.5px;
}

.checkbox-option label {
    font-family: 'M PLUS 1', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #333333;
    cursor: pointer;
    white-space: nowrap;
}

.label_p {
    text-align: left;
    margin-left: 5px;
}

/* レスポンシブデザイン */
@media (max-width: 800px) {
    .container {
        padding: 10px;
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        margin-bottom: 2rem;
        gap: 2rem;
    }
    
    .label-section {
        width: 100%;
        min-height: auto;
        padding: 15px 8px;
    }
    
    .email-label,
    .inquiry-type-label,
    .content-label,
    .privacy-label {
        min-height: auto;
    }
    
    .input-section {
        width: 100%;
    }
    
    .email-inputs {
        width: 100%;
        height: auto;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        width: 100%;
    }
    
    .select-container {
        width: 100%;
    }
    
    .radio-options {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .form-title {
        font-size: 28px;
    }
    
    .label-section {
        padding: 12px 8px;
    }
    
    .form-label {
        font-size: 16px;
    }
    
    .badge {
        width: 45px;
        height: 25px;
        font-size: 14px;
    }
}

.z_btn01 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000099;
    width: 300px;
    height: 80px;
    margin: 30px auto;
    border-radius: 100px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.z_btn01 button{
    width: 300px;
    height: 80px;
}
.z_btn01 p {
    font-weight: bold;
    color: #ffffff;
}

.z_btn02 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    width: 220px;
    height: 50px;
    margin: 30px auto;
    border: 2px solid #000099;
    border-radius: 100px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.z_btn02 p {
    font-weight: bold;
    color: #000099;
}

/* 送信完了 */
#l00.thanks_content{
    width: 90%;
    max-width: 700px;
    margin: 0 auto 100px;
}
.z_title{
    margin: 0 auto 40px;
}
.thanks_content_cmnt{
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 16px;
    justify-content: start;
    align-items: start;
    width: 90%;
}
.thanks_content_cmnt p{
    font-size: clamp(0.875rem, 0.831rem + 0.19vw, 1rem);
}
.thanks_content_caution{
    width: 90%;
    margin:24px auto 0;
    padding: 24px 16px;
    border: 1px dashed #333333;
}
.thanks_content_caution p{
    font-size: clamp(0.75rem, 0.706rem + 0.19vw, 0.875rem);
}
