@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/*--------------------------------------
  Rooms List Shortcode Styles
--------------------------------------*/
.p-rooms-list {
  display: grid;
  grid-template-columns: 1fr; /* スマホの場合は1列 */
  gap: 2.5em 2em;
  margin-block: 2em;
}

@media (min-width: 768px) {
  .p-rooms-list {
    grid-template-columns: repeat(3, 1fr); /* PC等の場合は3列 */
  }
}

/*--------------------------------------
  Floating Reservation Buttons
--------------------------------------*/
.c-floating-btns {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.c-floating-btns.is-visible {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.c-floating-btn {
  writing-mode: vertical-rl;
  text-orientation: upright;
  background-color: #9BA4A5; /* ご指定の色 */
  color: #fff !important;
  text-decoration: none !important;
  padding: 1.2em 0.5em;
  font-size: 1.25rem;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  font-weight: bold;
  letter-spacing: 0.1em;
  border: 2px solid #fff;
  border-right: none;
  border-radius: 6px 0 0 6px;
  box-shadow: -2px 2px 10px rgba(0,0,0,0.25);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  transition: background-color 0.3s ease, filter 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.c-floating-btn:hover {
  background-color: #9BA4A5;
  filter: brightness(1.05);
}

/* スマホ幅時は非表示 */
@media screen and (max-width: 767px) {
  .c-floating-btns {
    display: none !important;
  }
}

.p-room-card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: box-shadow 0.4s ease;
  position: relative;
}

.p-room-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.p-room-card__thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
}

.p-room-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 画像をピンチアウト（拡大） */
.p-room-card:hover .p-room-card__thumb img {
  transform: scale(1.08);
}

.p-room-card__body {
  padding: 1.8em 2em;
  position: relative;
  background-color: #fff;
}

.p-room-card__note {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 0.1em;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  letter-spacing: 0.05em;
}

.p-room-card__name {
  font-size: 1.5em;
  margin: 0;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  color: #222;
  padding-right: 2.5em; /* 矢印との被りを防止 */
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* 直感的に押せる矢印アイコン */
.p-room-card__arrow {
  position: absolute;
  right: 1.5em;
  bottom: 50%;
  transform: translateY(50%);
  color: #9BA4A5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*--------------------------------------
  Page Title Fix for Custom Post Type
--------------------------------------*/
/* SWELLの page.css が読み込まれないカスタム投稿でも文字サイズを固定ページに合わせる */
.c-pageTitle {
  font-size: 1.3em;
  line-height: 1.4;
  position: relative;
}
.c-pageTitle::after {
  clear: both;
  content: "";
  display: block;
  height: 0;
  visibility: hidden;
}
.c-pageTitle[data-style=b_bottom] {
  border-bottom: 1px solid var(--color_border);
}
.c-pageTitle[data-style=b_bottom] .c-pageTitle__inner {
  border-bottom: 1px solid var(--color_main);
  float: left;
  margin-bottom: -1px;
  padding: .25em .5em;
}
.c-pageTitle__inner {
  display: block;
  padding-top: .5em;
}
.c-pageTitle__subTitle {
  font-style: italic;
  letter-spacing: var(--swl-letter_spacing, 1px);
  margin-left: 1em;
  opacity: .8;
  padding-block: 2px;
  position: relative;
  top: -2px;
}
@media(min-width: 600px) {
  .c-pageTitle {
    font-size: 1.5em;
  }
}
