@charset "utf-8";

/* ===================================================================
SmartPhone CSS
ウィンドウ幅[0～640px]の場合に適用
=================================================================== */
@media screen and (max-width:640px) {

/* ===================================================================
各ページ共通
=================================================================== */

/*	body
--------------------------------------------------------------------*/
body {
font-size: 1.4rem;
overflow: hidden;
}

/*	header
--------------------------------------------------------------------*/
header {
width: 100%;
padding: 15px;
}

header ul {
display: -ms-flexbox;/* IE10 */
display: flex;
-ms-flex-wrap: wrap;/* IE10 */
flex-wrap: wrap;
justify-content: space-between;
}

header #rila img {
width: 80px;
}

header #maeda img {
width: 100px;
}

/*	main
--------------------------------------------------------------------*/
#main {
max-width: 100%;
margin-top: 0;
margin-bottom: 0;
}

/*	caution
--------------------------------------------------------------------*/
.caution{
  padding: 10px;
}

.caution h5{
  font-size: 1.8rem;
}

.caution h6{
  font-size: 1.6rem;
}

.caution p:last-of-type{
  font-size: 1.6rem;
}

/*	footer
--------------------------------------------------------------------*/
footer {
margin-bottom: 80px;
}

/*	form
--------------------------------------------------------------------*/
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
font-size: 1.6rem;
border-radius: 0;
}

.sec_form dl {
display: block;
padding-bottom: 0;
margin-bottom: 20px;
}

.frm_customer_info,
.frm_property_info {
border: none;
border-bottom: 1px solid #ccc;
}

.sec_form dt {
display: flex;
max-width: 100%;
border: none;
}

.sec_form dd {
max-width: 100%;
border: none;
}

.sec_age > span {
  width: 100%;
  max-width: 100%;
}

/* ----- 顧客情報：シンプルな入力欄のみ1行化（バッジ → 質問文 → 入力欄） ----- */
.sec_form dl.frm_customer_info {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 12px;
  align-items: start;
}

/* 除外行（現状の2行レイアウトを維持）
   dt に <br> or 入れ子 <span> がある、または
   dd が prt_radio / prt_checkbox / prt_select / .sec_address / .sec_choice_info を含む場合。
   ※ :has() の中に :has() は入れられないため .sec_address / .sec_choice_info は子孫セレクタで表現 */
.frm_customer_info > dt:has(br),
.frm_customer_info > dt:has(span span),
.frm_customer_info > dt:has(+ dd.prt_radio),
.frm_customer_info > dt:has(+ dd.prt_checkbox),
.frm_customer_info > dt:has(+ dd.prt_select),
.frm_customer_info > dt:has(+ dd .sec_address),
.frm_customer_info > dt:has(+ dd .sec_choice_info),
.frm_customer_info > dt:has(br) + dd,
.frm_customer_info > dt:has(span span) + dd,
.frm_customer_info > dd.prt_radio,
.frm_customer_info > dd.prt_checkbox,
.frm_customer_info > dd.prt_select,
.frm_customer_info > dd:has(.sec_address),
.frm_customer_info > dd:has(.sec_choice_info) {
  grid-column: 1 / -1;
}

/* 1行化対象の dt：バッジ → 質問文の順、左寄せ。除外条件を :not() で全て打ち消す */
.frm_customer_info > dt:not(:has(br)):not(:has(span span)):not(:has(+ dd.prt_radio)):not(:has(+ dd.prt_checkbox)):not(:has(+ dd.prt_select)):not(:has(+ dd .sec_address)):not(:has(+ dd .sec_choice_info)) {
  max-width: none;
  width: auto;
  padding: 12px 8px 12px 0;
  background: transparent;
  justify-content: flex-start;
  gap: 8px;
}

