/*
Theme Name: bunji renovate Child Theme
Template: astra
Version: 1.0.0
*/

header, .elementor-location-header {
    z-index: 9999 !important;
    position: relative; /* または fixed / sticky */
}

body {
  font-family: 'Noto Sans JP', sans-serif !important;
  /*font-family:'メイリオ', 'Meiryo', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;?*/
}

p, .entry-content p {
    margin-bottom: 1.5em;
}

p, .table-sec p {
  padding: 10px 0;
  margin-bottom: 0 !important;
}

 .page .site-content > .ast-container {
    max-width: 100vw !important;
 }


h4.table-ttl {
  padding: 15px 10px 10px 10px;
  margin: 0 !important;
}

.top_services_01 {
	max-width: 260px;
	max-height: 260px;
    background-image: url(https://bunji-renovate.spring-field.net/wp-content/uploads/2026/01/services_01.webp);
    background-position: center center;
    background-size: cover;
	margin: 0 auto;
clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0 100%, 0 30%);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.18);
}

.top_services_02 {
	max-width: 260px;
	max-height: 260px;
    background-image: url(https://bunji-renovate.spring-field.net/wp-content/uploads/2026/01/services_03.webp);
    background-position: center center;
    background-size: cover;
	margin: 0 auto;
clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0 100%, 0 30%);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.18);
}

.top_services_03 {
	max-width: 260px;
	max-height: 260px;
    background-image: url(https://bunji-renovate.spring-field.net/wp-content/uploads/2026/01/services_04.webp);
    background-position: center center;
    background-size: cover;
	margin: 0 auto;
clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0 100%, 0 30%);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.18);
}

.top_services_04 {
	max-width: 260px;
	max-height: 260px;
    background-image: url(https://bunji-renovate.spring-field.net/wp-content/uploads/2026/01/services_02.webp);
    background-position: center center;
    background-size: cover;
	margin: 0 auto;
clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0 100%, 0 30%);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.18);
}

.top_services_05 {
	max-width: 260px;
	max-height: 260px;
    background-image: url(https://bunji-renovate.spring-field.net/wp-content/uploads/2026/01/services_05.webp);
    background-position: center center;
    background-size: cover;
	margin: 0 auto;
clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0 100%, 0 30%);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.18);
}

.top_services_06 {
	max-width: 260px;
	max-height: 260px;
    background-image: url(https://bunji-renovate.spring-field.net/wp-content/uploads/2026/01/services_06.webp);
    background-position: center center;
    background-size: cover;
	margin: 0 auto;
clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0 100%, 0 30%);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.18);
}

.txt_sec {
  margin-bottom: 0 !important;
  padding-bottom: 2em !important;
}


.elementor-7 .elementor-element.elementor-element-44cf852 .elementor-heading-title,
.elementor-7 .elementor-element.elementor-element-4038b86 .elementor-heading-title {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
}

h3.elementor-2321 .elementor-heading-title {
  font-size: 1.3rem !important;
}

/* スクロールダウンの位置 */
.scroll {
  position: absolute;
  right: 50%;
  top: 10%;
  writing-mode: vertical-rl;
}
/* 線のアニメーション部分 */
.scroll::before {
  animation: scroll 2s infinite;
  background-color: #FFF;
  bottom: -115px;
  content: "";
  height: 100px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  width: 1px;
}

/* 線のアニメーション */
@keyframes scroll {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  51% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
}


/* コンテナ：中央揃え＋上下余白 */
.btn-container {
  text-align: right;
  margin: 2em auto;
}

/* 丸角ボタン＋矢印 */
.arrow-btn-rounded {
  --arrow-color: #333;
  background-color: #FFF;
  display: inline-block;
  border: 2px solid var(--arrow-color);
  padding: 10px 50px 10px 30px;
  color: var(--arrow-color);
  text-decoration: none;
  position: relative;
  transition: background-color 0.3s ease,
              border-color 0.3s ease,
              color 0.3s ease;
}

/* 右矢印 */
.arrow-btn-rounded::after {
  content: '';
  position: absolute;
  top: 50%; /* 中央配置 */
  right: 20px;
  transform: translateY(-50%) skewX(45deg);
  width: 15px;
  height: 3px;
  border-bottom: 1px solid var(--arrow-color);
  border-right: 1px solid var(--arrow-color);
  transition: right 0.3s ease, border-color 0.3s ease;
}

