@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@200..900&family=Oswald:wght@200..700&display=swap');

html {
    font-family: "Noto Sans JP";
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    height: 0;
}

#header_btns {
    margin: 32px 0 0 32px;
    display: flex;
    gap: 24px;
    align-items: center;
}

#header_logo {
    height: 32px;
    transition: opacity 0.3s;
}

#header_logo img {
    height: 100%;
}

#header_logo:hover {
    opacity: 0.6;
}

#header_navbtn {
    width: 32px;
    height: 20px;
    position: relative;
    transition: opacity 0.3s;
}

#header_navbtn:hover {
    opacity: 0.6;
}

#header_navbtn div {
    background: #582a1c;
    width: 100%;
    height: 4px;
    position: absolute;
    border-radius: 2px;
}

#header_navbtn div.white {
    background: #f5f4f0;
}

#header_navbtn div:nth-child(1) {
    top: 0;
}

#header_navbtn div:nth-child(2) {
    bottom: 0;
}

#header_mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    opacity: 0.7;
    display: none;
}

#header_mask.open {
    display: block;
    animation: header_mask 0.4s linear;
}

@keyframes header_mask {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* ヘッダー　ナビゲーション */
#header_navs {
    width: 422px;
    height: 100vh;
    background: url(../images/background_board.png);
    background-repeat: repeat;
    position: absolute;
    top: 0;
    left: 0;
    padding: 148px 0 0 56px;
    transition: transform 0.4s;
    transform: translateX(-100%);
}

#header_navs.open {
    transform: translateX(0);
}

#header_coffee {
    position: absolute;
    top: 245px;
    left: 196px;
    width: 178px;
    opacity: 0.16;
}

#header_navclose {
    position: absolute;
    top: 32px;
    left: 32px;
    width: 32px;
    height: 32px;
    transition: opacity 0.3s;
}

#header_navclose:hover {
    opacity: 0.6;
}

#header_navclose div {
    background: #582a1c;
    width: 100%;
    height: 4px;
    position: absolute;
    top: 50%;
    border-radius: 2px;
    transform-origin: center;
    transform: translateY(-50%);
}

#header_navclose div:nth-child(1) {
    transform: translateY(-50%) rotate(45deg);
}

#header_navclose div:nth-child(2) {
    transform: translateY(-50%) rotate(-45deg);
}

#header_navs ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#header_navs ul li+li {
    margin-top: 28px;
}

#header_navs ul a {
    text-decoration: none;
    font-family: "Oswald";
    font-size: 24px;
    font-weight: bolder;
    color: #582a1c;
    position: relative;
    line-height: 100%;
    padding-right: 38px;
    transition: opacity 0.3s;
}

#header_navs ul a:hover {
    opacity: 0.6;
}

#header_navs ul a#header_instagram {
    display: block;
    font-size: 32px;
    padding: 0;
    line-height: 0;
    width: 28px;
}

#header_navs ul a span {
    font-family: "Noto Sans JP";
    font-size: 16px;
    font-weight: 100;
    letter-spacing: 0.1em;
    white-space: nowrap;
    line-height: 100%;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
}

#header_navs ul a span::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: #582a1c;
    position: absolute;
    top: 50%;
    left: -28px;
    transform: translateY(-50%);
}

#header_navs ul a span::after {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: #582a1c;
    position: absolute;
    top: 50%;
    right: -28px;
    transform: translateY(-50%);
}

/* メイン */
main {
    width: 100vw;
    padding-bottom: 100px;
    background: url(../images/background_board.png);
    background-repeat: repeat;
}

/* メインビジュアル以下 */
.section_container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 80px 100px;
}

/* 各章タイトル */
.section_title {
    position: relative;
    display: inline;
    font-family: "Oswald";
    font-size: 48px;
    font-weight: bolder;
    line-height: 80%;
    color: #333333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section_title span {
    font-family: "Noto Sans JP";
    font-size: 16px;
    font-weight: 100;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    color: #333333;
    white-space: nowrap;
    line-height: 100%;
    padding: 0 48px;
    margin: 0 12px;
    letter-spacing: 0.1em;
}

