/* =========================================================
   ③ 部屋選び 完成版専用CSS
   PPTX完成版を正本とし、既存共通CSSから隔離する。
   ========================================================= */

#room-selection{
  background:#fff;
  color:#111;
  padding:34px 0 18px !important;
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif !important;
  line-height:1.5 !important;
}
#room-selection, #room-selection *{box-sizing:border-box}

#room-selection .rs-wrap{
  width:min(1600px,calc(100% - 36px));
  margin:0 auto;
}
#room-selection .rs-header{text-align:center}

#room-selection .rs-title{
  margin:0 !important;
  color:#102D67 !important;
  font-family:"Yu Mincho","Hiragino Mincho ProN","MS PMincho",serif !important;
  font-size:56px !important;
  font-weight:700 !important;
  line-height:1.18 !important;
  letter-spacing:.04em !important;
  text-align:center !important;
}

#room-selection .rs-ornament{
  display:flex;
  align-items:center;
  gap:19px;
  width:62%;
  margin:11px auto 9px;
  color:#C9A55E;
}
#room-selection .rs-ornament::before,
#room-selection .rs-ornament::after{
  content:"";
  display:block;
  height:1px;
  background:#C9A55E;
  flex:1;
}
#room-selection .rs-ornament span{
  font:700 21px/1 serif;
  letter-spacing:.14em;
  white-space:nowrap;
}

#room-selection .rs-lead{
  margin:0 auto 17px !important;
  color:#102D67 !important;
  font-family:"Yu Mincho","Hiragino Mincho ProN","MS PMincho",serif !important;
  font-size:29px !important;
  font-weight:700 !important;
  line-height:1.35 !important;
  text-align:center !important;
}

/* 上段4カード */
#room-selection .rs-room-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
  align-items:stretch;
  margin-top:9px;
}
#room-selection .rs-room-card{
  --rs-accent:#1D5DA1;
  --rs-pale:#EEF5FD;
  display:grid;
  grid-template-rows:56px 198px 120px 62px;
  min-width:0;
  background:#fff;
  border:1px solid #BDCAd7;
  border-radius:10px;
  overflow:hidden;
}
#room-selection .rs-room-card--inside{--rs-accent:#1D5DA1;--rs-pale:#EEF5FD}
#room-selection .rs-room-card--ocean{--rs-accent:#1E9BA4;--rs-pale:#ECF9F8}
#room-selection .rs-room-card--balcony{--rs-accent:#E1733A;--rs-pale:#FEF3ED}
#room-selection .rs-room-card--suite{--rs-accent:#8C61A8;--rs-pale:#F5EFFA}

#room-selection .rs-room-head{
  margin:0 !important;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--rs-accent);
  color:#fff !important;
  font-family:"Yu Mincho","Hiragino Mincho ProN","MS PMincho",serif !important;
  font-size:30px !important;
  font-weight:700 !important;
  line-height:1 !important;
}
#room-selection .rs-room-photo{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  margin:0 !important;
  padding:0 !important;
}
#room-selection .rs-room-list{
  list-style:disc !important;
  margin:0 !important;
  padding:17px 17px 0 37px !important;
  color:#111 !important;
  font-size:18px !important;
  line-height:1.55 !important;
  text-align:left !important;
  overflow:hidden;
}
#room-selection .rs-room-list li{
  display:list-item !important;
  list-style:disc !important;
  margin:0 0 3px !important;
}
#room-selection .rs-fit{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:11px !important;
  padding:0 11px !important;
  border:1.5px solid var(--rs-accent);
  border-radius:9px;
  background:var(--rs-pale);
  color:var(--rs-accent) !important;
  font-size:17px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
  text-align:center !important;
}

/* 下段左右を完全同寸法 */
#room-selection .rs-lower-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:19px;
  margin-top:22px;
  align-items:stretch;
}
#room-selection .rs-lower-card{
  min-height:494px;
  height:494px;
}

/* 左：完成図解画像をそのまま表示 */
#room-selection .rs-location-card{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
#room-selection .rs-location-panel-image{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  display:block !important;
}

