:root {
    --main-color: rgba(0, 156, 154, 1);
}

.mv_leaflet {
    background-image: url(images/mv_bg.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0 2rem;
}

@media (max-width: 767px) {
    .mv_leaflet {
        padding: 2rem;
    }
}

.mv_leaflet>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 360px;
    margin: 0 auto;
    max-width: 1024px;
}

@media (max-width: 767px) {
    .mv_leaflet>div {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: var(--space32);
        justify-content: center;
        align-items: center;
        height: auto;
    }
}

.mv_leaflet h1 {
    padding: 0;
    margin: 0;
    font-size: 2rem;
    border-bottom: 1px solid #BB9C20;
    padding-bottom: 1.3rem;
    text-align: center;
    line-height: 130%;
    font-family: var(--serif);
}

@media (max-width: 767px) {
    .mv_leaflet h1 {
        font-size: 1.5rem;
        text-align: center;
    }
}

.mv_leaflet p {
    padding: 0;
    margin: 0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding-top: 1rem;
    text-align: center;
}

@media (max-width: 767px) {
    .mv_leaflet p {
        text-align: center;
    }
}

.mv_leaflet img {
    max-width: 400px;
    width: 100%;
}

.guide_lead {
    padding-bottom: 2rem;
    text-align: center;
}

@media (max-width: 767px) {
    .guide_lead {
        text-align: left;
    }
}

.form-container {
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 3rem 2rem;
}

/* 各入力グループのスタイル */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
    color: #003366;
    /* 濃い紺色 */
}

/* 入力フィールド */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #eee;
    background-color: #fcfcfc;
    box-sizing: border-box;
    font-size: 16px;
    color: #333;
}

/* プレースホルダーの色 */
::placeholder {
    color: #ccc;
}

/* 備考欄（テキストエリア）の特殊なレイアウト */
.textarea-wrapper {
    display: flex;
    position: relative;
}

.badge-textarea {
    background-color: #999;
    color: #fff;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

textarea {
    border-left: none;
    resize: vertical;
}

.main_btn, a.main_btn {
    width: 100%;
    background-color: var(--main-color);
    color: white;
    padding: 1.2rem 2rem;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    position: relative;
    border-radius: 999px;
    margin: 3rem auto;
    max-width: 600px;
}

@media (max-width: 767px) {
    .main_btn, a.main_btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        width: 80%;
    }
}

.main_btn:hover {
    opacity: 0.7;
}

/* ボタン内のアイコン */
.main_btn .icon {
    margin-left: 0.7rem;
}

.main_btn .icon img {
    height: 2rem;
    width: auto;
}

/* レイアウトの基本 */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #00254d;
    /* 画像に近い濃紺 */
}

/* 入力エリアの外枠 */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}

/* 入力欄本体のスタイル */
.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 12px 12px 80px;
    /* 左側にバッジ分の余白を空ける */
    border: none;
    background-color: #f7f7f7;
    /* 薄いグレーの背景 */
    font-size: 16px;
    outline: none;
}

/* フォームグループの基本設定 */
.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #001f3f;
    /* 濃紺 */
    font-size: 1.1rem;
}

/* 入力欄を包むコンテナ（ここにバッジを出す） */
.input-field {
    position: relative;
    display: flex;
    background-color: #f5f5f5;
    /* 薄いグレーの背景 */
}

/* 入力要素本体 */
.input-field input,
.input-field textarea {
    width: 100%;
    border: none;
    background: transparent;
    padding: 15px 15px 15px 90px;
    /* バッジの幅(80px) + 余白(10px) */
    font-size: 1rem;
    outline: none;
}

/* バッジの共通設定 */
.input-field::before {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 1;
}

.input-field:has(:required)::before {
    content: "必須";
    background-color: var(--main-color);
}

.input-field:has(:not(:required))::before {
    content: "任意";
    background-color: #b0b0b0;
    /* グレー */
}

/* プレースホルダーの色調整 */
::placeholder {
    color: #bbb;
}

.attetion {
    margin: auto;
    max-width: 860px;
    margin-bottom: 5rem;
    font-size: 0.9rem;
    background-color: #f8f8f8;
    padding: 1.5rem 2rem;
    list-style: none;
    border-left: 4px solid var(--main-color);
}

@media (max-width: 767px) {
    .attetion {
        width: 90%;
    }
}

.attetion a {
    display: inline-block;
    color: rgba(17, 92, 167, 1);
}

.status-msg {
    display: none !important;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 10px;
}

/* --- 【NG表示】 --- */
.input-field:has(:invalid:not(:placeholder-shown))~.status-msg.ng {
    display: block !important;
    color: #dc3545 !important;
}

/* --- 【OK表示】 --- */
.input-field:has(:valid:not(:placeholder-shown))+.status-msg.ok {
    display: block !important;
    color: #28a745 !important;
}

/* placeholderが表示されている間は、後ろのstatus-msgをすべて非表示 */
.input-field:has(:placeholder-shown)~.status-msg {
    display: none !important;
}

/* エラー時の枠線変更を無効化（既存の指定がある場合はこれで上書き） */
.input-field:has(:invalid:not(:placeholder-shown)) input,
.input-field:has(:invalid:not(:placeholder-shown)) textarea {
    border: 1px solid #eee !important;
    /* 元のボーダー色に固定 */
    background-color: #fcfcfc !important;
    /* 元の背景色に固定 */
}

.complete_msg {
    min-height: 600px;
    padding: 4rem 2rem;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: auto;
    display: grid;
    place-items: center;
}

@media (max-width: 767px) {
    .complete_msg {
        min-height: 0;
    }
}