/*
Theme Name:QUALIA child
Theme URI:https://tcd-theme.com/tcd114
Description:WordPressテーマ「QUALIA」の子テーマ
Template:qualia_tcd114
Author:TCD
Author URI:https://tcd-theme.com/
Version:1.0
*/

/*
  ここから下にCSSを追記してください。
*/

/*==========================
 * 料金ページGoogle Map
 * =========================*/

/* マップエリア専用のセンター配置設定 */

/* 1. 一番外側の枠：中身を強制的に中央へ */
.map-force-center {
  width: 100% !important;
  text-align: center !important; /* 子要素を中央に寄せる */
  display: block !important;
  margin: 30px 0 !important;
}

/* 2. マップとリンクをまとめる箱：インラインブロック化 */
.map-inner-box {
  display: inline-block !important; /* 親のtext-align:centerに従う */
  width: 100% !important;
  max-width: 600px !important; /* マップの最大幅 */
  text-align: left; /* 文字の並びは左に戻す（任意） */
}

/* 3. iframeを囲む枠（角丸・影） */
.map-frame-wrapper {
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
  line-height: 0;
}

/* 4. iframe本体 */
.map-frame-wrapper iframe {
  width: 100% !important;
  height: 350px !important;
  border: 0 !important;
}

/* 5. リンクテキストを中央に */
.map-link-text {
  margin-top: 15px !important;
  text-align: center !important;
}

.map-link-text a {
  font-size: 14px;
  color: #20689f;
  font-weight: bold;
  text-decoration: none;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .map-frame-wrapper iframe {
    height: 250px !important;
  }
}

/* =========================
   ここから既存デザイン
   ========================= */