/* 右：初心者チェック */
#room-selection .rs-check-card{
  background:#FFFEFC;
  border:1px solid #D7B987;
  border-radius:10px;
  padding:0 18px 14px;
  overflow:hidden;
}
#room-selection .rs-panel-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:21px;
  margin:19px 17px 9px !important;
  color:#102D67 !important;
  font-family:"Yu Mincho","Hiragino Mincho ProN","MS PMincho",serif !important;
  font-size:28px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
}
#room-selection .rs-panel-title::before,
#room-selection .rs-panel-title::after{
  content:"";
  height:1px;
  background:#C9A55E;
  flex:1;
  max-width:161px;
}

#room-selection .rs-check-list{
  display:grid;
  grid-template-rows:repeat(4,94px);
  margin-top:4px;
}
#room-selection .rs-check-item{
  display:grid;
  grid-template-columns:69px 92px 1fr;
  align-items:center;
  column-gap:11px;
  border-top:1px dotted #D7D7D7;
}
#room-selection .rs-check-item:first-child{border-top:0}

#room-selection .rs-check-icon{
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--c);
  color:#fff;
  font-size:24px;
  font-weight:700;
  justify-self:center;
}
#room-selection .rs-check-label{
  color:var(--c);
  font-size:22px;
  font-weight:700;
  align-self:center;
}
#room-selection .rs-check-text{
  margin:0 !important;
  color:#111 !important;
  font-size:16.3px !important;
  line-height:1.5 !important;
  font-weight:500;
  align-self:center;
}

/* 下部メッセージ */
#room-selection .rs-closing{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:26px;
  margin:30px 0 0;
  color:#102D67;
  font-family:"Yu Mincho","Hiragino Mincho ProN","MS PMincho",serif;
  font-size:30px;
  font-weight:700;
  line-height:1.3;
  text-align:center;
}
#room-selection .rs-closing::before,
#room-selection .rs-closing::after{
  content:"❦";
  color:#C9A55E;
  font-size:32px;
  font-weight:400;
}

@media(max-width:900px){
  #room-selection{padding:20px 0 14px !important}
  #room-selection .rs-wrap{width:calc(100% - 20px)}
  #room-selection .rs-title{font-size:34px !important}
  #room-selection .rs-lead{font-size:19px !important}
  #room-selection .rs-room-grid{
    grid-template-columns:repeat(4,340px);
    overflow-x:auto;
    padding-bottom:10px;
  }
  #room-selection .rs-lower-grid{
    grid-template-columns:704px 704px;
    overflow-x:auto;
    padding-bottom:10px;
  }
}

/* =========================================================
   スマートフォン専用（2026-08-28 第2段階）
   ・max-width:768px のみ。PC版（769px以上）の4列表示は変更しない
   ・4客室カード／下段2枠を1列縦並びにし、横スクロールを解消する
   ========================================================= */
