@charset "utf-8";

#vdbanner {
    width: 0;
    height: 0;
}

/* リセットcss */
*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul,
li {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Hina Mincho', serif;
    background-color: #F5F0E6;
    font-size: 16px;
    color: #2f2b26;
    line-height: 50px;
    letter-spacing: 0.5em;
}

img {
    max-width: 100%;
}

.button {
    background-color: #80AA9F;
    width: 450px;
    height: 30px;
    border-radius: 30px;
    text-align: center;
    font-size: 15px;
    line-height: 30px;
    color: #F8F6F3;
    border: none;
    font-family: inherit;
    letter-spacing: 0.7em;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.button:hover {
    background-color: #669589;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(75, 54, 33, 0.25);
}

.header {
    background-color: #669589;
    width: 100%;
}

.header-inner {
    height: 100px;
    margin: auto 5%;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: block;
    width: 15vw;
    height: auto;
    max-width: 160px;
    max-height: 160px;
    margin-top: 10px;
}

.toggle-menu-button {
    display: none;
}

.site-menu ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1%;
    color: #F8F6F3;
}

.site-menu ul li {
    margin: 0 15px;
}

.site-menu ul li a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    padding: 0 5px;
    white-space: nowrap;
}

/* 英語テキスト */
.site-menu ul li a .english {
    display: inline-block;
    transition: opacity 0.3s;
}

/* 日本語テキスト */
.site-menu ul li a .japanese {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    white-space: nowrap;
    font-size: 14px;
    transition: opacity 0.3s;
}

/* ホバーで切り替え */
.site-menu ul li a:hover .english {
    opacity: 0;
}

.site-menu ul li a:hover .japanese {
    opacity: 1;
}

.section-title {
    text-align: center
}

.hero {
    width: 100%;
    height: 500px;
    position: relative;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.catchcopy {
    padding-top: 295px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0 5%;
}

.arrow1 {
    position: relative;
    display: inline-block;
    width: 2px;
    height: 120px;
    margin-left: 24.1px;
    border-radius: 9999px;
    background-color: #2c2a26;
}

.arrow1::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: calc(50% - 0.5px);
    width: 1px;
    height: 35px;
    border-radius: 9999px;
    background-color: #2c2a26;
    transform: rotate(-45deg);
    transform-origin: 50% calc(100% - 1.5px);
}

.arrow2 {
    position: relative;
    display: inline-block;
    width: 2px;
    height: 120px;
    margin-right: 24.1px;
    border-radius: 9999px;
    background-color: #2c2a26;
}

.arrow2::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: calc(50% - 0.5px);
    width: 1px;
    height: 35px;
    border-radius: 9999px;
    background-color: #2c2a26;
    transform: rotate(45deg);
    transform-origin: 50% calc(100% - 0.5px);
}


.discover-books .section-title {
    margin: 30% 0 20%;
}

.recommended-text {
    text-align: center;
    line-height: 4rem;
}


