#list2 li{
    list-style-type:none;
    background-image:url("https://myhome-dkw.jp/wp-content/uploads/2021/02/レ点画像2.png");
    background-repeat:no-repeat;
    background-position:left center;
    padding-left:20px; 
}
.cp_hr06 {
	position: relative;
	height: 1px;
	border-width: 0;
	background-image: -webkit-linear-gradient(left,
	transparent 0%,#283593 50%,transparent 100%);
	background-image:         linear-gradient(90deg,
	transparent 0%,#283593 50%,transparent 100%);
}
.shine:hover{filter: saturate(250%);
            transition: filter 0.3s;}

.slider div {
text-align: center;
height: 100%;
width: 100%;
}
.slider img {
width: auto;
height: auto;
vertical-align:middle;
text-align: center;
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
-webkit-align-items: center;
align-items: center;
}
#media_image-26{margin-bottom: 0;}
#media_image-24{margin-bottom: 0;}

.contact-form_btn{background: #0F48A5; font-size: 1.4rem;
}
.contact-form_btn:hover {
	background: #0695F7;}

/*header会社名*/
#company_name {
  font-size: 17px;
  font-weight: bold;
 white-space: nowrap; /* テキストの折り返しを防止 */
}
#header_phone, #header_address {
  margin-bottom: 5px; /* 各要素の間隔を調整 */
}
@media (max-width: 767px) {
    #header_button_area {
        display: none; /* モバイルでは会社名・住所・電話を非表示 */
    }
}
/*	トップページ先頭ボタン上部へ　
#main_contents {padding-top: 0px;} */
/* 浮くボタン設定　*/
.lift_up img{
  width: 100%;
  cursor: pointer;
}
.lift_up:hover{
  box-shadow: 10px 10px 10px rgba(0,0,0,0.5);
  transform: translateY(-10px);
  transition-duration: 0.5s;
}
/*モバイル限定で改行*/
@media screen and (min-width: 768px){
.br-sp {display: none; }
}

/* TOPページ等のボタン設定 */
.button0622 a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 240px;
  padding: 10px 25px;
  font-weight: 500;
  text-decoration: none;
  background-color: transparent;
  border: none;
  overflow: visible;
}

.button0622 a span {
  position: relative;
  z-index: 10;
  color: #fff;
  font-size: 1.1rem;
  transition: color 0.3s ease-in-out;
}

.button0622 a:hover span {
  color: #fa3b1c;
}

.button0622 a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #fa3b1c;
  transition: all 0.3s ease-in-out;
  opacity: 1;
}

.button0622 a:hover::before {
  opacity: 0;
  transform: scale(0.4, 0.4);
}

.button0622 a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  border: 2px solid #fa3b1c;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
  transform: scale(1, 1);
}

.button0622 a:hover::after {
  opacity: 1;
  transform: scale(1, 1);
}

/*　淡いオレンジ　*/
.button0622-c a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 240px;
  padding: 10px 25px;
  font-weight: 500;
  text-decoration: none;
  background-color: transparent;
  border: none;
  overflow: visible;
}

.button0622-c a span {
  position: relative;
  z-index: 10;
  color: #fff;
  font-size: 1.1rem;
  transition: color 0.3s ease-in-out;
}

.button0622-c a:hover span {
  color: #f27761;
}

.button0622-c a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #f27761;
  transition: all 0.3s ease-in-out;
  opacity: 1;
}

.button0622-c a:hover::before {
  opacity: 0;
  transform: scale(0.4, 0.4);
}

.button0622-c a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  border: 2px solid #f27761;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
  transform: scale(1, 1);
}

.button0622-c a:hover::after {
  opacity: 1;
  transform: scale(1, 1);
}

/* 青系バージョン */
.button0622-b a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 240px;
  padding: 10px 25px;
  font-weight: 500;
  text-decoration: none;
  background-color: transparent;
  border: none;
  overflow: visible;
}

.button0622-b a span {
  position: relative;
  z-index: 10;
  color: #fff;
  font-size: 1.1rem;
  transition: color 0.3s ease-in-out;
}

.button0622-b a:hover span {
  color: #6695ed;
}

.button0622-b a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #6695ed;
  transition: all 0.3s ease-in-out;
  opacity: 1;
}

.button0622-b a:hover::before {
  opacity: 0;
  transform: scale(0.4, 0.4);
}

.button0622-b a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  border: 2px solid #6695ed;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
  transform: scale(1, 1);
}

.button0622-b a:hover::after {
  opacity: 1;
  transform: scale(1, 1);
}

/* 査定ページのボタンの見た目とサイズ */
input.contact-form_btn[type="submit"] {
  background-color: #f27761 !important;
  color: #fff !important;
  font-size: 1.3rem !important;
  padding: 0.8em 2.5em !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
  width: auto !important;
  display: block !important;
  margin: 1.5em auto 1em auto !important; /* ← これで中央寄せ */
  text-align: center !important;
}

