/* ---------------
親ページに子ページを表示させる　703
----------------------- */

.child-pages-box-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.child-page-box {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fafafa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.child-box-thumb {
  flex-shrink: 0;
  width: 180px;
}

.child-box-thumb img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.child-box-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.child-box-content h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.child-box-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}



/* ---------------
来店・お問合せ　703
----------------------- */

/* チェックボックス横並び（PC） */
.checkbox-row span.wpcf7-list-item {
  display: inline-block !important;
  margin-right: 20px;
}

/* モバイルでは縦並び */
@media screen and (max-width: 767px) {
  .checkbox-row span.wpcf7-list-item {
    display: block !important;
    margin-bottom: 10px;
  }
}



/* フォーム全体の文字サイズと行間を統一 */
.wpcf7-form {
  font-size: 16px;
  line-height: 1.8;
}

/* ラベルを太字＆見やすく */
.wpcf7-form label {
  font-size: 16px;
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
}

/* 入力欄の文字も整える */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  font-size: 16px;
  line-height: 1.6;
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* 送信ボタンも調整 */
.wpcf7-form input[type="submit"] {
  font-size: 16px;
  padding: 10px 20px;
}






/* ---------------
製品に施工一覧　703
----------------------- */
/* Grid style */
/* グリッド全体設定 */
.display-posts-listing.grid {
    display: grid;
    grid-gap: 16px;
    font-size: 14px;
    line-height: 1.5;
}

/* カード全体（はみ出し防止のため overflow hidden） */
.display-posts-listing.grid > div {
    overflow: hidden;
    padding: 4px;
}

/* サムネイル画像のスタイル */
.display-posts-listing.grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 2.5;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* ホバー時ズーム */
.display-posts-listing.grid img:hover {
    transform: scale(1.05);
}

/* タイトルのスタイル */
.display-posts-listing.grid .title {
    display: block;
    font-weight: bold;
    font-size: 13px;
    margin: 6px 0;
}

/* レスポンシブ：スマホ〜599px未満＝1列 */
@media (max-width: 599px) {
    .display-posts-listing.grid {
        grid-template-columns: 1fr;
    }
}

/* 600px以上＝3列（PC・タブレット） */
@media (min-width: 600px) {
    .display-posts-listing.grid {
        grid-template-columns: repeat(3, 1fr);
    }
}





/* 本文タイトルのスタイル 703 */
h2.wp-block-heading{
    background-image:
        linear-gradient(135deg, transparent 0 20px, #000 30px calc(100% - 30px), transparent calc(100% - 20px)),
        radial-gradient(#fff 30%, transparent 30%);
    background-repeat: no-repeat, repeat;
    background-size: 100% 100%, 10px 10px;
    background-color: #000;
    color: white;
    font-weight: bold;
    font-size: 26px;
    text-align: center;
    position: relative;
    padding-top: 20px !important; /* 最優先 */
    padding-bottom: 20px !important; /* 最優先 */
    margin-top: 40px !important; /* 最優先 */
}







h3.wp-block-heading{
	position: relative;
	padding-bottom: 10px !important; /* 最優先 */
	margin-top: 40px !important; /* 最優先 */
	margin-bottom: 25px !important; /* 最優先 */
	font-size: 26px;
}

h3.wp-block-heading:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-image: linear-gradient(to left, #FFFF00 0%, #FF8C00 100%) !important; /* 最優先 */
}









h4.wp-block-heading:first-letter{
  font-size:1.8em;
  color:#FF8C00;
  position:relative;
  padding:0.2em 0.5em;
  background:linear-gradient(to right,#ccc,transparent);
}






h5.wp-block-heading {
  position: relative;
  overflow: hidden;
  padding-top: 20px !important; /* 最優先 */
  padding-bottom: 20px !important; /* 最優先 */
  padding-left: 130px !important; /* 最優先 */ 
  border: 1px solid #888;
}

h5.wp-block-heading:before {
  position: absolute;
  top: -150%;
  left: -100px;
  width: 200px;
  height: 300%;
  content: '';
  -webkit-transform: rotate(25deg);
  transform: rotate(25deg);
  background: #888;
}

h5.wp-block-heading span {
  font-size: 38px;
  font-size: 3.5rem;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: block;
  padding-top: 3px;
  padding-left: 16px;
  color: #fff;
}





h6.wp-block-heading {
    position: relative;
    padding-top: 20px !important; /* 最優先 */
    padding-bottom: 20px !important; /* 最優先 */
	padding-left: 20px !important; /* 最優先 */ 
    border-radius: 10px;
    background-color: #666;
    color: #fff;
}

h6.wp-block-heading:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 30px;
    width: 0;
    height: 0;
    border: 11px solid transparent;
    border-top: 11px solid #666;
}




ul.wp-block-list {
  padding: 0.5em;
  list-style: none !important; /* 最優先 */ 
}
ul.wp-block-list li {
  position: relative;
  padding: 0.5em 1em 0.5em 2.3em;
  margin-bottom:5px;
}
ul.wp-block-list li:after,
ul.wp-block-list li:before {
  position: absolute;
  content:'';
  transform: rotate(45deg);
}
ul.wp-block-list li:before {
  top: 0.7em;
  left: 0.2em;
  width: 12px;
  height: 12px;
  border:2px solid rgba(255,143,0,1);
}
ul.wp-block-list li:after {
  top: 0.9em;
  left: 0.7em;
  width: 14px;
  height: 14px;
  background: rgba(255,143,0,0.5);
  transform: rotate(60deg);
}



.post_content clearfix table{
	margin-top: 20px;
	margin-bottom: 20px !important; /* 最優先 */;
	border: 0px;
}

table.has-fixed-layout th{
background: linear-gradient(#fff, 10%, #eee);
}

table.has-fixed-layout table,
table.has-fixed-layout thead,
table.has-fixed-layout tbody,
table.has-fixed-layout tr,
table.has-fixed-layout td,
table.has-fixed-layout th {
    border-collapse: collapse; /* 1pxにする */
    border: 1px solid #888;
	padding:10px;
}








/* 初期状態：PC用抜粋を表示、モバイル用を非表示 */
.excerpt-desktop {
  display: block;
}
.excerpt-mobile {
  display: none;
}

/* モバイルでは切り替える */
@media screen and (max-width: 768px) {
  .excerpt-desktop {
    display: none;
  }
  .excerpt-mobile {
    display: block;
  }
}