/* 本棚 */
.book-shelf {
    margin-top: 10%;
    padding: 40px 0;
    background: linear-gradient(#2B1E11, #4B3621);
    position: relative;
}

.shelf-top {
    background: url(../image/decor/shelf.jpg) center center;
    width: 100vw;
    height: 25px;
    z-index: 2;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.shelf-bottom {
    background: url(../image/decor/shelf.jpg) center center;
    width: 100vw;
    height: 25px;
    z-index: 2;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: rotate(180deg);
    z-index: 1;
}

.shelf-inner {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: flex-end;
}


/* 本 */
.book {
    font-family: 'Hina Mincho', serif;
    --w: 120px;
    width: var(--w);
    height: 350px;
    border-radius: 4px;
    border: 1px solid #4B36214d;
    transform-origin: bottom center;
    display: flex;
    align-items: center;
    padding: 2% 0 0;
    cursor: pointer;
    position: relative;
    transition: transform 0.34s cubic-bezier(.2, .9, .2, 1), box-shadow 0.3s;
    color: #F8F6F3;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 5;
}

.book::before {
    content: "";
    display: block;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    border: 3px double #F5F0E6;
    position: absolute;
    top: 15px;
    left: 15px;
    pointer-events: none;

}

/* 各本の背景画像 */
.book1 {
    background-image: url(../image/decor/book1.jpg);
}

.book2 {
    background-image: url(../image/decor/book2.jpg);
}

.book3 {
    background-image: url(../image/decor/book3.jpg);
}

.book4 {
    background-image: url(../image/decor/book4.jpg);
}

.book5 {
    background-image: url(../image/decor/book5.jpg);
}

.book .spine {
    writing-mode: vertical-rl;
    font-size: 20px;
    padding: 1%;
    text-align: center;
    height: 180px;
}

.book .author-name {
    writing-mode: vertical-rl;
    font-size: 12px;
    width: auto;
    letter-spacing: 2px;
    margin: 5% auto;
    border-top: 1px solid #F5F0E6;
    flex-grow: 1;
}

/* hover / focus */
.book:hover,
.book:focus {
    transform: translateY(-2px) rotate(-1.5deg);
    box-shadow: 0 5px 10px #4B36218c;
}


/* 本のページめくり */
.book-left.page-turning,
.book-right.page-turning {
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
}

/* 新しく選ばれた本のページが表示される */
.book-left.active,
.book-right.active {
    transform: translateX(0);
    opacity: 1;
    transition: transform 1s ease, opacity 1s ease;
}

/* 初期データの本のみ表示する */
/* .open-book .book-left,
.open-book .book-right {
    display: none;
} */

/* 初期データの本に 'active' クラスを付けてその本のみ表示 */
/* .open-book .book-left.active,
.open-book .book-right.active {
    display: block;
} */


/* アニメーションまとめ */
/* 本棚内のアニメーション */

/* 抜取り*/
.book.is-extracting {
    animation: slide-out-fwd-center 0.8s ease-in 0.2s both;
}

@keyframes slide-out-fwd-center {
    0% {
        transform: translateZ(0) scale(1.01);
        /* 初期位置、元のサイズ */
        opacity: 1;
    }

    50% {
        transform: translateZ(500px) scale(1.05);
        opacity: 1;
    }

    80% {
        transform: translateZ(800px) scale(1.1);
        opacity: 0.7;
    }

    90% {
        transform: translateZ(1000px) scale(1.2);
        opacity: 0.3;
    }

    100% {
        transform: translateZ(1000px) scale(1.4);
        opacity: 0;
    }
}

/* 抜取り後クリックできないように固定 */
.no-click {
    pointer-events: none;
}

/* 差し込み */
.book.is-returning {
    animation: slide-in-fwd-center 1s ease-out 0.2s both;
}

@keyframes slide-in-fwd-center {
    0% {
        transform: translateZ(1000px) scale(1.4);
        opacity: 0;
    }

    10% {
        transform: translateZ(800px) scale(1.2);
        opacity: 0.3;
    }

    50% {
        transform: translateZ(500px) scale(1.1);
        opacity: 0.7;
    }

    80% {
        transform: translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateZ(0) scale(1);
        opacity: 1;
    }
}


/* 開いた本のアニメーション */

.open-book {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 5% auto;
}

.page-bg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 10px #4B362166);
}


.left,
.right {
    display: flex;
    flex-direction: row;
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 700px;
    perspective: 2000px;
}

/* ページ上のテキストや画像を重ねる用 */
.page-content {
    position: absolute;
    top: 2%;
    left: 2%;
    right: 2%;
    padding: 5%;
}

/* 左ページのレイアウト */
.book-left-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.book-left .left-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 250px;
    margin: 5% auto 0;
}

.book-left p {
    margin: 5% 0 0;
    text-align: center;
}

.book-left h3 {
    margin: 20% 0 0;
    text-align: center;
}

/* 右ページのレイアウト */
.book-right .page-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}


.book-left:not(.active):not(.off):not(.active2):not(.off2),
.book-right:not(.active):not(.off):not(.active2):not(.off2) {
    display: none;
}

.book-left,
.book-right {
    backface-visibility: hidden;
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;

}

.book-left.off,
.book-right.off {
    z-index: 2;
}


/* 右捲り */
.book-right.off {
    animation: rotateRight 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) forwards;
    transform-origin: left;
}

