@charset "utf-8";

/* ------------------------------
    共通設定
--------------------------------- */
:root {
    /* 色 */
    --color-beige: #DACDC2;
    --color-white: #FFF;
    --color-gray: #f1f1f1;
    --color-bg: #F4F0EC;
    --color-font: #333;
    /* 文字サイズ */
    --font-size-sp-text: 14px;
    --font-size-pc-text: 16px;
    --font-size-sub-midashi: 20px;
    --font-size-sp-midashi: 24px;
    --font-size-pc-midashi: 32px;
}

body {
    font-family: "Zen Maru Gothic", "Nunito", serif;
    font-size: var(--font-size-sp-text);
    color: var(--color-font);
    background: var(--color-bg);
}
@media(min-width: 768px) {
    body {
        font-size: var(--font-size-pc-text);
    }
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

/* ----------------------------------------
    共通パーツ
------------------------------------------- */
/* コンテンツ幅 */
.container {
    padding-left: 20px;
    padding-right: 20px;
}
.pc-only {
    display: none;
}

@media (min-width: 768px) {
    .container {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .sp-only {
        display: none;
    }
    .pc-only {
        display: block;
    }

}

/* ロゴ */
.logo {
    display: flex;
    justify-content: start;
    align-items: center;
    font-size: var(--font-size-sub-midashi);
    font-weight: bold;
    gap: 10px;

    img {
        width: 50px;
        height: 50px;
        object-fit: cover;
    }
}
@media (min-width: 768px) {
    .logo {
    
        img {
            width: 60px;
            height: 60px;
            object-fit: cover;
    
        }
    }
}

/* ページボタン */
.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-left: auto;
    margin-right: auto;

    width: 200px;
    height: 42px;
    border-radius: 50px;
    border: 2px solid var(--color-font);
    background: var(--color-beige);
    transition: all 0.5s;

    span {
        font-weight: 500;
        letter-spacing: 1.6px;
    }

    svg {
        width: 1.5rem;
        stroke: var(--color-font);
    }
}
.page-btn:hover {
    background: var(--color-bg);
}
@media (min-width: 768px) {
    .page-btn {
        width: 250px;
        height: 50px;

        span {
            font-size: var(--font-size-sub-midashi);
            letter-spacing: 2px;
        }
    
        svg {
            width: 30px;
        }
    }
}

/* 見出し */
.midashi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 40px;
}
.midashi__small-circle {
    border-radius: 9999px;
    background: var(--color-font);
    width: 14px;
    height: 14px;
}
.midashi__big-circle {
    border-radius: 9999px;
    background: var(--color-font);
    width: 20px;
    height: 20px;
}
.midashi__text {
    padding: 0 4px;
    font-size: var(--font-size-sp-midashi);
    font-weight: 500;
    letter-spacing: 2.4px;
}
@media (min-width: 768px) {
    .midashi {
        gap: 20px;
        margin-bottom: 60px;
    }
    .midashi__small-circle {
        width: 1rem;
        height: 1rem;
    }
    .midashi__big-circle {
        width: 24px;
        height: 24px;
    }
    .midashi__text {
        padding: 0 12px;
        font-size: var(--font-size-pc-midashi);
        letter-spacing: 3.2px;
    }
}

/* サブ見出し */
.sub-midashi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 40px;
}
.sub-midashi__circle {
    border-radius: 9999px;
    background: var(--color-font);
    width: 1rem;
    height: 1rem;
}
.sub-midashi__text {
    padding: 0 4px;
    font-size: var(--font-size-sub-midashi);
    font-weight: 500;
    letter-spacing: 2.0px;
}
@media (min-width: 768px) {
    .sub-midashi {
        gap: 20px;
        margin-bottom: 60px;
    }
    .sub-midashi__circle {
        width: 20px;
        height: 20px;
    }
    .sub-midashi__text {
        padding: 0 12px;
        font-size: var(--font-size-sp-midashi);
        letter-spacing: 3.2px;
    }
}