.section_title span:before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: #333333;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.section_title span:after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: #333333;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

/* フッター */
footer {
    background: #582a1c;
    padding: 80px 0 100px;
    position: relative;
    width: 100%;
}

#footer_pagetop {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 42px;
    height: 42px;
    background: url(../images/footer_pagetop.svg);
    background-size: contain;
    background-repeat: no-repeat;
    transition: opacity 0.3s;
}

#footer_pagetop:hover {
    opacity: 0.6;
}

#footer_logo {
    display: block;
    width: 133px;
    margin: 0 auto;
}

#footer_instagram {
    text-align: center;
    font-family: "Oswald";
    font-size: 24px;
    font-weight: bold;
    color: #cccbc8;
    line-height: 100%;
    margin: 28px auto 0;
}

#footer_instagram a {
    display: inline-block;
    background: #cccbc8;
    font-size: 24px;
    width: 52px;
    height: 52px;
    line-height: 210%;
    text-align: center;
    border-radius: 50%;
    margin-left: 20px;
    transition: opacity 0.3s;
}

#footer_instagram a:hover {
    opacity: 0.6;
}

#footer_links {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    list-style-type: none;
    margin-top: 28px;
}

#footer_links a {
    color: #cccbc8;
    transition: opacity 0.3s;
}

#footer_links a:hover {
    opacity: 0.6;
}

#footer_copyright {
    font-family: "Oswald";
    font-size: 16px;
    font-weight: normal;
    color: #cccbc8;
    line-height: 100%;
    text-align: center;
    margin-top: 72px;
}

/* Amane */
#advertise {
    width: 100%;
    padding: 80px 0 100px;
    background: #333333;
}

#advertise h2 {
    font-size: 20px;
    font-weight: 400;
    color: #bfbfbf;
    line-height: 100%;
    text-align: center;
    letter-spacing: 0.1em;
}

#advertise_container {
    max-width: 820px;
    margin: 40px auto 0;
    position: relative;
}

#advertise_contents {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    justify-content: center;
}

#advertise_icon {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: #bfbfbf;
    position: relative;
}

#advertise_icon img {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 104px;
    margin: 0 auto;
    transform: translateY(-50%);
}

#advertise_text h3 {
    font-size: 27px;
    font-weight: 700;
    line-height: 100%;
    color: #bfbfbf;
    margin: 0;
    margin-top: 4px;
}

#advertise_text {
    max-width: 545px;
}

#advertise_text p {
    font-size: 18px;
    font-weight: 400;
    line-height: 177.8%;
    color: #bfbfbf;
    margin: 0;
    margin-top: 32px;
}

#advertise_sns {
    margin-top: 40px;
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

#advertise_sns a {
    font-size: 32px;
    line-height: 100%;
    color: #bfbfbf;
    transition: opacity 0.3s;
}

#advertise_sns a:hover {
    opacity: 0.6;
}

#advertise_learn {
    all: unset;
    font-size: 27px;
    font-weight: 300;
    line-height: 100%;
    color: #bfbfbf;
    cursor: pointer;
    display: block;
    padding: 4px 24px 4px 12px;
    position: absolute;
    bottom: 0;
    right: 0;
}

#advertise_learn span:nth-child(1) {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #bfbfbf;
    transition: transform 0.3s;
}

#advertise_learn span:nth-child(1).move {
    transform: translateX(8px);
}

#advertise_learn span:nth-child(2) {
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12%;
    height: 1px;
    background: #bfbfbf;
    transform-origin: right;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

