.footer-desktop {
    display: block;
}

.footer-sp {
    display: none;
}

.inquiry-section {
    display: flex;
    background-color: #FFFFFF;
    color: #1a1a1a;
    border-top: 2px solid #0e0e0e;
    border-bottom: 2px solid #0e0e0e;
    min-height: 200px;
    transition: background-color 1.2s, color 1.2s, border-color 1.2s;
}

.inquiry-box {
    flex: 1;
    min-height: clamp(130px, 18vh, 200px);
    padding: clamp(20px, 2vw, 35px) clamp(15px, 2vw, 25px);
    border-right: 2px solid #0e0e0e;
    transition: border-color 1.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* inquiry-box */
.inquiry-box::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.inquiry-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(20px, 2vw, 26px);
    z-index: 2;
    transition: color 0.3s ease;
    opacity: 0;
}

/* inquiry-link内のテキスト */
.inquiry-link span:first-child {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
    padding: 50px;
    padding: clamp(15px, 3vw, 30px);
}

.arrow {
    display: block;
    width: clamp(250px, 25vw, 350px);
    height: 2px;
    background-color: #0e0e0e;
    position: absolute;
    bottom: clamp(30px, 3vw, 50px);
    right: clamp(20px, 4vw, 60px);
    z-index: 3;
    opacity: 0;
    transform-origin: right;
    transition: background-color 0.3s ease, transform 0.5s ease-out, opacity 0.5s ease-out, width 0.5s ease-out;
}

.arrow::after {
    content: '';
    position: absolute;
    top: -27px;
    right: -7px;
    width: 46px;
    height: 10px;
    border-top: 2px solid #0e0e0e;
    transform: rotate(35deg);
    transform-origin: left;
    transition: border-color 0.3s ease, transform 0.5s ease-out, opacity 0.5s ease-out;
}

.inquiry-section.isDark {
    background-color: #0e0e0e;
    color: #f2f1ee;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.inquiry-section.isDark .inquiry-box {
    border-right: 2px solid #ffffff;
}

.inquiry-section.isDark .inquiry-box:last-child {
    border-right: none;
}

.inquiry-section.isDark .inquiry-link {
    color: #f2f1ee;
    opacity: 1;
}

.inquiry-section.isDark .arrow {
    background-color: #ffffff;
    opacity: 1;
}

.inquiry-section.isDark .arrow::after {
    border-top-color: #ffffff;
}

@media (hover: hover) {
    .inquiry-section.isDark .inquiry-box:hover .inquiry-link {
        color: #1a1a1a;
    }

    .inquiry-section.isDark .inquiry-box:hover .arrow {
        background-color: #1a1a1a;
    }

    .inquiry-section.isDark .inquiry-box:hover .arrow::after {
        border-top-color: #1a1a1a;
    }

    .inquiry-box:hover::before {
        transform: scaleX(1);
    }

    .inquiry-box:hover .arrow {
        transform: translateX(20px);
    }
}

/* クリック時の矢印アニメーション */
.arrow.is-leaving {
    transform: translateX(100%) scaleX(0);
    width: 0;
    opacity: 0;
}

.arrow.is-leaving::after {
    transform: rotate(35deg);
    opacity: 0;
}

@media (max-width: 1024px) {
    .inquiry-section {
        min-height: auto;
    }

    .inquiry-box {
        padding: 75px 20px;
    }

    .inquiry-link {
        font-size: 20px;
        min-height: auto;
    }

    .arrow {
        width: 200px;
        bottom: 25px;
        right: 20px;
    }

    @media (hover: hover) {
        .inquiry-box:hover .arrow {
            transform: translateX(15px);
        }
    }
}

@media (max-width: 768px) {
    .inquiry-section {
        flex-direction: column;
    }

    .inquiry-box {
        padding: 75px 20px;
        border-right: none !important;
        border-bottom: 2px solid #ffffff;
    }

    .inquiry-box:last-child {
        border-bottom: none;
    }

    .inquiry-link {
        font-size: 20px;
    }

    .arrow {
        width: 180px;
        bottom: 20px;
        right: 20px;
    }

    @media (hover: hover) {
        .inquiry-box:hover .arrow {
            transform: translateX(10px);
        }
    }
}

@media (max-width: 480px) {
    .inquiry-box {
        padding: 60px 20px;
    }

    .inquiry-link {
        font-size: 16px;
    }

    .inquiry-link span:first-child {
        padding: 15px;
    }

    .arrow {
        width: 130px;
        bottom: 15px;
        right: 10px;
    }

    .arrow::after {
        width: 25px;
        height: 6px;
        top: -15px;
        right: -3px;
    }
}


