@charset "Shift_JIS";
/*個店ページ共通*/
#store h2 {
    width: fit-content;
}
#store .metabooks_prevArrow,
#store .metabooks_nextArrow{
	content: "";
    width: 40px;
    display: block;
    position: absolute;
    aspect-ratio: 1 / 5;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 5;
	top: 50vh;
    transform: translateY(-50%);
    }
#store .metabooks_prevArrow{
    background-image: url(../img/metabooks_prevArrow.svg);
    left: 1vw;
        }
#store .metabooks_nextArrow {
    background-image: url(../img/metabooks_nextArrow.svg);
    right: 1vw;
    }

/*個店ページヘッダー*/
#store_header {
	display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    grid-template-areas:
        "title info"
        "title logo";
    column-gap: 20px;
    row-gap: 12px;
    align-items: center;
    margin-bottom: -3em;
            }
#store_header .resultsTag {
grid-area: info;
    min-width: 0;
    align-self: center;
        }
#store_header .resultsTag > div {
   font-size: 15px;
    line-height: 1.5;
    margin-bottom: 3px;
    color: var(--gray-dark);
    white-space: nowrap;
}
#store_header .storeLogo  {
    grid-area: logo;
    width: 180px;
    justify-self: end;
    margin: 0;
}
#store_header > div.resultsTag > ul {
display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    max-width: 650px;
            }
#store_header > div.resultsTag > ul li {
background: var(--gray-middle);
    color: #fff;
    margin: 0;
    padding: 1px 2px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    }
#store_header h2 {
 grid-area: title;
    width: 100%;
    margin: 0;
    padding: 12px 20px;
    font-size: clamp(24px, 2.2vw, 32px);
    line-height: 1.25;
    border: solid 1px var(--gray-dark);
    border-radius: 5px;
    text-align: center;
    position: relative;

    /* 店名はPCでは1行 */
    white-space: nowrap;
    }
#store_header h2::before,
#store_header h2::after {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    background: var(--color-middle);
    position: absolute;
    border: solid var(--gray-dark) 1px;
    border-radius: 1em;
}

#store_header h2::before {
    left: 3px;
    top: 3px;
}
#store_header h2::after {
    right: 3px;
    top: 3px;
}

#store_header .storeLogo {
width: 180px;
    height: auto;
    margin: 0;
    }
#store_header .storeLogo img {
width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    }
@media (max-width: 900px) {

    #store_header {
        grid-template-columns: 42% minmax(0, 1fr);
        grid-template-areas:
            "title info"
            "title logo";
        column-gap: 20px;
        row-gap: 10px;
        align-items: center;
    }

    #store_header h2 {
        grid-area: title;
        font-size: clamp(20px, 3vw, 26px);
        padding: 10px 12px;
        white-space: nowrap;
    }

    #store_header .resultsTag {
        grid-area: info;
        min-width: 0;
    }

    #store_header .resultsTag > div {
        font-size: 13px;
        white-space: nowrap;
    }

    #store_header > div.resultsTag > ul {
        gap: 4px;
        max-width: 100%;
    }

    #store_header > div.resultsTag > ul li {
        font-size: 11px;
        padding: 2px 4px;
    }

    #store_header .storeLogo {
        grid-area: logo;
        width: 140px;
        justify-self: end;
        margin: 0;
    }
}
    @media (max-width: 767px) {

    #store_header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    #store_header h2 {
        font-size: 24px;
    }

    #store_header .storeLogo {
        width: 140px;
        margin-left: auto;
    }

    #store_header .resultsTag > div {
        font-size: 14px;
    }
}
/*個店ページイントロ*/

#store_intro .storeIntroImage {
    position: relative;
}
#store_intro .storeIntroImage button {
position: absolute;
    right: -3%;
    bottom: -1em;
    width: 260px;
    }

/*個店ページメタバース*/
#store_intro .w-100 {
    width: 100% !important;
}
#store_intro .y-100 {
    height: 100% !important;
}
#store_intro .d-block {
    display: block !important;
    border-radius: 5em;
}
#store_intro .metaverse-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* 大きい画像 */
#store_intro .storeIntroImage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

#store_intro .storeIntroImage > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5em;
}
/* iframe再生中は元のメイン写真を隠す */
#store_intro .storeIntroImage.is-playing > img {
    visibility: hidden;
}

/* 「本屋に入る」も隠す */
#store_intro .storeIntroImage.is-playing > .metaverse-play-door {
    visibility: hidden;
}
/* iframeは必ずメイン画像枠の中だけ */
#store_intro .storeIntroImage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
    z-index: 2;
  opacity: 0;
  transition: opacity 0.5s;
}
#store_intro .metaverse-wrapper iframe.loaded {
  opacity: 1;
}

/* サムネイル */
#store_intro .thumbList {
    display: flex;
    gap: 2%;
    margin-top: 20px;
    position: relative;
}

#store_intro .thumbList li {
    width: 32%;
}

#store_intro .thumbList li img {
    width: 100%;
    display: block;
}

#store_intro .thumbList li p {
    text-align: center;
}