/* ホバー時 */
.arrow-btn-rounded:hover {
  background-color: #00a040;
  border-color: #FFF;
  color: #FFF;
}

.arrow-btn-rounded:hover::after {
  right: 15px; /* ホバーで矢印が右に少し移動 */
  border-color: #FFF; /* ホバーで矢印を白に */
}


/* ぶんじリノベイトとは　*/
.bg_house_01 {
	max-width: 80%;
	max-height: 500px;
    background-image: url(https://bunji-renovate.spring-field.net/wp-content/uploads/2026/01/aboutus_01.webp);
    background-position: center center;
    background-size: cover;
	margin: 0 auto;
clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0 100%, 0 30%);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.18);
}

span.step {
  font-size: 1.8rem;
  line-height: 1.5em;
}

span.marker {
    background-image: repeating-linear-gradient(-45deg,
        #a7fd65 0, #a7fd65 3px,
        transparent 3px, transparent 6px);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 50%;
    font-size: 1.2rem;
}

span.marker2 {
    background-image: repeating-linear-gradient(-45deg,
        #a7fd65 0, #a7fd65 3px,
        transparent 3px, transparent 6px);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 50%;
    font-size: 1rem;
}


/* 運営会社 */

table.m_table  {
  width: 100%;
  max-width: 100%;
  border: none;
  margin: 0 auto;
  padding: 0;
}

table.m_table th {
  text-align: left;
  border: none;
  color: #151616;
  font-weight: 400;
  max-width: 30% !important;
  border-bottom: solid 1px #433F37 !important;
}

table.m_table td {
  border-bottom: solid 1px #c8c8c4 !important;
  padding-bottom: 30px;
}


table.m_table tbody tr {
  display: flex;
  /* 改行を許可 */
  flex-wrap: wrap;
  font-weight: 400;
  padding: 1.25em 0.5em 0;

}

table.m_table tbody tr td, 
table.m_table tbody tr th {
  /* 30em < 100% -> 負の数 -> 無効 */
  /* 30em > 100% -> 正の数 */
  flex-basis: calc((30em - 100%) * 999);
  /* flex-basisが負の場合に幅を戻す */
  flex-grow: 1;
  border: none;
}

.custom-separator {
    border-top: 2px solid #000; /* 太さと色 */
    width: 50px; /* 横幅 */
    margin: 20px auto; /* 上下の間隔と中央寄せ */
}

.snow-monkey-form {
  width: 800px !important;
  margin:  20px auto;
}

/* アンカー */

.anchor-section {
    scroll-margin-top: 200px !important; /* ヘッダーの高さ + 20px くらいの余裕を持たせる */
}


.speechBubble1 {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  padding: 24px;
  border: 2px solid #000000;
  border-radius: 9999px;
  background-color: #ffffff;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}

.speechBubble1::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 20px 0 0 20px;
  border-color: #000000 transparent transparent;
  translate: -50% 100%;
}

.speechBubble1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 15.2px 0 0 15.2px;
  border-color: #ffffff transparent transparent;
  translate: calc(-50% + 0.4px) 100%;
}

.speechBubble2 {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  padding: 24px;
  border: 2px solid #000000;
  border-radius: 9999px;
  background-color: #ffffff;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}

.speechBubble2::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 20px 20px 0 0;
  border-color: #000000 transparent transparent;
  translate: -50% 100%;
}

.speechBubble2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 15.2px 15.2px 0 0;
  border-color: #ffffff transparent transparent;
  translate: calc(-50% - 0.4px) 100%;
}

