/* ==================================================
   File: layout.css
   Purpose: ヘッダー、フッター、サイドバーなど
            レイアウト専用のスタイルをまとめる
================================================== */

/* ===== header ====== */
header {
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%;
    padding: 1.25rem;
}
.header-inner {
    position: relative;
    justify-content: space-between;
    width: 100%;
    min-width: 762px;
    height: 80px;
    padding: 13px;
    background-color: #FFFFFF;
    border-radius: 2rem;
}

/*--サイトロゴ--*/
.site-title {
    display: inline-block;
    width: auto;
    line-height: 0;
}
.site-title a {
    display: inline-block;
    width: fit-content;
    cursor: pointer;
}
.site-title-logo {
    width: 185px;
}

/*--メニュー--*/
.header-nav ul {
    gap: 3.25rem;
}
.header-nav-item a{
    font-family: var(--font-lato);
    font-weight: 700;
    opacity: 1;
    transition: all 0.5s;
}
.header-nav-item a:hover {
    opacity: 0.5;
}
.header-nav-item a span {
    font-family: var(--font-noto-sans);
    font-size: 0.625rem;
    font-weight: 500;
}
.burger-menu-conteiner {
    display: none;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: 100%;
    cursor: pointer;
}
.burger-menu {
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(to right, #b6f09e 0%, #2bb7a0 100%);
    border-radius: 50%;
    gap: 8px;
}
.bar{
    display: inline-block;
    width: 25px;
    height: 2px;
    background-color: #FFFFFF;
    transition: all 0.3s;
}
.menu-active .bar-top {
    transform: translateY(10px) rotate(-45deg);
    width: 28px;
}
.menu-active .bar-mid {
    opacity: 0;
}
.menu-active .bar-bottom {
    transform: translateY(-10px) rotate(45deg);
    width: 28px;
}
@media (max-width: 1062px) {
    .header-nav ul {
        gap: 2.5vw;
    }
}
@media (max-width: 900px) {
    .header-nav ul {
        gap: 2vw;
    }
    .site-title-logo {
        width: 130px;
    }
}
@media (max-width: 768px) {
    header {
        padding: 0;    
    }
    .header-inner {
        width: 100%;
        min-width: unset;
        padding: 13px 18px;
        border-radius: 0;
    }
    .header-nav-conteiner {
        position: absolute;
        top: 80px;
        right: -100vw;
        width: 100%;
        height: calc(100vh - 80px);
        padding: 0 24px;
        background-color: #FFFFFF;
        opacity: 0;
        transition: all 0.5s;
    }
    .menu-active.header-nav-conteiner {
        right: 0;
        opacity: 1;
    }
    .header-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .header-nav ul li {
        padding: 26px 4px;
        border-bottom: 1px solid;
        border-image: linear-gradient(to right, #78E19E 0%, #087964 100%) 1;
    }
    .header-nav ul li:last-child {
        justify-content: center;
        margin-top: 35px;
        border-bottom: none;
    }
    .header-nav ul li a:not(.header-nav ul li:last-child a) {
        flex-direction: row;
        align-items: flex-end;
        background: linear-gradient(to right, #78E19E 0%, #087964 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-size: 24px;
    }
    .header-nav ul li a span {
        background: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        -webkit-text-fill-color: initial !important;
        color: inherit;
        font-size: 12px;
        font-weight: 400;
        margin-left: 14px;
        padding-bottom: 4px;
    }
    .burger-menu-conteiner {
        display: flex;
    }
}

/* ===== footer ====== */
footer {
    padding: 0 16px;
    background: linear-gradient(to bottom right, #9DE69E 0%, #087964 100%);
}
.footer-inner {
    width: 100%;
    max-width: 1000px;
    margin: auto auto;
    padding: 20px 0;
}
.footer-contents {
    padding-top: 90px;
}
.left-column,
.right-column {
    width: 50%;
}
.left-column {
    position: relative;
}
.left-column p {
    position: relative;
    color: #FFFFFF;
    font-size: 2.5rem;
}
.left-column img {
    position: absolute;
    top: 100%;
    left: 0;
    width: 190px;
}
.footer-menu-wrapper {
    margin-bottom: 74px;
}
.footer-menu {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-auto-flow: column;
    gap: 47px 10.1%;
}
.footer-menu li:nth-child(-n+3) {
    grid-column: 1;
}
.footer-menu li:nth-child(n+4) {
    grid-column: 2;
}
.footer-menu li a{
    color: #FFFFFF;
    font-family: var(--font-lato);
    font-size: 2rem;
    font-weight: 700;
}
.footer-menu li a span{
    font-family: var(--font-noto-sans);
    font-size: 0.75rem;
}
.footer-sub-menu-wrapper {
    justify-content: flex-end;
    margin-bottom: 124px;
}
.footer-sub-menu {
    width: 50%;
}
.footer-sub-menu li a {
    color: #FFFFFF;
    font-size: 0.75rem;
    line-height: 25px;
}
.copyr {
    color: #FFFFFF;
    font-size: 0.75rem;
}
@media (max-width: 768px) {
    .footer-contents {
        padding: 45px 20px 0 20px;
        flex-direction: column-reverse;
    }
    .left-column,
    .right-column {
        width: 100%;
    }
    .left-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 76px;
    }
    .left-column p {
        width: fit-content;
        margin-bottom: 25px;
        font-size: 2rem;
    }
    .left-column img {
        position: relative;
        top: 0;
        margin-left: -2em;
    }
    .footer-menu-wrapper {
        display: flex;
        justify-content: center;
    }
    .footer-menu {
        width: fit-content;
        gap: 51px 59px;
    }
    .footer-menu li {
        width: fit-content;
    }
    .footer-menu li a{
        width: fit-content;
        font-size: 24px;
    }
    .footer-sub-menu-wrapper {
        justify-content: center;
        margin-bottom: 32px;
    }
    .footer-sub-menu {
        display: flex;
        flex-wrap: wrap;
        width: 264px;
        gap: 0.5em;
    }
    .copyr {
        text-align: center;
    }
}

.br-sp {
  display: none;
}

@media screen and (max-width: 1080px) {
  .br-pc {
    display: none;
  }

  .br-sp {
    display: inline-block;
  }
}

[id] {
  scroll-margin-top: 80px;
}