@charset "utf-8";
/*
Theme Name: BELIEVE child
Theme URI:https://tcd-theme.com/tcd122
Description:WordPressテーマ「BELIEVE」の子テーマ
Template:believe_tcd122
Author:TCD
Author URI:https://tcd-theme.com/
Version:1.0
*/

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

/* トップスライダー：スライドごとのリードコピー切り替え */
.js-mv1-catch > span {
  transition: opacity 0.5s ease;
}
.js-mv1-catch > span.is-changing {
  opacity: 0;
}

/* トップスライダー：下部が画面外に切れるときは、キャッチを見えている範囲の上下中央に置く */
.p-mv1-content {
  --mv1-header-h: 150px; /* ヘッダー上段80px＋ナビ70px */
  bottom: auto;
  height: min(100%, calc(100svh - var(--wp-admin--admin-bar--height, 0px) - var(--mv1-header-h)));
}
@media (max-width: 991px) {
  .p-mv1-content {
    --mv1-header-h: 60px;
  }
}

/* ==========================================================================
   共通
   ========================================================================== */

.p-header-top_buttons .header_button:first-child .header_button_label {font-size: 24px;}
.p-cd-service-cards.is-few-items.is-two-items {
  inline-size: min(calc(100% - 40px), 1100px);
}
.txt-cnt { text-align: center; }
ul.li-cir { list-style-type:circle !important; margin: 12px 0;}
.p-footer-copyright { display: none; }

