/* 共通要素のcss */
@font-face {
    font-family: 'Noto Serif JP';
    src: url("../font/NotoSerifJP-Bold.woff") format("woff"),
        url("../font/NotoSerifJP-ExtraLight.woff") format("woff"),
        url("../font/NotoSerifJP-Light.woff") format("woff"),
        url("../font/NotoSerifJP-Medium.woff") format("woff"),
        url("../font/NotoSerifJP-Regular.woff") format("woff"),
        url("../font/NotoSerifJP-SemiBold.woff") format("woff");
}

body {
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
    color: #333333;
    font-size: 14px;
    background-color: #222023;
}

img {
    width: 100%;
    display: inline-block;
}

a:hover {
    cursor: pointer;
}

a[disabled] {
    pointer-events: none;
}

a[disabled]:hover {
    cursor: none;
}

section:not(.main-visual)::before {
    content: '';
    display: block;
    height: 75px;
    margin: -75px 0 0;
}

@media screen and (max-width: 768px) {
    section {
        width: calc(100% - 40px);
    }

    section:not(.main-visual)::before {
        height: 75px;
        margin: -75px 0 0;
    }
}

/* 使いまわしをするクラス */
.center {
    margin-left: auto;
    margin-right: auto;
}

.center-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.text-link {
    color: #9D9040;
    text-decoration: underline;
    transition: all .5s;
    display: inline-block;
    position: relative;
    word-break: break-word;
}

/* .text-link::after,
.text-link::before {
    content: '';
    position: absolute;
    background-color: #9D9040;
    width: .5rem;
    height: 1px;
    right: -0.8rem;
}

.text-link::before {
    top: .5rem;
    transform: rotate(40deg);
}

.text-link::after {
    top: .8rem;
    transform: rotate(140deg);
} */

.text-link:hover {
    text-decoration: none;
}

.md {
    display: none;
}

.sp {
    display: none;
}

/* フォント関連 */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
}

.f-center {
    text-align: center;
}

.f-nowrap {
    white-space: nowrap;
}

.f-14 {
    font-size: 14px;
}

.f-small {
    font-size: 12px;
}

.f-bold {
    font-weight: bold;
}

/* ヘッダー */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: #211F22;
    z-index: 2;
}

.header__container {
    display: flex;
    padding: 12px 2.8%;
    justify-content: space-between;
    box-shadow: 0 2px 4px #D3C363;
}

.header__logo-pc {
    display: block;
    width: 165px;
}

.header__logo-sp {
    display: none;
    width: 100px;
}

.header__logo-15th {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
}

.header__nav ul {
    display: flex;
}

.header__nav__item {
    color: #D3C363;
    white-space: nowrap;
    font-weight: bold;
    padding: 15px 11px;
}

.header__nav-sp {
    display: none;
}

.header__nav-sp__btn {
    position: relative;
    z-index: 1;
    width: 2.5rem;
    height: 2.5rem;
    padding: 4px;
    background-color: #D3C363;
}

.header__nav-sp__btn:hover {
    cursor: pointer;
}

.header__nav-sp__btn img {
    width: 1.25rem;
    height: 1.25rem;
}

.header__nav-sp__btn img:nth-child(1) {
    display: block;
}

.header__nav-sp__btn img:nth-child(2) {
    display: none;
}

.header__nav-sp__menu {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #222025;
    padding-top: 160px;
}

.header__nav-sp__menu li {
    text-align: center;
}

.header__nav-sp__menu__logo {
    max-width: 215px;
    margin-bottom: 40px;
}