.wpcf7-form .mousikomi select {
    display: inline;
    width: 60px;
    height: 30px;
    margin: 0px 5px 15px 8px;
    padding: 4px;
    background: #ffffff;
}
.wpcf7-form  .mousikomi select[name="menu-time"],
.wpcf7-form  .mousikomi select[name="menu-time2"],
.wpcf7-form  .mousikomi select[name="menu-time3"] {
    width: 88px;
}
.wpcf7-list-item-label {
    margin-left:5px;
}
.wpcf7-radio span.wpcf7-list-item {
    display: block;
}
#mail_submit2 {
    background: #F4B306 !important;
    color: #ffffff;
    font-size: 16px;
    font-weight: normal;
    margin: 20px 0 25px;
    padding: 9px 18px;
    text-decoration: none;
}
.sankou {
    font-size:70%;
    background-color:#F57C00;
    color:#fff;
    padding:3px 4px;
    margin:0 5px;
    white-space: nowrap;
}
.sankou.blue { background-color:#2196F3; }
.mousikomi { margin-top:20px; }

/* テーブル */
.yoyaku {
    background:#FDE9B1;
    color: #000000;
    font-size: 15px;
    width: 30%;
    vertical-align: middle;
}
.mousikomi td {
    padding-left: 10px;
    vertical-align: middle;
}
table .mousikomi { width: 100%;}

@media only screen and (max-width:420px){
    .mousikomi tbody tr{
        display: block;
        border: none;
        margin-bottom: 0.8em;
    }
    .mousikomi tbody td{
        display: block;
        border: none;
        padding: 10px;
    }
    .wpcf7-textarea {width: 100%; }
    .mousikomi table tr td,
    .mousikomi {border: none; }
    .mousikomi td { width: auto;}
}

/* =========================
   Contact Form 7 レイアウト
   ========================= */
.cf7__list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* 2行目以降の行間 */
.cf7__list dt:nth-of-type(n + 2),
.cf7__list dd:nth-of-type(n + 2) {
  margin-top: 30px;
}

/* dt / dd の基本レイアウト */
.cf7__list dt {
  width: 35%;
  padding-top: 0;           /* ★ 上端をそろえるためにリセット */
}
.cf7__list dd {
  width: 65%;
}

/* 行ごとに上揃え（高さの違う項目でも上端が揃う） */
.cf7__list dt,
.cf7__list dd {
  align-self: flex-start;
}

/* 必須・任意ラベル */
.cf7__required,
.cf7__optional {
  margin-right: 15px;
  padding: 6px 14px;
  color: #fff;
  font-size: 12px;
  vertical-align: 1px;
}

.cf7__required {
  background: #BE1D1D;
}

.cf7__optional {
  background: #878D8E;
}

/* input・textarea（背景を白に統一） */
.cf7__list dd input[type="text"],
.cf7__list dd input[type="tel"],
.cf7__list dd input[type="email"],
.cf7__list dd textarea {
  width: 100%;
  padding: 15px 20px;
  background: #ffffff;
  box-sizing: border-box;
}

/* ドロップダウンメニュー */
.cf7__select {
  position: relative;
}

.cf7__select:before {
  position: absolute;
  top: 50%;
  right: 20px;
  z-index: 10;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid #000;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  pointer-events: none;
  content: '';
}

.cf7__select select {
  width: 100%;
  padding: 19px 20px;
  background: #ffffff;
  color: #000;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

/* チェックボックス・ラジオボタン（ラッパー） */
.cf7__list dd .wpcf7-checkbox,
.cf7__list dd .wpcf7-radio {
  display: block;
  padding: 15px 0 10px;
}

/* 縦並び（チェックボックス・ラジオボタン） */
.cf7__list dd .wpcf7-list-item {
  display: block;
  margin: 0;
}

.cf7__list dd .wpcf7-list-item:nth-child(n + 2) {
  margin-top: 18px;
}

/* マウスカーソル（チェックボックス・ラジオボタン） */
.cf7__list dd .wpcf7-list-item label {
  cursor: pointer;
}

/* チェックボックス・ラジオボタンの見た目（背景白） */
input[type="checkbox"],
input[type="radio"] {
  position: relative;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid #bcbcbc;
  vertical-align: -3px;
  cursor: pointer;
  background: #ffffff;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

/* チェックボックス */
input[type="checkbox"]:checked {
  border: 1px solid #000;
  background: #000;
}

input[type="checkbox"]:checked:before {
  position: absolute;
  top: 2px;
  left: 5px;
  transform: rotate(50deg);
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: '';
}

/* ラジオボタン */
input[type="radio"] {
  border-radius: 50%;
}

input[type="radio"]:checked:before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  content: '';
  box-shadow: 0 0 0 4px #000;
}

/* プレースホルダー */
.cf7__list dd input[type="text"]::placeholder,
.cf7__list dd input[type="tel"]::placeholder,
.cf7__list dd input[type="email"]::placeholder,
.cf7__list dd textarea::placeholder {
  color: #a5a5a5;
}

/* その他ブラウザ用 */
.cf7__list dd input[type="text"]::-ms-input-placeholder,
.cf7__list dd input[type="tel"]::-ms-input-placeholder,
.cf7__list dd input[type="email"]::-ms-input-placeholder,
.cf7__list dd textarea::-ms-input-placeholder {
  color: #a5a5a5;
}

.cf7__list dd input[type="text"]:-ms-input-placeholder,
.cf7__list dd input[type="tel"]:-ms-input-placeholder,
.cf7__list dd input[type="email"]:-ms-input-placeholder,
.cf7__list dd textarea:-ms-input-placeholder {
  color: #a5a5a5;
}

/* 送信ボタン */
.cf7__button {
  padding-left: 72px;
  text-align: center;
}

input[type="submit"] {
  width: 260px;
  height: 60px;
  background: #000;
  color: #fff;
  transition: opacity .6s;
}

input[type="submit"]:hover {
  opacity: .6;
}

/* ajax-loader */
.wpcf7-spinner {
  vertical-align: middle;
}

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

  .cf7__list dt {
    width: 100%;
    margin-bottom: 15px;
    padding-top: 0;
  }

  .cf7__list dd {
    width: 100%;
  }

  .cf7__list dd:nth-of-type(n + 2) {
    margin-top: 0;
  }

  .cf7__list dd .wpcf7-checkbox,
  .cf7__list dd .wpcf7-radio {
    padding: 15px 0 0;
  }

  /* 送信ボタン */
  input[type="submit"] {
    width: 180px;
    height: 56px;
  }

}

/* =========================
   カスタム調整
   ========================= */

/* 郵便番号（1枠）の幅調整 */
.cf7__list dd input.zip-single {
  width: 7em;
  text-align: center;
  padding: 10px 14px;
  background: #ffffff;
  box-sizing: border-box;
}

/* 年齢フィールドの横幅調整 */
.cf7__list dd input[name="your-age"] {
  width: 6em;
  display: inline-block;
  text-align: right;
  padding: 10px 14px;
  background: #ffffff;
  box-sizing: border-box;
}

/* =========================
   料金テーブル
   ========================= */

table[class*=”tablepress-“] thead {
		background: red;
}