/* ---------- */
/* navメニュー */
/* ---------- */
.nav-links {
    list-style: none;
    display: flex;
    justify-content: right;
    gap: 5px;
}
.nav-links a {
    color: #ffffff;
    fill: #ffffff;
    padding: 13px 20px;
    font-family: "IBM Plex Sans JP", Sans-serif;
    font-weight: 500;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: #ffffff5e;
    fill: #ffffff5e;
}
.nav-links a::after {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: transparent;
    transition: all 0.3s;
}
.nav-links a:hover::after {
    background-color: #ffffff;
}
/* ---------- */
/* フォーム    */
/* ---------- */
.CF7_table {
    width: 80%;
    margin: 0 auto;
    border: 3px solid #e5e5e5 !important;
}

.CF7_table th p,
.CF7_table td p {
    margin-block-end: 0;
}

.CF7_table tr {
    display: flex;
}

.CF7_table th,
.CF7_table td {
    display: flex;
    align-items: center;
    padding: 20px 15px;
}
.CF7_table th {
    background-color: #f4faff !important;
    border: 1px solid #e5e5e5 !important;
    width: 30%;
    justify-content: center;
    min-width: 220px;
}

.CF7_table td {
    background-color: #fff !important;
    border: 1px solid #e5e5e5 !important;
    width: 70%;
    flex-direction: column;
    align-items: start;
    gap: 0.9em;
}
.CF7_table td p {
    width: 100%;
}
.CF7_table td p span {
    width: 100%;
}
.CF7_table .column-left,
.CF7_table .column-right {
    width: 100%;
}
.CF7_table input[type="text"],
.CF7_table input[type="tel"],
.CF7_table input[type="email"],
.CF7_table textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #e5e5e5 !important;
    font: inherit;
}
.CF7_table .wpcf7-checkbox {
    display: flex;
}
.CF7_table .wpcf7-list-item {
    width: fit-content;
}

.CF7_table span.CF7_req {
    background-color: #f79034;
    color: #fff;
    font-size: 0.9em;
    padding: 5px;
    border-radius: 3px;
    margin-right: 1em;
}

.CF7_btn {
    width: 100%;
    text-align: center;
    margin: 20px auto 15px;
    position: relative;
}
.CF7_btn .wpcf7-spinner {
    position: absolute;
    right: 0;
    bottom: 0;
}

.wpcf7-form-control.wpcf7-submit {
    background-color: #f79034;
    font-size: 1.2em;
    font-weight: 700;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    border: none;
    box-shadow: none;
    margin: 0 auto;
    width: 80px;
    text-align: center;
}

@media screen and (max-width: 1024px) and (min-width: 768px) {
    .elementor-76 .elementor-element.elementor-element-3c05f8ad {
        margin: 0 auto;
        width: 100%;
    }
}
@media screen and (max-width: 1024px) {
    .CF7_table {
        width: 90%;
    }
}
@media screen and (max-width: 767px) {
    .CF7_table tr {
        flex-direction: column;
    }
    .CF7_table th {
        width: 100%;
    }

    .CF7_table td {
        width: 100%;
    }

    .CF7_table span.CF7_req{
        margin-left: -3em;
    }
}

/* ===== ハンバーガー（1 span＋疑似要素） ===== */
@media screen and (max-width: 1024px) {

    header{
        height: 59px;
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    header > .elementor-container{
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    header > .elementor-widget-container > a{
        width: 150px;
    }

    header button:focus{
        background-color: transparent;
    }
    .hamburger {
        display: block;
        position: relative;
        width: 30px;
        height: 30px;
        border: none;
        background: none;
        cursor: pointer;
        z-index: 1001;
        padding: 7.5px;
        margin-left: auto;
        margin-right: 8px;
    }
    .hamburger:hover{
        background-color: transparent;
    }

    .hamburger span,
    .hamburger::before,
    .hamburger::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 3px;
        transition: 0.3s ease;
    }

    /* 真ん中 */
    .hamburger span {
        top: 50%;
        transform: translateY(-50%);
    }

    /* 上下線 */
    .hamburger::before {
        top: 5px;
    }
    .hamburger::after {
        bottom: 5px;
    }

    /* ----- active状態（×） ----- */
    .hamburger.active span {
        transform: rotate(45deg);
    }
    .hamburger.active::before {
        transform: rotate(-45deg);
        top: 50%;
    }
    .hamburger.active::after {
        opacity: 0;
    }

    /* ===== モーダルメニュー ===== */
    .menu-modal {
        position: fixed;
        top: 59px;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 0;
        background: #fff;
        transition: all 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }
    .menu-modal.open {
        max-height: 230px;
        transition: all 0.3s ease;
    }

    /* ===== メニューリスト ===== */
    .nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
    }
    .nav-links li {
        margin: 0 auto;
    }
    .nav-links a {
        color: #0079c1;
        font-size: 15px;
        text-decoration: none;
        font-weight: bold;
        position: relative;
        display: inline-block;
        padding: 12px 0;
        line-height: 1;

    }
    .nav-links a::after {
        display: none;
    }
}
