@charset "UTF-8";
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: #f5f5f5;
  font-size: 16px;
  font-family: "Shippori Mincho", serif;
  -webkit-font-smoothing: antialiased; /* Mac安定 */
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; /* Windowsのギザ軽減 */
}
a {
  text-decoration: none;
}
img {
  width: 100%;
}
button {
  all: unset;
  cursor: pointer;
}
/* ===== ヘッダー ===== */
.br-header {
  /* display: flex; */
  /* justify-content: space-between; */
  /* align-items: center; */
  line-height: 200%;
  background: #816d2f;
  border-bottom: 1px solid #ddd;
  padding:2px 0;
}
.logo {
  font-size: 18px;
  font-family: "Cormorant Infant", serif;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height:100%;
  margin:0;
}
 .take-logo{
  max-width: 137px;
  height: auto;
  display: block;
   margin:0;
   line-height:0;
  }
/* ===== レイアウト ===== */
.catalog {
  display: flex;
  min-height: calc(100dvh - 86px);
}
/* ===== 目次 ===== */
.toc {
  width: 185px;
  padding: 20px;
  border-right: 1px solid #ddd;
  overflow-y: auto;
  color: #000;
  padding-left: 2%;
  margin: 10px 3px;
}
/* Chrome / Safari */
.toc::-webkit-scrollbar {
  display: none;
}
/* Firefox */
.toc {
  scrollbar-width: none;
}
/* IE */
.toc {
  -ms-overflow-style: none;
}
.toc li {
  list-style: none;
  margin-bottom: 10px;
  cursor: pointer;
}
.toc li.active {
  font-weight: 600;
  color: #816d2f;
}
#tocList li.active {
  color: #816d2f;
  font-weight: 600;
}

/* ===== 目次スクロールバー（控えめ） ===== */
.toc {
  scrollbar-width: thin;
  scrollbar-color: rgba(130,130,130,0.5) transparent;
}

.toc::-webkit-scrollbar {
  width: 6px;
}

.toc::-webkit-scrollbar-track {
  background: transparent;
}

.toc::-webkit-scrollbar-thumb {
  background: rgba(130,130,130,0.5);
  border-radius: 6px;
}

.toc::-webkit-scrollbar-thumb:hover {
  background: rgba(130,130,130,0.7);
}

/* ===== ビューア ===== */
.viewer {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
}
#pageContainer {
  flex: 1;
  background: #fff;
  /*
  padding: 5px;
  border-radius: 12px;
	*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.4s ease; /* フェード */
  /*max-height: calc(100dvh - 100px); */
  position: relative;
}
#pageContainer.fade-out {
  opacity: 0;
}
/*
#pageContainer img {
  flex: 1;
  min-height: 0; 
  max-height: 80%;
	width:100%;
  object-fit: contain; 
  align-content: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}*/
@media (min-width: 769px) {}
/* ===== 表紙 ===== */
.cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}
.cover {
  height: calc(80vh - 30px);
  /*
	width: 90%;
  max-width: 1100px;
  margin: 10px auto; 
  position: relative;
  background-image: url("../01-32.jpg");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
	*/
}
.cover-inner {
  display: flex;
  gap: 5%;
  width: 100%;
	/*
  max-height: 100%;*/
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 1000px;
  padding: 10px 3%;
  ;
}
.cover-image {
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #999;
  width: 100%;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}
