/*========================================
  FOOTER
========================================*/
.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-footer {
    width: 100%;
    background: #063f78;
    color: #ffffff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    min-height: 48px;
    margin: 0 auto;
    padding: 10px 24px;
}

/*左メニュー*/
.footer-nav ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav li {
    position: relative;
    margin: 0;
    padding: 0 13px;
}

.footer-nav li:first-child {
    padding-left: 0;
}

/* 区切り線 */
.footer-nav li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%);
}

.footer-nav a {
    display: block;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
}


/*コピーライト*/
.footer-copy {
    margin: 0;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        min-height: auto;
        padding: 14px 12px;
    }

    .footer-nav ul {
        justify-content: center;
    }

    .footer-nav li {
        padding: 0 9px;
    }

    .footer-nav a {
        font-size: 11px;
    }

    .footer-copy {
        font-size: 10px;
        text-align: center;
    }

    body {
        padding-bottom: 89px;
    }
}

/*========================================
  PC用 横固定画像
========================================*/
.pc-side-image {
    position: fixed;
    z-index: 2800;
    top: 175px;
    right: 0;
    display: block;
    width: 120px;
    max-height: calc(100vh - 195px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition:
        transform 0.4s ease,
        opacity 0.4s ease,
        visibility 0.4s ease;
    text-decoration: none;
}

.pc-side-image.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.pc-side-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 195px);
    object-fit: contain;
    object-position: top right;
}

@media (min-width: 769px) and (max-width: 1300px) {
    .pc-side-image {
        top: 165px;
        width: 100px;
        max-height: calc(100vh - 185px);
    }

    .pc-side-image img {
        max-height: calc(100vh - 185px);
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .pc-side-image {
        top: 155px;
        width: 90px;
        max-height: calc(100vh - 175px);
    }

    .pc-side-image img {
        max-height: calc(100vh - 175px);
    }
}

@media (min-width: 769px) and (max-height: 700px) {
    .pc-side-image {
        top: 145px;
        width: 80px;
        max-height: calc(100vh - 165px);
    }

    .pc-side-image img {
        max-height: calc(100vh - 165px);
    }
}

@media (max-width: 768px) {
    .pc-side-image {
        display: none;
    }
}

/* ========================================
   SP 下部固定電話
======================================== */
.sp-fixed-contact,
.sp-fixed-contact * {
    box-sizing: border-box;
}

.sp-fixed-contact {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 119px;
    }

    .sp-fixed-contact {
        position: fixed;
        z-index: 3000;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        width: 100%;
        padding: 7px 10px 9px;
        background:
            linear-gradient(135deg,
                #063f78 0%,
                #052f5d 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow:
            0 -3px 12px rgba(0, 0, 0, 0.14);
    }

    /* 上部 */
    .sp-fixed-contact-head {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-bottom: 3px;
        color: #ffffff;
        text-align: center;
    }

    .sp-fixed-contact-question {
        display: inline-block;
        padding: 2px 7px;
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;
        font-size: 11px;
        line-height: 1.35;
        font-weight: 700;
        white-space: nowrap;
    }

    .sp-fixed-contact-title {
        display: block;
        color: #ffffff;
        font-size: 15px;
        line-height: 1.25;
        font-weight: 700;
        letter-spacing: 0.04em;
    }

    /* 空き状況 */
    .sp-fixed-contact-message {
        margin: 0 0 6px;
        color: #ffffff;
        font-size: 12px;
        line-height: 1.3;
        font-weight: 600;
        text-align: center;
        opacity: 0.95;
    }

    .sp-fixed-contact-button {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 58px;
        padding: 6px 58px;
        border: 1px solid #b92f2f;
        border-radius: 50px;
        background:
            linear-gradient(135deg,
                #d94a4a 0%,
                #b92f2f 100%);

        color: #ffffff;
        text-decoration: none;
        box-shadow:
            0 2px 6px rgba(120, 20, 20, 0.22);
        transition:
            background-color 0.2s ease,
            transform 0.2s ease;
    }

    .sp-fixed-contact-button:active {
        transform: scale(0.99);
    }

    .sp-fixed-contact-badge {
        position: absolute;
        top: 50%;
        left: 65px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 43px;
        height: 43px;
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        background: #ffffff;
        color: #b92f2f;
        transform: translateY(-50%);
        font-size: 14px;
        line-height: 1.05;
        font-weight: 800;
        letter-spacing: 0.05em;
    }

    .sp-fixed-contact-badge span {
        display: block;
    }

    .sp-fixed-contact-button-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 0;
        text-align: center;
    }

    .sp-fixed-contact-label {
        display: block;
        margin-bottom: 3px;
        color: #ffffff;
        font-size: 12px;
        line-height: 1.2;
        font-weight: 700;
        letter-spacing: 0.03em;
    }

    .sp-fixed-contact-call {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        color: #ffffff;
        font-size: 22px;
        line-height: 1;
        font-weight: 800;
        letter-spacing: 0.06em;
    }

    .sp-fixed-contact-icon {
        display: block;
        width: 21px;
        height: 21px;
        object-fit: contain;
        flex-shrink: 0;
    }
}

@media (max-width: 390px) {
    body {
        padding-bottom: 112px;
    }

    .sp-fixed-contact {
        padding: 6px 7px 8px;
    }

    .sp-fixed-contact-head {
        gap: 5px;
    }

    .sp-fixed-contact-question {
        padding: 2px 5px;

        font-size: 10px;
    }

    .sp-fixed-contact-title {
        font-size: 14px;
    }

    .sp-fixed-contact-message {
        margin-bottom: 5px;
        font-size: 11px;
    }

    .sp-fixed-contact-button {
        min-height: 55px;
        padding-right: 50px;
        padding-left: 50px;
    }

    .sp-fixed-contact-badge {
        left: 45px;
        width: 42px;
        height: 42px;
        font-size: 12px;
    }

    .sp-fixed-contact-label {
        font-size: 11px;
    }

    .sp-fixed-contact-call {
        gap: 6px;

        font-size: 20px;
    }

    .sp-fixed-contact-icon {
        width: 20px;
        height: 20px;
    }
}

/*========================================
  TOPへ戻る
========================================*/
.page-top {
    position: fixed;
    z-index: 4000;
    right: 20px;
    bottom: 85px;
    width: 52px;
    height: 52px;
    border: 1px solid #063f78;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background-color 0.2s ease;
    text-decoration: none;
}

.page-top::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 2px solid #063f78;
    border-left: 2px solid #063f78;
    transform: translateX(-50%) rotate(45deg);
}

.page-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-top:hover {
    background: #063f78;
}

.page-top:hover::before {
    border-color: #ffffff;
}

@media (max-width: 768px) {
    .page-top {
        right: 12px;
        bottom: 105px;
        width: 46px;
        height: 46px;
    }

    .page-top::before {
        top: 19px;
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 390px) {
    .page-top {
        right: 10px;
        bottom: 100px;
        width: 44px;
        height: 44px;
    }

    .page-top::before {
        top: 18px;
    }
}