/* 共通スタイル */
html {
    height: 100%;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 40px 0 0 0;
    overflow: hidden;
    position: relative;
}

.book {
    position: absolute;
    top: 0;
    transform: translateY(50%) scale(1);
    transition: opacity 0.4s 0.2s;
}

.page {
    background-color: #ffffff; /* typo修正 */
    float: left;
    margin-bottom: 0.5em;
    color: transparent;
    background: left top no-repeat;
    background-size: cover;
    cursor: pointer;
    user-select: none;
    position: absolute;
    top: 0;
    width: 40vw;
    height: 57vw;
    transform-origin: 0 0;
    transition: transform 1.4s;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    -webkit-transition: -webkit-transform 1.4s;
    -webkit-transform-origin: 0 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.page:first-child {
    float: right;
}

.page:nth-child(even) {
    clear: both;
}

.page:nth-child(3),
.page:nth-child(5),
.page:nth-child(7),
.page:nth-child(9),
.page:nth-child(11),
.page:nth-child(13),
.page:nth-child(15),
.page:nth-child(17),
.page:nth-child(19),
.page:nth-child(21),
.page:nth-child(23),
.page:nth-child(25),
.page:nth-child(27),
.page:nth-child(29),
.page:nth-child(31) {
    background-position: right top;
}

/* perspective設定 */
.bound {
    perspective: 250vw;
    -webkit-perspective: 250vw;
}

.bound .pages {
    width: 100%;
    height: 100%;
    position: relative;
    transform: rotateX(12deg);
    -webkit-transform: rotateX(12deg);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 4px;
    box-shadow: 0 0 0 1px #e3dfd8;
}

.bound .page {
    float: none;
    clear: none;
    margin: 0;
    right: auto; /* 後述の偶数用にリセット */
    border-radius: 0;
    pointer-events: all;
}

.bound .page:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.7s;
    -webkit-transition: background 0.7s;
    z-index: 2;
}

/* 奇数ページ */
.bound .page:nth-child(odd) {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    left: 0;
    border-radius: 0 4px 4px 0;
}

.bound .page:nth-child(odd):hover {
    transform: rotateY(-10deg);
    -webkit-transform: rotateY(-10deg);
}

.bound .page:nth-child(odd):hover:before {
    background: rgba(0, 0, 0, 0.03);
}

.bound .page:nth-child(odd):before {
    background: rgba(0, 0, 0, 0);
}

/* 偶数ページ */
.bound .page:nth-child(even) {
    pointer-events: none;
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    transform-origin: 100% 0;
    -webkit-transform-origin: 100% 0;
    right: 0;
    border-radius: 4px 0 0 4px;
}

.bound .page:nth-child(even):before {
    background: rgba(0, 0, 0, 0.2);
}

/* フリップ中 */
.bound .page.grabbing {
    transition: none;
    -webkit-transition: none;
}

.bound .page.flipped:nth-child(odd) {
    pointer-events: none;
    transform: rotateY(-180deg);
    -webkit-transform: rotateY(-180deg);
}

.bound .page.flipped:nth-child(odd):before {
    background: rgba(0, 0, 0, 0.2);
}

.bound .page.flipped:nth-child(even) {
    pointer-events: all;
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
}

.bound .page.flipped:nth-child(even):hover {
    transform: rotateY(10deg);
    -webkit-transform: rotateY(10deg);
}

.bound .page.flipped:nth-child(even):hover:before {
    background: rgba(0, 0, 0, 0.03);
}

.bound .page.flipped:nth-child(even):before {
    background: rgba(0, 0, 0, 0);
}

/* ボックスサイズの設定 */
*,
*:before,
*:after {
    box-sizing: border-box;
}

/* メニュー画像設定 */