@media screen and (max-width: 1024px) {
    .header__nav {
        display: none;
    }

    .header__nav-sp {
        display: block;
        padding: 4px 0;
    }

    .header__nav-sp__btn.open img:nth-child(1) {
        display: none;
    }

    .header__nav-sp__btn.open img:nth-child(2) {
        display: block;
    }

    .header__nav-sp__menu.open {
        display: block;
    }
}

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

    .header__logo-sp {
        display: block;
    }

    header {
        position: sticky;
        display: block;
        z-index: 5;
    }

    .header__container {
        padding: 18px 20px;
    }

    .header__logo {
        width: 87px;
        padding: 4px 0;
    }

    .header__nav-sp {
        display: block;
        padding: 0;
    }
}

/* フッター */
footer {
    position: absolute;
    background-color: #F8F6EA;
    width: 100%;
    padding: 36px 0;
}

.footer__container {
    display: flex;
    max-width: 450px;
    margin-bottom: 40px;
}

.footer__item {
    width: calc(50% - 10px);
    display: inline-block;
    margin: 0 20px;
}

.footer__copyright {
    font-size: 0.75rem;
    color: #222025;
}

.to-top {
    position: absolute;
    display: inline-block;
    top: -100px;
    right: 0px;
    width: 146px;
}

.to-top:hover {
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    footer {
        padding: 80px 0;
    }

    .footer__container {
        flex-flow: wrap;
        justify-content: space-around;
        width: calc(100% - 30px);
        margin: 0 auto 21px;
    }

    .footer__item {
        width: calc(50% - 10px);
        margin: 0 0 20px 0;
    }

    .to-top {
        left: calc(50% - 73px);
    }
}

/* モーダルウィンドウ */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: none;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
}

.overlay__pattern {
    position: absolute;
    width: 24%;
    opacity: 1;
}

.overlay__pattern02 {
    top: 0;
    right: 0;
}

.overlay__pattern01 {
    bottom: 0;
    left: 0;
}

.modal {
    width: 50%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 1000;
}

.modal-open {
    cursor: pointer;
    position: relative;
}

.modal-open .modal-open__cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s;
    background-image: url(../../image/top/modal-hover-bg.png);
}

.modal-open .modal-open__cover p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    line-height: 2.0;
}

.modal-open .modal-open__cover i {
    display: inline-block;
    position: absolute;
    top: 80%;
    left: 80%;
    font-size: 1.25rem;
    color: #695940;
}

.modal-open__badge {
    display: none;
    margin: 0.6rem 0;
    color: #fff;
    font-size: 0.875rem;
}

@media(hover: hover) {
    .modal-open:hover .modal-open__cover {
        opacity: 0.9;
    }
}

.modal-contents {
    width: 100%;
    display: none;
    max-width: 500px;
}

.modal-contents#trailer {
    width: fit-content;
    position: relative;
}

.youtube_wrap {
    padding-top: 56.25%;
    width: 100%;
}

.youtube_wrap iframe {
    width: 100%;
    height: 100%;
}

.modal-contents#trailer .html5-video-player {
    background-color: none;
}

.overlay.open {
    display: block;
}

.modal.open {
    display: block;
}

.modal-contents.open {
    display: block;
}

@media screen and (max-width: 768px) {
    .modal-open .modal-open__cover {
        display: none;
    }

    .modal-open__badge {
        display: block;
    }

    .modal {
        width: 95%;
    }

    .modal-contents#trailer {
        width: 100%;
    }
}

/* 四角い枠と正方形を四隅に配置したアイテム */
.frame {
    position: relative;
}

.frame::after {
    content: '';
    display: inline-block;
    width: 98%;
    height: 92%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #000;
}

