@charset "UTF-8";
/* =========================
  Gallery Page CSS
  /css/gallery.css
========================= */
/* サイドバー無くす */
/* ギャラリーページだけ、SWELLのフッターウィジェットを非表示 */
.page-template-page-gallery .l-footerWidgets,
.page-template-page-gallery .p-footerWidgets,
.page-template-page-gallery .l-sidebar {
  display: none !important;
}

/* Breakpoints */
/* Media Query Mixins */
/* =========================
  Layout（本サイト側の調整）
========================= */
/* ギャラリーページ時の main 幅 */
main {
  min-height: 90vh;
}

/* メインラッパー（中央寄せ） */
.main {
  display: flex;
  justify-content: center;
  font-family: "Shippori Mincho", serif;
}

/* =========================
  Base Tokens
========================= */
:root {
  --c-bg: #fff;
  --c-text: #736849;
  --c-sub: #462e2e;
  --c-muted: #9aa0a6;
  --c-line: #e5e7eb;
  --c-key: #efeae2;
  --c-key-weak: #eef2ea;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --max: 1200px;
  --gutter: clamp(12px, 3vw, 20px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================
  Gallery Page
========================= */
.gallery-page {
  width: 100%;
  color: var(--c-text);
  font-family: "Shippori Mincho", serif;
  padding-bottom: 54px;
}
@media (min-width: 960px) {
  .gallery-page {
    padding-bottom: unset;
  }
}

/* タイトル周り */
.gallery-title-wrap {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 8px;
}
@media (min-width: 768px) {
  .gallery-title-wrap {
    padding-bottom: 24px;
  }
}
.gallery-title-wrap small {
  margin-bottom: 3px;
  font-size: 10px;
}
@media (min-width: 768px) {
  .gallery-title-wrap small {
    font-size: 18px;
    margin-bottom: 0;
  }
}
@media (min-width: 960px) {
  .gallery-title-wrap small {
    margin-top: 12px;
  }
}

.gallery-title {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 18px;
  letter-spacing: 1.4px;
}
@media (min-width: 768px) {
  .gallery-title {
    font-size: 48px;
  }
}

.gallery-lead p {
  font-size: 12px;
  letter-spacing: 1.4px;
}
@media (min-width: 768px) {
  .gallery-lead p {
    font-size: 20px;
  }
}

/* =========================
  Filter UI
========================= */
.gallery-filters {
  max-width: var(--max);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 768px) {
  .gallery-filters {
    margin: 0 auto 36px;
    gap: 12px;
  }
}

.filter-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}
@media (min-width: 768px) {
  .filter-block {
    padding-top: 16px;
  }
}

.filter-heading {
  text-align: center;
  font-size: 12px;
  letter-spacing: 1.4px;
  font-weight: 500;
  padding-top: 18px;
  padding-bottom: 5px;
}
@media (min-width: 768px) {
  .filter-heading {
    font-size: 20px;
    padding-top: 26px;
    padding-bottom: 12px;
  }
}

.filter-buttons {
  display: flex;
  width: 100%;
  justify-content: center;
  -moz-column-gap: 7px;
       column-gap: 7px;
  row-gap: 5px;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .filter-buttons {
    -moz-column-gap: 8px;
         column-gap: 8px;
    row-gap: 8px;
  }
}

/* 部屋タイプフィルタボタン */
.gallery-filters .js-room-filter {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid var(--c-text);
  background: #fff;
  color: var(--c-text);
  padding: 4px 16px;
  letter-spacing: 1.4px;
  font-size: 10px;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  .gallery-filters .js-room-filter {
    font-size: 18px;
    padding: 4px 18px;
  }
}

.gallery-filters .js-room-filter:hover {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
  background: var(--c-text);
  color: #fff;
}

.gallery-filters .js-room-filter.is-active {
  background: var(--c-text);
  color: #fff;
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

/* キーワード検索 */
.gallery-filters .js-keyword {
  width: 100%;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  outline: none;
}

.gallery-filters .js-keyword:focus {
  border-color: var(--c-key);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-key) 25%, transparent);
}

/* タグフィルタ */
.gallery-tags {
  width: 100%;
  margin: 0 auto 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
@media (min-width: 768px) {
  .gallery-tags {
    gap: 8px;
  }
}

/* タグボタン */
.js-tag-filter {
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  text-align: center;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  background: #efeae2;
  color: var(--c-text);
  padding: 5px 12px;
  min-width: 48px;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  .js-tag-filter {
    font-size: 16px;
    min-width: 96px;
    padding: 5px 13px;
  }
}

.js-tag-filter:hover {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  background: var(--c-text);
  color: var(--c-key);
}

.js-tag-filter.is-active {
  background: var(--c-text);
  color: var(--c-key);
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* =========================
  Grid
========================= */
.gallery-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.2vw, 20px);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* gap 非対応ブラウザ用フォールバック */
@supports not (gap: 1rem) {
  .gallery-grid > * {
    margin: 0 var(--gutter) var(--gutter) 0;
  }
}
/* =========================
  Card
========================= */
.gallery-card {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  background: #fff;
  overflow: clip;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
}

.gallery-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  background: #f6f7f9;
}

