/* consultant-page styles — v1.0.1（更新時は index.html の style.css?v= も合わせて変更） */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'メイリオ', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.pc {
    display: block !important;
}
.sp {
    display: none !important;
}

.layout-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.freeConsultation__container {
    font-size: 18px;
}

/* ----- site header ----- */
.site-header {
    position: relative;
    z-index: 200;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header__inner {
    position: relative;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
}

.site-header__topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.site-header__lead {
    flex: 1;
    min-width: 0;
}

.site-header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #c5c5c5;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.site-header__menu-toggle:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

.site-header__menu-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header--nav-open .site-header__menu-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header--nav-open .site-header__menu-bar:nth-child(2) {
    opacity: 0;
}

.site-header--nav-open .site-header__menu-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.site-header__tagline {
    font-size: 12px;
    color: #222;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.site-header__brand {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    line-height: 1.2;
}

@media (min-width: 769px) {
    .site-header__topbar {
        margin-bottom: 1.25rem;
    }
}

.site-header__brand a {
    color: #111;
    text-decoration: none;
}

.site-header__nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    border-left: 1px solid #c5c5c5;
}

.site-header__nav-list > li {
    border-right: 1px solid #c5c5c5;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .site-header__nav-list > li {
        flex: 1 1 0;
        min-width: 0;
    }
}

.site-header__nav-list > li > a,
.site-header__dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 14px;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.4;
}

.site-header__nav-list > li > a:hover,
.site-header__dropdown-toggle:hover {
    text-decoration: underline;
}

.site-header__nav-item--dropdown {
    position: relative;
}

.site-header__submenu {
    list-style: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 100%;
    margin-top: 0;
    padding: 0.35rem 0;
    background: #f4f4f4;
    border: 1px solid #c5c5c5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.site-header__submenu li a {
    display: block;
    padding: 0.45rem 1rem;
    font-size: 13px;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__submenu li a:hover {
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.site-header__nav-item--dropdown:hover .site-header__submenu,
.site-header__nav-item--dropdown:focus-within .site-header__submenu,
.site-header__nav-item--dropdown.is-open .site-header__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-header__dropdown-toggle:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

@media only screen and (max-width: 768px) {
    .site-header__inner {
        padding-bottom: 1rem;
    }

    .site-header__lead .site-header__brand {
        margin-bottom: 0;
    }

    .site-header__menu-toggle {
        display: flex;
    }

    .site-header__nav {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1000;
        margin: 0;
        padding-top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
        padding-left: 20px;
        padding-right: 20px;
        background: #fff;
        border: none;
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .site-header--nav-open .site-header__nav {
        display: block;
    }

    .site-header--nav-open .site-header__menu-toggle {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 1rem);
        right: 20px;
        z-index: 1001;
    }

    .site-header__nav-list {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.35rem;
        width: 100%;
        border-left: none;
    }

    .site-header__nav-list > li {
        flex: none;
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid #ddd;
        justify-content: flex-start;
    }

    .site-header__nav-list > li:last-child {
        border-bottom: none;
    }

    .site-header__nav-list > li > a,
    .site-header__dropdown-toggle {
        justify-content: flex-start;
        width: 100%;
        padding: 1.15rem 1rem;
        white-space: normal;
        text-align: left;
    }

    .site-header__submenu li a {
        padding: 0.75rem 1rem 0.75rem 1.5rem;
    }

    .site-header__nav-item--dropdown {
        flex-direction: column;
        align-items: stretch;
    }

    .site-header__submenu {
        position: static;
        margin: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid #c5c5c5;
        width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        padding: 0;
        transition: none;
    }

    .site-header__nav-item--dropdown:hover .site-header__submenu,
    .site-header__nav-item--dropdown:focus-within .site-header__submenu,
    .site-header__nav-item--dropdown.is-open .site-header__submenu {
        display: block;
    }

    .site-header__nav-item--dropdown:not(.is-open):not(:hover):not(:focus-within) .site-header__submenu {
        display: none;
    }

}

/* ----- site footer ----- */
.site-footer {
    background-color: #333;
    color: #fff;
}

.site-footer__inner {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
    row-gap: 0.75rem;
    align-items: start;
    width: 100%;
}

.site-footer__nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
}

.site-footer__nav-list > li {
    display: block;
    width: 100%;
}

.site-footer__nav-list > li > a {
    display: inline-block;
    padding: 0.35rem 0;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    white-space: normal;
    line-height: 1.5;
    text-align: left;
}

.site-footer__nav-list > li > a:hover {
    text-decoration: underline;
}

.site-footer__copyright {
    text-align: center;
    font-size: 12px;
    color: #fff;
    margin-top: 1rem;
    line-height: 1.5;
}

.freeConsultation__row {
    display: flex;
    gap: 40px;
    padding: 3rem 0;
    align-items: flex-start;
    justify-content: space-between;
}

.freeConsultation__contLeft {
    flex: 1;
    max-width: 600px;
}

.freeConsultation__title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.freeConsultation__title span {
    display: block;
}

.freeConsultation__subtitle {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.freeConsultation__support-heading {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1.5rem;
}
.freeConsultation__support-heading::after{
    content: "";
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 2px;
    border-bottom: 2px solid #000;
    z-index: -1;
}
.freeConsultation__support-img img {
    max-width: 130px;
    height: auto;
    padding-left:20px;
}

.freeConsultation__support-tit {
    font-size: 22px;
    font-weight: bold;
    position: relative;
    padding: 0 20px;
    margin-top: 60px;
}



.freeConsultation__text {
    font-size: 18px;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 1rem;
}

.freeConsultation__support-txt {
    color: #1976d2;
    line-height: 1.8;
}

.freeConsultation__features {
    margin-top: 2rem;
    display: flex;
    gap: 15px;
    font-weight: 700;
}

.freeConsultation__features span {
    display: flex;
    align-items: center;
}

.freeConsultation__features span::before {
    content: "✓";
    margin-right: 5px;
    font-weight: bold;
}

.freeConsultation__contRight {
    flex: 0 0 450px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 769px) {
    .layout-inner.freeConsultation__container {
        padding-right: 0;
    }

    .freeConsultation__contRight {
        border-radius: 12px 0 0 12px;
    }
}

.freeConsultation__form-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
}

.myForm {
    width: 100%;
}

.input_unit {
    margin-bottom: 20px;
}

.form_input_label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.form_input_label .required {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: normal;
}

.myForm input[type="text"],
.myForm textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #ffe8e6;
    font-family: inherit;
}