/* パンくずリスト */
.breadcrumb {
    padding-top: calc(70px + 40px);
    padding-bottom: 40px;
}
.breadcrumb__list {
    display: flex;
    font-size: 12px;
}
.breadcrumb__item {
    display: flex;
    align-items: center;
    /* 改行しない */
    white-space: nowrap;
}
.breadcrumb__item:not(:last-of-type)::after {
    content: "＞";
    margin-left: 6px;
    margin-right: 6px;
    font-size: 12px;
}
.breadcrumb__link {
    text-decoration: underline;
}
.breadcrumb__text {
    /* １行表示 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    white-space: break-spaces;
}

@media (min-width: 768px) {
    .breadcrumb {
        padding-top: calc(90px + 40px);
    }
    .breadcrumb__list {
        font-size: 14px;
    }
    .breadcrumb__item:not(:last-of-type)::after {
        margin-left: 8px;
        margin-right: 8px;
        font-size: 14px;
    }
}

/* ----------------------------------------
    ヘッダー
------------------------------------------- */
.header {
    padding-left: 20px;
    padding-right: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 30;
}

.header__btn {
    position: fixed;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    z-index: 50;
    background-image:url(../img/research-item-bg.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 90%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s;
}
.header__btn-img {
    width: 50px;
    height: 42px;
    background-image:url(../img/menu-btn-close.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 42px 42px;
    transition: all 0.5s;
}
.header__btn-open,
.header__btn-close {
    font-size: 12px;
    transition: all 0.5s;
}
.header__btn-close {
    display: none;
}

.header__nav {
    position: fixed;
    /* top: 70px; */
    padding-top: 70px;
    top: 0;
    left: 0;
    width: 100%;
    /* height: calc(100% - 70px); */
    height: 100%;
    transform: translateX(100%);
    transition: 0.5s ease;
    

    display: flex;
    justify-content: center;
    align-items: center;
    /* padding-top: 40px; */
    /* z-index: 1000; */
}


.header__item {
    width: 213px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header__link {
    width: 100%;
    display: flex;
    align-items: end;
    /* justify-content: center; */
    gap: 1rem;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    transition: all 0.3s;
    
    p {
        font-weight: 500;
        font-size: 18px;
    }

    i {
        font-size: 24px;
    }
}
.header__item:first-of-type .header__link{
    padding-top: 1rem;
}
.header__link:hover {
    transform:scale(1.1, 1.1);
    filter: brightness(1.8);
}

@media (min-width: 768px) {
    .header {
        height: 90px;
        left: 50%;
        transform: translateX(-50%);
    }

    .header__nav {
        padding-top: 0;
        position: static;
        transform: translateX(0%);
        width: auto;
        height: auto;
    }
    .header__btn {
        display: none;
    }
    .header__list {
        display: flex;
        align-items: start;
        /* gap: 14px; */

    }
    .header__item {
        width: auto;
    }
    .header__link {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0 12px;

        p {
            text-align: center;
            font-size: 12px;
        }
        i {
            font-size: 28px;
        }
    }
    .header__item:first-of-type .header__link {
        padding-top: 0;
    }
}



.sp-nav-back {
    position: fixed;
    /* top: 70px; */
    padding-top: 70px;
    top: 0;
    left: 0;
    width: 100%;
    /* height: calc(100% - 70px); */
    height: 100%;
    transform: translateX(100%);
    transition: 0.5s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;

    background: var(--color-bg);
    /* background: red; */

}
@media (min-width: 768px) {
    .sp-nav-back {
        display: none;
    }
}

/* メニューを開いたとき */
.open {
    /* メニュー後ろの上下スクロールできないように */
    overflow: hidden;
    height: 100vh;
}
.open .header__btn-img {
    background-image:url(../img/menu-btn-open.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 42px 42px;
}
.open .header__btn-open {
    display: none;
}
.open .header__btn-close {
    display: block;
}
.open .header__nav,
.open .sp-nav-back {
    /* 右から画面内へ移動して表示 */
    transform: translateX(0);
    overflow: auto;

}

/* ----------------------------------------
    フッター
------------------------------------------- */
.footer {
    padding-top: 40px;
    padding-bottom: 40px;
}

.footer__logo {
    margin-bottom: 1em;
}

.footer__nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* direction: rtl; */
    gap: 4px;
    margin-left: auto;
    margin-right: 0;
    margin-bottom: 2em;
    width: fit-content;
}
.footer__nav-link {
    display: block;
    text-align: right;
    padding: 8px;
}

.footer__link-area {
    font-size: 13px;
    margin-bottom: 2em;
}
.footer__link-link {
    display: block;
    padding-top: 8px;
    padding-bottom: 8px;
}

.footer__nav-link:hover,
.footer__link-link:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    text-align: center;
}

@media (min-width: 500px) {
    .footer__nav-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 768px) {
    .footer__content {
        position: relative;
    }
    .footer__logo {
        position: absolute;
        top: 0;
        left: 0;
        margin-bottom: 0;
    }
    .footer__nav-list {
        margin-bottom: 0;
        grid-template-columns: 1fr;
        gap: 8px;
        font-weight: 500;
    }
    .footer__bottom-area {
        position: absolute;
        left: 0;
        bottom: 0;
    }
    .footer__link-area {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 2em;
    }
    .footer__link-list {
        display: flex;
        align-items: center;
        justify-content: start;
        margin-bottom: 1rem;

        .footer__link-item:not(:first-of-type) {
            border-left: 1px solid var(--color-font);

            .footer__link-link {
                padding-left: 2em;
            }
        }
        .footer__link-item:not(:last-of-type) {
            .footer__link-link {
                padding-right: 2em;
            }
        }
    }
    .footer__link-link {
        padding-top: 0;
        padding-bottom: 0;
    }

    .copyright {
        font-size: 14px;
        text-align: left;
    }

}
