@charset "utf-8";

html {
    scroll-behavior: smooth;
}

#pan {
    display: none !important;
}

/* =========================================================================
   First View (KV)
   ========================================================================= */
.lp_kv {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/etching_lp/fv.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    position: relative;
    color: #fff;
}

.lp_kv__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.lp_kv__left {
    flex: 3;
    padding-top: 20px;
}

.lp_kv__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}

.lp_kv__label {
    background-color: #fff;
    border: 2px solid #0C3871;
    padding: 8px 24px;
    font-size: 15px;
    font-weight: bold;
    color: #0C3871;
    border-radius: 40px;
}

.lp_kv__title {
    font-size: 46px;
    /* 40px -> 46px */
    line-height: 1.35;
    font-weight: 900;
    margin-bottom: 35px;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    /* 視認性向上のためのシャドウ */
}

.lp_kv__title span {
    color: #FFB347;
    /* 暗い背景でも見やすいようにすこし明るいオレンジに */
}

.lp_kv__infoBox {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    border-left: 4px solid #14AAC5;
    /* シンプルな青いボーダー */
}

.lp_kv__infoBox strong {
    font-size: 18px;
    font-weight: bold;
    display: block;
    color: #14AAC5;
    /* アクセントカラーの白抜き風 */
    margin-bottom: 10px;
}

.lp_kv__subCopy {
    font-size: 16px;
    line-height: 1.8;
    color: #f0f0f0;
    /* 真っ白より少し落ち着かせた色 */
}

.lp_kv__right {
    flex: 2;
    flex-shrink: 0;
}

.lp_kv__formBox {
    background-color: #ffffff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lp_kv__formTitle {
    font-size: 20px;
    font-weight: bold;
    color: #0C3871;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #F69119;
    padding-bottom: 10px;
    letter-spacing: 0.05em;
}

/* フォーム内テーブル */
.lp_kv__formBox .table-contact.fv-form,
.lp_kv__formBox .table-contact.fv-form tbody {
    display: block;
    width: 100%;
}

.lp_kv__formBox .table-contact.fv-form tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.lp_kv__formBox .table-contact.fv-form th,
.lp_kv__formBox .table-contact.fv-form td {
    display: block;
    border: none;
    text-align: left;
    padding: 0;
}

.lp_kv__formBox .table-contact.fv-form th {
    width: 130px;
    padding-right: 15px;
    font-size: 13px;
    font-weight: bold;
    color: #0C3871;
}

.lp_kv__formBox .table-contact.fv-form td {
    flex: 1;
    min-width: 0;
}

.lp_kv__formBox .table-contact.fv-form .requiredbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp_kv__formBox .table-contact.fv-form .required {
    background-color: #e60000;
    color: #fff;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 3px;
    margin-left: 5px;
    white-space: nowrap;
}

.lp_kv__formBox .table-contact.fv-form input[type="text"],
.lp_kv__formBox .table-contact.fv-form input[type="email"],
.lp_kv__formBox .table-contact.fv-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fcfcfc;
    box-sizing: border-box;
}

.lp_kv__formBox .table-contact.fv-form input[type="text"]:focus,
.lp_kv__formBox .table-contact.fv-form input[type="email"]:focus,
.lp_kv__formBox .table-contact.fv-form textarea:focus {
    border-color: #0C3871;
    outline: none;
    background-color: #fff;
}

/* お問い合わせ内容と添付ファイルは縦積み */
.lp_kv__formBox .table-contact.fv-form tr:nth-last-child(1),
.lp_kv__formBox .table-contact.fv-form tr:nth-last-child(2) {
    flex-direction: column;
    align-items: flex-start;
}

.lp_kv__formBox .table-contact.fv-form tr:nth-last-child(1) th,
.lp_kv__formBox .table-contact.fv-form tr:nth-last-child(1) td,
.lp_kv__formBox .table-contact.fv-form tr:nth-last-child(2) th,
.lp_kv__formBox .table-contact.fv-form tr:nth-last-child(2) td {
    width: 100%;
    padding-right: 0;
}

.lp_kv__formBox .table-contact.fv-form tr:nth-last-child(1) td,
.lp_kv__formBox .table-contact.fv-form tr:nth-last-child(2) td {
    margin-top: 5px;
}

.lp_kv__formBox .table-contact.fv-form tr:nth-last-child(2) th .requiredbox {
    justify-content: flex-start;
}

