/*
Theme Name: Divi Child
Theme URI: http://www.elegantthemes.com/gallery/divi/
Template: Divi
Version: 1.00.0
*/

/*
MTS入力フォーム
*/

/* ========================================
  コンテンツ幅
======================================== */
.container{ 
    margin-bottom: 5rem;
}

/* ========================================
  特定ページのCSS
======================================== */
/* MTS入力フォーム マイページ */
.page-id-371259 .container,
.page-id-371249 .container{
    max-width:480px;
    margin: 3rem auto;
    padding:2rem!important;
    border:1px solid #ccc ;
}

.page-id-371259 h1{
    font-size: 1.5rem;
}

.mypagemenu{
    padding-left: 0!important;
}
.mypagemenu li{
    list-style: none;
}
.mypagemenu li a{
    display: block;
    width: 100%;
    padding: 1rem;
    border-top:1px solid #ccc;
}
.mypagemenu li:last-child a{
    border-bottom:1px solid #ccc ;
}

.mts-login-widget ul{
    padding-left:0!important;
}
.mts-login-widget li{
    list-style: none;
    margin-top: 1rem;
}
.mts-login-widget li a{
    text-align: center;
    color: #333;
    background: #ccc;
    display: block;
    width: 100%;
    max-width: 320px;
    padding: 1rem;
    margin: 0 auto;
    border:1px solid #ccc ;
    border-radius:0.6rem;
}

.btn{
    max-width: 320px;
    margin: 0 auto;
}

/* パスワードをお忘れですか？ */
.user-pass-forget{
    margin-top: 1em;
}

/* 予約完了画面のタイトル ユーザー登録完了 */
.page-id-371263 .main_title,
.page-id-371255 .main_title,{
    text-align: center!important;
}

/* カレンダーのタイトル */
.calendar-caption{
    font-size: 2rem;
    margin: 1em;
}

/* カレンダーのリンク */
.multiple-calendar a{
    font-weight: 600;
}

/* ========================================
  入力フォーム一般スタイル（input / select / textarea）
======================================== */
.content-form input[type="text"],
.content-form input[type="email"],
.content-form input[type="tel"],
.content-form input[type="number"],
.content-form input[type="password"],
.content-form select,
.page-change-selector select,
.content-form textarea,
.mts-login-widget input,
#accedence-box input{
    width: 100%;
    padding: 0.9rem 1.1rem!important;
    font-size: 1rem!important;
    border: 0.08rem solid #ccc;
    border-radius: 0.6rem;
    background: #fff;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.content-form input:focus,
.content-form select:focus,
.page-change-selector select:focus,
.content-form textarea:focus {
    border-color: #2D4D70;
    box-shadow: 0 0 0 0.35rem rgba(0,115,170,0.15);
}

.content-form textarea {
    min-height: 7rem;
}

/* Selectボックスのみの設定（矢印考慮） */
.content-form select,
.page-change-selector select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.2rem;
    padding-right: 2.2rem;
    min-width: 4rem; /* 最低幅 */
}

/* ========================================
  ▼氏名と生年月日
======================================== */
select.booking-date,
select#user-birthday-year{
    width: 6rem;
}
input#booking-sei,
input#booking-mei,
input#booking-sei_kana,
input#booking-mei_kana,
input#user-sei,
input#user-mei,
input#user-sei_kana,
input#user-mei_kana
{
    width:12rem;
}
select#form_birthday-month,
select#form_birthday-day,
select#user-birthday-month,
select#user-birthday-day{
    width: 5rem;
}

/* ========================================
  ▼ラジオボタン
======================================== */
.content-form .gender-box,
.content-text.radio,
.check-opFood {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px; 
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 16px;
}

/* ラベルにホバーや選択状態での変化 */ 
.content-form input[type="radio"]:hover,
.content-text.radio:hover,
.check-opFood:hover{
    background: #f5f5f5;
}

