/* 猫は背景に描き込み、同じ16:9の面にクリック範囲だけを置く。 */
.maneki-neko-hotspot {
  position: absolute;
  left: 31.5%;
  top: 45%;
  width: 17%;
  height: 31.3%;
  overflow: visible;
}
.maneki-neko-hotspot::after { display: none; }
.maneki-neko__label {
  left: 50%;
  top: calc(100% + 4px);
  translate: -50% 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(12px, 1cqw, 16px);
  opacity: 1;
}

.yashiki-about {
  box-sizing: border-box;
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 2px solid #755333;
  border-radius: 4px;
  background: #f4ecd9;
  color: #33251b;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Yu Gothic", serif;
  font-size: 17px;
  line-height: 1.7;
  box-shadow: 0 8px 32px rgba(12, 6, 2, .4);
}
.yashiki-about[open] { display: flex; flex-direction: column; }
.yashiki-about::backdrop { background: rgba(20, 12, 6, .72); }
.yashiki-about [hidden] { display: none !important; }
.yashiki-about__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px 16px;
  background: #e6d6b8;
}
.yashiki-about h2 { margin: 0; color: #39271a; font-size: 26px; line-height: 1.5; }
.yashiki-about h3 { margin: 0 0 16px; font-size: 24px; }
.yashiki-about p { margin: 0 0 16px; }
.yashiki-about .yashiki-about__eyebrow { margin: 0 0 4px; font-size: 14px; color: #654933; letter-spacing: .12em; }
.yashiki-about__close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #846445;
  border-radius: 2px;
  background: #f4ecd9;
  color: #39271a;
  font-size: 28px;
  cursor: pointer;
}
.yashiki-about__tabs {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  padding: 0 32px;
  border-bottom: 1px solid #ad9471;
  isolation: isolate;
}
.yashiki-about__tabs button {
  position: relative;
  z-index: 1;
  min-height: 48px;
  flex: 1;
  padding: 12px 8px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #60462f;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.yashiki-about__tabs button[aria-selected="true"] { border-bottom-color: #793e2c; color: #512715; font-weight: 700; }
.yashiki-about__body {
  position: relative;
  z-index: 1;
  min-height: 0;
  flex: 1 1 auto;
  padding: 24px 32px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.yashiki-about__lead { font-size: 20px; font-weight: 700; }
.yashiki-about__rooms { margin: 24px 0; }
.yashiki-about__rooms > div { display: grid; grid-template-columns: 144px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid #c4b294; }
.yashiki-about dt { font-weight: 700; }
.yashiki-about dd { margin: 0; }
.yashiki-about a { color: #754029; text-decoration: underline; text-underline-offset: .2em; }
.yashiki-about__parent { font-size: 16px; }
.yashiki-about__profile { display: grid; grid-template-columns: minmax(160px, 28%) 1fr; gap: 32px; align-items: start; }
.yashiki-about__profile > img { width: 100%; height: auto; }
.yashiki-about__button {
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #603723;
  border-radius: 2px;
  background: #603723;
  color: #fff5e1;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.yashiki-about__button:hover { background: #482719; }
.yashiki-about button:focus-visible, .yashiki-about a:focus-visible,
.yashiki-about input:focus-visible, .yashiki-about textarea:focus-visible { outline: 3px solid #914221; outline-offset: 3px; }
.yashiki-message { display: grid; gap: 16px; }
.yashiki-message__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.yashiki-message label { display: grid; gap: 8px; font-size: 16px; }
.yashiki-message input:not([type="hidden"]), .yashiki-message textarea {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #927d61;
  border-radius: 2px;
  background: #fffcf5;
  color: #302218;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
.yashiki-message textarea { resize: vertical; }
.yashiki-message .yashiki-message__note { margin: 0; color: #5c4934; font-size: 14px; }
.yashiki-message > .yashiki-about__button { justify-self: start; }
@media (max-width: 600px) {
  .yashiki-about { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .yashiki-about__header { padding: 16px; }
  .yashiki-about h2 { font-size: 20px; }
  .yashiki-about__tabs { padding: 0 8px; }
  .yashiki-about__tabs button { padding: 8px 4px; font-size: 14px; }
  .yashiki-about__body { padding: 16px; }
  .yashiki-about__rooms > div { grid-template-columns: 1fr; gap: 8px; }
  .yashiki-about__profile { grid-template-columns: 1fr; gap: 16px; }
  .yashiki-about__profile > img { width: 152px; }
  .yashiki-message__row { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  /* 横向きでは高さを先に決め、案内のタブが本文に覆われないようにする。 */
  .yashiki-about {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-height: none;
  }
  .yashiki-about__header { padding: 8px 24px; }
  .yashiki-about__header .yashiki-about__eyebrow { display: none; }
  .yashiki-about h2 { font-size: 20px; }
  .yashiki-about__tabs { z-index: 3; }
  .yashiki-about__tabs button { min-height: 44px; padding: 8px; }
  .yashiki-about__body { z-index: 1; min-height: 0; padding: 16px 24px; }
}
