@charset "UTF-8";
/* CSS Document */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

.table tbody + tbody {
  border-top: 2px solid #dee2e6;
}
.table-hover tbody tr:hover {
  color: #212529;
  background-color: rgba(0, 0, 0, 0.075);
}

.table-hover .table-primary:hover {
  background-color: #9fcdff;
}

.table-hover .table-primary:hover > td,
.table-hover .table-primary:hover > th {
  background-color: #9fcdff;
}

.table-hover .table-secondary:hover {
  background-color: #c8cbcf;
}

.table-hover .table-secondary:hover > td,
.table-hover .table-secondary:hover > th {
  background-color: #c8cbcf;
}

.table-hover .table-success:hover {
  background-color: #b1dfbb;
}

.table-hover .table-success:hover > td,
.table-hover .table-success:hover > th {
  background-color: #b1dfbb;
}

.table-hover .table-info:hover {
  background-color: #abdde5;
}

.table-hover .table-info:hover > td,
.table-hover .table-info:hover > th {
  background-color: #abdde5;
}



.indexH3 {
	font-weight:bold;
	font-size: 1.8em;
	margin-bottom:20px;
	display: flex;
	align-items: center;
	color: #000;
	font-size: 18px;
	text-transform: uppercase;}

.indexH3::before {
	content: '';
	display: inline-block;
	margin-right: 20px;
	width: 40px;
	height: 2px;
	background-color: #e60012;}
.indexH4 {
	font-weight:bold;
	font-size: 1.8em;
	margin-bottom:20px;
	display: flex;
	align-items: center;
	color: #000;
	font-size: 18px;
	text-transform: uppercase;}

.indexH4::before {
	content: '';
	display: inline-block;
	margin-right: 20px;
	width: 40px;
	height: 2px;
	background-color: #1ca0e7;}

.text_p{
	line-height:1.8;
}
.home-logo{
  display: flex;
  align-items: center;
  justify-content: center;
}
.tenpo_name{
  display: flex;
  align-items: center;
	justify-content: center;
	margin-bottom:15px;
}
.home-logo img{
	width:300px;
	text-align:center;
}
.min-h800{
	min-height:800px;
}
/* --- フォーム全体のコンテナ --- */
.c-form-container {
  overflow:hidden;
  max-width: 800px;
  margin: 0 auto;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
}

/* レイアウト崩れを防ぐための基本設定 */
.c-form-container * {
  box-sizing: border-box;
}

/* --- 各行のレイアウト --- */
.c-form-row {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
  padding: 24px 0;
  align-items: flex-start;
}
.c-form-row:last-of-type {
  border-bottom: none;
}

/* --- ラベルエリア --- */
.c-form-label {
  width: 30%;
  padding-right: 30px;
  font-weight: bold;
  font-size: 14px;
}
.u-badge-required {
  display: inline-block;
  color: #e60033;
  font-size: 11px;
  margin-left: 5px;
  border: 1px solid #e60033;
  padding: 1px 4px;
  border-radius: 2px;
}

/* --- 入力エリア全体 --- */
.c-form-input {
  width: 70%;
}

/* --- 【重要】横並び強制エリア (PC) --- */
@media (min-width: 769px) {
  .c-form-input--group {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 5px; /* PCでは5px間隔 */
    align-items: center;
  }
  .c-form-input--group .wpcf7-form-control-wrap {
    width: 100%;
    display: block;
    flex: 1;
  }
  .c-form-input--group br { display: none !important; }
  .c-form-input--group p { margin: 0 !important; display: contents !important; }

  /* 生年月日のセレクトボックス幅設定(PC) */
  .c-form-input--date-group select {
    width: auto !important;
    min-width: 80px !important;
    padding-right: 30px;
  }
}

/* --- 時間入力用グループ (PC/スマホ共通) --- */
/* 生年月日と設定を分離しました */
.c-form-input--time-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}
.c-form-input--time-group .wpcf7-form-control-wrap {
  width: auto !important;
}
.c-form-input--time-group select {
  width: auto !important;
  min-width: 70px !important; /* 時間は見やすい幅を維持 */
  display: inline-block !important;
  font-size: 16px !important;
  padding: 8px 10px !important;
}
.c-form-input--time-group .unit {
  font-size: 14px;
  margin-right: 15px;
  white-space: nowrap;
  font-weight: bold;
}
.c-form-input--time-group br {
  display: none !important;
}

.pt-top{
margin-top:30px!important;
}
/* スマホ表示 */
@media (max-width: 768px) {
.home-logo img{
	width:260px;
	text-align:center;
}
.pt-top{
margin-top:15px!important;
}
  .c-form-row {
    flex-direction: column;
    padding: 15px 0;
  }
  .c-form-label {
    width: 100%;
    margin-bottom: 15px;
  }
  .c-form-input {
    width: 100%;
  }
  
  /* --- 名前・ふりがな・都道府県市区町村のグループ (スマホ用修正) --- */
  .c-form-input--group {
    display: flex !important; /* ブロックからフレックスに変更して横並びにする */
    flex-wrap: nowrap !important;
    gap: 5px !important; /* フォーム間の隙間を5pxに設定 */
    margin-bottom: 5px !important;
    align-items: center;
  }
  .c-form-input--group br { display: none !important; }
  .c-form-input--group p { margin: 0 !important; display: contents !important; }
  
  .c-form-input--group .wpcf7-form-control-wrap {
    display: block;
    width: 100%; /* 横並びの中で幅を均等に広げる */
    flex: 1; /* 均等割り付け */
    margin-bottom: 0 !important; /* 横並びなので下のマージンは不要 */
    margin-top: 0 !important;
  }
  
  /* 都道府県(pref)がPC設定でmin-width:180px持っているのを解除する */
  /* これをしないとスマホの狭い画面で横並びにした時に溢れる */
  .c-form-input--group select#pref,
  .c-form-input--group input#pref {
    min-width: 0 !important;
    width: 100% !important;
  }

  .c-form-input--group .wpcf7-form-control-wrap:last-child {
    margin-bottom: 0 !important;
  }
  .c-form-input--group .wpcf7-form-control-wrap input,
  .c-form-input--group .wpcf7-form-control-wrap select {
    margin-bottom: 0 !important;
  }

  /* --- スマホ表示時の生年月日調整（強制1列配置・幅一杯） --- */
  .c-form-input--date-group {
    display: flex !important;
    flex-wrap: nowrap !important; /* 絶対に折り返さない */
    align-items: center !important;
    gap: 3px !important; /* 少しだけ隙間をあける */
    width: 100% !important;
    overflow: hidden; 
  }
  
  /* CF7のラッパー(span)の設定：幅を強制的に一杯まで広げる */
  .c-form-input--date-group .wpcf7-form-control-wrap {
    flex: 1 1 0% !important; /* 幅を0ベースで計算し、均等に分配 */
    min-width: 0 !important; 
    width: 100% !important; /* 幅100%を指定 */
    margin: 0 !important;
    display: block !important;
  }

  /* セレクトボックス本体の調整 */
  .c-form-input--date-group select {
    width: 100% !important; /* 親一杯に広げる */
    min-width: 0 !important;
    padding: 8px 0 8px 5px !important; /* 読みやすいパディングに戻す */
    font-size: 13px !important; /* 文字サイズを読みやすい大きさに戻す */
    text-indent: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding-right: 15px !important;
    letter-spacing: normal !important; /* 文字間隔戻す */
  }

  /* 「年」「月」「日」の文字 */
  .c-form-input--date-group .unit {
    flex: 0 0 auto !important;
    margin: 0 2px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    display: inline-block !important;
  }
  
  /* もしbrタグが混入していても消す */
  .c-form-input--date-group br {
    display: none !important;
  }
}