.fukidashi-01-01 {
  position: relative;
  width: fit-content;
  padding: 12px 16px;
}
.fukidashi-01-01::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 100%;
  height: 50%;
  box-sizing: border-box;
  border: 2px solid #333333;
  border-top: none;
  border-bottom-right-radius: 50px; /* 左下の角丸 */
  border-bottom-left-radius: 50px; /* 右下の角丸 */
  translate: -50%;
}
.fukidashi-01-01::after {
  content: "";
  position: absolute;
  top: calc(100% + 8px); /* フキダシのサイズに応じて調整してください */
  left: 50%;
  width: 30px;
  height: 2px;
  box-sizing: border-box;
  background-color: #333333;
  box-shadow: 0 2px 0 #ffffff, 0 -2px 0 #ffffff;
  rotate: 50deg;
  translate: -50%;
}
.fukidashi-01-12 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.fukidashi-01-12::before {
  content: "";
  width: 30px;
  height: 2px;
  transform: rotate(60deg);
  box-sizing: border-box;
  background-color: #333333;
}
.fukidashi-01-12::after {
  content: "";
  width: 30px;
  height: 2px;
  transform: rotate(-60deg);
  box-sizing: border-box;
  background-color: #333333;
}
.fukidashi-01-03 {
  position: relative;
  width: fit-content;
  padding: 12px 16px;
  border-bottom: 2px solid #333333;
  background-color: #EDFBE2;
}
.fukidashi-01-03::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 15px;
  height: 15px;
  box-sizing: border-box !important;
  background-color: #EDFBE2; /* 背景色と同じ色を指定 */
  rotate: 135deg;
  translate: -50%;
}
.fukidashi-01-03::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  z-index: -1;
  width: 15px;
  height: 15px;
  box-sizing: border-box !important;
  border: 2px solid;
  border-color: #333333 #333333 transparent transparent;
  background-color: #ffffff;
  rotate: 135deg;
  translate: -50%;
}
.flow_design07 {
  display: flex;
  justify-content: center;
  width: 100%;
  align-items: center;
  padding: 0;
  margin: 0;
}

.flow07 {
  padding-left: 0;
}

.flow07 > li {
  list-style-type: none;
  display: flex;
}

.flow07 > li:not(:last-child) {
  margin: 0 0 20px 0;
}

.flow07 > li .icon07 {
  width: 110px;
  box-sizing: border-box;
  padding: 20px 10px 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFF;
  text-align: center;
  background: #38bb5c;
  border-radius: 5px 0 0 5px;
  position: relative;
  line-height: 125%;
  margin: 0;
}

.flow07 > li .icon07 img {
  width: 20%;
  padding-left: 5px;
}

.flow07 > li .icon07::after {
  content: ' ';
  width: 0;
  height: 0;
  border-top: 20px solid #38bb5c;
  position: absolute;
  bottom: -20px;
  left: 0;
}

.flow07 > li dl {
  padding: 0 30px 10px 30px;
  background: #FFFFFF;
  border-radius: 0 5px 5px 0;
  width: calc(100% - 115px);
}

.flow07 > li dl dt {
  padding: 10px 0 5px;
  margin: 0 0 8px;
  font-size: 1.1em;
  font-weight: 500;
  border-bottom: 1px solid #CCCCCC;
  position: relative;
}

.flow07 > li dl dt::after {
  content: '';
  width: 20%;
  height: 1px;
  position: absolute;
  bottom: -1px;
  left: 0;
  background-color: #38bb5c;
}

.flow07 > li dl dd {
  margin: 0px;
  padding: 0px;
  font-size: 0.9em;
}
.heading-6 {
    display: inline-block;
    position: relative;
    padding: 0 2.5em;
    color: #000000;
}

.heading-6::before,
.heading-6::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 50%;
    width: 45px;
    height: 1px;
    background-color: #3b3b3b;
}

.heading-6::before {
    left: 0;
}

.heading-6::after {
    right: 0;
}
.fusen-1 {
    display: inline-block;
    position: relative;
    padding: .5em 1.3em .5em 1em;
    background-color: #54b435;
    color: #ffffff;
}