/* =========================
  Modal
========================= */
.gallery-modal[aria-hidden=true] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: color-mix(in oklab, #462e2e 60%, transparent);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.gallery-modal-wrap {
  position: relative;
  max-width: 1200px;
  height: auto;
}

.gallery-modal__inner {
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  width: clamp(260px, 6.25rem + 50vw, 290px);
  aspect-ratio: 9/16;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
}
@media (min-width: 768px) {
  .gallery-modal__inner {
    width: 400px;
  }
}

/* PC レイアウト */
@media (min-width: 960px) {
  .gallery-modal-wrap {
    width: 800px;
    height: 512px;
  }
  .gallery-modal__inner {
    grid-template-columns: 48% 52%;
    width: 800px;
    height: 512px;
  }
}
/* Large レイアウト */
@media (min-width: 1500px) {
  .gallery-modal-wrap {
    width: 1100px;
    height: 704px;
  }
  .gallery-modal__inner {
    width: 1100px;
    height: 704px;
  }
}
/* モーダル内画像 */
.gallery-modal__media {
  display: grid;
  place-items: center;
  width: clamp(260px, 6.25rem + 50vw, 290px);
  aspect-ratio: 3/4;
}
@media (min-width: 768px) {
  .gallery-modal__media {
    width: 400px;
  }
}
@media (min-width: 960px) {
  .gallery-modal__media {
    aspect-ratio: 3/4;
    width: 100%;
    height: auto;
  }
}

.gallery-modal__media img {
  aspect-ratio: 3/4;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
@media (min-width: 960px) {
  .gallery-modal__media img {
    aspect-ratio: unset;
  }
}

/* モーダル本文 */
.gallery-modal__body {
  background-color: rgba(244, 243, 243, 0.9);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
@media (min-width: 768px) {
  .gallery-modal__body {
    padding: 20px 15px;
    gap: 12px;
  }
}
@media (min-width: 960px) {
  .gallery-modal__body {
    overflow: auto;
    height: 100%;
    padding: 30px 15px 25px 20px;
    gap: 20px;
  }
}
@media (min-width: 1500px) {
  .gallery-modal__body {
    padding: 50px 30px 35px 40px;
    gap: 30px;
  }
}

.gallery-modal__top {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 13px 15px;
  gap: 8px;
}
@media (min-width: 768px) {
  .gallery-modal__top {
    padding: 15px 18px;
    gap: 9px;
  }
}
@media (min-width: 960px) {
  .gallery-modal__top {
    padding: 20px;
    gap: 12px;
  }
}
@media (min-width: 1500px) {
  .gallery-modal__top {
    padding: 25px;
    gap: 13px;
  }
}

.gallery-modal__desc {
  font-family: "Shippori Mincho", serif;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--c-sub);
  line-height: 1.3;
}
@media (min-width: 768px) {
  .gallery-modal__desc {
    font-size: 12px;
    letter-spacing: 1.4px;
    line-height: 1.4;
  }
}
@media (min-width: 960px) {
  .gallery-modal__desc {
    font-size: 14px;
    letter-spacing: 1.4px;
    line-height: 1.4;
  }
}
@media (min-width: 1500px) {
  .gallery-modal__desc {
    font-size: 18px;
  }
}

/* モーダル内タグ */
.gallery-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
}
@media (min-width: 768px) {
  .gallery-modal__tags {
    gap: 8px;
  }
}

.gallery-modal__tags li {
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  text-align: center;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  background: #efeae2;
  color: var(--c-text);
  padding: 5px 13px;
  min-width: 56px;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  .gallery-modal__tags li {
    font-size: 10px;
  }
}
@media (min-width: 960px) {
  .gallery-modal__tags li {
    font-size: 12px;
    min-width: 76px;
  }
}
@media (min-width: 1500px) {
  .gallery-modal__tags li {
    font-size: 15px;
    min-width: 86px;
  }
}

/* ホバーしたときの動き（上部フィルタと統一） */
.gallery-modal__tags li:hover {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  background: var(--c-text);
  color: var(--c-key);
  border-color: var(--c-text);
}

/* クリック時（active風にしたい場合は任意） */
.gallery-modal__tags li:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* モーダル内セクション */
.gallery-modal__section {
  border: none;
  background-color: #fff;
  margin-top: 16px;
  padding: 18px 15px 10px;
  position: relative;
}
@media (min-width: 768px) {
  .gallery-modal__section {
    padding: 21px 18px 10px;
  }
}
@media (min-width: 960px) {
  .gallery-modal__section {
    margin-top: 20px;
    padding: 30px 20px 20px;
  }
}
@media (min-width: 1500px) {
  .gallery-modal__section {
    padding: 35px 20px 25px;
  }
}

