/* トップページ店舗ボタン横並び */
.custumbtn-container {
  display: flex;
  justify-content: space-between;
  gap: 5px; /* ボタン間の余白 */
}

.custombtn {
  flex: 1; /* 均等幅にする */
}

/* トップページフッターInstaバナー */
.footinsta{max-width:300px; margin:20px auto; text-align: center;}


/* 補助金ページ用CSS */
.hojokin-container h3{
  margin:70px auto 20px;
}
.hojokin-container .formWrap{
  display:block;
}
.hojokin-container .formWrap > table{
  width:60%;
  margin:auto;
}

.image-group {
  display: flex;
  justify-content: center; /* 横並び＆中央揃え */
  align-items: center; /* 縦方向も中央に揃える */
  gap: 20px; /* 画像間の余白 */
  width: 100%; /* 画面幅いっぱいに広げる */
  margin: auto 30px; /* 必要なら中央寄せ */
}

.image-group img {
  max-width: 100%;
  height: auto;
  margin-bottom:50px;
}

img {
    max-width: 100%;
    height: auto;
}

.text-hojokin {
    font-size: 18px;
    margin: 20px 0 20px 0;
    position: relative; /* 相対配置で注釈の位置を調整 */
    display: inline-block;
}
.text-hojokin-big{
    font-size:24px;
    margin:10px 0 30px 10px;
}
.text-hojokin-small{
    font-size:14px;
    margin:10px 0 30px 10px;
}
.hojokin-kikan{
  width:90%;
  border:3px solid rgb(255, 128, 128);
  background-color: rgb(255, 214, 214);
  border-radius:20px;
  padding:20px;
  margin:30px auto;
  text-align: center;
}

@media (max-width: 430px) {
.hojokin-kikan{
  width:90%;
}


}
.hojo-renoprice-table-h .text-hojokin-small{
  display:block;
  margin:10px;
}

.hojokin-kome{
  font-size: 10px; /* 小さめのフォントサイズ */
  color: red; /* 赤色 */
  position: absolute;
  top: -5px; /* 親テキストの上に配置 */
  right: -10px; /* 右上に配置 */
}
.hojokin-image-box {
  display: block; /* 横並びを防ぎ、要素を縦配置 */
  text-align: center; /* 画像を中央揃え */
  margin:30px auto 50px;
}

.hojokin-image-box img {
  display: block; /* 各画像を独立したブロック要素に */
  margin: 10px auto; /* 余白を調整し、中央配置 */
  max-width: 100%;
  height: auto;
}
.highlight-box {
  background-color: #f0f8ff; /* わずかに青みがかった背景色 */
  border: 2px solid #add8e6; /* 薄い青色のボーダー */
  padding: 15px; /* 内側の余白 */
  margin: 20px 0; /* 上下の余白 */
  border-radius: 8px; /* 角を少し丸くする */
}

.highlight-box p {
  margin: 0; /* <p>タグのデフォルトマージンをリセット */
}

.highlight-box .hojokin- {
  font-weight: bold; /* 「補助金申請実績」のテキストを太字にする */
}

/* テーブル */

.hojo-table-title1{color:red;}