.fusen-1::before {
    position: absolute;
    bottom: -1px;
    right: 9px;
    z-index: -1;
    transform: rotate(5deg);
    width: 70%;
    height: 50%;
    background-color: #d0d0d0;
    content: "";
    filter: blur(4px);
}
.fukidashi-02-03 {
  position: relative;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  border: 2px solid #333333;
  border-radius: 50%;
}
.fukidashi-02-03::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 70px;
  width: 15px;
  height: 15px;
  transform: rotate(135deg);
  box-sizing: border-box;
  background-color: #ffffff;
  color: #FFFFFF;
}
.fukidashi-02-03::after {
  content: "";
  position: absolute;
  top: 102%;
  left: 68px;
  width: 30px;
  height: 2px;
  transform: rotate(50deg);
  box-sizing: border-box;
  background-color: #333333;
  color: #FFFFFF;
}
.fukidashi-02-03 > .ornament {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: translateX(3px) translateY(3px); /* 位置をややズラす */
  border-radius: 50%;
  background-color: #FFFFFF;
  pointer-events: none; /* クリック不可にする（下のテキストに触れるように） */
  mix-blend-mode: multiply; /* 乗算 */
  color: #FFFFFF;
}
.fukidashi-02-02 {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  color: #ffffff;
  border-radius: 100% 100% 0 100%; /* 右下以外に角丸を指定 */
  background-color: #fc8a4a;
}
.txt_14 {
  font-size: 14px;
  font-weight: normal;
}
.txt_16 {
  font-size: 16px;
  font-weight: normal;
}
.txt_20 {
  font-size: 20px;
}
.txt_vertical {
  writing-mode: vertical-rl;
  letter-spacing: 0.25em;
  text-align: justify;
}
.bg_pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffe9a7;
  opacity: 0.4;
  z-index: -1;
}
.Diagonal_v2 {
  background: repeating-linear-gradient( -45deg, #ffc107, #ffc107 10px, #ffe9a7 10px, #ffe9a7 50px );
}


/* 右サイドバーのカテゴリーとタグ */
#secondary .widget {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    background: #f9f9f9;
}

#secondary .widget-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.cat-item {
  font-size: 0.82rem;
  letter-spacing: normal;
  line-height: 2em;
}

#secondary .tagcloud a {
    display: inline-block;
    margin: 3px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    font-size: 12pt;
}