.myForm textarea {
    min-height: 120px;
    resize: vertical;
}

.myForm input[type="text"]:focus,
.myForm textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.form-note {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    line-height: 1.6;
}

.form_input_submit {
    margin-top: 25px;
}

.myForm input[type="submit"] {
    width: 100%;
    background: #1976d2;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.myForm input[type="submit"]:hover {
    background: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

@media only screen and (max-width: 768px) {
    .pc {
        display: none !important;
    }
    .sp {
        display: block !important;
    }

    .freeConsultation__row {
        flex-direction: column;
        gap: 30px;
        padding: 1.5rem 0;
    }

    .freeConsultation__contLeft {
        max-width: 100%;
    }

    .freeConsultation__title {
        font-size: 24px;
    }

    .freeConsultation__contRight {
        flex: none;
        width: 100%;
    }
    
    .freeConsultation__support-heading {
        display: flex;
        align-items: center;
        gap: 0;
        margin-bottom: 3rem;
    }
    
    .freeConsultation__support-heading img {
        display: block;
        margin: 0;
        max-width: 130px;
        padding-left: 10px;
    }
    .freeConsultation__support-tit {
        font-size: 22px;
        font-weight: bold;
        position: relative;
        padding: 0;
        text-align: left;
        margin-top: 0;
    }
    

    .freeConsultation__features{
        display: block;
    }
}

@media (max-width: 480px) {
    .layout-inner {
        padding: 0 15px;
    }

    .site-header__nav {
        padding-left: 15px;
        padding-right: 15px;
    }

    .site-header--nav-open .site-header__menu-toggle {
        right: 15px;
    }

    .freeConsultation__title {
        font-size: 24px;
        margin-top: 3rem;
    }

    .freeConsultation__contRight {
        padding: 20px;
    }
}

/* ----- thanks page ----- */
.thanks__container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 280px);
    padding: 4rem 0;
    text-align: center;
}

.thanks__inner {
    max-width: 720px;
}

.thanks__title {
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.thanks__text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.thanks__text--spaced {
    margin-bottom: 2.5rem;
}

.thanks__note {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
}

@media (max-width: 768px) {
    .thanks__container {
        min-height: auto;
        padding: 3rem 0;
    }

    .thanks__title {
        font-size: 1.4rem;
    }
}