/*
 * フッター専用スタイル
 */

/* l-copyright上書き */
.l-copyright {
    padding-block-end: var(--margin-xl);
}

/* 新フッター */
.p-footer-new__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--margin-xl);
}

/* info部分 */
.p-footer-new__info {
    background-color: #fff;
    padding-block: var(--margin-xl) var(--margin-2xl);
    margin-top: calc(-1 * var(--section-l));
    width: 100%;
}

.p-footer-new__info-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

.p-footer-new__catch {
    color: var(--color--base--gray);
    font-size: 18px;
}

.p-footer-new__logo {
    margin: 0;
}

.p-footer-new__logo img {
    max-width: clamp(280px, 40vw, 560px);
    height: auto;
}

.p-footer-new__address {
    color: var(--color--base--gray);
    font-size: 18px;
}

/* 電話・お問い合わせ */
.p-footer-new__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--margin-l);
    margin-top: var(--margin-m);
}

.p-footer-new__tel {
    display: flex;
    align-items: center;
    gap: 0.3em;
    text-decoration: none;
    color: var(--color--base--black);
    transition: opacity 0.3s ease;
}

.p-footer-new__tel:hover {
    opacity: 0.7;
}

.p-footer-new__tel-icon {
    width: 24px;
    height: auto;
}

.p-footer-new__tel-num {
    font-family: "Roboto", var(--font-family-default);
    font-size: 28px;
    font-weight: var(--font-weight--bold);
    color: #464646;
}

.p-footer-new__tel-note {
    font-size: 14px;
    color: #464646;
}

.p-footer-new__mail {
    display: flex;
    align-items: center;
    gap: 0.5em;
    text-decoration: none;
    color: #3caa46;
    font-weight: var(--font-weight--bold);
    font-size: 18px;
    transition: opacity 0.3s ease;
}

.p-footer-new__mail:hover {
    opacity: 0.7;
}

.p-footer-new__mail-icon {
    width: 28px;
    height: auto;
}

/* nav部分 */
.p-footer-new__nav {
    width: 100%;
    padding-block: var(--margin-l);
}

/* フッターナビ アコーディオン */
.p-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 clamp(8px, 2vw, var(--margin-l));
    max-width: 1100px;
    margin: 0 auto;
}

.p-footer-nav__container {
    display: contents;
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-footer-nav__header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5em;
}

.p-footer-nav__anchor {
    color: var(--color--base--gray);
    text-decoration: none;
    font-weight: var(--font-weight--bold);
    font-size: clamp(16px, 2vw, 20px);
    letter-spacing: -0.05em;
    border: none;
    padding: 0.4em 0;
}

.p-footer-nav__item {
    border: none;
}

.p-footer-nav__anchor:hover {
    opacity: 0.7;
}

/* トグルボタン（＋/−） */
.p-footer-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease;
}

.p-footer-nav__toggle:hover {
    opacity: 0.7;
}

.p-footer-nav__toggle-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.p-footer-nav__toggle-icon::before,
.p-footer-nav__toggle-icon::after {
    content: '';
    position: absolute;
    background-color: #3caa46;
    transition: transform 0.3s ease;
}

/* 横線 */
.p-footer-nav__toggle-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

/* 縦線（＋の状態） */
.p-footer-nav__toggle-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%) rotate(0deg);
}

/* 開いた状態（−）- 時計回りで90度回転 */
.p-footer-nav__toggle[aria-expanded="true"] .p-footer-nav__toggle-icon::after {
    transform: translateX(-50%) rotate(90deg);
}

/* 子メニュー */
.p-footer-nav-child {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.p-footer-nav__item.is-open .p-footer-nav-child {
    max-height: 1000px;
}

.p-footer-nav-child__anchor {
    display: block;
    padding: 0.15em 0;
    padding-left: 1em;
    color: var(--color--base--gray);
    text-decoration: none;
    font-size: 14px;
}

.p-footer-nav-child__anchor:hover {
    opacity: 0.7;
}

/* CTA部分 */
.p-footer-new__cta {
    background-color: #fff;
    padding-block: var(--margin-xl);
    width: 100%;
}

.p-footer-new__cta-inner {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: var(--margin-m);
}

.p-footer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 8px;
    padding: 1em 1.2em;
    width: 420px;
    height: 94px;
    transition: opacity 0.3s ease;
}

.p-footer-cta:hover {
    opacity: 0.8;
}

.p-footer-cta--orange {
    background-color: #ff6400;
    color: #fff;
}

.p-footer-cta--line {
    background-color: #3caa46;
    color: #fff;
    flex-direction: row;
    gap: 0.8em;
}

.p-footer-cta__line-icon {
    width: 48px;
    height: auto;
}

.p-footer-cta__text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.p-footer-cta__sub {
    font-size: clamp(10px, 2vw, 17px);
    line-height: 1.4;
    letter-spacing: -0.03em;
}

.p-footer-cta__main {
    font-size: clamp(22px, 3vw, 27px);
    font-weight: var(--font-weight--bold);
    line-height: 1.4;
    letter-spacing: -0.03em;
}

/* タブレット・小型PC用 */
@media (max-width: 1024px) {
    .p-footer-cta {
        width: clamp(23.125rem, 13.701rem + 19.61vw, 26.25rem);
    }
}

/* SP用 */
@media (max-width: 768px) {
    .p-footer-new__info {
        padding-bottom: 40px;
    }

    .p-footer-new__catch,
    .p-footer-new__address {
        font-size: 14px;
    }

    .p-footer-new__contact {
        flex-direction: column;
        gap: 5px;
    }

    .p-footer-new__tel-num {
        font-size: 20px;
    }

    .p-footer-new__tel-icon {
        width: 18px;
    }

    .p-footer-new__mail {
        font-size: 18px;
    }

    .p-footer-nav {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .p-footer-nav__anchor {
        font-size: clamp(16px, 4vw, 20px);
        line-height: 1.4;
        padding-block: clamp(2px, 1vw, 7px);
    }

    .p-footer-nav__header {
        padding: 0;
    }

    /* CTA SP */
    .p-footer-new__cta-inner {
        flex-direction: column;
        align-items: center;
    }

    .p-footer-cta {
        width: 100%;
        height: clamp(64px, 9vw, 71px);
        min-width: auto;
        max-width: 450px;
    }

    .p-footer-cta__sub {
        font-size: clamp(12px, 2.8vw, 14px);
    }

    .p-footer-cta__main {
        font-size: clamp(18px, 4.5vw, 24px);
    }

    .p-footer-cta__line-icon {
        width: clamp(32px, 6vw, 46px);
    }

    .p-footer-cta--line {
        gap: 0.5em;
    }
}

/* 固定ボタン（デスクトップ） */
.p-fixed-desktop {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--margin-2xs);
    position: fixed;
    right: 0;
    top: calc(var(--header-height) + 10%);
    z-index: 101;
}

.p-fixed-desktop__anchor {
    display: block;
    text-align: end;
    transition: opacity 0.3s ease;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    box-shadow: -5px 0 12px -2px rgba(100, 100, 100, 0.4);
}

.p-fixed-desktop__anchor img {
    display: block;
}

.p-fixed-desktop__anchor:hover {
    opacity: 0.8;
}

@media (max-width: 1460px) {
    .p-fixed-desktop {
        display: none;
    }
}
