@font-face { font-family: 'Shippori Mincho'; src: url('../assets/facilities/fonts/shippori-mincho.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hina Mincho'; src: url('../assets/facilities/fonts/hina-mincho.ttf') format('truetype'); font-weight: 400; font-display: swap; }
.kawakyu-facilities-page { margin: 0; background: #23180f; }
.kf, .kf-dialog { box-sizing: border-box; --kf-u: .0520833333vw; font-family: 'Shippori Mincho', 'Yu Mincho', serif; font-weight: 400; }
.kf *, .kf-dialog * { box-sizing: border-box; }
.kf button, .kf-dialog button { font: inherit; color: inherit; border: 0; cursor: pointer; padding: 0; background: none; -webkit-tap-highlight-color: transparent; }
.kf button:focus-visible, .kf-dialog button:focus-visible { outline: 2px solid currentColor; outline-offset: 8px; }
.kf { position: relative; isolation: isolate; overflow: hidden; height: calc(1120 * var(--kf-u)); min-height: 100svh; color: #ffeec8; }
.kf-background { position: absolute; inset: 0; z-index: -1; background: #23180f; }
.kf-background img { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--kf-background-duration, 1760ms) ease; }
.kf-background img:first-child { opacity: 1; }
.kf-background canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.kf-background::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / 60%); }
.kf-heading { color: var(--color-font-light);position: absolute; top: calc(134.87335 * var(--kf-u)); left: calc(160 * var(--kf-u)); margin: 0; font-weight: 400; }
.kf-heading img { display: block; width: calc(267.7963 * var(--kf-u)); height: auto; }
.kf-heading span { display: block; margin-top: calc(18 * var(--kf-u)); font-size: var(--font-size18); line-height: 26px; }
.kf-carousel { position: absolute; inset: 0; }
.kf-stage { position: absolute; left: 0; top: calc(267.916 * var(--kf-u)); width: 100%; height: calc(793.75 * var(--kf-u)); }
.kf-stage canvas, .kf-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.kf-stage canvas { opacity: 0; }
.kf[data-renderer='webgl'] canvas { opacity: 1; }
.kf[data-renderer='webgl'] .kf-fallback { visibility: hidden; }
.kf-fallback img { position: absolute; width: calc(1100 * var(--kf-u)); height: calc(673.75 * var(--kf-u)); top: calc(60 * var(--kf-u)); left: 50%; object-fit: cover; }
.kf-open { position: absolute; width: calc(1100 * var(--kf-u)); height: calc(673.75 * var(--kf-u)); left: calc(410 * var(--kf-u)); top: calc(327.916 * var(--kf-u)); text-align: left; }
.kf-caption { position: absolute; left: calc(30 * var(--kf-u)); bottom: calc(29 * var(--kf-u)); display: flex; flex-direction: column; gap: calc(10 * var(--kf-u)); transition: opacity .25s; }
.kf-caption img { height: calc(37 * var(--kf-u)); width: auto; max-width: calc(900 * var(--kf-u)); object-fit: contain; object-position: left; filter: brightness(0) saturate(100%) invert(94%) sepia(16%) saturate(602%) hue-rotate(337deg) brightness(106%); }
.kf-caption span { font-size: max(12px, calc(18 * var(--kf-u))); line-height: 1.45; }
.kf[data-moving='true'] .kf-caption { opacity: 0; }
.kf-nav { position: absolute; top: calc(598 * var(--kf-u)); display: grid; justify-items: center; width: max(56px, calc(110 * var(--kf-u))); min-height: 72px; gap: 6px; text-shadow: 0 2px 12px #000; }
.kf-nav > span:first-child { position: relative; display: grid; place-items: center; width: max(44px, calc(74 * var(--kf-u))); height: max(44px, calc(74 * var(--kf-u))); border: 1px solid rgb(255 238 200 / 65%); border-radius: 50%; font-size: 0; transition: background-color .2s, transform .2s; }
.kf-nav > span:first-child::before { content: ""; display: block; width: 60%; height: 60%; background-color: var(--color-font-light); mask: url('/wp-content/uploads/icon-usagi.svg') center / contain no-repeat; }
.kf-prev > span:first-child::before { transform: scaleX(-1); }
.kf-nav:hover > span:first-child { background-color: rgb(255 238 200 / 12%); transform: scale(1.06); }
.kf-nav > span:last-child { font-size: max(14px, calc(18 * var(--kf-u))); }
.kf-prev { left: calc(120 * var(--kf-u)); }
.kf-next { right: calc(120 * var(--kf-u)); }
.kf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kf-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; padding: calc(42 * var(--kf-u)) calc(40 * var(--kf-u)); background: #000; color: #23180f; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.kf-dialog::backdrop { background: #000; }
.kf-panel { position: relative; background: #f8f4ec; min-height: calc(1400 * var(--kf-u)); padding: calc(86.751 * var(--kf-u)) 20px calc(75 * var(--kf-u)); }
.kf-panel .krs-stage {max-width: 1240px;max-height: 600px;}
.kf-panel .krs {min-height: unset;}

.kf-detail-heading { text-align: center; }
.kf-detail-title { display: block; height: calc(56.775 * var(--kf-u)); max-width: 80%; width: auto; margin: 0 auto; }
.kf-detail-heading h2 { font-size: calc(28 * var(--kf-u)); line-height: calc(40 * var(--kf-u)); font-weight: 400; margin: calc(15.55 * var(--kf-u)) 0 0; }
.kf-close { position: fixed; top: calc(55.3 * var(--kf-u)); right: calc(55 * var(--kf-u)); z-index: 2; width: max(48px, calc(55 * var(--kf-u))); margin: 0; display: grid; justify-items: center; }
.kf-close img { display: block; width: 100%; }
.kf-close span { font-size: max(12px, calc(14 * var(--kf-u))); line-height: 1.5; }
.kf-ornament { display: block; width: calc(1240 * var(--kf-u)); height: calc(70 * var(--kf-u)); margin: calc(53.925 * var(--kf-u)) auto 0; }
.kf-lead { font-family: 'Hina Mincho', 'Yu Mincho', serif; font-size: calc(40 * var(--kf-u)); letter-spacing: .03em; font-weight: 400; line-height: calc(66 * var(--kf-u)); text-align: center; margin: calc(25 * var(--kf-u)) auto calc(32 * var(--kf-u)); }
.kf-detail-photo { width: calc(1240 * var(--kf-u)); height: calc(620 * var(--kf-u)); margin: 0 auto; display: grid; grid-template-columns: 147.25fr 945.5fr 147.25fr; overflow: hidden; }
.kf-detail-photo img { width: 100%; height: 100%; min-width: 0; object-fit: cover; }
.kf-detail-photo img:nth-child(2) { border-inline: calc(2 * var(--kf-u)) solid #f8f4ec; }
.kf-detail-photo img:first-child { object-position: 15% center; }
.kf-detail-photo img:last-child { object-position: 85% center; }
.kf-description { width: calc(1280 * var(--kf-u)); margin: 0 auto; font-size: calc(22 * var(--kf-u)); line-height: calc(37.4 * var(--kf-u)); letter-spacing: .03em; text-align: center; }
.kf-detail-basic { display: block; width: calc(1240 * var(--kf-u)); height: auto; margin: calc(90 * var(--kf-u)) auto 0; }
@media (max-width: 767px) {
  .kf { height: 100svh; min-height: 580px; }
  .kf-heading { left: 7vw; top: 10svh; }
  .kf-heading img { width: 170px; }
  .kf-heading span { margin-top: 12px; font-size: 14px; line-height: 1.6; }
  .kf-stage { top: calc(35svh - 28px); height: calc(70vw + 56px); }
  .kf-open { left: 17vw; top: 35svh; width: 66vw; height: 66vw; }
  .kf-caption { left: 14px; bottom: 14px; gap: 4px; }
  .kf-caption img { height: 25px; max-width: 53vw; }
  .kf-caption span { font-size: 12px; max-width: 53vw; }
  .kf-nav { top: calc(35svh + 35vw - 36px); width: 48px; gap: 8px; }
  .kf-prev { left: 1vw; } .kf-next { right: 1vw; }
  .kf-nav > span:first-child { width: 40px; height: 40px; font-size: 22px; }
  .kf-fallback img { width: 66vw; height: 70vw; top: 28px; }
  .kf-dialog { padding: 12px; }
  .kf-panel { min-height: calc(100svh - 24px); padding: 76px 18px 48px; }
  .kf-detail-title { height: 42px; max-width: 90%; }
  .kf-detail-heading h2 { margin-top: 12px; font-size: 17px; line-height: 1.6; }
  .kf-close { top: 20px; right: 20px; margin: 0; width: 44px; }
  .kf-ornament { width: 100%; height: auto; margin-top: 30px; }
  .kf-lead { font-size: 24px; line-height: 1.8; margin: 24px auto; text-wrap: balance; }
  .kf-detail-photo { width: calc(100% + 16px); margin-left: -8px; height: 58vw; grid-template-columns: 1fr 7fr 1fr; }
  .kf-detail-photo img:nth-child(2) { border-inline-width: 1px; }
  .kf-description { width: 100%; margin-top: 28px; font-size: var(--font-size18); line-height: 2.1; text-align: left; }
  .kf-description br { display: none; }
  .kf-detail-basic { width: 100%; margin-top: 30px; }
  .kf-panel .c-data-table tr {
    display: block;
  }
  .kf-panel .krs-stage {
    width: 100%;
    height: 400px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kf-background img, .kf-caption, .kf-nav > span:first-child { transition: none; }
}

.kf-photo-markers { display: flex; justify-content: flex-end; width: calc(1240 * var(--kf-u)); height: 0; position: relative; top: calc(8 * var(--kf-u)); margin: 0 auto; }
.kf-photo-markers img { width: calc(20 * var(--kf-u)); height: calc(20 * var(--kf-u)); margin-left: calc(-2 * var(--kf-u)); }
@media (max-width: 760px) {
  .kf-photo-markers { width: calc(100% + 16px); margin-left: -8px; top: 5px; }
  .kf-photo-markers img { width: 12px; height: 12px; margin-left: -1px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .kf-detail-heading h2 { font-size: 20px; line-height: 1.6; }
  .kf-lead { font-size: 26px; line-height: 1.8; padding-inline: 20px; }
  .kf-description { font-size: 16px; line-height: 1.9; }
  .kf-description br { display: none; }
}
/* 調整用URLだけに生成するパネル。通常の組み込み画面には表示しない。 */
.kf-tuning { position: fixed; z-index: 10; top: 16px; right: 16px; width: min(310px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; box-sizing: border-box; padding: 14px; border: 1px solid #b9ae98; border-radius: 6px; background: rgb(248 244 236 / 97%); color: #23180f; font: 13px/1.5 sans-serif; }
.kf-tuning summary { cursor: pointer; font-weight: bold; }
.kf-tuning p { margin: 12px 0; }
.kf-tuning label { display: grid; grid-template-columns: 1fr auto; gap: 4px; margin-block: 10px; }
.kf-tuning input { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: #66513a; }
.kf-tuning textarea { width: 100%; box-sizing: border-box; font: 11px/1.5 monospace; }