/* ホバー時の色変更 */
input.contact-form_btn[type="submit"]:hover {
  background-color: #f13b1c !important;
}
@media (max-width: 480px) {
  input.contact-form_btn[type="submit"] {
    display: block;
    width: 90% !important;              /* 横幅は画面の90%以内に */
    max-width: 320px;                   /* 可能であれば最大幅を制限 */
    margin: 1.5em auto !important;      /* 中央寄せ */
    padding: 1em 1.5em !important;      /* バランス良く内側余白を設定 */
    font-size: 1rem !important;
    box-sizing: border-box !important; /* パディングを含めて幅を計算 */
    background-color: #0F48A5 !important;  /* 色が変わってしまっていたら明示的に指定 */
    color: #fff !important;
    border: none;
    border-radius: 6px;
    text-align: center;
  }
}


/* チェックボックス横並び：枠内で詰める */
.wpcf7-form .wpcf7-checkbox {
  display: flex !important;
  flex-wrap: nowrap !important;
  max-width: 100%;
  overflow-x: hidden;
  gap: 1px !important; /* ← 項目間をギリギリまで狭く */
}

/* ラベル余白と改行防止 */
.wpcf7-form .wpcf7-checkbox label {
  display: inline-flex !important;
  align-items: center;
  margin-right: 4px; /* ← 少しだけ間隔確保 */
  white-space: nowrap;
}

/* モバイル用：文字サイズを少し大きく */
@media screen and (max-width: 480px) {
  .wpcf7-form .wpcf7-checkbox label,
  .wpcf7-form .wpcf7-checkbox label span {
    font-size: 1.02rem !important;  /* ← 少し大きめに */
  }
}

/* 「プライバシーポリシーに同意する」のテキストサイズ */
.wpcf7-form .wpcf7-acceptance label,
.wpcf7-form .wpcf7-acceptance label span {
  font-size: 1.05rem !important;
  line-height: 1.4 !important;
	letter-spacing:-0.05em;
}

textarea[name="textarea-946"] {
  height: 80px !important;  /* ← 縦幅を調整。例：80px は2〜3行分程度 */
  line-height: 1.4;
  font-size: 1rem;
  padding: 0.8em;
  resize: vertical;  /* ← ユーザーが縦方向だけ自由に広げられる */
}
/*モバイルだけ改行*/
@media screen and (min-width: 768px){
.br-sp {display: none; }
}

/* 「一括無料査定とは？」セクション用背景に画像 */
#ikkatsu-box {
  background-image: url('https://myhome-dkw.jp/wp-content/uploads/2025/06/32320160_s.jpg'); /* ←画像URLをここに */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 30px;
  border-radius: 8px; /* 角を少し丸める */
  overflow: hidden;
}

/* 読みやすさ向上のため白い半透明レイヤー */
#ikkatsu-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
   background-color: rgba(255, 255, 255, 0.4); /* ←0に近づけるほど薄くなる */
  z-index: 0;
}

/* 中のテキストやボタンは上に表示 */
#ikkatsu-box * {
  position: relative;
  z-index: 1;
}

/* articleページ（post-type-archive-recipe）限定 横長h2見出し修正 */
/* PC版の最終調整 */
body.post-type-archive-recipe h2.headline.rich_font {
  background-color: #6695ed !important; /* 背景色 */
  color: #fff !important; /* 文字色 */
  font-size: 21px !important; /* PC版文字サイズは維持 */
  line-height: 1.1 !important; /* 行の高さは維持 */
  padding: 6px 25px !important; /* 上下パディングは維持。左右パディングを微調整 */
  margin: 0 auto 24px auto !important; /* 外側の余白 */
  width: 100% !important; /* 幅を100%に設定 */
  min-width: unset !important; /* 最小幅を解除 */
  max-width: 630px !important; /* PC版の最大幅をさらに広げて、テキストが1行になるように調整 */
  height: auto !important; /* 高さをautoに設定し、内容に合わせる */
  min-height: unset !important; /* 最小高さを解除 */
  display: block !important; /* ブロック要素として表示 */
  box-sizing: border-box !important; /* パディングとボーダーを幅に含める */
  border-radius: 6px !important; /* 角の丸み */
  text-align: left !important; /* テキストの左寄せ */
  white-space: normal !important; /* 折り返しを許可 */
  overflow-wrap: break-word !important; /* 長い単語の改行 */
  overflow: hidden !important; /* 要素からはみ出る内容を非表示にする */
}

body.post-type-archive-recipe h2.headline.rich_font span {
  all: unset !important;
}