#advertise_learn span:nth-child(2).move {
    transform: translateX(8px) rotate(45deg);
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    /* ヘッダー */
    #header_btns {
        margin: 7vw auto 0;
        gap: 0;
        justify-content: center;
        width: 100vw;
    }

    #header_logo {
        height: 40px;
        transition: opacity 0s;
        margin-left: 7vw;
        margin-right: auto;
    }

    #header_logo:hover {
        opacity: 1;
    }

    #header_navbtn {
        width: 40px;
        height: 25px;
        transition: opacity 0s;
        margin-right: 7vw;
        margin-left: auto;
    }

    #header_navbtn:hover {
        opacity: 1;
    }

    #header_navbtn div:nth-child(1) {
        top: 0;
    }

    #header_navbtn div:nth-child(2) {
        bottom: 0;
    }

    #header_mask.open {
        display: none;
        animation: none;
    }

    /* ヘッダー　ナビゲーション */
    #header_navs {
        width: 100vw;
        height: 100vh;
        padding: 128px 0 0 56px;
        overflow: scroll;
    }

    #header_coffee {
        position: absolute;
        top: auto;
        left: auto;
        bottom: 10vw;
        right: 10vw;
        width: 40vw;
    }

    #header_navclose {
        top: 7vw;
        left: auto;
        right: 7vw;
        width: 40px;
        height: 40px;
        transition: opacity 0s;
    }

    #header_navclose:hover {
        opacity: 1;
    }

    #header_navs ul li+li {
        margin-top: 32px;
    }

    #header_navs ul a {
        transition: opacity 0s;
    }

    #header_navs ul a:hover {
        opacity: 1;
    }

    /* メイン */
    main {
        padding-bottom: 120px;
    }

    /* メインビジュアルより下の章 */
    .section_container {
        max-width: none;
        width: 100%;
        padding: 96px 8vw 120px;
    }

    /* 各章タイトル */
    .section_title {
        display: block;
        font-size: 80px;
        line-height: 100%;
        text-align: center;
        margin: 0;
    }

    .section_title span {
        top: 100%;
        left: 50%;
        transform: translateY(16px) translateX(-50%);
        padding: 0 48px;
        margin: 0;
    }

    /* フッター */
    footer {
        padding: 96px 8vw 168px;
    }

    #footer_pagetop {
        position: absolute;
        top: 8.3vw;
        left: 8.3vw;
        width: 48px;
        height: 48px;
        transition: opacity 0s;
    }

    #footer_pagetop:hover {
        opacity: 1;
    }

    #footer_logo {
        width: 27vw;
    }

    #footer_instagram a {
        transition: opacity 0s;
    }

    #footer_instagram a:hover {
        opacity: 1;
    }

    #footer_links {
        gap: 20px 32px;
    }

    #footer_links a {
        transition: opacity 0s;
    }

    #footer_links a:hover {
        opacity: 1;
    }

    #footer_copyright {
        margin-top: 80px;
    }

    /* Amane */
    #advertise {
        width: 100%;
        padding: 96px 8vw 192px;
    }

    #advertise_container {
        max-width: 360px;
        margin: 40px auto 0;
    }

    #advertise_contents {
        display: block;
        flex-wrap: initial;
        gap: 0;
        justify-content: initial;
    }

    #advertise_icon {
        width: 100%;
        height: none;
        padding-top: 100%;
    }

    #advertise_icon img {
        width: 43%;
    }

    #advertise_text h3 {
        margin: 0;
        margin-top: 32px;
        text-align: center;
    }

    #advertise_text {
        max-width: none;
    }

    #advertise_sns a {
        transition: opacity 0s;
    }

    #advertise_sns a:hover {
        opacity: 1;
    }

    #advertise_learn {
        position: absolute;
        bottom: auto;
        top: 100%;
        right: 0;
        transform: translateY(32px);
    }

    #advertise_learn span:nth-child(1) {
        transition: transform 0s;
    }

    #advertise_learn span:nth-child(2) {
        transition: transform 0s;
    }
}