.frm_customer_info > dt:not(:has(br)):not(:has(span span)):not(:has(+ dd.prt_radio)):not(:has(+ dd.prt_checkbox)):not(:has(+ dd.prt_select)):not(:has(+ dd .sec_address)):not(:has(+ dd .sec_choice_info)) span:first-child {
  order: 2;
  width: auto;
  white-space: nowrap;
}

.frm_customer_info > dt:not(:has(br)):not(:has(span span)):not(:has(+ dd.prt_radio)):not(:has(+ dd.prt_checkbox)):not(:has(+ dd.prt_select)):not(:has(+ dd .sec_address)):not(:has(+ dd .sec_choice_info)) .ico_or {
  order: 1;
  margin: 0;
  flex-shrink: 0;
}

/* 1行化対象の dd：グリッド2列目に収める */
.frm_customer_info > dt:not(:has(br)):not(:has(span span)):not(:has(+ dd.prt_radio)):not(:has(+ dd.prt_checkbox)):not(:has(+ dd.prt_select)):not(:has(+ dd .sec_address)):not(:has(+ dd .sec_choice_info)) + dd {
  max-width: none;
  width: auto;
  padding: 12px 0;
}

.frm_customer_info > dt:not(:has(br)):not(:has(span span)):not(:has(+ dd.prt_radio)):not(:has(+ dd.prt_checkbox)):not(:has(+ dd.prt_select)):not(:has(+ dd .sec_address)):not(:has(+ dd .sec_choice_info)) + dd input[type="text"],
.frm_customer_info > dt:not(:has(br)):not(:has(span span)):not(:has(+ dd.prt_radio)):not(:has(+ dd.prt_checkbox)):not(:has(+ dd.prt_select)):not(:has(+ dd .sec_address)):not(:has(+ dd .sec_choice_info)) + dd input[type="tel"],
.frm_customer_info > dt:not(:has(br)):not(:has(span span)):not(:has(+ dd.prt_radio)):not(:has(+ dd.prt_checkbox)):not(:has(+ dd.prt_select)):not(:has(+ dd .sec_address)):not(:has(+ dd .sec_choice_info)) + dd input[type="email"],
.frm_customer_info > dt:not(:has(br)):not(:has(span span)):not(:has(+ dd.prt_radio)):not(:has(+ dd.prt_checkbox)):not(:has(+ dd.prt_select)):not(:has(+ dd .sec_address)):not(:has(+ dd .sec_choice_info)) + dd input[type="number"] {
  width: 100%;
}

/* ----- .sec_choice_info（ご利用希望日 / ご利用人数）内部も1行化 ----- */
.sec_form .sec_choice_info {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
}

.sec_form .sec_choice_info > dt {
  padding: 0;
  max-width: none;
  width: auto;
  white-space: nowrap;
}

.sec_form .sec_choice_info > dd,
.sec_form .sec_choice_info > dd:not(:last-child) {
  padding: 0;
  max-width: none;
  width: auto;
}

.sec_form .sec_choice_info > dd select,
.sec_form .sec_choice_info > dd input[type="text"] {
  width: 100%;
}

/* ----- form checkbox start ----- */
.prt_checkbox label {
display: block;
width: 100%;
}

.prt_checkbox label:not(:nth-of-type(-n+3)) { padding: 0; }
/* .prt_checkbox label:not(:last-child) { padding-bottom: 25px; } */
/* ----- form checkbox end ----- */

/* ----- form radio start ----- */
.prt_radio label {
width: 100%;
}

.prt_radio label:not(:nth-child(4n)),
.prt_radio label:not(:nth-of-type(-n+4)) { padding: 0; }
.prt_radio label:not(:last-child) { padding-bottom: 2px; }

/* ご希望の別荘（bukken-radio）は SP でも 2カラム表示 */
.frm_customer_info > dd.prt_radio:has(.bukken-radio) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 6px;
  row-gap: 6px;
}

.frm_customer_info > dd.prt_radio:has(.bukken-radio) > h5 {
  grid-column: 1 / -1;
  margin: 8px 0 0;
}