.hojo-price-table{border:1px solid #3FAAFA; padding:0; margin:30px auto; max-width:600px;}
.hojo-price-table-h{background-color: #3FAAFA; line-height: 1.5em; color:#fff; padding:10px;}
.hojo-renoprice-table{border:1px solid #77CC00; padding:0; margin:30px auto; max-width:800px;}
.hojo-renoprice-table-h{background-color: #77CC00; line-height: 1.5em; color:#fff; padding:10px;}

.hojo-price-table table,.hojo-renoprice-table table{margin:10px auto; border-spacing: 0;}
.hojo-price-table table,.hojo-renoprice-table table,
.hojo-price-table td,.hojo-renoprice-table td,
.hojo-price-table th,.hojo-renoprice-table th {
  border: 1px solid #ccc;
  border-collapse: collapse;
}

.hojokin-table-box{
  padding:10px;
}
.hojokin-table-box table {
  width: 100%;
  table-layout: auto; /* 内容に応じて幅を調整 */
}

.hojokin-table-box th,
.hojokin-table-box td {
  text-align: center; /* テキストを中央寄せ */
  padding: 8px; /* 余白を調整 */
}

.hojokin-table-box th,
.hojokin-table-box td {
  width: 14.28%; /* 7列なので均等にする */
  text-align: center; /* テキストを中央配置 */
}

.hojo-price-table td,.hojo-renoprice-table td,
.hojo-price-table th,.hojo-renoprice-table th {
  padding: 3px;
  margin:0;
}

.hojo-price-table th {
  background: #C5E5F9;
  text-align: center;
}
.hojo-renoprice-table th{
  background: #DEEDC8;
  text-align: center;
}


.hojokin-nini-container {
  display: flex; /* 左右に並べるための設定 */
  width: 100%; /* 親要素に合わせて幅を調整 */
  margin: 0 auto; /* 中央寄せ */
}

.hojokin-nini-container span{
  display:block;
  width:80%;
  text-align: right;
}

.left-box {
  padding: 20px;
  width: 100%; /* 幅を100%に変更 */
  box-sizing: border-box; /* padding, borderを含めてwidthを計算 */
}

.right-box {
    padding: 20px;
  width: 100%; /* 幅を100%に変更 */
  box-sizing: border-box; /* padding, borderを含めてwidthを計算 */
}
.bottom-box{
  padding: 20px;
  width: 100%; /* 幅を100%に変更 */
  box-sizing: border-box; /* padding, borderを含めてwidthを計算 */
}

/* スマートフォン表示 (max-width: 430px) */
@media screen and (max-width: 430px) {
  .hojokin-nini-container {
    flex-direction: column; /* 要素を縦に並べる */
  }

  .left-box,
  .right-box {
    width: 100%; /* 幅を100%にして親要素いっぱいに広げる (変更なし) */
  }
}

.hojokin-nini {
  display: flex; /* 子要素を縦に並べるためのFlexboxコンテナ */
  flex-direction: column; /* 子要素を縦方向に配置 */
  max-width:600px;
  margin:auto;
}

.hojokin-nini .item {
  display: flex; /* dtとddを横並びにするためのFlexboxコンテナ */
  align-items: baseline; /* dtとddのベースラインを揃える (必要に応じて) */
  margin-bottom: 5px; /* 各ペアの下に少しスペースを作る (必要に応じて) */
}

.hojokin-nini dt {
  text-align: left;
  width: fit-content; /* dtの幅を内容に合わせる */
  padding-right: 10px; /* ddとの間にスペースを作る */
}

.hojokin-nini dd {
  text-align: left; /* ddの内容は左寄せで表示 */
  width: fit-content; /* ddの幅を内容に合わせる */
}
.right-item{text-align: right;}


/* 2行目（thの次の行）をセンタリング */
.hojo-price-table tr:nth-child(2) td{
  text-align: center;
}

/* 1列目をすべてセンタリング */
.hojo-price-table td:first-child,.hojo-renoprice-table td:first-child {
  text-align: center;
}

/* 3行目2列目～6行目4列目を右寄せ */
.hojo-price-table tr:nth-child(n+3):nth-child(-n+6) td:nth-child(n+2):nth-child(-n+4) {
  text-align: right;
}



/* スマホ版（幅430px以下のデバイス向け） */
@media (max-width: 430px) {
    .container {
        max-width: 430px;
    }

    @media (max-width: 430px) {
      .image-group {
          flex-direction: column; /* スマホで縦並び */
      }
    }

    .image-group img {
        display: block;
        margin: auto;
    }

    .text-hojokin {
        font-size: 16px; /* スマホ向けにやや小さめに調整 */
    }
    .text-hojokin-big{
        font-size: 18px
    }
    .text-hojokin-small{
      font-size:12px;
      margin:10px 10px;
  }
}

/* イベントページ */
.catchimg{
  margin:0 auto 50px;
}
.event-info{
  margin:50px auto;
}
.event-info p{
font-size:18px;
margin-bottom:60px;
}
.event-info h3{margin-top:50px;}

.event-info-linkbnr {
  text-align: center;
  margin: 50px auto;
  font-size:24px;
  background-color: #4E7CC6;
  color:#fff;
  padding:20px;
  border-radius: 12px 12px 12px 12px;
}
.event-info-linkbnr p{
  font-size:larger;
}

.event-info .event-flyer-box {
  display: flex; /* 要素を横並びにする */
  margin:50px auto 20px;
}
.event-info .event-flyer-bottom{
  padding:10px;
  margin:0px auto 50px;
  text-align: center;
}

.event-info .flyer-omote,
.event-info .flyer-ura {
  width: 50%; /* それぞれの幅を50%にする */
  padding:10px;
}

.event-info .flyer-omote img,
.event-info .flyer-ura img {
  display: block; /* 画像が親要素いっぱいに広がるようにする */
  width: 100%;
  height: auto; /* 高さの比率は維持する */
}

.eventform-container > .formWrap > table{
  width:100%;
  margin:auto;
}
p.event-tel{margin:30px; font-size:3.4rem;}

/* 相談会ページ */
.soudankai-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* または space-between, space-around など */
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content:center;
}

.soudankai-item {
  width: calc(25% - 20px); /* 4つ並べる場合の幅 (左右のmarginを考慮) */
  margin: 10px;
  border: 1px solid #ccc; /* 必要に応じて */
}

.soudankai-item a {
  display: block;
  text-decoration: none;
  color: #333;
}

.soudankai-thumbnail {
  width: 100%;
  height: auto;
}

.soudankai-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.soudankai-details {
  padding: 10px;
}

.soudankai-date {
  font-size: 0.8em;
  color: #777;
  margin-bottom: 5px; /* 日付とタイトルの間隔 */
}

.soudankai-title {
  font-size: 1em; /* タイトルのサイズを小さく */
  margin-top: 0; /* タイトルの上の余白をなくす */
  line-height: 1.2; /* 行間を詰める */
  margin-bottom: 5px; /* タイトルとカスタムフィールドの間隔 */
}

.soudankai-event-day,
.soudankai-shop {
  font-size: 0.9em;
  margin-bottom: 5px; /* カスタムフィールド間の間隔 */
  line-height: 1.2; /* 行間を詰める */
}

/* レスポンシブ対応 (必要に応じて) */
@media (max-width: 768px) {
  .soudankai-item {
    width: calc(50% - 20px); /* タブレットで2つ並べる */
  }
}

@media (max-width: 480px) {
  .soudankai-item {
    width: 100%; /* スマホで1つずつ並べる */
  }
}

.soudankai-kousin{font-size:smaller;}

.soudankai_eventform_container,.tenkenform_container{
  max-width:600px;
  margin:50px auto;
}

.secSingle.___post .wrapper > ._main > .__post > .___body .soudankai_eventform_container ul:not(._event) li{list-style:none;}
 
 /* 申込みボタン */

 a.btn_ao_b {
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 1.3rem 2rem;
  border: 2px solid #014897;
  background: #fff;
  text-decoration: none;
  transition: 0.3s;
}
a.btn_ao_b:hover {
  background-color: #e9f3fd;
}
a.btn_ao_b .b__text {
  display: block;
  flex-grow: 1;
  color: #004386;
  font-weight: bold;
  text-align: center;
  position: relative;
  padding-right: 15px;
  font-size: 23px;
}
a.btn_ao_b .b__text::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  transform: rotate(45deg);
  border-top: 3px solid #014897;
  border-right: 3px solid #014897;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  transition: 0.3s;
}
@media (max-width: 1200px) {
  a.btn_ao_b .b__text {
    font-size: 18px;
    padding-right: 20px;
  }
  a.btn_ao_b .b__text::after {
    width: 12px;
    height: 12px;
  }
}
@media (max-width: 736px) {
  a.btn_ao_b .b__text {
    font-size: 14px;
    padding-right: 20px;
  }
  a.btn_ao_b .b__text::after {
    width: 10px;
    height: 10px;
  }
}


.soudankai_listbox{
  margin:2em 0;
  position: relative;
  padding: 0.5em 1.5em;
  border-top: solid 2px rgb(173, 207, 186);
  border-bottom: solid 2px rgb(173, 207, 186);;
}
.soudankai_listbox:before, .soudankai_listbox:after{
  content: '';
  position: absolute;
  top: -10px;
  width: 2px;
  height: -webkit-calc(100% + 20px);
  height: calc(100% + 20px);
  background-color: rgb(173, 207, 186);;
}
.soudankai_listbox:before {left: 10px;}
.soudankai_listbox:after {right: 10px;}
.soudankai_listbox p {
  margin: 0; 
  padding: 0;
}

.soudankai_table{
  width:100%;
  padding:5px;
  }
  .soudankai_table table{width:100%;}
  .soudankai_table table tr {
    border-bottom: 1px solid #ccc;
    border-top: 1px solid #ccc;
    line-height: 2rem;
}
.soudankai_table table th{width:30%;}

.soudankai_button{margin-bottom:50px;}


/* 相談会フォーム */
.soudankai-wrap{margin:50px 0;}

.soudankai_eventform_container,.tenkenform_container {
  line-height: 1.6;
  color: #333;
  padding: 20px;
  background-color: #f7f7f7;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.formWrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}



.itemHead {
  margin-bottom: 15px;
}

.announce {
  font-size: 1.1em;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 5px;
}

.itemBody {
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.inner {
  width: 100%;
}

.listDocForm {
  padding: 0;
  margin: 0;
  list-style: none;
}

.listDocForm li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.listDocForm li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.listDocForm dt {
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

.listDocForm dt p {
  margin: 0;
}

.must small{
  color: #dc3545; /* 必須の文字の色 */
  font-size: 0.9em;
  margin-left: 5px;
}

.listDocForm dd {
  margin-left: 0;
}

.listDocForm input[type="text"],
.listDocForm select,
.listDocForm textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1em;
}

.listDocForm select {
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg fill="%23333" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .854 1.658l-4.796 5.48a1 1 0 0 1-1.506 0z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

.listDocForm input[type="text"].namehead,
.listDocForm input[type="text"].namebody,
.listDocForm input[type="text"].kanahead,
.listDocForm input[type="text"].kanabody {
  width: calc(50% - 5px);
  display: inline-block;
  margin-right: 10px;
}

.listDocForm input[type="text"].namebody,
.listDocForm input[type="text"].kanabody {
  margin-right: 0;
}

.listDocForm textarea {
  min-height: 100px;
}

.entryBtnWrap {
  padding-top: 20px;
  text-align: center;
}

.entryBtnWrap input[type="button"],
.entryBtnWrap input[type="submit"] {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.entryBtnWrap input[type="button"].back {
  background-color: #6c757d;
  color: #fff;
  margin-right: 10px;
}

.entryBtnWrap input[type="button"].back:hover {
  background-color: #5a6268;
}

.entryBtnWrap input[type="submit"].submit {
  background-color: #014897;
  color: #fff;
}

.entryBtnWrap input[type="submit"].submit:hover {
  background-color: #014897;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .listDocForm input[type="text"].namehead,
  .listDocForm input[type="text"].namebody,
  .listDocForm input[type="text"].kanahead,
  .listDocForm input[type="text"].kanabody {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .entryBtnWrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .entryBtnWrap input[type="button"],
  .entryBtnWrap input[type="submit"] {
    margin-bottom: 10px;
    width: 100%;
  }

  .entryBtnWrap input[type="button"].back {
    margin-right: 0;
  }
}
.listDocForm dd {
  display: flex; /* 追加 */
  gap: 10px; /* 姓と名の間のスペース */
  align-items: center; /* 縦方向中央揃え */
}

.listDocForm dd input[type="text"].namehead,
.listDocForm dd input[type="text"].namebody,
.listDocForm dd input[type="text"].kanahead,
.listDocForm dd input[type="text"].kanabody {
  width: calc(50% - 5px); /* 左右のスペースを考慮して幅を調整 */
  box-sizing: border-box; /* padding, border を含めた幅にする */
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .listDocForm dd {
    flex-direction: column; /* 縦並びに戻す */
    gap: 5px;
    align-items: flex-start;
  }

  .listDocForm dd input[type="text"].namehead,
  .listDocForm dd input[type="text"].namebody,
  .listDocForm dd input[type="text"].kanahead,
  .listDocForm dd input[type="text"].kanabody {
    width: 100%;
  }
}
.soudankai-entry-confirm .formWrap{display:block;}
.eventSlider a p.ttl{line-height:2rem; padding-top:1.5rem;}

/* 定期点検ページ */
/* アフターフォローセクションの基本コンテナ */
.tenken-container {
    /* 他ページと共通のフォント、基本的な文字色、行間などを引き継ぐことを想定 */
    line-height: 1.7; /* やや広めの行間で読みやすく */
    max-width: 960px; /* 他ページのコンテンツ幅に合わせる */
    margin: 40px auto; /* 上下にゆとりを持たせ、中央寄せ */
    padding: 25px 30px; /* 内側の余白 */
    /* 背景色やボーダー、シャドウは他ページのデザインに合わせて調整 */
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* メイン見出し (h3) */
.tenken-container h3 {
    font-size: 2.2em; /* 大きめに設定し、ページの主題を示す */
    color: #1a5276; /* 他ページのメインカラーに合わせて調整 */
    text-align: center;
    margin-bottom: 1.5em; /* 下の段落との間隔 */
    padding-bottom: 0.5em; /* 下線とテキストの間に少しスペース */
    border-bottom: 2px solid #e7f2fa; /* 他ページの区切り線スタイルに合わせる */
}

/* サブ見出し (h4) */
.tenken-container h4 {
    font-size: 1.5em; /* h3より小さく、段落のまとまりを示す */
    color: #2c7ac4; /* 他ページのサブカラーに合わせて調整 */
    margin-top: 2.5em; /* 上の段落からの距離を十分に取る */
    margin-bottom: 1em; /* 下の段落との間隔 */
    padding-left: 0.8em; /* 左側の装飾との余白 */
    border-left: 4px solid #2c7ac4; /* 他ページの小見出しスタイルに合わせる */
}

/* 段落 (p) */
.tenken-container p {
    font-size: 1.05em; /* 標準より少し大きめで読みやすく */
    margin-bottom: 1.3em; /* 各段落の下に適切な間隔を設ける */
    /* text-align: justify; */ /* 必要であれば両端揃えにするが、可読性重視ならleftのままでも良い */
}

/* 強調したい箇所（例として太字部分） */
.tenken-container p strong {
    color: #d63031; /* 強調色。他ページの強調色に合わせて調整 */
    font-weight: bold;
}

/* 改行タグ<br>の間の調整（個別の調整は難しいが、行間全体で対応） */
/* 必要であれば、特定の<br>を含むテキストブロックに対してline-heightを調整するCSSクラスを付与 */

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .tenken-container {
        margin: 20px auto;
        padding: 20px;
    }
    .tenken-container h3 {
        font-size: 1.8em;
        margin-bottom: 1.2em;
    }
    .tenken-container h4 {
        font-size: 1.3em;
        margin-top: 2em;
    }
    .tenken-container p {
        font-size: 1em;
        margin-bottom: 1.2em;
    }
}

@media (max-width: 480px) {
    .tenken-container {
        margin: 15px auto;
        padding: 15px;
    }
    .tenken-container h3 {
        font-size: 1.6em;
        margin-bottom: 1em;
    }
    .tenken-container h4 {
        font-size: 1.2em;
        margin-top: 1.5em;
    }
    .tenken-container p {
        font-size: 0.95em;
        margin-bottom: 1em;
    }
}
/* 選ばれる理由の追加ボタン */
.afterfollow_btn_container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.afterfollow_btn_innerbox{
  background-color:#eee;
  padding:20px;
}

.afterfollow_btn_container img {
    max-width: 600px;
    height: auto;
    display: block;
}
#reason05 h4{margin:30px 0;}

.afterfollow_btn_container span{
  font-size:smaller;
  color:#999;
}

/* 曜日スマホ横並び */
@media (max-width: 767px) {
    .youbilist dd {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px 15px;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 0;
        margin: 0;
    }

    .youbilist dd [name="day"] label {
        white-space: nowrap;
        margin: 0;
        display: inline-flex;
        align-items: center;
    }

    .youbilist dd [name="time_start"],
    .youbilist dd [name="time_end"] {
        margin: 0;
        vertical-align: middle;
    }

    .youbilist dt {
        text-align: center;
        padding-bottom: 10px;
        box-sizing: border-box;
        width: 100%;
    }
}

/* 施工事例カテゴリーメニュー：スマホ2列表示 */
@media only screen and (max-width: 600px) {
  .worksMenu {
    gap: 0 4%;
  }
  .worksMenu li {
    width: 48%;
  }
  .worksMenu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 28px 10px 10px;
    font-size: 1.25rem;
    line-height: 1.35;
    text-align: center;
  }
}