.frame span {
    content: '';
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.frame span:nth-child(2) {
    left: auto;
    right: 0;
}

.frame span:nth-child(3) {
    top: auto;
    left: auto;
    right: 0;
    bottom: 0;
}

.frame span:nth-child(4) {
    top: auto;
    bottom: 0;
}

/* コンテンツ一覧表示 PCでは三列、SPでは一列でアイテムを表示する */
.contents {
    max-width: 1000px;
    width: calc(100% - 32px);
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
}

.contents .contents__item {
    width: calc((100% - 40px) / 3);
    margin: 0 20px 20px 0;
}

.contents .contents__item:nth-child(3n) {
    margin: 0 0 20px 0;
}

@media screen and (max-width: 768px) {
    .contents {
        width: 100%;
    }

    .contents .contents__item {
        width: 100%;
        margin: 0 0 20px 0;
    }
}

/* 背景画像と花びら */
.background {
    position: fixed;
    top: 0;
    width: 100dvw;
    height: 100lvh;
    z-index: -100;
}

.background__image {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
}

.background__hanabira {
    position: fixed;
    z-index: -1;
    padding: 0;
    margin: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* アニメーション */
@media(hover: hover) {
    .h-opacity {
        transition: all 0.5s;
        opacity: 1;
    }

    .h-opacity:hover {
        cursor: pointer;
        opacity: 0.5;
    }
}

/* アニメーション案③ */
@keyframes infinity-scroll-left {
    0% {
        transform: translateX(-100%);
    }

    70% {
        transform: translateX(-20%);
    }

    100% {
        transform: translateX(0%);
    }
}

@keyframes swaying1 {
    0% {
        transform: translateY(0);
    }

    80% {
        transform: translateY(18px);
    }

    100% {
        transform: translateY(20px);
    }
}

@keyframes swaying2 {
    0% {
        transform: translateY(0);
    }

    80% {
        transform: translateY(27px);
    }

    100% {
        transform: translateY(30px);
    }
}

@keyframes swaying3 {
    0% {
        transform: translateY(0);
    }

    80% {
        transform: translateY(32px);
    }

    100% {
        transform: translateY(35px);
    }
}

.background__hana {
    position: fixed;
    z-index: -1;
    padding: 0;
    margin: 0;
    top: 0;
    display: flex;
    overflow: hidden;
    height: 100lvh;
}

.background__hana ul {
    animation: infinity-scroll-left 28s infinite linear 0.5s both;
    display: flex;
    justify-content: space-around;
    position: relative;
    width: 100vw;
    height: 100%;
}

.background__hana li {
    list-style: none;
    width: 8.3333333333%;
    height: 300px;
    position: absolute;
}

.background__hana li img {
    display: inline-block;
    padding: 0 20%;
    animation: swaying1 2s 0s infinite alternate;
}

.background__hana li:nth-child(1) {
    top: 26%;
    left: 25%;
}

.background__hana li:nth-child(2) {
    top: 15%;
    left: 96%;
}

.background__hana:nth-child(3) ul {
    animation: infinity-scroll-left 30s infinite ease-in 0.5s both;
}

.background__hana:nth-child(3) li img {
    animation: swaying2 2s 0s infinite alternate;
}

.background__hana:nth-child(3) li:nth-child(1) {
    top: 42%;
    left: 16%;
}

.background__hana:nth-child(3) li:nth-child(2) {
    top: 60%;
    left: 96%;
}

.background__hana:nth-child(3) li:nth-child(3) {
    top: 24%;
    left: 0%;
}

.background__hana:nth-child(4) ul {
    animation: infinity-scroll-left 20s infinite linear 0.5s both;
}

.background__hana:nth-child(4) ul li img {
    animation: swaying3 3s 0s infinite alternate;
}

.background__hana:nth-child(4) ul li:nth-child(1) {
    top: 78%;
    left: 16%;
}

.background__hana:nth-child(4) ul li:nth-child(1) img{
    padding: 0 20%;
}

.background__hana:nth-child(4) ul li:nth-child(2) {
    top: 62%;
    left: 46%;
}

.background__hana:nth-child(4) ul li:nth-child(3) {
    top: 75%;
    left: 90%;
}

/* タブレットサイズ */
@media screen and (max-width: 1024px) {
    .md {
        display: block;
    }
}

/* スマホサイズ */
@media screen and (max-width: 768px) {
    .pc {
        display: none;
    }

    .sp {
        display: block;
    }
}