.label-cloud {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.label-tag {
    display:inline-block;
    padding:6px 10px;
    border:1px solid #ccc;
    border-radius:4px;
    font-size:13px;
    text-decoration:none;
    color:#333;
    background:#fff;
}

.label-tag:hover {
    background:#f5f5f5;
}

.entry-content .wp-block-columns {
  padding: 0;
}

/* テーブル全体の影を消す */
.wp-block-table.is-style-regular,
.wp-block-table.is-style-regular table,
.wp-block-table.is-style-regular table td,
.wp-block-column figure.wp-block-table {
    box-shadow: none !important;  /* 影を完全に消す */
}

/* 外枠 figure の余白を調整 */
.wp-block-table.is-style-regular {
    margin-bottom: 0 !important;  /* 下の余白を消す */
}

/* テーブルセルの枠線とパディング */
.wp-block-table.is-style-regular table td {
    border: 1px solid #CCC;      /* 枠線の色 */
    padding: 8px 12px;               /* 内側の余白 */
    word-wrap: break-word;           /* 長い文字列も折り返す */
}

/* 列ごとの幅を指定 */
.wp-block-table.is-style-regular table tr td:first-child {
    width: 30%;  /* 左列の幅 */
}

.wp-block-table.is-style-regular table tr td:last-child {
    width: 70%;  /* 右列の幅 */
}

header.entry-header .entry-title {
  font-size: 1.5rem;
}


/* クラス名 .my-card-link を指定した親コンテナ */
.my-card-link {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    overflow: hidden !important;
    /* 横幅はElementor側の設定（31%等）に任せる */
}

/* 親にホバーしたら中の写真をズーム */
.my-card-link:hover .square-photo {
    transform: scale(1.1) !important;
}

/* 写真自体の設定 */
.square-photo {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* 文字の設定 */
.my-card-link .elementor-heading-title {
    text-align: center;
    padding: 0;
    color: #333;
}

/* 投稿 */
.wp-block-group.is-layout-grid > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.archive .entry-title, .blog .entry-title, .search .entry-title {
  font-size: 0.85rem;
  font-weight: 400;
}

.ast-article-post .post-thumb-img-content img {
  aspect-ratio: 37 / 30;
}

.ast-article-inner {
    padding: 1.2em;
}

.entry-title, .entry-title a {
   font-weight: 400;
}

#secondary .widget {
  padding: 2em;
  margin-bottom: 2em;
  background: none;
}

.elementor-kit-6 h3 {
  font-size: 0.9rem;
}


/* ==========================================
   1. お知らせ共通：カテゴリー枠と日付
   ========================================== */
/* カテゴリー枠（背景色あり・四角） */
.news-cat, 
.top-news-list .news-cat {
    display: inline-block !important;
    padding: 3px 10px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    border-radius: 0 !important;
    font-weight: bold !important;
    text-decoration: none !important;
    margin-right: 10px;
    border: none !important; /* 枠線を消して背景色メインに */
}

/* カテゴリーごとの色分け */
.cat-57 { background-color: #bbe4c7 !important; color: #333 !important; } /* お知らせ：薄緑 */
.cat-58 { background-color: #f1f0bc !important; color: #333 !important; } /* キャンペーン：薄黄 */
.news-cat:not(.cat-57):not(.cat-58) { background-color: #666 !important; color: #fff !important; } /* その他 */

/* 日付のスタイル */
.news-date {
    font-size: 14px;
    color: #888;
}

/* ==========================================
   2. 詳細ページ（シングル）：余白調整
   ========================================== */
/* PHPで本文の前に挿入するため、自動的にタイトルの下になります */
.custom-news-single-meta {
    display: flex !important;
    align-items: center;
    gap: 15px;
    margin-top: 5px !important;    /* タイトルとの間隔 */
    margin-bottom: 30px !important; /* 本文との間隔 */
}

/* 以前の order 関連の記述（.single-news .ast-article-single など）は削除してください */

/* ==========================================
   3. 一覧ページ（アーカイブ）：レイアウト
   ========================================== */
/* カテゴリーと日付の横並び */
.news-archive-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

/* 一覧のタイトルサイズ調整 */
.archive.post-type-archive-news .entry-title {
    font-size: 0.95rem; /* 少し大きく調整 */
    margin-top: 5px;
    margin-bottom: 20px;
}

/* 一覧・詳細共通：不要な「By 著者名」などを消す */
.single-news .entry-meta,
.archive.post-type-archive-news .entry-meta,
.ast-separate-container .ast-article-single .entry-meta {
    display: none !important;
}

/* アーカイブバナー（見出し）のサイズ */
.ast-archive-entry-banner .ast-container {
    font-size: 1.8rem;
    font-weight: bold;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* ==========================================
   4. トップページ（ショートコード）用
   ========================================== */
.top-news-list { list-style: none; padding: 0; margin: 0; }
.top-news-list li { display: flex; align-items: center; border-bottom: 1px solid #CCC; padding: 20px 0; gap: 15px; }
.top-news-list .news-date { flex-basis: 100px; flex-shrink: 0; }
.top-news-list a.news-title { text-decoration: none; color: #333; flex-grow: 1; }
.top-news-list a:hover { text-decoration: underline; }

/* トップページお知らせ：カテゴリー枠の幅を統一する */
.top-news-list .news-cat {
    display: inline-block !important;
    width: 110px;           /* ここで幅を固定（文字数に合わせて調整してください） */
    text-align: center;      /* 文字を中央寄せにする */
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-right: 20px;      /* タイトルとの間の余白 */
    flex-shrink: 0;          /* 幅が縮まないように固定 */
}

/* スマホ表示の調整 */
@media (max-width: 767px) {
    /* リスト項目を縦並びから横並び（折り返しあり）に変更 */
    .top-news-list li {
        flex-direction: row !important; /* 横並びを強制 */
        flex-wrap: wrap;              /* タイトルが長い場合は下に落ちるように */
        align-items: center;
        gap: 8px !important;           /* 要素間の隙間を狭く */
        padding: 15px 0 !important;
    }

    /* 日付の幅をスマホ用に自動調整（固定幅を解除） */
    .top-news-list .news-date {
        flex-basis: auto !important;
        margin-right: 5px !important;
        font-size: 12px;
    }

    /* カテゴリーアイコンの幅をスマホ用に最適化 */
    .top-news-list .news-cat {
        flex-basis: auto !important;   /* 100pxなどの固定幅を解除 */
        min-width: 0 !important;       /* 最小幅を解除 */
        width: auto !important;        /* 文字数に合わせる */
        padding: 2px 8px !important;   /* アイコン内の余白を少し小さく */
        margin-right: 5px !important;
        font-size: 10px !important;
    }

    /* タイトル：日付とアイコンの横に隙間があれば入り、なければ下へ */
    .top-news-list a.news-title {
        flex-basis: 100%;             /* タイトルを確実に2行目に送りたい場合は100% */
        /* もし「年月日・アイコン・タイトル」を全部1行に詰め込みたい場合は flex-basis: auto; にしてください */
        margin-top: 5px;
        font-size: 14px;
        line-height: 1.4;
    }
}

/* ==========================================
   5. ヘッダー突き抜け防止・スマホ調整
   ========================================== */
.site-header { z-index: 9999 !important; position: relative; }
.site-content { z-index: 1; position: relative; }

@media (max-width: 767px) {
    .top-news-list li { flex-direction: column; align-items: flex-start; gap: 5px; }
    .ast-archive-entry-banner .ast-container { font-size: 1.5rem; }
}

/* お知らせ一覧（アーカイブ）をカード全体クリック可能にする */
.archive.post-type-archive-news .ast-article-inner {
    position: relative; /* リンクを広げる基準点にする */
    transition: transform 0.2s ease; /* マウスを乗せた時の動き */
}

/* 写真についているリンクを記事全体に広げる */
.archive.post-type-archive-news .ast-article-inner a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* 他の要素より上に重ねる */
}

/* マウスを乗せた時のエフェクト（お好みで） */
.archive.post-type-archive-news .ast-article-inner:hover {
    opacity: 0.8; /* 少し薄くする */
    background-color: rgba(0,0,0,0.02); /* ほんの少し背景色をつける */
}

/* カテゴリーリンクが重なってクリックできなくなるのを防ぐ（必要であれば） */
.news-archive-meta {
    position: relative;
    z-index: 11; /* リンクより上に配置 */
}

/* お知らせ一覧ページのタイトル部分だけをセンターにする */
body.post-type-archive-news .ast-archive-description {
    text-align: center !important;
}

/* もし「お知らせカテゴリー」のページもセンターにしたい場合はこちら */
body.tax-news_category .ast-archive-description {
    text-align: center !important;
}


/* お知らせ・施工事例・カテゴリー・タグ一覧をカード全体クリック可能にする */
.archive .ast-article-inner,
.blog .ast-article-inner {
    position: relative;
    transition: all 0.2s ease;
}

/* 記事内の最初のリンク（通常は写真やタイトルのリンク）をカード全体に広げる */
.archive .ast-article-inner a::after,
.blog .ast-article-inner a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* マウスを乗せた時のエフェクト */
.archive .ast-article-inner:hover,
.blog .ast-article-inner:hover {
    opacity: 0.8;
    background-color: rgba(0,0,0,0.02);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* ほんの少し浮き上がる感じ */
}

/* カテゴリー名やタグ名自体のリンクを「記事詳細へのリンク」より上に置く */
/* これにより、カテゴリー名をクリックした時はそのカテゴリー一覧へ飛べます */
.news-archive-meta,
.ast-blog-single-element.ast-taxonomy-container {
    position: relative;
    z-index: 11;
}


/*-----form-----*/
.smf-form {
  max-width: 65%;
  margin: 20px auto;
  padding-top: 20px;
}

.smf-action .smf-button-control__control {
  background: #38BB5C !important;
}

.smf-item__description {
    font-size: 12px;
    background: #00a040;
    color: #fff;
    width: 40px;
    padding: 2px 5px;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
}

.smf-action .smf-button-control__control {
  font-size: 1em;
  background-color: var(--color_main);
  background-image: none;
  color: #fff;
  border: none;
  transition: box-shadow 0.25s;
  border-radius: 80px;
  display: inline-block;
  letter-spacing: 1px;
  line-height: 1.5;
  margin: 0;
  min-width: 15%;
  padding: 1em;
  position: relative;
  text-decoration: none;
  width: auto;
}

/*-----list-----*/
li_common li {
  font-weight:500;
  font-size:1.2em;
  line-height:1.8em;
  /*border-bottom: 1px solid #f6f6f6;*/
}

.li_common p.txt_s {
  font-weight:400;
  font-size:16px;
  line-height:1.8em;
  padding-bottom:1em;
}

.li_common p.txt_s_none {
  font-weight:400;
  font-size:1em;
  line-height:1.8em;
  padding-bottom:0;
}

ol.li_common_nest {
  font-weight:500;
  font-size:16px;
  line-height:1.8em;
  padding-top: 20px;
}

ul.nest {
list-style: none;
font-size:16px;
padding-bottom: 2em;
}

li.li_nest {
list-style-type: disc;
font-size: 1em;
font-weight: 400;
line-height: 1.8em;
}

.li_privacy li {
  font-weight: 600;
  font-size: 1.2em;
  line-height: 1.8em;
/*  border-bottom: 1px solid #f6f6f6;*/
  padding-top: 20px;
}

ol .li_rule li {
  font-weight: 500;
  font-size: 1em;
  line-height: 1.8em;
/*  border-bottom: 1px solid #f6f6f6;*/
  padding: 10px 0 10px 0;
}
ol .li_rule li ol .rule2 li {
  list-style-type: none;
  counter-increment: cnt;
  padding: 10px 0 10px 0;
  text-indent: -2.5em;
  padding-left: 2.5em;
  margin-left: -2em;
}

ol .li_rule li ol .rule2 li::before {
  content: "（"counter(cnt)"）";
}

ol .li_rule li ol .rule2 li ol .rule3 li {
  list-style-type: none;
  counter-increment: cnt;
  padding: 10px 0 10px 0;
  text-indent: -2.5em;
  padding-left: 2.5em;
  margin-left: -2em;
}

ol .li_rule li ol .rule2 li ol .rule3 li::before {
  content: " "counter(cnt)"）";
}


/*-----footer-----*/
.footer_left {
  margin: 2em 1em 1em;
  text-align: left;
}

.f_footer_logo {
  max-width: 60%;
  padding-bottom: 2em;
}

.f_name {
  font-size: 1rem;
  font-weight: 600;
}

.f_address,.f_tel {
  font-size: 0.85rem;
  line-height: 1.5em;
  padding-top: 0.5em;
} 

.f_section {
  margin:1em 0;
  display: flex;
  font-size: 0.8rem;
  gap: 10px;
}

.f_section a:link, a:visited {
  color: #222;
}

.f_section a:hover {
  color: #178E79;
  text-decoration:underline;
}

#astra-footer-menu {
  margin-top: 67px;
  font-size: 0.9em !important;
}

.ast-footer-copyright {
  text-align: left;
  padding-left: 8px;
}

@media (min-width: 921px) {
    .site-header {
        z-index: 99;
        position: fixed;
        width: 100%;
        top: 0;
    }

    .site-content {
     padding-top: 40px; /* Adjust according to your header's actual height */
    }
.ast-archive-entry-banner[data-post-type="post"] {
  padding-top: 10em;
  }
}


@media (max-width: 810px) {
.snow-monkey-form {
    width: 100% !important;
    margin: 20px auto;
}
.smf-form {
  max-width: 90%;
  margin: 20px auto;
  padding-top: 20px;
}

 table.m_table th {
    text-align: left;
    border: none;
    color: #433F37;
    font-size: 0.9em;
    max-width: 100%;
  }
  table.m_table td {
    padding-bottom: 1em;
  }
  #astra-footer-menu {
  margin-top: 50px !important;
  font-size: 0.9em !important;
}



  /* PCの列幅指定をリセット */
  .wp-block-table.is-style-regular table tr td:first-child,
  .wp-block-table.is-style-regular table tr td:last-child {
      width: 100% !important;
  }

  /* table構造を維持して縦化 */
  .wp-block-table.is-style-regular table,
  .wp-block-table.is-style-regular tbody,
  .wp-block-table.is-style-regular tr,
  .wp-block-table.is-style-regular td {
      display: block;
      width: 100%;
  }

  /* 行ボックス化をやめる（trの枠解除） */
  .wp-block-table.is-style-regular table tr {
      border: none;
      margin-bottom: 0;
  }

  /* セルの枠線を復活（本来の表っぽく） */
  .wp-block-table.is-style-regular table td {
      border: 1px solid #CCC;
      padding: 10px;
      box-sizing: border-box;
  }

  /* ラベル部分 */
  .wp-block-table.is-style-regular table tr td:first-child {
      font-weight: bold;
      background: #f5f5f5;
  }


.speechBubble1 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  padding: 15px;
  border: 2px solid #000000;
  border-radius: 9999px;
  background-color: #ffffff;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}
.speechBubble2 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  padding: 15px;
  border: 2px solid #000000;
  border-radius: 9999px;
  background-color: #ffffff;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}
}

@media screen and (max-width: 480px) {
table.m_table th {
  max-width: 100% !important;
  }
  table.m_table td {
    border-bottom: none !important;
  }
  #astra-footer-menu {
  margin-top: 0 !important;
  font-size: 0.9em !important;
}
}