@media (max-width: 900px) {
#store_intro .d-block {
    border-radius: 2em;
}

}
/* サムネイル画像を全体にフィット */
.metaverse-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5em;
}
.thumbList {
    display: flex;
    gap: 1%;
    position: relative;
    margin-top: 2%;
}
ul.thumbList li {
    width: 20%;
}
ul.thumbList li p {
    text-align: center;
}

/* 「動画を見る」ボタン */
.metaverse-play-door {
	position: absolute;
    right: 20%;
    bottom: 20%;
    padding: 0.6em 1.2em;
    border: none;
    cursor: pointer;
    width: 210px;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
     display: inline-block;
  animation: floating 2.8s ease-in-out infinite;
  transform-origin: center;
    }
/* ふわふわさせる */
    @keyframes floating {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}
/* ローディング */
.metaverse-loading {
  display: none;
  justify-content: center;
  align-items: center;
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(255,255,255,0.6);
}

.spinner {
  width: 45px;
  height: 45px;
  border: 5px solid #ccc;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}



/*個店ページ（本屋セレクト）*/
section#store_select .selectBook {
    display: flex;
    gap: 2%;
    margin-top: 1em;
}
section#store_select .selectBookBox {
width: 50%;
    background: var(--gray-light);
    display: flex;
    padding: 7em 10px 10px;
    gap: 10px;
    background-image: url(../img/img_store_select_background.svg);
    background-repeat: no-repeat;
    justify-content: center;
    position: relative;
    }
section#store_select .selectBookBox::before {
    color:  var(--color-middle);
    position: absolute;
    top: 1em;
    font-size: 20px;
}
section#store_select .ureta::before {
    content: "過去一番売れた本";
}
section#store_select .ichioshi::before {
    content: "当店のイチオシ";
}
section#store_select div.img {
    width: 120px;
    gap: 10px;
}

section#store_select .selectBookBox .tex {
    display: flex;
    flex-direction: column;
    width: 100%;
}
section#store_select .selectBookBox h3 {
    font-size: 16px;
}
section#store_select .selectBookBox .selectBookComment {
    font-size: 16px;
    background: #f3f3f3;
    padding: 0 1em 1em;
    border-radius: 1em;
    margin: 2em 0 1em;
}
section#store_select .selectBookBox .selectBookComment::before {
content: "書店コメント";
    background: var(--gray-light);
    display: block;
    border-radius: .5em;
    padding: .1em .5em;
    font-size: 12px;
    width: fit-content;
    margin-top: 1em;
    line-height: 1.5em;
    margin-bottom: 1em;
    }
section#store_select .selectBookBox a {
    margin-top: auto;
    margin-left: auto;
    color: white;
    background: var(--gray-middle);
    padding: .5em 1em;
    transition: 1s;
    }
section#store_select .selectBookBox a:hover {
    background: var(--color-dark);
}

@media (max-width: 900px) {
section#store_select .selectBook {
    display: flex;
    gap: 2%;
    margin-top: 1em;
    flex-direction: column;
}
section#store_select .selectBookBox {
    width: 90%;
    margin: 1em auto;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
}
/*個店ページ（オーナー）*/
section#store_owner{
    background-image: url(../img/img_store_storebackground.webp);
    background-size: contain;
    margin-bottom: var(--margin-middle);
}
section#store_owner .storeOwnerBox {
    display: flex;
    align-items: center;
}
section#store_owner .storeOwnerBox .img {
    max-width: 300px;
    width: 60%;
}
section#store_owner ul.txt {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 1em;
}
section#store_owner ul.txt li {
    background: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
	align-items: flex-start;
}
section#store_owner ul.txt li::before{
    background: var(--gray-middle);
    border-radius: 1em;
    padding: .2em 1em;
    color: white;
    margin-right: auto;
    margin-bottom: .5em;
    font-size: 12px;
}
section#store_owner ul.txt li.ownerIntroduction::before {
    content: "自己紹介";
}

section#store_owner ul.txt li.ownerWriter::before {
    content: "応援している作家";
}

section#store_owner ul.txt li.ownerFavorite::before {
    content: "好きな本屋";
}
section#store_owner ul.txt li.ownerFavorite a {
    text-decoration: underline;
}
/*個店ページ（イベント）*/

section#store_event h3 {
    background: var(--color-middle);
    display: inline-block;
    font-size: 18px;
    padding: .2em 1em;
    border-radius: 0 1em 1em 0;
    margin-bottom: 1em;
}

section#store_event .storeEventRelease ul li {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
    padding: 1em;
}
section#store_event .storeEventRelease ul li span {
    font-size: 12px;
    width: fit-content;
    padding: .2em .5em;
    margin-bottom: .5em;
    background: var(--gray-light);
}
section#store_event .storeEventRelease ul li a {
    margin-left: auto;
}
section#store_event .storeEventArchive ul {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 0 10px;
  margin: 0;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

section#store_event .storeEventArchive ul li {
  flex: 0 0 280px;
}

section#store_event .storeEventArchive ul li img {
  display: block;
  width: 100%;
  height: auto;
}