@media(max-width:768px){

  /* --- セクション境界の余白（内部余白より広く） --- */
  #room-selection{ padding:28px 0 28px !important; }

  /* --- 見出し：自然な2行に収める（PC版タイトルは変更しない） --- */
  #room-selection .rs-title{
    font-size:23px !important;
    line-height:1.35 !important;
  }
  #room-selection .rs-ornament{ width:78%; margin:12px auto 10px; }
  /* 末尾の締め文はスマホでは非表示（PC版では従来どおり表示） */
  #room-selection .rs-closing{ display:none; }

  #room-selection .rs-lead{
    font-size:19px !important;
    line-height:1.55 !important;
    margin-bottom:14px !important;
  }

  /* --- 上段4カード：1列縦並び（横スクロールにしない） --- */
  #room-selection .rs-room-grid{
    grid-template-columns:1fr;
    gap:16px;
    overflow-x:visible;
    padding-bottom:0;
  }
  #room-selection .rs-room-card{
    display:flex;
    flex-direction:column;
    grid-template-rows:none;
  }
  #room-selection .rs-room-head{
    padding:12px 10px !important;
    font-size:26px !important;
    line-height:1.25 !important;
  }
  /* 写真：切り取らず縦横比のまま全体を表示 */
  #room-selection .rs-room-photo{
    height:auto !important;
    object-fit:contain !important;
  }
  #room-selection .rs-room-list{
    padding:14px 16px 4px 36px !important;
    line-height:1.6 !important;
    overflow:visible;          /* 文章を切らない */
  }
  #room-selection .rs-fit{
    margin:12px !important;
    padding:12px 14px !important;
    min-height:52px;
    line-height:1.5 !important;
  }

  /* --- 下段「部屋の場所はこう見る」「初心者はここだけ確認」：1列縦並び --- */
  #room-selection .rs-lower-grid{
    grid-template-columns:1fr;
    gap:16px;
    margin-top:18px;
    overflow-x:visible;
    padding-bottom:0;
  }
  #room-selection .rs-lower-card{
    min-height:0;
    height:auto;
  }

  /* 図解画像：無理に切り取らず、画像全体が見える表示を優先 */
  #room-selection .rs-location-card{
    display:block;
    overflow:visible;
  }
  #room-selection .rs-location-panel-image{
    width:100% !important;
    height:auto !important;
    object-fit:contain !important;
  }

  /* 初心者はここだけ確認 */
  #room-selection .rs-check-card{ padding:0 14px 16px; }
  #room-selection .rs-panel-title{
    margin:16px 4px 6px !important;
    gap:10px;
    font-size:24px !important;
  }
  #room-selection .rs-panel-title::before,
  #room-selection .rs-panel-title::after{ max-width:40px; }

  #room-selection .rs-check-list{
    grid-template-rows:none;
    margin-top:0;
  }
  #room-selection .rs-check-item{
    grid-template-columns:56px 1fr;
    grid-template-areas:
      "icon label"
      "icon text";
    align-items:start;
    column-gap:12px;
    row-gap:6px;
    padding:14px 0;
  }
  #room-selection .rs-check-icon{ grid-area:icon; align-self:start; }
  #room-selection .rs-check-label{
    grid-area:label;
    font-size:20px;
    align-self:center;
  }
  #room-selection .rs-check-text{
    grid-area:text;
    font-size:17px !important;
    line-height:1.6 !important;
  }

  /* 締めの一文：装飾の間隔だけ詰めて折返しを自然にする */
  #room-selection .rs-closing{
    gap:12px;
    font-size:21px;
    margin-top:22px;
  }
  #room-selection .rs-closing::before,
  #room-selection .rs-closing::after{ font-size:22px; }
}

/* スマホ用に追加した要素は、PC版では非表示 */
#room-selection .rs-swipe-hint{ display:none; }

/* =========================================================
   スマートフォン専用（2026-08-28 第6段階）
   ・4客室カードを船カテゴリーと同じ横スワイプ（1画面1カード／scroll-snap）に
   ・カード内容（客室名・写真・特徴3項目・向いている人）は変更しない
   ・下段2枠（部屋の場所／初心者はここだけ確認）は現在の縦表示のまま
   ========================================================= */
@media(max-width:768px){
  #room-selection .rs-room-grid{
    grid-template-columns:repeat(4,100%);
    gap:14px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;
    padding-bottom:10px;
  }
  #room-selection .rs-room-card{ scroll-snap-align:start; }

  #room-selection .rs-swipe-hint{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin:10px 0 0;
    padding:9px 8px;
    border-radius:8px;
    background:#f6f9fc;
    color:#102D67;
    font-size:16px;
    line-height:1.5;
    font-weight:700;
    text-align:center;
  }
}

/* =========================================================
   2026-09-06 追加：「初心者はここだけ確認」をスマートフォンで折りたたむ
   ・船のカテゴリーの「詳しく見る ▼」と同じ見た目・同じ文言
   ・PC版（769px以上）ではボタンを出さず、中身も従来どおり開いたまま
   ========================================================= */
#room-selection .rs-check-btn{ display:none; }

@media(max-width:768px){
  #room-selection .rs-check-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    margin:10px 0 2px;
    min-height:48px;
    padding:10px 16px;
    background:var(--rs-pale);
    border:1px solid var(--rs-accent);
    border-radius:8px;
    color:var(--rs-accent);
    font-family:inherit;
    font-size:17px;
    font-weight:700;
    line-height:1.4;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  #room-selection .rs-check-btn::after{ content:"▼"; font-size:13px; }
  #room-selection .rs-check-btn[aria-expanded="true"]::after{ content:"▲"; }
  #room-selection .rs-check-card:not(.is-open) .rs-check-list{ display:none; }
  #room-selection .rs-check-card.is-open .rs-check-list{ margin-top:12px; }
}