.cover h1 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
}
.cover p {
  margin-top: 16px;
  color: #666;
}
/* ===== カタログ中身 ===== */
.page-inner {
  display: flex;
  gap: 5%;
  width: 100%;
	/*
  max-height: 100%;*/
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 1100px;
  padding: 10px 3%;
  ;
}
.page-image {
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #999;
  width: 100%;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
}
.page-price {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 200px;
  width: 20em;
  margin: 0 auto;
}
.page-price h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
.page-price p {
  font-family: "Cormorant Infant", serif;
  line-height: 135%;
  padding: 0.25em 0;
  font-size: 0.95em;
  display: block;
  color: rgba(24, 24, 24, 1.00);
}
@media (min-width: 1060px) {
  .page-price p {
    font-size: 1.0em;
  }
}
.page-price span {
  font-size: 0.80em;
  padding-left: 2px;
}
.sub-price {
  font-size: 0.95em !important;
  color: rgba(89, 89, 89, 0.6);
  padding-left: 0 !important;
}
.sub-txt {
  font-size: 0.8em !important;
  line-height: 160%;
  margin: 0.5em 0;
  padding-left: 0 !important;
}
.sub-txt2 {
  font-size: 0.75em !important;
  padding-left: 0 !important;
  color: rgba(59, 59, 59, 0.7);
}
@media (min-width: 769px) {
  .page-price {
    justify-content: flex-end;
  }
}
/* ===== ナビ ===== */
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: 16px auto 0 auto;
  max-width: 1000px;
}
.nov-btn {
  border: none;
  font-family: "Cormorant Infant", serif;
  background: none;
  color: rgba(80, 80, 80, 1.00);
  color: #816d2f;
}
#pageNumber {
  font-family: "Cormorant Infant", serif;
  color: #816d2f;
}
/* ===== モーダル ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.modal-menu {
  display:flex;
  justify-content: space-evenly;
  align-items: center;
  margin: 12% auto 5%;
  width:100%;
}
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 5px 15px;
  width: 90%;
  max-width: 400px;
  max-height: 90dvh;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.modal-content li {
  list-style: none;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}
.close {
  float: right;
  background: none;
  border: none;
  font-size: 20px;
}
.modal-content h2, .modal-content .close {
  /* position: sticky; */
  position: absolute;
  top: auto;
  background: #fff;
  z-index: 2;
}
h2 {
  font-family: "Cormorant Infant", serif;
}
/* PC版目次 */
#tocList li {
  font-family: "Cormorant Infant", serif;
  font-size: 1.0em;
  font-weight: 400;
  line-height: 110%;
  color: rgba(81, 81, 81, 1.0);
}
.topnav-btn{
  display:flex;
  flex-direction: column;
  gap:17px 0;
  margin:0 0 23px;
}
.yoyaku {
  background: rgba(81, 81, 81, 1.00);
  padding: 0.5em 0em;
  display:block;
  width: min(126px, 32vw);
  text-align: center;
  color: #fff;
  font-size: 0.8em;
  border-radius: 2em;
}
.bridal-top{
  border:1px solid #816d2f;
   padding: 0.5em 0em;
   display:block;
  width: min(126px, 32vw);
  text-align: center;
  color: #816d2f;
  font-size: 0.8em;
  border-radius: 2em;
  &:hover{
    background-color: #ffffffc4;
  }
}
/* モバイル版目次 */
#tocModalList li {
  font-family: "Cormorant Infant", serif;
  font-size: 16px;
  font-weight: 500;
}
.modal-content .close {
  align-self: flex-end;
  font-size: min(7vw, 28px);
  /* padding: 4px 0; */
}
.modal-content li::before {
  content: attr(data-title);
  display: inline-block;
  padding: 0 1em;
}
#tocModalList {
  margin-top: 12px;
  overflow-y: auto;
}
@media (min-width: 769px) {
  .sp {
    display: none!important;
  }

  /* ボタンだけ非表示 */
  .br-menu-btn,.br-menu-bar {
    display: none;
  }
  
  /* ヘッダーの中身 */
  .br-header-in {
    /* max-width: 1300px; */
    position: relative;
    margin: 0 auto;
    width: 85%;
    height: 56px; /* 高さ固定 */
    display: flex;
    align-items: center; /* 縦中央 */
      /*font-size: 1.2em;  適切なサイズに調整 */
    line-height: normal; /* 高さ固定のため調整 */
  }
  .logo {
    position: absolute;
    left:50%;
    left: 50%;
    transform: translateX(-50%);
    align-content: center;
    margin: 0;
    display: block;
  }
}
/* =========================
   PCのみ：本体固定 + 右目次のみ独立スクロール（完成版）
========================= */
@media (min-width: 769px) {

  /* 全体はスクロール禁止 */
  body {
    overflow: hidden;
  }

  /* ヘッダーを除いた表示領域を固定 */
  .catalog {
    height: calc(100vh - 56px - 4px);
    min-height: unset;
    overflow: hidden;
    display: flex;
  }

  /* メインビューア（スクロールしない） */
  .viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #pageContainer {
    flex: 1;
    overflow: hidden;
  }

  /* ページナビ */
  .page-nav {
    margin-top: 0;
    padding: 14px 0;
    flex-shrink: 0;
  }

  .nov-btn {
    padding: 8px 18px;
    font-size: 1.05em;
  }

  #pageNumber {
    line-height: 1.6;
  }

  /* ===== 右側目次だけ独立スクロール ===== */

  .toc-pre {
    height: 100%;
    overflow: hidden; /* 外側は切る */
  }

  .toc {
    height: 100%;
    overflow-y: auto;     /* ← ここだけスクロール */
    overscroll-behavior: contain;
  }

  /* スクロールバーは表示しない（今まで通り） */
  .toc::-webkit-scrollbar {
    display: none;
  }

  .toc {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .yoyaku {
   width: max(168px, 9rem);
  }
 .bridal-top{
   width: max(168px, 9rem);
   &:hover{
    background-color: #ffffffc4;
  }
 }
}