/* モバイル表示での最終調整 */
@media (max-width: 768px) { /* タブレット以下のデバイスに適用 */
  body.post-type-archive-recipe h2.headline.rich_font {
    font-size: 19px !important; /* モバイル版文字サイズは維持 */
    line-height: 1.2 !important; /* 行の高さは維持 */
    padding: 6px 15px !important; /* パディングは維持 */
    max-width: calc(100% - 30px) !important; /* 左右の余白は維持 */
    margin: 0 auto 24px auto !important; /* 中央寄せを維持しつつ、はみ出し対策 */
    word-break: normal !important; /* 日本語の標準的な改行ルールを適用 */
    hyphens: auto !important; /* 必要に応じて単語のハイフネーションを許可 */
    min-width: unset !important; /* 最小幅を解除 */
    min-height: unset !important; /* 最小高さを解除 */
  }
}

/* 説明文のテキストがモバイルで折り返されるように調整 */
@media screen and (max-width: 767px) {
  body.post-type-archive-recipe .headline + p,
  body.post-type-archive-recipe h2.headline.rich_font + p,
  body.post-type-archive-recipe .intro,
  body.post-type-archive-recipe .page-description {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    
    font-size: 16px !important;          
    line-height: -0.18px !important;         /* 行間をやや詰める（通常1.6前後） */
    letter-spacing: -0.03em !important;   /* 文字間を狭める（読みやすさは維持） */
    
    margin: 12px auto 20px;
    padding: 0 16px;
    box-sizing: border-box;
  }
}

/*　テスト　*/
a.btn-right {
  display: inline-block;
  min-width: 280px;
  max-width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  text-decoration: none !important;
  background-color: #ffffff !important;
  color: #f2522e !important;
  border: 2px solid #f2522e;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

a.btn-right:hover,
a.btn-right:focus,
a.btn-right:active {
  background-color: #f2522e !important;
  color: #ffffff !important;
}

/* モバイル向け調整だけ下に追加！ */
@media (max-width: 480px) {
  a.btn-right {
    font-size: 14px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 12px 16px; /* ちょっと余裕を作る */
  }
}
/* test2 */
a.btn-left,
a.btn-right {
  display: inline-block;
  min-width: 280px;
  max-width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* 左ボタン：赤背景・白文字 → ホバーで白背景・赤文字 */
a.btn-left {
  background-color: #f2522e;
  color: #ffffff !important;
  box-shadow: 0 4px 8px rgba(255, 127, 0, 0.4);
  border: none;
}

a.btn-left:hover {
  background-color: #ffffff !important;
  color: #f2522e !important;
  border: 2px solid #f2522e;
}

/* 右ボタン：白背景・赤文字 → ホバーで赤背景・白文字 */
a.btn-right {
  background-color: #ffffff;
  color: #f2522e;
  border: 2px solid #f2522e;
}

a.btn-right:hover {
  background-color: #f2522e;
  color: #ffffff !important;
}

/* ラッパー */
.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* モバイル対応 */
@media (max-width: 480px) {
  a.btn-left,
  a.btn-right {
    font-size: 14px;
    white-space: nowrap;
    padding: 12px 16px;
  }
}
/* TOP上部詰め*/
/* トップページ限定のパディング調整 */
/* TOPページ限定で main_contents のパディングを0に */
body.home #main_contents {
    padding: 0 !important;
}
/*記事内の【関連コラム】共通 横並びで中央揃え */
/* 共通（PC・モバイル） */
.related-column {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.related-column .related-image {
  width: 100px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

.related-column .related-text a {
  font-size: 1rem;
  line-height: 1.4;
  color: #000059;
  text-decoration: none;
}

/* モバイル専用 */
@media screen and (max-width: 767px) {
  .related-column {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  .related-column .related-image {
    width: 260px; /* （必要に応じて調整） */
  }

  .related-column .related-text a {
    font-size: 0.9rem;
    line-height: 1.3;
		letter-spacing: -0.9px;
  }
}

/* （記事内目次）*/

/* チェックボックスを非表示にする */
.toc-toggle-checkbox {
    display: none;
}

/* H4のリストをデフォルトで非表示にする */
.h4-content {
    display: none;
}

/* H4の親要素をFlexboxで横並びにする */
.h4-toggle-item {
    display: flex;
    align-items: center;
}

/* H4の展開ボタンをH2の右隣に配置 */
.h4-toggle-item > .toc-toggle-label {
    order: 1;
    margin-right: 5px;
    cursor: pointer;
    font-size: 1em;
}

/* H4のコンテンツをH2の右隣に配置 */
.h4-toggle-item > .h4-content {
    order: 2;
    flex-grow: 1;
}

/* H4リストの箇条書きの丸を非表示にし、左にスペースを設ける */
.h4-content ul {
    list-style-type: none !important;
    padding-left: 20px;
    margin: 0;
}

/* H4のフォントサイズと字間を調整する */
.h4-content ul li a {
    font-size: 0.9em !important;
    letter-spacing: -2px !important;
}

/* チェックボックスがオンになったときにH4のリストを表示する */
.toc-toggle-checkbox:checked + .toc-toggle-label + .h4-content {
    display: block;
}
/*目次のカスタマイズここまで*/