/* ダイニングあじと */
/* おすすめメニュー */
.dining .recomend-menu .page:nth-child(1) {
    background-image: url("../dining/images/menu-0.webp");
}
.dining .recomend-menu .page:nth-child(2),
.dining .recomend-menu .page:nth-child(11),
.dining .recomend-menu .page:nth-child(12),
.dining .recomend-menu .page:last-child,
.dining .drink-menu .page:last-child {
    background-image: url("../dining/images/menu-end.webp");
}
.dining .recomend-menu .page:nth-child(3) {
    background-image: url("../dining/images/menu-recomend00.webp");
}
.dining .recomend-menu .page:nth-child(4) {
    background-image: url("../dining/images/menu-recomend01.webp");
}
.dining .recomend-menu .page:nth-child(5) {
    background-image: url("../dining/images/menu-recomend02.webp");
}
.dining .recomend-menu .page:nth-child(6) {
    background-image: url("../dining/images/menu-recomend03.webp");
}
.dining .recomend-menu .page:nth-child(7) {
    background-image: url("../dining/images/menu-recomend04.webp");
}
.dining .recomend-menu .page:nth-child(8) {
    background-image: url("../dining/images/menu-recomend05.webp");
}
.dining .recomend-menu .page:nth-child(9) {
    background-image: url("../dining/images/menu-recomend06.webp");
}
.dining .recomend-menu .page:nth-child(10) {
    background-image: url("../dining/images/menu-recomend07.webp");
}

/* ドリンクメニュー */
.dining .drink-menu .page:nth-child(1) {
    background-image: url("../dining/images/menu-0.webp");
}
.dining .drink-menu .page:nth-child(2) {
    background-image: url("../dining/images/menu-end.webp");
}
.dining .drink-menu .page:nth-child(3) {
    background-image: url("../dining/images/menu-drink01.webp");
}
.dining .drink-menu .page:nth-child(4) {
    background-image: url("../dining/images/menu-drink02.webp");
}
.dining .drink-menu .page:nth-child(5) {
    background-image: url("../dining/images/menu-drink03.webp");
}
.dining .drink-menu .page:nth-child(6) {
    background-image: url("../dining/images/menu-drink04.webp");
}
.dining .drink-menu .page:nth-child(7) {
    background-image: url("../dining/images/menu-drink05.webp");
}
.dining .drink-menu .page:nth-child(8) {
    background-image: url("../dining/images/menu-drink06.webp");
}
.dining .drink-menu .page:nth-child(9) {
    background-image: url("../dining/images/menu-drink07.webp");
}
.dining .drink-menu .page:nth-child(10) {
    background-image: url("../dining/images/menu-end.webp");
}

/* 洋食あじと */
.yosyoku .drink-menu .page:nth-child(1) {
    background-image: url("../yosyoku/images/menu-0.webp");
}
.yosyoku .drink-menu .page:nth-child(2) {
    background-image: url("../yosyoku/images/menu-end.webp");
}
.yosyoku .drink-menu .page:nth-child(3) {
    background-image: url("../yosyoku/images/menu-1.webp");
}
.yosyoku .drink-menu .page:nth-child(4) {
    background-image: url("../yosyoku/images/menu-2.webp");
}
.yosyoku .drink-menu .page:nth-child(5) {
    background-image: url("../yosyoku/images/menu-3.webp");
}
.yosyoku .drink-menu .page:nth-child(6) {
    background-image: url("../yosyoku/images/menu-4.webp");
}
.yosyoku .drink-menu .page:nth-child(7) {
    background-image: url("../yosyoku/images/menu-5.webp");
}
.yosyoku .drink-menu .page:nth-child(8) {
    background-image: url("../yosyoku/images/menu-6.webp");
}
.yosyoku .drink-menu .page:nth-child(9) {
    background-image: url("../yosyoku/images/menu-7.webp");
}
.yosyoku .drink-menu .page:nth-child(10) {
    background-image: url("../yosyoku/images/menu-8.webp");
}
.yosyoku .drink-menu .page:nth-child(11) {
    background-image: url("../yosyoku/images/menu-9.webp");
}
.yosyoku .drink-menu .page:nth-child(12) {
    background-image: url("../yosyoku/images/menu-10.webp");
}
.yosyoku .drink-menu .page:nth-child(13) {
    background-image: url("../yosyoku/images/menu-end.webp");
}
.yosyoku .drink-menu .page:nth-child(14) {
    background-image: url("../yosyoku/images/menu-end.webp");
}