/* デフォルトのラジオボタンを非表示に */
.content-form input[type="radio"],
.check-opFood input[type="radio"]{
    appearance: none;
    -webkit-appearance: none;
    width: 23px;
    height: 23px;
    border: 2px solid #888;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

/* 選択されているときのスタイル */
.content-form input[type="radio"]:checked,
.content-text.radio input[type="radio"]:checked,
.check-opFood input[type="radio"]:checked{
    border-color: #2D4D70;
}

/* 選択時の●部分 */
.content-form input[type="radio"]:checked::before,
.content-text.radio input[type="radio"]:checked::before,
.check-opFood input[type="radio"]:checked::before{
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 13px;
    height: 13px;
    background: #2D4D70;
    border-radius: 50%;
}

/* ========================================
  ▼オプション
======================================== */
select.booking-option-select{
    width: 100%;
    max-width: 320px;
}

/* ========================================
  Submit ボタン
======================================== */
.content-form button,
.content-form input[type="submit"],
.login-submit input,
.page-change-selector button {
    display: inline-block;
    width: 100%; 
    max-width: 320px;
    padding: 1rem 1.4rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.6rem;
    background-color: #5cba3c;
    color: #fff;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.15s;
}

.login-submit{text-align: center;}

/* ホバー（PC操作時） */
.content-form button:hover,
.page-change-selector button:hover {
    background-color: #005f8a;
}

/* 押した瞬間 */
.content-form button:active,
.page-change-selector button:active {
    transform: scale(0.98);
}

/* フォーカスリング（アクセシビリティ） */
.content-form button:focus,
.page-change-selector button:focus {
    outline: none;
    box-shadow: 0 0 0 0.35rem rgba(0,115,170,0.25);
}

/* ユーザー登録関係 */
.register-button .button-box{
    display: inline-block;
    width: 100%;
    max-width:320px;
    margin: 1rem 0.5rem;
}
.register-button .button-box input{
    background-color:#0073aa;
}
.register-button .button-box:nth-child(2) input{
    background-color: #5f5f5f;
}
.register-button .button-box:nth-child(3) input{
    background-color: #ed5757;
}
/* ========================================
  チェックボックス（ラベル全体がタップ可能）
======================================== */
.login-remember label,
#accedence-box label,
#user-register-consent,
.mtssb-editor-off label
 {
    display:flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    border-radius: 0.4rem;
    user-select: none;
    margin-bottom: 0.8rem;
    transition: background-color 0.2s;
}


/* ========================================
  チェックボックス本体（input）を非表示にしてカスタム
======================================== */
.mts-login-widget input[type="checkbox"],
#accedence-box input[type="checkbox"],
.content-form input[type="checkbox"]{
    appearance: none;
    -webkit-appearance: none;
    width:30px;
    height: 30px;
    border: 0.12rem solid #888;
    border-radius: 0.2rem;
    background: #fff;
    position: relative;
    cursor: pointer;
    margin-bottom: 0;
    padding: 0!important;
}

/* チェックが入っている状態 */
.mts-login-widget input[type="checkbox"]:checked,
#accedence-box input[type="checkbox"]:checked,
.content-form input[type="checkbox"]:checked {
    border-color: #0073aa;
    background-color: #0073aa;
}

/* チェックマーク（SVG） */
.mts-login-widget input[type="checkbox"]::after,
#accedence-box input[type="checkbox"]::after,
.content-form input[type="checkbox"]::after {
    content: "✓";
    position: absolute;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    left:5px;
    top:0;
}

/*（アクセシビリティ対策）*/
.mts-login-widget input[type="chekbox"]:focus,
#accedence-box input[type="checkbox"]:focus,
.content-form input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 0.35rem rgba(0,115,170,0.2);
}

/* ========================================
  カレンダー画面 船頭別カレンダー選択
======================================== */

/* セレクトボックスエリア全体のコンテナ */
.page-change-selector {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 480px;
  margin: 1.25rem 0;
}

/* ラベルのスタイル */
.page-change-selector label {
  font-weight: bold;
  font-size: 0.875rem; /* 14px相当 */
  color: #333;
  white-space: nowrap; /* 折り返さない */
}

/* セレクトボックス本体 */
.page-change-selector select {
  flex: 1;
  margin:0;
}

/* 表示ボタン */
.page-change-selector button {
  max-width: 5rem;
  padding:0.9rem 1.1rem;
  font-size:1rem;
}

