.footer {
    background: var(--c-gray-120);
    color: var(--c-white);
    font-style: normal;
    font-weight: 500;
    font-size: 0.875rem;
    word-break: keep-all;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin: 0 auto;
    position: relative;
}

.footer-column li {
    padding: 0.5rem 0;
}

.footer-column a {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

@media (hover:hover) {

    .footer-column a{
        transition: opacity 0.2s ease-out;
    }

    .footer-column a:hover {
        opacity: 0.5;
    }

}

.footer-column img {
    flex-shrink: 0;
}

.footer-news-link {
    margin-bottom: 3rem;
}

.footer-link-title{
    padding-block: 0.375rem;
}

.footer-link-title .en{
    color: var(--c-gray-30);
}

.footer-link-title p {
    margin-bottom: 0.3rem;
    font-style: normal;
    font-weight: 200;
    font-size: 0.625rem;
    line-height: 100%;
    white-space: nowrap;
}

.footer-link-title h2 {
    color: var(--c-white);
    font-style: normal;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 150%;
}

.details-title .en {
    margin-bottom: 0.3rem;
    font-style: normal;
    font-weight: 200;
    font-size: 0.625rem;
    line-height: 100%;
    white-space: nowrap;
    color: var(--c-gray-30);
}

.details-title h2 {
    color: var(--c-white);
    font-style: normal;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 150%;
}

.footer-sublist {
    column-gap: 1rem;
    columns: 2;
}

.footer-column-line {
    position: relative;
    padding-left: 1rem !important;
}

.footer-column-line::before {
    position: absolute;
    top: calc(0.5rem + (1em * 0.75));;
    left: 0;
    transform: translateY(-50%);
    background-color: var(--c-gray-30);
    width: 0.5rem;
    height: 1px;
    content: "";
}

@media (hover:hover) {

    .footer-column-line::before {
        transition: 0.2s;
    }

    .footer-column-line:has(.footer-column-line a:hover):before {
        opacity: 0;
    }
}

.footer-column-bottom-link a {
    display: inline !important;
}

.footer-column-bottom-link a img{
    display: inline-block;
    flex-shrink: 0;
    align-items: center;
    vertical-align: text-bottom;
    margin-left: 0.125rem;
}

.footer-sns-logo {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    margin-top: 6rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1.5rem;
}

.footer-sns {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-sns-nichidairikou {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    p{
        padding-inline-end: 0.5rem;
    }

}

.footer-sns-nichidai {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    p{
        padding-inline-end: 0.5rem;
    }
}

.footer-sns-icon {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border: 1px solid var(--c-gray-30);
    border-radius: 50%;
    background-color: var(--c-gray-120);
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
}

@media (hover:hover) {

    .footer-sns-icon{
        transition: background-color 0.2s ease-in-out;
    }

    .footer-sns-icon:hover{
        background-color: rgba(255, 255, 255, 0.2);

    }

}

.footer-sns-icon img {
    width: 1.25rem;
    height: auto;
}

.footer-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.625rem;
    gap:5rem;
}

.copy{
    font-family: var(--f-en);
    font-weight: 200;
    flex-shrink: 0;
}

.totop{
    display: flex;
    justify-content: center;
    align-items: center;
    width:3rem;
    height:3rem;
    position: absolute;
    top:-7.5rem;
    right:0;
    background: var(--c-gray-120);
    border-width: 0.0625rem;
    border-color: var(--c-white);
    border-radius: 50%;
}

@media (hover:hover) {
    .totop{
        transition: transform 0.2s ease-out;
    }

    .totop:hover {
        transform: translateY(-4px);
    }
}

/* 992px以上：アコーディオン無効化*/
.details {
    display: block;
}

.details-title {
    cursor: default;
    list-style: none;

}

.details-title::marker,
.details-title::-webkit-details-marker,
.details-title::before,
.details-title::after {
    display: none;
    content: none;
}

summary {
    display: block;
}

@media (min-width: 991.98px) and (max-width: 1439.98px) {
    .footer-sublist {
        column-gap: 2rem;
        columns: 1;
    }
}

/*デスクトップサイズ以下*/
@media only screen and (max-width: 991.98px) {
    .footer .mt40 {
        margin-top: 1rem;
    }

    .footer-container {
        display: block;
        justify-content: space-between;
        gap: 3rem;
        margin: 0 auto;
    }

    .footer-link-title h2 {
        font-size: 1rem;
    }

    .footer-news-link {
        margin-block: 0;
    }

    .footer-news-link a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: inherit;
        text-decoration: none;
    }

    .footer-news-link a::after {
        display: inline-block;
        margin-right: 0.12rem;
        background-image: url("/assets/home/icon_link_arrow_up_white.svg");
        background-size: contain;
        background-repeat: no-repeat;
        width: 1rem;
        height: 1rem;
        content: "";
    }

    .footer-border {
        border-bottom: 1px solid var(--c-gray-80);
        padding-block: 1rem;
    }

    .footer-column-bottom {
        margin-top: calc(3rem - 0.375rem);
        color: var(--c-white);
    }

    .footer-sublist{
        margin-top: 0.75rem !important;
        font-size: 0.75rem;
        columns: 1;
    }

    .footer-sublist li{
        padding-block: 0.375rem;
    }

    .infomation {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-column-bottom-link {
        display: flex;
        gap: 1rem;
        margin-top: calc(1.5rem - 0.75rem) !important;
        font-size: 0.75rem;
    }

    .footer-column-line::before{
        top: calc(0.5rem + (1em * 0.5));;
    }

    .footer-sns-logo {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 3rem;
        font-size: 0.75rem;
    }

    .footer-sns-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.4rem;
        width: 2rem;
        height: 2rem;
    }

    .footer-text {
        flex-direction: column;
        gap: 0.5rem;
    }

    /*アコーディオン*/
    .details-title {
        position: relative;
        padding-inline-end: 2rem;
    }

    .details-contents{
        margin-inline-start: 1.25rem;
    }

    .details-title::marker,
    .details-title::-webkit-details-marker {
        display: none;
        content: none;
    }

    .details-title::before,
    .details-title::after {
        display: inline-block;
        position: absolute;
        top: 50%;
        right: 0.3rem;
        transform: translateY(-50%);
        background-color: var(--c-white);
        width: 0.625rem;
        height: 1px;
        content: "";
    }

    .details-title::after {
        transform: translateY(-50%) rotate(90deg);
    }

    .details[open] .details-title::after {
        display: none;
    }
}

/*タブレットサイズ以下*/
@media screen and (max-width: 767.98px) {
    .footer-column-bottom-link {
        display: flex;
        grid-template-columns: auto auto auto;
        justify-content: start;
        gap: 1rem;
        flex-wrap:wrap;
        row-gap: 0.25rem;
    }

    .totop{
        top: -5.5rem;
    }
}

/*スマホサイズ以下*/
@media only screen and (max-width: 575.98px) {
    .footer-sns {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