.gallery-modal__section-title {
  border-left: none;
  position: absolute;
  top: -15px;
  left: 10px;
  padding: 4px 12px;
  background: var(--c-sub);
  color: #fff;
  font-family: "Shippori Mincho", serif;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 500;
}
@media (min-width: 768px) {
  .gallery-modal__section-title {
    font-size: 12px;
    left: 17px;
  }
}
@media (min-width: 960px) {
  .gallery-modal__section-title {
    top: -20px;
    font-size: 14px;
    padding: 7px 30px;
  }
}
@media (min-width: 1500px) {
  .gallery-modal__section-title {
    font-size: 16px;
    padding: 7px 40px;
  }
}

@media (min-width: 768px) {
  .gallery-modal__section-body {
    padding-top: 2px;
  }
}

.gallery-modal__product-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-family: "Shippori Mincho", serif;
  line-height: 1.3;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--c-sub);
}
@media (min-width: 960px) {
  .gallery-modal__product-list {
    font-size: 12px;
    line-height: 1.4;
  }
}
@media (min-width: 1500px) {
  .gallery-modal__product-list {
    font-size: 16px;
  }
}

.gallery-modal__related-list {
  padding-top: 2px;
  gap: 5px;
  display: flex;
  flex-direction: column;
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-family: "Shippori Mincho", serif;
  line-height: 1.3;
  font-size: 11px;
  letter-spacing: 0.8px;
}
@media (min-width: 960px) {
  .gallery-modal__related-list {
    padding-top: 5px;
    gap: 5px;
    font-size: 12px;
  }
}
@media (min-width: 1500px) {
  .gallery-modal__related-list {
    font-size: 16px;
    padding-top: 6px;
  }
}

/* 関連リンク：アイコン付き */
.gallery-modal__related-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
}
@media (min-width: 960px) {
  .gallery-modal__related-list li {
    padding-left: 22px;
    margin-bottom: 8px;
  }
}
@media (min-width: 1500px) {
  .gallery-modal__related-list li {
    padding-left: 27px;
  }
}

.gallery-modal__related-list li a {
  text-decoration-thickness: 1px;
}

/* 青背景 + 白三角（純CSS版） */
.gallery-modal__related-list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  /* 青い背景（角丸） */
  background: #0670d3;
  /* サイズ（SP） */
  width: 12px;
  height: 12px;
  /* 内側の白い三角を ::after で描く */
}

/* 白い三角（▶） */
.gallery-modal__related-list li::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px; /* 三角の位置調整 */
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid #fff;
}

/* PCサイズ */
@media (min-width: 960px) {
  .gallery-modal__related-list li::before {
    width: 14px;
    height: 14px;
  }
  .gallery-modal__related-list li::after {
    left: 5px; /* 青い四角の中で中央になる位置 */
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #fff;
  }
}
/* 大画面 */
@media (min-width: 1500px) {
  .gallery-modal__related-list li::before {
    width: 16px;
    height: 16px;
  }
  .gallery-modal__related-list li::after {
    left: 5.5px; /* 16px四角の中央バランス */
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #fff;
  }
}
/* =========================
  Modal Controls
========================= */
.gallery-modal__close {
  position: absolute;
  right: 0;
  top: -36px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
@media (min-width: 960px) {
  .gallery-modal__close {
    width: 36px;
    height: 36px;
    top: -60px;
  }
}

.gallery-modal__close::before,
.gallery-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 4px;
  background: #fff;
  transform-origin: center;
}
@media (min-width: 960px) {
  .gallery-modal__close::before,
  .gallery-modal__close::after {
    width: 50px;
    height: 6px;
  }
}

.gallery-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.gallery-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Prev / Next ボタン */
.gallery-modal__prev,
.gallery-modal__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
@media (min-width: 768px) {
  .gallery-modal__prev,
  .gallery-modal__next {
    width: 60px;
    height: 60px;
  }
}

/* Next（右向き三角） */
.gallery-modal__next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 18px solid #fff;
}
@media (min-width: 768px) {
  .gallery-modal__next::before {
    border-top: 19px solid transparent;
    border-bottom: 19px solid transparent;
    border-left: 31px solid #fff;
  }
}

/* Prev（左向き三角） */
.gallery-modal__prev::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-60%, -50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 18px solid #fff;
}
@media (min-width: 768px) {
  .gallery-modal__prev::before {
    border-top: 19px solid transparent;
    border-bottom: 19px solid transparent;
    border-right: 31px solid #fff;
  }
}

/* Prev / Next 配置 */
.gallery-modal__prev {
  left: -30px;
}
@media (min-width: 768px) {
  .gallery-modal__prev {
    left: -70px;
  }
}

.gallery-modal__next {
  right: -30px;
}
@media (min-width: 768px) {
  .gallery-modal__next {
    right: -70px;
  }
}

/* =========================
  Accessibility & Misc
========================= */
button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--c-key) 40%, transparent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* ページ末尾の余白調整 */
.gallery-page > *:last-child {
  margin-bottom: 0;
}

.gallery-empty-message {
  justify-self: center;
  margin-top: 20px;
}
@media (min-width: 960px) {
  .gallery-empty-message {
    font-size: 24px;
  }
}