/* --- レスポンシブ対応（スマホ向け） --- */
@media screen and (max-width: 600px) {
  .page-change-selector {
    flex-direction: column; /* 縦並びに変更 */
    align-items: stretch;   /* 横幅いっぱいに広げる */
    gap: 1rem;              /* スマホでは少し広めに (16px相当) */
  }

  .page-change-selector label {
    font-size: 0.875rem;
    margin-bottom: -0.3rem; /* セレクトボックスとの距離を微調整 */
  }

  .page-change-selector select {
    width: 100%;    /* 横幅いっぱい */
    height: 3rem;   /* タップしやすい高さ (48px相当) */
  }

  .page-change-selector button {
    width: 100%;    /* 横幅いっぱい */
    height: 3rem;   /* タップしやすい高さ (48px相当) */
  }
}
/* ========================================
  モバイル
======================================== */

@media screen and (max-width:480px){

    /* コンテンツ幅 */
    .container{ 
        width: 95%;
    }

    .content-form input:not(input[type="radio"],#subscription-cancel-button),
    .content-form select,
    .content-form textarea {
        font-size: 1.15rem;
        padding: 1rem 1.2rem;
    }

    /* 氏名・生年月日どちらも縦並びに */
    select.booking-date{
        width: 6rem;
    }
    input#booking-sei,
    input#booking-mei,
    input#booking-sei_kana,
    input#booking-mei_kana,
    input#user-sei,
    input#user-mei,
    input#user-sei_kana,
    input#user-mei_kana{
        width: 80%;
    }
    select#form_birthday-month,
    select#form_birthday-day{
        width: 4.5rem;
    }

    /* Select の矢印調整 */
    .content-form select {
        background-position: right 0.25rem center;
        background-size: 1.4rem;
        padding-right: 2rem!important;
    }
    select.booking-option-select{
        width: 100%;
    }

    /* カレンダー表示リセット */
    .multiple-calendar tr td,
    .multiple-calendar thead th,
    .multiple-calendar tr th{padding:0}

    /* カレンダーマークNo */
    .day-number,.calendar-mark{padding: 0.5rem 0;}
    .day-box .calendar-mark:nth-child(2n){
        border-bottom: 1px dotted #ccc;
        padding-bottom: 1rem;
    }
    .day-box .calendar-mark:nth-child(3n){
        padding-top: 1rem;
    }
    .calendar-mark .article-name{
        display: block;
    }


    /* 入力画面 */
    .content-form tr{
        display: flex;
        flex-wrap: wrap;
    }
    .content-form th,.content-form td{
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.5rem!important;
    }

    .content-form button {
        font-size: 1.2rem;
        padding: 1.2rem 1.4rem;
        border-radius: 0.7rem;
    }

    .content-form.checkbox {
        padding: 1rem 1.2rem;
        border-radius: 0.7rem;
        font-size: 1.1rem;
        gap: 0.9rem;
    }

    .content-form.checkbox input[type="checkbox"] {
        width: 1.6rem;
        height: 1.6rem;
        border-width: 0.14rem;
    }

    .content-form.checkbox input[type="checkbox"]:checked::after {
        width: 1rem;
        height: 1rem;
        top: 0.18rem;
        left: 0.22rem;
    }

    /* 予約確認画面 */
    .mtssb-users tr{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        border-bottom-style: double;
    }
    .mtssb-users th,.mtssb-users td{
        text-align: left;
        padding: 1rem 0.5rem!important;
    }
    .mtssb-users th::after{
        content:"｜";
        display: inline-block;
        padding-left:1rem;
    }
    .mtssb-users th:nth-child(4):after{
        display: none;
    }
    .mtssb-users th:last-of-type{
        display: none;
    }
    .mtssb-users td:last-of-type,
    .mtssb-users td:last-of-type a{
        display: block;
        width: 100%;
    }

}/* 480 */

/*================================================
 *  login
 ================================================*/
body.login{
	background:#fff;
}

.login h1:before{
	display:none;
}

.login h1 a{
width: 250px;
background:url(https://test.mahoroba148.com/takiya/wp-content/uploads/2024/07/takiyaryoulogo.jpg)no-repeat;
background-size:contain;
}

.login input{
	width:auto;
}