/* --- 入力パーツの基本装飾 --- */
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap select,
.wpcf7-form-control-wrap textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  font-size: 16px;
  margin-bottom: 5px;
}
.wpcf7-form-control-wrap input:focus,
.wpcf7-form-control-wrap select:focus {
  border-color: #4db7a5;
  background: #fff;
  outline: none;
}

/* --- 日付グループ共通設定(PCベース) --- */
.c-form-input--date-group {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important; 
  flex-wrap: nowrap !important;
}
.c-form-input--date-group .wpcf7-form-control-wrap {
  width: auto !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
}
.c-form-input--date-group .unit {
  font-size: 14px;
  margin-right: 15px;
  white-space: nowrap;
  font-weight: bold;
}
.c-form-input--date-group br {
  display: none !important;
}

/* --- 【zipaddr-jp対応】都道府県セレクトボックス・入力欄の表示対策 --- */
/* 共通設定 */
select#pref, input#pref {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 180px !important; /* PC用の設定 */
  height: auto !important;
  background-color: #fafafa !important;
}

/* セレクトボックス専用 */
select#pref {
  appearance: auto !important;
  -webkit-appearance: menulist !important;
}

/* --- ラジオボタン・チェックボックス --- */
.wpcf7-list-item {
  display: inline-block !important;
  margin-right: 20px;
  margin-bottom: 5px;
}
.wpcf7-list-item label {
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}
.wpcf7-list-item input[type="radio"],
.wpcf7-list-item input[type="checkbox"] {
  width: auto !important; 
  transform: scale(1.2);
  margin-right: 10px !important;
  accent-color: #008d7c;
}

/* --- 同意文のスマホ調整 --- */
@media (max-width: 768px) {
  .wpcf7-acceptance .wpcf7-list-item label {
    font-size: 12px !important;
  }
}

/* --- その他装飾 --- */
.c-form-section-title {
  font-size: 18px;
  font-weight: bold;
  margin: 40px 0 20px;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
}
.c-btn-submit {
  background-color: #e60033 !important;
  color: #fff !important;
  font-weight: bold;
  padding: 15px 60px !important;
  border: none !important;
  width: 100%;
  max-width: 300px;
  cursor: pointer;
}
.c-form-submit-area {
  text-align: center;
  margin-top: 40px;
  background: #f9f9f9;
  padding: 30px;
}

/* --- 同意確認エリアのマージン --- */
.c-form-submit-area .wpcf7-acceptance {
  display: block;
  margin-bottom: 10px !important;
}

/* --- リンクの装飾 --- */
.c-form-submit-area a {
  color: #0066cc;
  text-decoration: underline;
  font-weight: bold;
}
.c-form-submit-area a:hover {
  text-decoration: none;
  opacity: 0.8;
}
/* 既存のCSSコードはそのまま維持してください（省略） */
/* ... (前のコード) ... */

/* =========================================
   モーダル用CSS (ここから追加)
   ========================================= */

/* モーダルの背景（オーバーレイ） */
.c-modal-overlay {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* 半透明の黒背景 */
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 表示時のクラス */
.c-modal-overlay.is-active {
  display: flex;
  opacity: 1;
}

/* モーダルのコンテンツボックス */
.c-modal-content {
  position: relative;
  background: #fff;
  padding: 40px 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.c-modal-overlay.is-active .c-modal-content {
  transform: translateY(0);
}

/* 閉じるボタン */
.c-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.c-modal-close:hover {
  color: #333;
}

/* メッセージエリア */
.c-modal-body {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.6;
}

/* 成功・失敗による装飾の変化（JSでクラス付与） */
.c-modal-body.is-success {
  color: #008d7c; /* 成功時の色 */
}
.c-modal-body.is-error {
  color: #e60033; /* エラー時の色 */
}