body{
    margin: 0 30px;
}

.nav-tabs {
    margin-bottom: 15px;
}

div.sticky-content{
    position: sticky;
    top: 0; 
    background-color: white;
    background-image: url("header.png");
    background-repeat: no-repeat;
    background-size: contain;
}

/* ロゴ */
img.logo {
    height: 80px;
}

div.logo-container {
    margin-bottom: 4vh;
}

/* 作品全体のラッパー */
div.book-wrapper {
    display: grid;
    column-gap: 10px;
    grid-template-columns: minmax(150px, 1fr) 3fr;
    margin-bottom: 75px;
}

/* 説明 */
iframe.description{
    width: 100%;
    height: 400px;
}

/* 表紙 */
div.frontpage {
    display: flex;
    align-items: center;
    width: 100%;
    height: 500px;
    background-size: contain;
    background-repeat: no-repeat;
    content: "　";
    background-origin: content-box;
    background-position: center;
    padding-right: 20px;
} 

/* メインアイテム */
div.book-main-container {
    display: grid;
    grid-template-rows: minmax(60px, 0.5fr) 3fr auto;
}

/* ショップリスト */
div.shoplists{
    display: flex;
    flex-wrap: wrap;
}

/* ショップ */
.promo-shop{
    width: 200px;
    height: 40px;
}

figure.promo-shop {
    margin-block-start: 0px;
    margin-block-end: 30px;
    margin-inline-start: 0px;
    margin-inline-end: 50px;
}

figcaption.promo-caption{
    text-align: center;
    font-size: 0.8em;
    white-space: pre;
}.sticky-content { z-index: 2 }
.nav-tabs .nav-link { margin-bottom: -1px }
iframe.description, #event iframe { border: 0 }
#event iframe, .receipt-sheet { width: 90%; height: 80vh }
.receipt-sheet { overflow: auto }
.receipt-sheet th, .receipt-sheet td { white-space: nowrap }
.receipt-sheet thead { position: sticky; top: 0; background: white }
.receipt-sheet tbody th[colspan] { background: #eff3f6 }
.book-main-container { min-width: 0 }
.book-wrapper[data-genre="goods"] .frontpage { height: 300px }
.book-wrapper[data-genre="goods"] .description { height: 200px }
@media (max-width: 700px) {
  body { margin: 0 10px }
  img.logo { max-width: 70vw; height: auto; max-height: 80px }
  div.logo-container { margin-bottom: 12px }
  .nav-link { padding: .35rem .5rem }
  div.book-wrapper { grid-template-columns: minmax(90px, 1fr) 2fr }
  div.frontpage { height: 280px; padding-right: 0 }
  .book-title { font-size: 1.1rem }
  iframe.description { height: 260px }
  .promo-shop { max-width: 100%; object-fit: contain }
  figure.promo-shop { margin-right: 0; margin-bottom: 34px }
  figcaption.promo-caption { white-space: normal }
  #event iframe, .receipt-sheet { width: 100% }
}