@keyframes rotateRight {
    0% {
        transform: rotateY(0);
    }

    100% {
        transform: rotateY(-180deg);
    }
}

/* 左捲り */
.book-left.active {
    animation: rotateLeft 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) forwards;
    transform-origin: right bottom;
    z-index: 3;
}

@keyframes rotateLeft {
    0% {
        transform: rotateY(180deg);
    }

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

.book-right.active2 {
    transform: rotateY(-180deg);
    animation: rotateLeft2 0.5s both;
    transform-origin: left;
    z-index: 111;
}

@keyframes rotateLeft2 {
    100% {
        transform: rotateY(0deg);
    }
}

.book-left.off2 {
    transform: rotateY(0deg);
    animation: rotateRight2 0.5s both;
    transform-origin: right;
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes rotateRight2 {
    100% {
        transform: rotateY(180deg);
    }
}


/* アニメーションここまで */



.discover-murmur {
    margin-top: 50%;
    text-align: center;
}

.discover-murmur>p {
    margin: 25% 0 15%;
}

.discover-items {
    margin-top: 45%;
    position: relative;
}


.items-murmur,
.garnish-sentence {
    margin: 10% 0;
    text-align: center;
    line-height: 5;
}

.items-full {
    background: url(../image/decor/paper-0.jpg) center center;
    background-size: contain;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    padding: 2%;
    margin: 5% auto;
    box-shadow: 0 5px 10px #2C2A2659;
}

.discover-title {
    margin: 5% auto;
    text-align: center;
    font-size: 24px;
    text-shadow: 0 0 2px #2C2A2659;
}

.item-card-top img {
    width: 500px;
    height: auto;
    border-radius: 5px;
}

.item-card-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5%;
}

.item-card-text {
    display: flex;
    flex-direction: column;
    margin: 2% 4% 0;
}

.item-card-text .item-title {
    font-size: 20px;
}

.item-card-text .item-text {
    margin: 5% 0;
}

.item-card-text .item-price {
    text-align: end;
}

.flex-box {
    display: flex;
    margin: 5% 4%;
    gap: 5%;
}

.item-card img {
    width: 350px;
    height: auto;
    border-radius: 5px;
    display: block;
}

.item-card {
    margin: 5% auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item-card div {
    margin: 2% 0;
}

.item-sentence {
    display: flex;
    flex-direction: row;
    padding: 10px 10%;
    margin: 2% auto;
}

.item-sentence:not(:last-child) {
    border-bottom: 1.5px dashed #2C2A26;
}

.item-price {
    margin-left: auto;
    align-self: flex-end;
}

.spotlight {
    background: url(../image/decor/spotlight.png) no-repeat center center;
    display: block;
    background-size: contain;
    width: 250px;
    height: 250px;
    position: absolute;
    bottom: 10%;
    left: 1%;
    transform: scale(-1, 1) rotate(15deg);
}


.footer {
    background-color: #669589;
    width: 100%;
    padding: 20px 0;
    color: #F8F6F3;
    text-align: center;
    margin-top: 20%;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer .site-menu ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.footer .site-menu li {
    position: relative;
    list-style: none;
    padding: 0 2%;
}

.footer .site-menu li:not(:last-child)::after {
    content: "/";
    position: absolute;
    top: 0;
    left: 100%;
    opacity: 0.5;
}

.footer .site-menu a {
    text-decoration: none;
    font-weight: bold;
}

.footer .site-menu a:hover {
    text-decoration: underline;
}

.footer-text {
    font-size: 12px;
    line-height: 2.5;
    margin: 5% 0;
    opacity: 0.7;
    letter-spacing: 1.2em;
}

.SNS {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10%;
    padding: 0 25%;
    box-sizing: border-box;
}

.SNS a img {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.SNS a img:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.copyright {
    font-size: 12px;
    color: #e0e0e0;
    margin-top: 10px;
}

.back-to-btn {
    position: fixed;
    bottom: 0;
    right: 3%;
    background: url(../image/top-button.png) no-repeat right;
    background-size: 100% 100%;
    width: 120px;
    height: 100px;
    cursor: pointer;
    z-index: 100;
    border: none;
    opacity: 0;
    transition: opacity 0.5s;
    display: block;
}