/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 15.32.4
*/

/* =========================================================
  右固定メニュー
   ========================================================= */
@media (max-width: 991.98px) {

  nav#ujs-fixed-buttons {
    display: block;
    position: fixed;
    bottom: 2px;
    left: 2px;
    right: 2px;
    z-index: 101;
  }

  nav#ujs-fixed-buttons ul {
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15vw, 1fr));
    gap: 2px;
  }

  nav#ujs-fixed-buttons ul li {
    list-style: none;
    background-color: var(--vk-color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity .5s ease;
    margin-bottom: 0;
  }

  nav#ujs-fixed-buttons ul li:nth-child(2) {
    background-color: var(--vk-color-custom-1);
  }
  nav#ujs-fixed-buttons ul li:nth-child(3) {
    background-color: var(--vk-color-custom-2);
  }
  nav#ujs-fixed-buttons ul li:nth-child(4) {
    background-color: var(--vk-color-custom-3);
  }
  nav#ujs-fixed-buttons ul li:nth-child(5) {
    background-color: var(--vk-color-custom-4);
  }
  nav#ujs-fixed-buttons ul li:nth-child(6) {
    background-color: var(--vk-color-custom-5);
  }

  nav#ujs-fixed-buttons ul li a {
    color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: max(14px, 1.75vw);
    padding: 8px 0;
    align-items: center;
    text-decoration: none;
  }

  nav#ujs-fixed-buttons ul li a i {
    color: #fff;
    margin-right: .2em;
    font-size: max(25px, 3.5vw);
  }

  .site-footer {
    padding-bottom: 60px;
  }

}

@media (min-width: 992px) {
  nav#ujs-fixed-buttons {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: min(175px, 15vh);
    left: calc(100% - 60px);
    z-index: 999;
    transition: all .75s ease;
  }
  .scrolled nav#ujs-fixed-buttons {
    opacity: 1;
    visibility: visible;
  }
  nav#ujs-fixed-buttons ul {
    padding-left: 0;
  }
  nav#ujs-fixed-buttons ul li {
    list-style: none;
    background-color: var(--vk-color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity .5s ease;
  }
  nav#ujs-fixed-buttons ul li:nth-child(2) {
    background-color: var(--vk-color-custom-1);
  }
  nav#ujs-fixed-buttons ul li:nth-child(3) {
    background-color: var(--vk-color-custom-2);
  }
  nav#ujs-fixed-buttons ul li:nth-child(4) {
    background-color: var(--vk-color-custom-3);
  }
  nav#ujs-fixed-buttons ul li:nth-child(5) {
    background-color: var(--vk-color-custom-4);
  }
  nav#ujs-fixed-buttons ul li:nth-child(6) {
    background-color: var(--vk-color-custom-5);
  }
  nav#ujs-fixed-buttons ul li a {
    text-decoration: none;
    writing-mode: vertical-rl;
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 60px;
    min-height: 160px;
    color: #fff;
    letter-spacing: 3px;
    padding-top: 1.0em;
    padding-bottom: 1.0em;
  }
  nav#ujs-fixed-buttons ul li:hover {
    opacity: 0.75;
  }
  nav#ujs-fixed-buttons ul li a i {
    color: #fff;
    margin-right: 0;
    margin-bottom: .4em;
    font-size: 1.25em;
  }
}


/* =========================================================
   Contact Form 7 - IR Form Styles (まとめ)
   ========================================================= */

.cf7-ir-form {
  //max-width: 820px;
  max-width: 100%;
  margin: 0 auto;
}

/* ---------- レイアウト（2カラム / ブロック） ---------- */
.cf7-ir-form .cf7-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

.cf7-ir-form .cf7-col {
  min-width: 0;
  
}

.cf7-ir-form .cf7-block {
  margin-bottom: 16px;
}