.frm_customer_info > dd.prt_radio:has(.bukken-radio) > label {
  width: auto;
  padding: 0;
}

/* 別荘ラジオを画像カード化：グレー背景・ラジオアイコン非表示、
   テキストは画像に重ね、選択時のみボーダーを表示 */
.frm_customer_info > dd.prt_radio:has(.bukken-radio) > label > .prt_on {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 90px;
  padding: 6px 8px;
  margin: 0;
  background-color: #e5e5e5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  text-shadow: -1px -1px 0 rgba(0,0,0,0.6), 1px -1px 0 rgba(0,0,0,0.6), -1px 1px 0 rgba(0,0,0,0.6), 1px 1px 0 rgba(0,0,0,0.6), 0 0 6px rgba(0,0,0,0.7);
  border: 4px solid transparent;
  border-radius: 6px;
  box-sizing: border-box;
}

.frm_customer_info > dd.prt_radio:has(.bukken-radio) > label > .prt_on::before {
  content: none;
}

.frm_customer_info > dd.prt_radio:has(.bukken-radio) > label > input[type="radio"]:checked + .prt_on {
  background-color: #e5e5e5;
  color: #fff;
  /* 入力済み input の border（#3bdb40）と同じ緑 */
  border-color: #3bdb40;
  box-shadow: 0 0 0 1px rgba(59, 219, 64, 0.4);
}

.frm_customer_info > dd.prt_radio:has(.bukken-radio) > label > input[type="radio"]:checked + .prt_on::before {
  content: none;
}

/* サムネイル画像がない「どちらでもよい」は暗色テキストで読みやすく */
.frm_customer_info > dd.prt_radio:has(.bukken-radio) > label > .prt_on:not([style*="background-image"]) {
  align-items: center;
  color: #333;
  text-shadow: none;
}
/* ----- form radio end ----- */

.ui-datepicker {
  font-size: 120%;
}

/* ----- form button start ----- */
.btn_submit {
width: 96%;
}
/* ----- form button end ----- */

/* ----- form 必須or任意 icon start ----- */
.ico_or {
display: inline-block;
width: auto;
margin: 0;
}
/* ----- form 必須or任意 icon end ----- */

.sec_address .ttl_post_num {
display: block;
}

.pp_check {
max-width: 96%;
margin: 0 auto;
}

/* ----- form 注意書きエリア ----- */
.form-attention {
  width: 95%;
  margin: 10px auto;
}

/* ===================================================================
nav_step
=================================================================== */
.nav_step {
font-size: 2.8vw;
}

.nav_step li:not(:first-child) {
padding-left: 30px;
}

/* ===================================================================
CheckArea
=================================================================== */
.check_area ul {
  flex-direction: column;
}

.check_area ul li {
  width: 100%;
  margin-bottom: 20px;
}


/* ===================================================================
thanks_page
=================================================================== */
.thanks_page {
margin:0 10px 30px 10px;
padding: 25px 5px;
}

.thanks_page p {
font-size: 16px;
}

/* ----- form required number box start ----- */
.reqBox{
position:fixed;
top:inherit;
right:50%;
bottom: 0;
width: 300px;
margin: 0 -150px 10px 0;
padding:5px 10px;
color: white;
text-align: center;
background-color: #262769;
border-radius: 5px;
z-index: 10;
}

.reqBox span {
  display:inline;
  margin-right: 5px;
}

.reqBox span:first-child {
  font-size: 12px;
}

.required_num{
font-size: 16px;
font-weight: bold;
}


input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="number"], .prt_select select {
  height: 40px;
}
.usage_count .prt_radio .prt_on {
  height: 40px;
  margin-bottom:0;
}
.usage_count .prt_radio .prt_on {
  width: 40%;
}
.prt_select::after {
  line-height:80px;
}
/* ----- form required number box end ----- */
.btn-line-wrap {
  text-align: center;
}
.btn-line {
  font-size: .8em;
  font-weight: bold;
}


}