.lp_kv__formBox .table-contact.fv-form tr:nth-last-child(2) th .required {
    margin-left: 10px;
}

/* 添付ファイル */
.lp_kv__formBox .table-contact.fv-form input[type="file"] {
    font-size: 13px;
    padding-top: 5px;
}

/* 送信ボタンエリア */
.lp_kv__formBox .btnarea {
    text-align: center;
    margin-top: 0px;
    padding: 0;
}

.lp_kv__formBox .btnarea .btn {
    margin: 0;
}

.lp_kv__formBox .btnarea input[type="submit"] {
    background-color: #F69119;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 30px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    width: 100%;
    max-width: 280px;
}

.lp_kv__formBox .btnarea input[type="submit"]:hover {
    opacity: 0.8;
}

.lp_kv__formNote {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    font-weight: bold;
    color: #333;
}

/* Contact Form 7 エラーメッセージ・送信完了メッセージ */
.lp_kv__formBox .wpcf7-response-output {
    color: #e60000 !important;
    /* 白文字にならないように強制割り込み */
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border: 2px solid #e60000 !important;
    border-radius: 4px;
    background-color: #fff0f0 !important;
    margin-top: 20px;
    padding: 10px;
}

/* =========================================================================
   Bottom Form
   ========================================================================= */
.lp_bottom__formBox {
    background-color: #ffffff;
    padding: 20px 0;
}

.lp_bottom__formTitle {
    font-size: 24px;
    font-weight: bold;
    color: #0C3871;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #F69119;
    padding-bottom: 10px;
    letter-spacing: 0.05em;
}

/* フォーム内テーブル */
#contents .lp_bottom__formBox .table-contact.fv-form,
#contents .lp_bottom__formBox .table-contact.fv-form tbody {
    display: block;
    width: 100%;
}

#contents .lp_bottom__formBox .table-contact.fv-form tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 25px;
    border: none !important;
}

#contents .lp_bottom__formBox .table-contact.fv-form th,
#contents .lp_bottom__formBox .table-contact.fv-form td {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0;
    border: none !important;
    background: transparent !important;
}

#contents .lp_bottom__formBox .table-contact.fv-form th {
    width: 200px;
    padding-right: 20px;
    font-size: 15px;
    font-weight: bold;
    color: #0C3871;
}

#contents .lp_bottom__formBox .table-contact.fv-form td {
    flex: 1;
    min-width: 0;
    width: 100%;
    /* 明示的に残りの幅を確保 */
}

/* 必須マーク */
#contents .lp_bottom__formBox .table-contact.fv-form .requiredbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* flex-startに戻す */
}

/* 既存テーマのCSS(position:absolute)などを強力に上書き */
#contents .lp_bottom__formBox table span.required,
#contents .lp_bottom__formBox .table-contact.fv-form .required {
    position: static !important;
    right: auto !important;
    top: auto !important;
    background-color: #e60000;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 3px;
    margin: 0 0 0 10px !important;
    white-space: nowrap;
    line-height: normal !important;
}

/* Contact Form 7のラップ用spanを幅100%にする */
#contents .lp_bottom__formBox .table-contact.fv-form td span.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* フォーム要素 */
#contents .lp_bottom__formBox .table-contact.fv-form input[type="text"],
#contents .lp_bottom__formBox .table-contact.fv-form input[type="email"],
#contents .lp_bottom__formBox .table-contact.fv-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc !important;
    border-radius: 4px;
    font-size: 15px;
    background-color: #fcfcfc;
    box-sizing: border-box;
    /* 100%パディング込み */
}

#contents .lp_bottom__formBox .table-contact.fv-form textarea {
    min-height: 120px;
    /* テキストエリアの高さを倍に */
}

#contents .lp_bottom__formBox .table-contact.fv-form input[type="text"]:focus,
#contents .lp_bottom__formBox .table-contact.fv-form input[type="email"]:focus,
#contents .lp_bottom__formBox .table-contact.fv-form textarea:focus {
    border-color: #0C3871 !important;
    outline: none;
    background-color: #fff;
}

/* お問い合わせ内容とtextareaは横並び */
/* 添付ファイルも横並び */
#contents .lp_bottom__formBox .table-contact.fv-form tr:nth-last-child(1),
#contents .lp_bottom__formBox .table-contact.fv-form tr:nth-last-child(2) {
    flex-direction: row;
    align-items: flex-start;
}