.footer {
    background-color: #314a70;
    color: #FFFFFF;
    padding: 90px 0;
    font-family: sans-serif;
    min-height: 150px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-right: 350px;
    height: 100%;
}

.footer-info-section {
    display: flex;
    flex-direction: column;
    z-index: 1;
    flex-grow: 1;
    position: relative;
    padding-right: 0;
}

.footer-nav-pagetop-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    max-width: fit-content;
    transform: translateX(-20px);
}

.footer-nav ul li a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    overflow: hidden;
    height: auto;
    color: #FFFFFF;
    min-width: fit-content;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-nav ul li a span {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
    text-align: center;
    width: 100%;
}

.footer-nav ul li a .en {
    transform: translateY(0%);
    text-align: center;
}

.footer-nav ul li a .ja {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}

.footer-nav ul li a:hover .en {
    transform: translateY(-100%);
    width: 100%;

}

.footer-nav ul li a:hover .ja {
    transform: translateY(0%);
    opacity: 1;
    visibility: visible;
}

.footer-info {
    padding: 30px 0;
}

.footer-info p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-info .company-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-social {
    margin-top: 40px;
}

.footer-social img {
    width: 30px;
    height: auto;
}

.footer-divider-wrapper {
    position: relative;
    width: 100%;
}

.footer-divider {
    width: 100%;
    max-width: 890px;
    height: 1px;
    background-color: #CBBDB6;
    margin: 20px 0;
    opacity: 0.5;
}

.page-top {
    position: absolute;
    top: 120px;
    right: 0;
    text-align: center;
}

.page-top a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF;
    text-decoration: none;
}

.page-top a:hover {
    transform: scale(1.05);
}

.page-top a:active {
    transform: translateY(1px) scale(0.98);
    opacity: 0.8;
}

.page-top img {
    width: 40px;
    height: auto;
    margin-bottom: 5px;
}

.page-top p {
    margin: 0;
    font-size: 12px;
}

.copyright {
    font-size: 12px;
    margin-top: 0;
}

.footer-logo-section {
    width: 0;
}

/* ロゴ */
.footer-logo {
    position: absolute;
    height: 100%;
    width: auto;
    top: 0;
    right: 0;
    object-fit: contain;
    z-index: 0;
}

/* 電話番号 */
.tel-link {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .footer {
        padding: 50px 50px;
    }

    .footer-content {
        padding-right: 400px;
    }

    .page-top {
        padding-left: 30px;
    }

    .footer-divider {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .page-top {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateY(30px) translateX(30px);
    }

    .page-top img {
        width: 30px;
        margin-bottom: 4px;
    }

    .page-top p {
        font-size: 10px;
    }

    .footer-divider {
        width: 95%;
    }

    .footer-logo {
        height: 95%;
    }
}

@media (max-width: 480px) {
    .footer-desktop {
        display: none;
    }

    .footer-sp {
        display: block;
    }

    .footer {
        padding: 50px;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .footer-info-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-nav {
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-nav ul {
        display: none;
    }

    .footer-nav ul li {
        text-align: left;
    }

    .footer-nav ul li a {
        padding: 0;
        width: 100%;
    }

    .footer-logo-section {
        width: 150px;
        height: auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .footer-logo {
        width: 90%;
        height: auto;
        position: static;
    }

    .contact-info-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-info,
    .footer-social,
    .copyright {
        text-align: center;
    }

    .footer-info {
        width: fit-content;
        text-align: left;
        padding: 15px 0;
    }

    .social-and-pagetop {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-social {
        padding-left: 50px;
    }

    .footer-social img {
        width: 40px;
    }

    .footer-divider-wrapper {
        padding-left: 20px;
    }

    .footer-divider {
        width: 90%;
        margin: 15px auto;
    }

    .page-top {
        display: block;
        text-align: center;
        padding: 0;
        position: absolute;
        left: 50%;
        top: 0%;
        transform: translateY(-60px) translateX(30px);
    }

    .page-top a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        font-size: 12px;
    }

    .page-top a img {
        width: 30px;
        height: auto;
        margin-bottom: 5px;
    }

    .page-top a p {
        margin: 0;
        white-space: nowrap;
    }
}


@media (max-width: 320px) {
    .footer-nav ul {
        padding-left: 30px;
    }

    .footer-social {
        padding-left: 20px;
    }

    .footer-divider {
        width: 100%;
        margin: 15px auto;
    }

    .page-top a {
        margin-right: 15px;
    }
}

/* 電話番号 */
@media (hover: hover) {
    .tel-link:hover {
        text-decoration: underline;
    }
}