/* 4カラム（PC：4列、タブレット：2列、スマホ：1列） */
@media not all and (max-width: 1024px) {
  .post_row:has(.post_col-4) { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .post_row:has(.post_col-4) { grid-template-columns: repeat(2, 1fr); }
}

/* 4カラム：中身を中央揃え */
.post_col-4 {
  text-align: center;
  border: 1px solid #cccccc;
}
.post_col-4 img {
  display: block;
  margin-inline: auto;
}
.post_col-4 p {
  margin: 0;
}
.post_col-4 h6 {
  text-align: center;
  margin: 0;
}

/* テーブル（会社概要 / 事業所 / スイッチング電源） */
table.int-tbl th {
  white-space: nowrap;
  text-align: left;
  width: 24%;
  background: #fafafa !important;
  font-weight: normal !important;
}
table.int-tbl td, table.int-tbl th {
  border: 1px solid #ddd;
  padding: 10px 15px 7px;
  line-height: 2.2;
  font-size: 14px;
}
table.int-tbl td {
  width: 76%;
}

@media (max-width: 767px) {
  .s_table { white-space: normal; }
}


/* ==========================================================================
   カスタム電源について
   ========================================================================== */

.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.need {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px;
  border: 1px solid #d5d9de;
}
.need__head { display: flex; align-items: center; justify-content: space-between; }
.need__num { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #00468c; }
.need__icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #1a1a1a;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.need__title { margin: 0 !important; }
.need__voice {
  margin: 0 !important;
  padding: 14px 16px;
  background: #f2f5f9;
  font-size: 13px;
  line-height: 1.8;
  color: #4a5462;
}
.need__text { margin: 0 !important; line-height: 2; }

/* Support */
.support { display: flex; flex-wrap: wrap; margin-top: 32px; border: 1px solid #00468c; }
.support__head {
  flex: 0 1 300px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 32px;
  background: #00468c;
  color: #ffffff;
}
.support__title { margin: 0 !important; font-size: 18px; font-weight: 700; line-height: 1.5; }
.support__text { flex: 999 1 420px; min-width: 0; margin: 0; padding: 28px 32px; }


/* ==========================================================================
   特殊用途向け電源
   ========================================================================== */

.container { width: min(1100px, 100% - 32px); margin: 0 auto; padding-top: 96px; }

.section { margin-bottom: 104px; }
.section__title {
  margin: 0 0 32px;
  padding-bottom: 14px;
  border-bottom: 2px solid #00468c;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
}

.text { margin: 0; font-size: 15px; line-height: 2; }
.text + .factory,
.factory + .text { margin-top: 32px; }

.list-circle { margin: 0 !important; padding: 0 !important; list-style: circle !important; }
.list-circle li { position: relative; padding-left: 8px; }
.list-circle li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .85em;
  width: 5px;
  height: 5px;
  border: 1px solid #8a94a3;
  border-radius: 50%;
}

/* Lead */
.lead { display: flex; flex-direction: column; gap: 20px; }
.lead__catch { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; color: #00468c; text-align: center; }
.lead__text { margin: 0; font-size: 16px; line-height: 2; }

.text + .text { margin-top: 16px; }

.subhead {
  margin: 56px 0 20px;
  padding-left: 14px;
  border-left: 4px solid #00468c;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

/* 事業内容 */
.biz {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.biz li {
  padding: 20px 22px;
  border: 1px solid #d5d9de;
  font-weight: 500;
  line-height: 2 !important;
  text-align: center;
}

/* 実績一覧 */
.table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; line-height: 1.8; }
.spec-table th,
.spec-table td { padding: 16px 24px; border: 1px solid #d5d9de; text-align: left; vertical-align: middle; }
.spec-table th { width: 30%; background: #f2f5f9; font-weight: 700; color: #00468c; white-space: nowrap; }

/* 強み */
.strengths { display: flex; flex-direction: column; }
.strength {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid #e6e8eb;
}
.strength:first-child { padding-top: 8px; }
.strength:last-child { border-bottom: 0; padding-bottom: 0; }
.strength--media { grid-template-columns: minmax(0, 1fr) 320px; align-items: center; }
.strength__body { display: flex; flex-direction: column; gap: 14px; }
.strength__title { margin: 0 0 12px  !important; font-size: 18px  !important; font-weight: 700; line-height: 1.6; }
.strength__text { margin: 0 0 12px  !important; line-height: 2; }
.strength__note {
  margin: 0;
  padding: 14px 16px;
  background: #f2f5f9;
  font-size: 14px;
  line-height: 1.8;
  color: #4a5462;
}
.strength__list { line-height: 2; }
.strength__figure { margin: 0; padding: 20px; border: 1px solid #d5d9de; background: #ffffff; }
.strength__figure img { width: 100%; height: 220px; object-fit: contain; }
.strength__figure--photo { padding: 0; border: 0; }
.strength__figure--photo img { height: 260px; object-fit: cover; }

.keyspec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  list-style: none  !important;
}
.keyspec li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 12px;
  border: 1px solid #d5d9de;
  text-align: center;
}
.keyspec__label { font-size: 13px; color: #6b7480; }
.keyspec__value { font-size: 24px; font-weight: 700; color: #00468c; letter-spacing: .02em; }
.keyspec__value small { font-size: 15px; margin-left: 2px; }

/* 特殊用途向け電源の実績 */
.works-lead__catch {
  margin: 64px 0 24px !important;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .04em;
  color: #00468c;
}
.case-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.case {
  display: flex;
  flex-direction: column;
  border: 1px solid #d5d9de;
  color: #333333;
  background: #ffffff;
}
.case:hover { color: #333333; border-color: #00468c; }
.case__thumb { display: block; overflow: hidden; border-bottom: 1px solid #d5d9de; }
.case__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.case:hover .case__img, .case:focus-visible .case__img { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) {
  .case__img { transition: none; }
}
.case__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 20px 20px 18px; }
.case__title { font-size: 15px; font-weight: 700; line-height: 1.7; }
.case__more { align-self: flex-end; font-size: 13px; color: #00468c; }
.case__more::after { content: "›"; margin-left: 8px; }
.case:hover .case__title { color: #00468c; }
.case,
.case:hover,
.case:focus,
.case *,
.case:hover * { text-decoration: none !important; }

/* Pager */
.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-bottom: 104px;
  font-size: 14px;
}
.pager__prev::before { content: "‹"; margin-right: 10px; }
.pager__next { justify-self: end; }
.pager__next::after { content: "›"; margin-left: 10px; }
.pager__index {
  min-width: 220px;
  padding: 16px 24px;
  border: 1px solid #d5d9de;
  text-align: center;
  color: #333333;
}
.pager__index:hover { border-color: #00468c; color: #00468c; }

@media (max-width: 1024px) {
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery,
  .case-list,
  .footer__banners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .container { padding-top: 64px; }
  .section { margin-bottom: 72px; }
  .lead__catch { font-size: 22px; }

  .needs,
  .works,
  .factory { grid-template-columns: 1fr; }
  .works { gap: 32px; }

  .support__head,
  .support__text { flex-basis: 100%; padding: 24px; }

  .cta { padding: 64px 0 88px; gap: 32px; }
  .btn-outline { font-size: 13px; }

  /* special.html */
  .pc-only { display: none; }
  .subhead { margin-top: 44px; }
  .biz { grid-template-columns: 1fr; gap: 10px; }
  .spec-table th,
  .spec-table td { display: block; width: 100%; padding: 12px 16px; }
  .spec-table th { border-bottom: 0; }
  .spec-table tr + tr th { border-top: 0; }
  .spec-table td { border-top: 0; }
  .strength,
  .strength--media { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .strength__title { font-size: 17px; }
  .strength__figure img { height: 180px; }
  .keyspec { grid-template-columns: 1fr; gap: 10px; }
  .keyspec li { flex-direction: row; justify-content: space-between; padding: 14px 18px; }
  .works-lead__catch { font-size: 18px; }
  .case-list { gap: 16px; margin-top: 32px; }
  .case__body { padding: 16px; gap: 12px; }
  .case__title { font-size: 14px; }
  .pager { grid-template-columns: 1fr 1fr; padding-bottom: 72px; }
  .pager__index { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .list-circle { padding-left: 1em !important; }
}

@media (max-width: 480px) {
  .gallery,
  .footer__banners { grid-template-columns: 1fr; }
}


/* ==========================================================================
   産業機器向け電源
   ========================================================================== */

body:has(.sangyo-chart) hr { margin: 80px 0 !important;}
body:has(.sangyo-chart) .post_col-4 { padding: 0.5em 1em; }
.sangyo-chart {
  position: relative;
  text-align: center;
  padding-bottom: 40px;
}
.sangyo-chart::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 20px 0 20px; /* 上 左右 下 */
  border-color: #e60012 transparent transparent transparent;
}


/* ==========================================================================
   スイッチング電源
   ========================================================================== */

@media not all and (max-width: 1024px) {
  .post_row--side300:has(.post_col-2) {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  .post_row--side300 > .post_col:first-child img {
    display: block;
    margin-inline: auto;
  }
}


/* ==========================================================================
   本社事業所 / 岩手工場
   ========================================================================== */

/* 横並び */
.post_row.office {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #cccccc;
}
.post_row.office.iwate {
  border-top: none;
}

.post_row.office .post_col-2 {
  width: 50%;
}

/* 偶数番目の article は画像とテキストを反対にする */
article:nth-of-type(even) .post_row.office {
  flex-direction: row-reverse;
}

/* リンクをカードの大きさにする */
article > a:has(.post_row.office) {
  display: block;
}

/* 画像の枠：拡大部分を確実に隠す */
article .post_row.office .post_col-2:first-child {
  overflow: hidden;
}

article .post_row.office .post_col-2 img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

/* article ではなく a にホバーしたときに拡大 */
article > a:hover .post_row.office .post_col-2 img {
  transform: scale(1.1);
}

article > a:has(.post_row.office),
article > a:has(.post_row.office):hover,
article > a:has(.post_row.office):focus {
  text-decoration: none;
}
/* 通常時 */
article > a .post_row.office h3 {
  font-size: 32px;
  color: #222222;
  transition: color 0.4s ease;
}

/* ホバー時 */
article > a:hover .post_row.office h3 {
  color: #00468c;
}

.txt-box { padding: 2em; }

@media (max-width: 767px) {
  .post_row.office,
  article:nth-of-type(even) .post_row.office {
    flex-direction: column;
  }

  .post_row.office .post_col-2 {
    width: 100%;
  }
  .txt-box { padding: 1em; }
  article > a .post_row.office h3 {
    font-size: 24px;
  }
}


/* ==========================================================================
   事業所
   ========================================================================== */

.map-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* ==========================================================================
   会社概要
   ========================================================================== */

table.int-tbl td.exective dl {
  display: grid;
  grid-template-columns: 6em 1fr;
  column-gap: 1em;
  row-gap: 0.3em;
}
table.int-tbl td.exective dt {
  width: 22%;
  font-weight: normal;
  white-space: nowrap;
}
table.int-tbl td.exective dd {
  width: 78%;
}
table.int-tbl td.exective dt, table.int-tbl td.exective dd {
  margin: 0;
}
table.int-tbl td iframe:not(.map-wrap iframe) {
  width: 100%;
  height: 300px;
}

@media (max-width: 767px) {
  .s_table:has(.exective) {
    overflow: visible;
    padding-inline: 0;
    margin-inline: 0;
  }
  .tcdce-body table:has(.exective),
  .tcdce-body table:has(.exective) tbody,
  .tcdce-body table:has(.exective) tr,
  .tcdce-body table:has(.exective) th,
  .tcdce-body table:has(.exective) td {
    display: block;
    width: 100% !important;
  }
  .tcdce-body table:has(.exective) th,
  .tcdce-body table:has(.exective) td {
    box-sizing: border-box;
    border-top: none;
  }
  .tcdce-body table:has(.exective) tr:first-child > :first-child {
    border-top: 1px solid #ddd;
  }
  .pc-only { display: none; }
}


/* ==========================================================================
   会社案内
   ========================================================================== */

.company {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 0 112px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.company__group { display: flex; flex-direction: column; gap: 28px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #222222;
}

.section-head__title { margin: 0; font-family: "Noto Serif JP", serif !important; font-weight: 500 !important; font-size: 24px; }
.section-head__en { font-size: 12px; letter-spacing: .16em; color: #666666; }

/* 共通パーツ */
.num { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #00468c; }
.en { font-size: 12px; letter-spacing: .06em; color: #666666; }

.arrow {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid #dddddd;
  border-radius: 50%;
  position: relative;
  transition: background .2s, border-color .2s;
}

.arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 45%;
  width: 7px;
  height: 7px;
  border-top: 1.6px solid #00468c;
  border-right: 1.6px solid #00468c;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: border-color .2s;
}

/* カード型（企業情報） */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  height: 100%;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 28px 24px;
  background: #ffffff;
  border: 1px solid #dddddd;
  transition: border-color .2s, box-shadow .2s;
}

.card__title { font-family: "Noto Serif JP", serif; font-size: 20px; color: #222222; }
.card .arrow { margin-top: auto; align-self: flex-end; }

/* 一覧型（方針・取り組み） */
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding: 26px 8px;
  border-bottom: 1px solid #dddddd;
}

.row .num { width: 28px; }
.row__title { flex: 1 1 240px; font-family: "Noto Serif JP", serif; font-size: 18px; color: #222222; }

/* hover */
.card:hover { border-color: #00468c; box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
.row:hover .row__title { color: #00468c; }
.card:hover .arrow,
.row:hover .arrow { background: #00468c; border-color: #00468c; }
.card:hover .arrow::before,
.row:hover .arrow::before { border-color: #ffffff; }

ul.card-list,ul.row-list { padding-inline-start: 0 !important; }
ul.card-list li,ul.row-list li { list-style-type: none !important; }
a.card,a.row { text-decoration: none; }


/* ==========================================================================
   サイトマップ
   ========================================================================== */

.p-sitemap {
  display: flex;
  flex-direction: column;
  gap: 72px;
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 16px 120px;
}

.p-sitemap__head {
  margin: 0;
  border-bottom: 2px solid #00468c !important;
}

.p-sitemap__head-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  color: #333333;
}
a.p-sitemap__head-link:hover { color: #00468c; }

.p-sitemap__ja {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
}

.p-sitemap__en {
  color: #6b7480;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .2em;
}

.p-sitemap__list {
  margin: 0;
  padding: 0 !important;
  list-style: none !important;
}
.p-sitemap__list li { border-bottom: 1px solid #e6e8eb; list-style: none !important; }

.p-sitemap__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 16px 0 44px;
  color: #333333;
  font-size: 15px;
  transition: background-color .15s;
}
.p-sitemap__item:hover {
  background: #f2f5f9;
  color: #333333;
}
.p-sitemap__item.is-current {
  color: #00468c;
  font-weight: 700;
}

/* 矢印（右端のシェブロン） */
.p-sitemap__item::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-top: 2px solid #00468c;
  border-right: 2px solid #00468c;
  transform: rotate(45deg);
  transition: transform .15s;
}
.p-sitemap__item:hover::after {
  transform: translateX(3px) rotate(45deg);
}

.p-sitemap__cta {
  display: flex;
  justify-content: center;
  padding-top: 72px;
  border-top: 1px solid #e1e4e8;
}

a.p-sitemap__head-link, a.p-sitemap__item { text-decoration: none; }

@media (max-width: 767px) {
  .p-sitemap { gap: 56px; padding: 64px 16px 88px; }
  .p-sitemap__item { padding-left: 20px; }
  .p-sitemap__cta { padding-top: 56px; }
  .p-sitemap__cta .c-btn { width: 100%; padding: 18px 16px; text-align: center; }
}


/* ==========================================================================
   Contact Form 7 カスタムスタイル
   ========================================================================== */

.cf7-form {
  background: transparent;
  padding: 0 0 24px;
  max-width: 780px;
  margin: 0 auto;
  color: #222;
  box-sizing: border-box;
}
.cf7-form *,
.cf7-form *::before,
.cf7-form *::after {
  box-sizing: border-box;
}

/* CF7の自動挿入タグ対策（<p>で包まれてもレイアウトが崩れないように） */
.wpcf7 .cf7-form p { margin: 0 !important; padding: 0 !important; }
.wpcf7 .cf7-form br { display: none; }
.cf7-label > p,
.cf7-field > p,
.cf7-privacy > p,
.cf7-privacy-text > p,
.cf7-privacy-check > p,
.cf7-submit > p { display: contents; }

/* 行 */
.cf7-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  column-gap: 24px;
  align-items: center;
  padding: 24px 16px;
  border-bottom: 1px solid #e0e0e0;
}

/* ラベル：左に項目名、右端に必須バッジ（位置を揃える） */
.cf7-label {
  display: grid;
  grid-template-columns: 1fr 44px;
  column-gap: 8px;
  row-gap: 4px;
  align-items: center;
}
.cf7-label-text {
  grid-column: 1;
  grid-row: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.cf7-required {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  background: #0077EF;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  border-radius: 2px;
}
/* 補足文：項目名の下に小さく1行で */
.cf7-label-note {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 11px;
  font-weight: 400;
  color: #555;
  line-height: 1.4;
  white-space: nowrap;
}

/* 入力欄 */
.cf7-field .wpcf7-form-control-wrap {
  display: block;
}
.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field input[type="tel"],
.cf7-field textarea {
  width: 100%;
  max-width: none;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 3px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field input[type="tel"] {
  height: 48px;
}
.cf7-field textarea {
  height: 120px;
  padding: 10px 14px;
  line-height: 1.6;
  resize: vertical;
}
.cf7-field input::placeholder,
.cf7-field textarea::placeholder {
  color: #999;
}
.cf7-field input:focus,
.cf7-field textarea:focus {
  outline: none;
  border-color: #00468c;
  box-shadow: 0 0 0 2px rgba(0, 70, 140, 0.12);
}

/* チェックボックス：縦並び */
.cf7-field .wpcf7-checkbox {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.cf7-field .wpcf7-list-item {
  display: block;
  margin: 0 !important;
}
.cf7-field .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.cf7-field .wpcf7-list-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #00468c;
  cursor: pointer;
}

/* 個人情報の同意 */
.cf7-form .cf7-privacy {
  display: block;
  clear: both;
  background: #E5F2FF !important;
  border: 1px solid #e0e0e0;
  padding: 40px 24px !important;
  margin: 40px 0 0 !important;
  text-align: center !important;
}
.cf7-form .cf7-privacy-text {
  display: inline-block;
  text-align: left;
  font-size: 15px;
  line-height: 1.8;
}
.cf7-form .cf7-privacy-br {
  display: block;
}
.cf7-form .cf7-privacy-text a {
  color: #00468c;
  text-decoration: none;
}
.cf7-form .cf7-privacy-text a:hover {
  text-decoration: underline;
}
.cf7-form .cf7-privacy-check {
  display: block;
  margin-top: 16px !important;
  text-align: center;
}
.cf7-form .cf7-privacy-check .wpcf7-form-control-wrap,
.cf7-form .cf7-privacy-check .wpcf7-acceptance {
  display: inline-block;
}
.cf7-form .cf7-privacy-check .wpcf7-list-item {
  margin: 0 !important;
}
.cf7-form .cf7-privacy-check label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}
.cf7-form .cf7-privacy-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #00468c;
  cursor: pointer;
}

/* 送信ボタン */
.cf7-submit {
  position: relative;
  text-align: center;
  margin-top: 30px;
}
.cf7-submit .wpcf7-submit {
  width: 280px;
  height: 60px;
  background: #00468c;
  color: #fff;
  border: 1px solid #00468c !important;
  border-radius: 3px;
  font-size: 16px;
  font-family: inherit;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.cf7-submit .wpcf7-submit:not(:disabled):hover {
  background: #fff;
  color: #00468c;
}
/* 同意前は送信ボタンを薄く表示 */
.cf7-submit .wpcf7-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cf7-submit .wpcf7-spinner {
  position: absolute;
  top: 50%;
  margin: -12px 0 0 12px;
}

/* エラー・送信結果メッセージ */
.cf7-form .wpcf7-not-valid-tip {
  font-size: 12px;
  margin-top: 4px;
}
.wpcf7 form .wpcf7-response-output {
  max-width: 780px;
  margin: 16px auto 0;
  font-size: 14px;
}

/* スマホ */
@media (max-width: 600px) {
  .cf7-form {
    padding: 0 0 16px;
  }
  .cf7-row {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 16px 0;
  }
  .cf7-label {
    grid-template-columns: auto auto;
    justify-content: start;
  }
  .cf7-required {
    width: 38px;
    height: 24px;
    font-size: 11px;
  }
  .cf7-label-note {
    white-space: normal;
  }
  .cf7-form .cf7-privacy {
    padding: 24px 16px !important;
  }
  .cf7-form .cf7-privacy-text {
    font-size: 14px;
  }
  .cf7-form .cf7-privacy-br {
    display: inline;
  }
  .cf7-submit .wpcf7-submit {
    width: 100%;
  }
}