#contents .lp_bottom__formBox .table-contact.fv-form tr:nth-last-child(1) th,
#contents .lp_bottom__formBox .table-contact.fv-form tr:nth-last-child(2) th {
    width: 200px;
    padding-right: 20px;
    margin-top: 10px;
    display: block;
    /* labelと必須を分けるなどのため */
}

/* 添付ファイル */
#contents .lp_bottom__formBox .table-contact.fv-form input[type="file"] {
    font-size: 14px;
    padding-top: 5px;
}

/* 送信ボタンエリア */
#contents .lp_bottom__formBox .btnarea {
    text-align: center;
    margin-top: 40px;
    padding: 0;
}

#contents .lp_bottom__formBox .btnarea .btn {
    margin: 0;
}

#contents .lp_bottom__formBox .btnarea input[type="submit"] {
    background-color: #F69119;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 40px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    width: 100%;
    max-width: 320px;
}

#contents .lp_bottom__formBox .btnarea input[type="submit"]:hover {
    opacity: 0.8;
}

.lp_bottom__formNote {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
    color: #333;
}

/* Contact Form 7 エラーメッセージ */
#contents .lp_bottom__formBox .wpcf7-response-output {
    color: #e60000 !important;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border: 2px solid #e60000 !important;
    border-radius: 4px;
    background-color: #fff0f0 !important;
    margin-top: 20px;
    padding: 10px;
}

/* =========================================================================
   Mid CTA
   ========================================================================= */
.lp_cta_mid {
    text-align: center;
    margin: 60px 0 40px;
}

.lp_cta_mid .btn_cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #F69119;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    padding: 20px 80px;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.4;
}

.lp_cta_mid .btn_cta:hover {
    transform: translateY(-3px);
    background-color: #ff9d2b;
    opacity: 1 !important;
}

.lp_cta_mid .btn_cta::after {
    content: "▼";
    margin-left: 15px;
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media screen and (max-width: 768px) {
    .lp_kv {
        padding: 50px 0;
    }

    .lp_kv__inner {
        flex-direction: column;
        gap: 30px;
    }

    .lp_kv__left {
        padding-top: 0;
    }

    .lp_kv__right {
        width: 100%;
    }

    .lp_kv__title {
        font-size: 28px;
    }

    .lp_kv__formTitle {
        font-size: 18px;
    }

    .lp_kv__formBox {
        padding: 30px 20px;
        min-height: 400px;
    }

    .lp_kv__formBox .table-contact.fv-form tr {
        flex-direction: column;
        align-items: flex-start;
    }

    .lp_kv__formBox .table-contact.fv-form th,
    .lp_kv__formBox .table-contact.fv-form td {
        width: 100%;
        padding-right: 0;
    }

    .lp_kv__formBox .table-contact.fv-form td {
        margin-top: 5px;
    }

    .lp_kv__formBox .table-contact.fv-form .requiredbox {
        justify-content: flex-start;
    }

    .lp_kv__formBox .table-contact.fv-form .required {
        margin-left: 10px;
    }

    .lp_cta_mid {
        margin: 40px 20px 20px;
    }

    .lp_cta_mid .btn_cta {
        font-size: 18px;
        padding: 15px 30px;
        width: 100%;
        box-sizing: border-box;
    }

    .lp_cta_mid .btn_cta::after {
        font-size: 15px;
        margin-left: 10px;
    }

    #contents .lp_bottom__formBox {
        padding: 30px 15px;
    }

    #contents .lp_bottom__formTitle {
        font-size: 20px;
    }

    #contents .lp_bottom__formBox .table-contact.fv-form tr {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    #contents .lp_bottom__formBox .table-contact.fv-form th,
    #contents .lp_bottom__formBox .table-contact.fv-form td {
        width: 100%;
        padding-right: 0;
    }

    #contents .lp_bottom__formBox .table-contact.fv-form th {
        margin-bottom: 5px;
    }

    #contents .lp_bottom__formBox .table-contact.fv-form td {
        margin-top: 5px;
    }

    #contents .lp_bottom__formBox table span.required,
    #contents .lp_bottom__formBox .table-contact.fv-form .required {
        margin: 5px 0 0 0 !important;
        align-self: flex-start;
    }
}