@media (min-width: 1500px) {
  body {
    font-size: 20px;
  }
  .toc {
    width: 320px;
  }
}
@media (max-width: 768px) {
  .pc {
    display: none;
  }
  .catalog {
    flex-direction: column;
  }
  .toc {
    display: none;
  }
  .br-header-in {
    display: flex;
    width: 92%;
    height:45px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
  }
  .take-logo{
   width:min(8rem, 24vw);
   height:auto;
  } 
  .yoyaku, .bridal-top{
    margin:0;
    display: block;
  }
  .br-menu-btn {
    /* display: flex;   */
  /* align-items: center;  */
  justify-content: center;
  font-size: 31px;
  background: none;
  border: none;
  padding: 0;
  line-height:inherit;
  /* height:100%;  */
  color: #fff;
  }
  .br-menu-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 20px;
    cursor: pointer;
  }
  .br-menu-bar span{
    width: 100%;
    height: 2px;
    background-color: #fff;
    margin-bottom: 5px;
  }
  .br-menu-bar span:nth-child(3){
    margin-bottom: 0;
  }
  .page-inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .page-price {
    justify-content: flex-start;
    margin-top: 16px;
    width: 100%;
  }
  .page-image {
    width: 100%;
  }
}
/* =========================
   タブレット縦＝スマホ扱い
========================= */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {

  /* PC用の固定指定を解除する */
  body {
    overflow: auto;
  }

  .catalog {
    height: auto;
    overflow: visible;
  }

  .viewer {
    overflow: visible;
  }
}
/* ===== 画像ズーム（シンプル・安定版） ===== */
.img-zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  z-index: 9999;
}
.img-zoom-inner {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* スマホでピンチ可 */
  touch-action: pinch-zoom;
  /* PCスクロール防止 */
  overflow: hidden;
}
.img-zoom-inner img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  cursor: zoom-out;
}
.img-zoom-close {
  position: fixed;
  top: 12px;
  right: 16px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}
/* ポップアップ全体（今使ってるクラス名に合わせてね） */
.image-popup {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease; /* ← ここがフェード */
}
/* 表示中 */
.image-popup.is-active {
  opacity: 1;
  pointer-events: auto;
}
/* 背景スクロール防止（PC用） */
body.is-popup-open {
  overflow: hidden;
}

/* ===== 画像POPUP 操作ボタン（スマホのみ） ===== */
.img-zoom-actions {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 10001;
}

.img-zoom-actions button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  padding: 12px 16px;
  border-radius: 20px;
  border: none;
  text-decoration: none;
  backdrop-filter: blur(4px);
  line-height: 150%;
}