/* SPは1カラム */
@media (max-width: 640px) {
  .cf7-ir-form .cf7-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- ラベル・必須/任意バッジ ---------- */
.cf7-ir-form .cf7-label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.cf7-ir-form .cf7-required {
  background: #e60012;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.cf7-ir-form .cf7-optional {
  background: #999;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

/* ---------- 入力（共通） ---------- */
.cf7-ir-form .cf7-input,
.cf7-ir-form .cf7-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

.cf7-ir-form .cf7-textarea {
  min-height: 160px;
  resize: vertical;
}

/* ---------- 1行内レイアウト（電話・メール等） ---------- */
.cf7-ir-form .cf7-inline {
  display: flex !important;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap; /* 画面が狭い時は折り返し */
}

/* CF7の自動<p>が残っていても崩れにくくする（保険） */
.cf7-ir-form .cf7-inline p {
  margin: 0 !important;
}
.cf7-ir-form .cf7-inline br {
  display: none !important;
}

/* inline内の入力は width:100% を解除（横並び優先） */
.cf7-ir-form .cf7-inline .cf7-input {
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0;
}

/* PCでは折り返さず1行で揃えたい場合（必要なら有効化）
@media (min-width: 641px) {
  .cf7-ir-form .cf7-inline { flex-wrap: nowrap !important; }
}
*/

/* ---------- 氏名（姓・名）だけを横並び＆45%幅に固定 ---------- */
/* フォームで <div class="cf7-inline cf7-inline--name"> を付けている前提 */
.cf7-ir-form .cf7-inline--name {
  display: flex !important;
  gap: 4%;
  align-items: center;
  flex-wrap: nowrap;
}

/* 電話番号（3分割）を 28% × 3 で1行表示 */
.cf7-ir-form .cf7-inline--tel{
  display: flex !important;
  gap: 2%;              /* 28%×3 + gap でちょうど1行 */
  align-items: center;
  flex-wrap: nowrap;
}

/* CF7のwrap（span）を45%にするのが肝 */
.cf7-ir-form .cf7-inline--name .wpcf7-form-control-wrap {
  display: block !important;
  flex: 0 0 45%;
  max-width: 45%;
  min-width: 0;
}
/* CF7のwrap（span）を28%に */
.cf7-ir-form .cf7-inline--tel .wpcf7-form-control-wrap{
  flex: 0 0 28%;
  max-width: 28%;
  min-width: 0;
}

.cf7-ir-form .cf7-inline--type{
  display: flex !important;
  gap: 50%;
  align-items: center;
  flex-wrap: nowrap;
}
.cf7-ir-form .cf7-inline--type .wpcf7-form-control-wrap {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
}

/* inputはwrapいっぱいに */
.cf7-ir-form .cf7-inline--name .wpcf7-form-control,
.cf7-ir-form .cf7-inline--tel .wpcf7-form-control,
.cf7-ir-form .cf7-inline--type .wpcf7-form-control {
  width: 100% !important;
  box-sizing: border-box;
}

/* SPでは縦積みにしても良ければ（好みで）
@media (max-width: 640px) {
  .cf7-ir-form .cf7-inline--name,
  .cf7-ir-form .cf7-inline--tel,
  .cf7-ir-form .cf7-inline--type {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cf7-ir-form .cf7-inline--name .wpcf7-form-control-wrap,
  .cf7-ir-form .cf7-inline--tel .wpcf7-form-control-wrap,
  .cf7-ir-form .cf7-inline--type .wpcf7-form-control-wrap
   {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
}
*/

/* ---------- 電話番号の各欄幅（任意：画像寄せ） ---------- */
.cf7-ir-form input[name="tel1"] { width: 90px; }
.cf7-ir-form input[name="tel2"] { width: 110px; }
.cf7-ir-form input[name="tel3"] { width: 110px; }

/* ---------- メール user / domain 幅（任意：画像寄せ） ---------- */
.cf7-ir-form input[name="email-user"] { width: 180px; }
.cf7-ir-form select[name="email-domain"] { width: 220px; }

/* ---------- チップ（checkbox exclusive / radio 共通） ---------- */
.cf7-ir-form .cf7-radio-chips {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
}

/* CF7のリスト要素が縦に並ぶのを防ぐ */
.cf7-ir-form .cf7-radio-chips .wpcf7-list-item {
  margin: 0 !important;
  display: inline-flex !important;
}

/* input自体は隠す */
.cf7-ir-form .cf7-radio-chips input[type="checkbox"],
.cf7-ir-form .cf7-radio-chips input[type="radio"] {
  display: none !important;
}

/* ラベルをチップ化 */
.cf7-ir-form .cf7-radio-chips .wpcf7-list-item-label {
  border: 1px solid #e60012;
  color: #e60012;
  padding: 6px 14px;
  //border-radius: 20px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  user-select: none;
margin-right : 5px; margin-left:5px;
width : 200px;
}
/* 選択中 */
.cf7-ir-form .cf7-radio-chips input:checked + .wpcf7-list-item-label {
  background: #e60012;
  color: #fff;
}

/* hover（任意） */
.cf7-ir-form .cf7-radio-chips .wpcf7-list-item-label:hover {
  background: rgba(230, 0, 18, 0.08);
}

/* ---------- 文字数カウント ---------- */
.cf7-ir-form .cf7-count {
  text-align: right;
  font-size: 12px;
  color: #999;
}

/* ---------- 同意文スクロール枠 ---------- */
.cf7-ir-form .cf7-privacy-box {
  border: 1px solid #ccc;
  padding: 10px;
  height: 120px;
  overflow: auto;
  margin-bottom: 8px;
}

/* ---------- 同意チェック ---------- */
.cf7-ir-form .cf7-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* ---------- 送信ボタン ---------- */
.cf7-ir-form .cf7-actions {
  text-align: center;
  margin-top: 24px;
}

.cf7-ir-form .cf7-submit {
  background: #e60012;
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
}

/* ---------- CF7メッセージ（エラー/完了） ---------- */
.cf7-ir-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
}

.cf7-ir-form .wpcf7 form .wpcf7-response-output {
  margin: 14px 0 0;
}





