:root {
    --pd-LR: 15px;
    --gurade:
    linear-gradient(120deg, rgba(52, 8, 0, 0.8), rgba(255, 255, 255, 0)), linear-gradient(185deg, rgba(173, 79, 0, 0.8), rgba(255, 255, 255, 0)), linear-gradient(340deg, rgba(80, 80, 80, 1), rgba(255, 255, 255, 0));
}

footer {
    color: #fff;
    background-color: rgba(9, 76, 150, 0.3);
    background-blend-mode: multiply;
    padding: var(--pd-LR);
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#footer-main {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content: center;
    z-index: 100;
}
#footer-main div > h2 + p {
    font-size: .8rem;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
      word-break: break-word;
      line-break: normal;
      text-align: justify;
        text-justify: inter-ideograph;
}

#footer-main ul {
    margin:0;
    padding: 0;
    list-style-type: none;
    text-decoration: none;
}
#footer-main div {
    display: inline-block;
    margin-bottom: 4rem;
    max-width: 80%;
    min-width: 80%;
}
#footer-main h2 {
    position: relative;
    text-align: center;
    margin-bottom: .2rem;
}
#footer-main h2:before {
    position: absolute;
    content: " ";
    width: 2em;
    top: .5em;
    left: 0;
    border-bottom: 1px solid #fff;
}

#footer-main h2:after {
    position: absolute;
    content: " ";
    width: 2em;
    top: .5em;
    right: 0;
    border-bottom: 1px solid #fff;
}

 #footer-main a{
    list-style-type: none;
    text-decoration: none;
}

#common-footer {
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    height: auto;
    min-height: 100svh;
}

#footer-main .footer-icon {
    width: 100%;
    padding: .5rem;
    max-width: unset;
    margin-bottom: .5rem;
    margin: 0 auto;
    text-align: center;
}
.footer-icon svg {
    scale:1.1;
}

footer, #footer-copyright {
   background-color: rgba(120,120,120,0.4);
background-blend-mode: multiply;
background-size: 170px;
}


@media (min-width: 1024px) {
/* header, main, .main-toppage-area, #header-main, #header-sub, #footer-main { */
#footer-main {
    width: 980px;
    margin: 0 auto;
}

    footer {
        min-height: 650px;
    }

    #footer-copyright {
        min-height: 15px;
    }
    footer {
        position: relative;
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    footer {
        padding: 0;

    }

    #footer-main {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px;
        padding-top: 120px;
        text-align: left;
        align-items: start;
    }

    #footer-main > div{
        display: block;
        width: auto;
        min-width: 0;
        max-width: unset;
        text-align: left;
        margin-bottom: 5rem;
    }
    #footer-main > div h2 {
        margin-bottom: 2rem;
      text-align: center;
      position: relative;
    }
    #footer-main > div h2:before {
        position: absolute;
        content: " ";
        width: 1.3rem;
        top: .8rem;
        left: 0;
        border-bottom: 1px solid #fff;
    }

    #footer-main > div h2:after {
        position: absolute;
        content: " ";
        width: 1.3rem;
        top: .8rem;
        right: 0;
        border-bottom: 1px solid #fff;
    }

        #footer-main h2:before {
            width: 1em;
            top: .5em;
            left: -2rem;
        }

        #footer-main h2:after {
            width: 1em;
            top: .5em;
            right: -2rem;
        }

    .footer-icon svg {
        scale:1.5;
    }

}

/** basic・buddyで共有する既存フッターの外観。 */
#mountain-outline {
position: sticky;
	width: 100%;
	height: 120px;
	bottom: 0;
	z-index:300;
	pointer-events: none;
}
#mountain-outline { height: 68px; background: #344b3c; mask: url(/images/mountain-footer-blue.png) center bottom / 1000px auto no-repeat; }
#common-footer,
#footer-copyright { background: #344b3c; }
#footer-main h2 { font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.1; letter-spacing: normal; }
#footer-main h2::before,
#footer-main h2::after { display: none; }

@media (min-width: 1024px) {
    #mountain-outline { height: 100px; mask-size: 1600px auto; }
}