section#store_event .storeEventArchive ul li p {
  margin-top: 10px;
  line-height: 1.6;
}
/*個店ページ（イベントアーカイブ）*/

#videoModal h2 {
    font-size: 18px;
    color: var(--gray-middle);
    margin-top: 1em;
    margin-bottom: 1.5em;
}
#videoModal #modalContent h3 {
    background: gray;
    border-left: 3px gray solid;
    padding: .2em .5em;
    font-weight: normal;
    color: white;
    border-radius: .2em .2em .2em .2em;
    font-size: 17px;
}
.carousel-wrap { position: relative; }

.outer-video-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.outer-video-list::-webkit-scrollbar { display: none; }

.outer-video-list .video-btn {
  flex: 0 0 78%;
  max-width: 320px;
  scroll-snap-align: start;
}

.video-btn {
  padding: 0;
  border: none;
  background: #fff;
  cursor: pointer;
  text-align: left;
  border-radius: 10px;
  overflow: hidden;
}

.video-thumb-wrap {
  position: relative;
}

.video-btn img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-title {
  padding: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.badge-360 {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fff800;
  color: #2f2f2f;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 999px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
}

.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }

.carousel-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal.is-open { display: block; }

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 900px);
  max-height: 90vh;
  overflow-y: auto;
  margin: 4vh auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

.youtube-wrap {
  aspect-ratio: 16 / 9;
}

.youtube-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.viewer-360-box {
  padding: 20px;
  background: #111;
  color: #fff;
  border-radius: 12px;
}

.viewer-360-thumb {
  position: relative;
  margin-bottom: 16px;
}

.viewer-360-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.viewer-360-note {
  line-height: 1.8;
  font-size: 15px;
}

.youtube-open-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 18px;
  background: #e60033;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
}

.related-books {
  margin: 24px 0;
}

.related-books-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.related-book-card {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
}

.related-book-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
}

.related-book-title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
}

.related-book-link {
  margin-top: 6px;
  font-size: 13px;
  color: #0066cc;
}

.modal-video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.modal-video-list .video-btn {
  position: relative;
}

.modal-video-list .is-active {
  outline: 4px solid #e60033;
}

.modal-video-list .is-active::after {
  content: "選択中";
  position: absolute;
  top: 6px;
  left: 6px;
  background: #e60033;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .outer-video-list {
    padding: 0 72px;
  }

  .outer-video-list .video-btn {
    flex: 0 0 220px;
  }
}

@media (max-width: 767px) {
  .carousel-arrow {
    display: none;
  }

  .related-books-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*個店ページ（基本情報）*/

section#store_information .shop-info {
max-width: 1200px;
    margin: 0 auto;
    background: #efefef;
    color: #6f6f6f;
    }

section#store_information .shop-info dl {
  margin: 0;
}

section#store_information .shop-info .row {
display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    min-height: 50px;
}

section#store_information .shop-info .row:nth-child(odd) {
  background: #dcdcdc;
}

section#store_information .shop-info .row:nth-child(even) {
  background: #efefef;
}

section#store_information .shop-info dt,
section#store_information .shop-info dd {
    margin: 0;
    padding: 10px 16px;
    box-sizing: border-box;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.08em;
}

section#store_information .shop-info dt {
  white-space: nowrap;
}

section#store_information .shop-info dd {
  padding-left: 18px;
}

section#store_information .shop-info .tag {
    display: inline-block;
    margin: 6px 5px 6px 0;
    padding: 4px 10px;
    background: var(--gray-middle);
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
}
section#store_information .shop-info .snsIcon  {
    display: flex;
}
section#store_information .shop-info .snsIcon a {
    width: 30px;
    height: 40px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
}
section#store_information .shop-info .snsIcon .x a {
    background-image: url(../img/icons-x.svg);
}
section#store_information .shop-info .snsIcon .instagram a {
    background-image: url(../img/icons-instagram.svg);
}
section#store_information .shop-info .snsIcon .tiktok a {
    background-image: url(../img/icons-tiktok.svg);
}
section#store_information .shop-info .snsIcon .youtube a {
    background-image: url(../img/icons-youtube.svg);
}

@media (max-width: 900px) {
section#store_information .shop-info .row {
    grid-template-columns: 1fr;
  }

section#store_information .shop-info dt,
section#store_information .shop-info dd {
    font-size: 18px;
    padding: 12px 16px;
  }

section#store_information .shop-info dd {
    padding-top: 0;
  }

section#store_information .shop-info .tag {
    font-size: 14px;
  }
}

/* 検索ページ */
.search-list {
  max-width: 800px;
  margin: 0 auto;
  background: #eee;
  padding: 20px;
}

.search-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #999;
  padding: 20px 0;
  gap: 20px;
}

.search-item img {
  width: 160px;
  height: 110px;
  object-fit: cover;
}

.search-info {
  flex: 1;
}

.search-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.search-info p {
  margin: 0;
  font-size: 14px;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  font-size: 12px;
  color: #fff;
}

.tag.gray {
  background: #666;
}

.tag.green {
  background: #a6a64d;
}

