@charset "UTF-8";

/* 右寄り・横スクロール防止 */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: #f4f4f4;
}

/* 共通 */
.is-hidden { display: none; }

/* ===== 本棚 ===== */
/* .bookshelf {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  padding: 24px;
  max-width: 980px;
  margin: 0 auto;
  place-items: center;
}
.shelf-row{
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  padding: 12px 18px 28px;
  min-height: 220px;
} */
/* ===== 本棚：縦に積む（壊れない版） ===== */
.bookshelf {
  min-height: 100vh;
  width: 60%;
  padding: 24px;

  display: flex;
  flex-direction: column;   /* ★縦に積む */
  gap: 32px;

  margin: 0 auto;
}

/* 1段（棚） */
.shelf-row {
  position: relative;
  width: 70%;              /* ★棚板をフル幅に */
  display: flex;
  align-items: flex-end;

  gap: 16px;
  padding: 12px 24px 28px;  /* 下は棚板分 */

  min-height: 220px;
}

/* （任意）横スクロールの見た目を少し綺麗に */
.shelf-row::-webkit-scrollbar{ height: 8px; }
.shelf-row::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.15); border-radius: 999px; }
.shelf-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 26px; /* ★棚板画像の高さ */
  background: url("../images/wall-bookshelf.png") no-repeat center bottom;
  background-size: 100% 26px; /* ★横は段いっぱいに伸ばす */

  box-shadow: 0 10px 20px rgba(0,0,0,.18);
  pointer-events: none;
  z-index: 1;
}


/* 本（棚板より前へ） */
.book-item{
  position: relative;
  z-index: 2;
  width: 160px;  /* 既存のままでもOK */
}

/* .book-item {
  width: 160px;
  cursor: pointer;
  text-align: center;
  user-select: none;
  transition: transform .25s ease;
} */

.book-item:hover { transform: translateY(-2px); }
.book-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
.book-title {
  margin-top: 8px;
  font-weight: 700;
}

/* ===== 本ビュー ===== */
.book-container {
  min-height: 100vh;
  width: 100vw;
  display: grid;
  place-items: center;
  position: relative;
}

.book-stage {
  width: 100%;
  display: grid;
  place-items: center;
}

/* turn.js本体 */
#book {
  margin: 0 auto;
}

/* ページ */
.page {
  background: #fff;
  border: 1px solid #ddd;
  overflow: hidden;
}
.page-inner {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  /* padding: 18px; */
}
.cover .page-inner {
  display: grid;
  place-items: center;
  text-align: center;
}
.cover h1 { margin: 0; font-size: 32px; }
.cover p  { margin: 8px 0 0; }

/* 画像ページ */
.img-page {
  padding: 0;
  display: grid;
  place-items: center;
}
.img-page img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 切らずに収める */
}

/* 簡易テーブル */
.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.simple-table th, .simple-table td {
  border: 1px solid #ddd;
  padding: 8px;
  vertical-align: top;
}
.simple-table th { width: 30%; background: #fafafa; }

/* 写真枠 */
.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ph{
  background: #f0f0f0;
  border: 1px dashed #bbb;
  border-radius: 10px;
  height: 140px;
  display: grid;
  place-items: center;
  color: #666;
}

/* ナビ（必ず押せるよう前面固定） */
.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  display: flex;
  gap: 10px;
  z-index: 9999;
}

.nav button {
  font-size: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}
.nav button:active { transform: translateY(1px); }
/* bookContainer が hidden の間は nav を確実に消す */
#bookContainer.is-hidden {
  display: none !important;
}

/* 念のため nav も直接消す（navが外に出ていても消える） */
#bookContainer.is-hidden .nav {
  display: none !important;
}
#book {
  margin-left: auto !important;
  margin-right: auto !important;
}
.book-stage {
  width: 100%;
  display: flex;
  justify-content: center;   /* ★左右中央 */
  align-items: center;
}
.wi_100 {
  width: 100%;
}
/* スマホ調整 */
@media (max-width: 700px) {
    .bookshelf {
        padding: 16px;
        width: 90%;
    }
      .shelf-row { min-height: 190px; padding-bottom: 26px; width: 90%;}
      .book-item { width: 120px; }
}



/* 岸本記載 */
img.acweb_design_hyoushi {
    width: 102%;
}

.page_content {
  display: flex;
  margin-top: 7%;
  margin-left: 5%;
}

.page_content h2 {
    font-size: 2.5rem;
    margin: 0;
}

p {
    margin: 0;
    letter-spacing: 0.0738em;
}

.page_content_title {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    margin-left: 15px;
}

.page_content p:nth-child(2) { 
  color: #f00; 
}

.img_page {
    margin-top: 15%;
    margin-left: 5%;
    display: flex;
    justify-content: flex-end;
}

.img_pdf {
  width: 100%;
}

.dtp_design {
    width: 101%;
}

.page_explanation {
    display: flex;
    margin-top: 5%;
    margin-left: 5%;
    width: 80%;
    font-size: 0.75rem;
}

p.explanation_span {
    margin-bottom: 2%;
}

.top {
    margin: 0 auto;
    font-size: 2.2rem;
    font-weight: bold;
}

.top {
    position: relative;
    background: #eaeaea;
    box-shadow: 0px 0px 0px 5px #ededed;
    padding: 0.2em 0.5em;
    color: #454545;
}

.top:after {
    position: absolute;
    content: '';
    left: -7px;
    top: -7px;
    border-width: 0 0 15px 15px;
    border-style: solid;
    border-color: #fff #fff #bebebe;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1200px) {
  .img_page {
      margin-top: 4%;
      width: 70%;
  }

  .top {
    margin: 0 auto;
    font-size: 1.5rem;
  }

}

@media (max-width: 700px) {
  .img_pdf {
    margin-top: 10%;
    width: 75%;
  }
  .top {
    margin: 0 auto;
    font-size: 0.8rem;
  }

}
