.custom-full-width {
    margin-left: 60px;
    margin-right: 60px;
}

/* 文字の上に点 */
.dots {
  background-image: radial-gradient(circle at center, black 20%, transparent 20%); /* 点の色とサイズ調整 */
  background-position: top right; /* 点の位置 */
  background-repeat: repeat-x; /* 横方向に繰り返し */
  background-size: 1em 0.3em; /* 点の間隔とサイズ調整 */
  padding-top: .3em; /* 縦方向の位置調整 */
}

/* 新規のラベル */
.label-shinki {
    display: inline-block;
    background-color: #ff6600; /* オレンジ色 */
    color: #fff;
    padding: 5px 15px; /* パディングを大きくして余白を増やす */
    margin-left: 5px;
    border-radius: 4px;
    font-size: 1em; /* フォントサイズを大きく */
    font-weight: bold;
    transform: rotate(-12deg); /* 左に15度傾ける */
    transform-origin: left center; /* 回転の基準点を左中央に設定 */
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3); /* 目立つように影を追加 */
    text-align: center;
}

.label-seiyaku {
    background-color: #0056b3; /* 濃いブルー */
    color: #ffffff; /* 白文字 */
    padding: 5px 10px; /* ラベルの内側余白 */
    border-radius: 5px; /* 角を丸める（必要なら） */
    font-size: 14px; /* 文字サイズ */
    font-weight: bold; /* 太字 */
    display: inline-block; /* ラベルをブロック風に表示 */
    margin-left: 20px; /* 価格とラベルの間にスペースを追加 */
}

.pbox {
    border: none; /* 枠線をなしに設定 */
    width: 100%;
}

@media (max-width: 768px) {
  .setbt2 {
    flex-direction: column;
    align-items: center;
    padding: 0 3%; /* ← 少しだけ余白を残す（左右3%） */
		margin-top: 30px;  /* ← 上にスペースを追加 */
  }

  .setbt2 .imgbox {
    width: 100%;
    max-width: 600px; /* ← 最大600pxまで表示 */
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
  }

  .setbt2 .imgbox img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  ul.slider-bt-set.sp {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 15px;
    padding: 0;
    margin: 40px 0;  /* ← 上下に40pxの余白 */
    list-style: none;
    width: 100%;
  }

  ul.slider-bt-set.sp li {
    width: 90%;
    text-align: center;
  }

  ul.slider-bt-set.sp li img {
    width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 768px) {
  .slider-bt-set.sp {
    display: none !important;
  }
}

.midashi-b {
  border-bottom: 3px solid #f29600;
}

.voice-block {
  background-color: #fff;
  padding: 40px 18%;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.voice-block .top-tt2-sub {
  margin-bottom: 40px;
}

.voice-block .midashi-sub {
  font-size: 2em; /* 通常の1.5倍 */
}

.construction-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
}

/* 左：画像 */
.construction-img {
  flex: 1 1 45%;
  max-width: 500px;
}

.construction-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 右：テキスト */
.construction-text {
  flex: 1 1 50%;
}

.construction-text h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.construction-text p {
  font-size: 1em;
  margin-bottom: 15px;
}

.construction-text .readmore {
  text-align: center;
}

.construction-text .readmore a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f29600;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.construction-text .readmore a:hover {
  background-color: #d87e00;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .construction-intro {
    flex-direction: column;
  }
  .construction-text {
    text-align: left;
  }
}

.voices-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 3vw, 28px);
  padding: 0 20%; /* 左右に20%余白 */
}

.voice-card{
  background:#fff; 
  border-radius:16px; 
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  transition:transform .2s, box-shadow .2s;
}
.voice-card:hover{ 
  transform: translateY(-3px); 
  box-shadow:0 10px 24px rgba(0,0,0,.10); 
}

.voice-link{ 
  display:grid; 
  grid-template-rows:auto 1fr; 
  height:100%; 
  color:inherit; 
  text-decoration:none; 
}

.voice-thumb{ 
  aspect-ratio:4/3; /* ← 縦を少し大きめに */
  overflow:hidden; 
}
.voice-thumb img{ 
  width:100%; 
  height:100%; 
  object-fit:cover; 
  display:block; 
}

.voice-body{ 
  padding:20px; /* ← 内側の余白を拡大 */
  display:grid; 
  grid-template-rows:auto 1fr auto; 
  gap:10px; 
}

.voice-title{ 
  margin:0; 
  font-size:20px;   /* ← タイトルを大きく */
  line-height:1.5; 
}

.voice-excerpt{ 
  margin:0; 
  color:#555; 
  font-size:16px;   /* ← 抜粋も大きめに */
  line-height:1.8; 
}

.voice-date{ 
  font-size:14px;   /* ← 日付も少しアップ */
  color:#888; 
}

/* 0904*/
.page-description {
  text-align: center;   /* テキストを中央揃え */
  margin: 40px auto;    /* 上下40px、左右は自動（中央寄せ） */
}

/* このテンプレート用クラスを使って既定タイトルを非表示 */
.post-builder .entry-header,
.post-builder .page-header,
.post-builder .page-title { display: none; }

/* ----- 前後ナビ（横並び＋ボタン） v2：間隔を狭く ----- */
.post-nav {
  --pn-bg: #f29600;        /* 背景色 */
  --pn-bg-hover: #e28600;  /* ホバー色 */
  --pn-text: #fff;         /* 文字色 */
  --pn-border: #d97c00;    /* 枠線色 */
  display: flex;
  justify-content: center; /* ← 中央寄せ（space-betweenをやめる） */
  gap: 120px;                /* ← ボタン間の距離を狭く */
  margin: 24px 0;          /* 余白はお好みで調整可 */
  flex-wrap: wrap;
}

/* リンクが存在しない側（最初/最後の投稿）を消す */
.post-nav > div:empty { display: none; }

/* 伸び防止（左右に広がらない） */
.post-nav .nav-prev,
.post-nav .nav-next { flex: 0 0 auto; }

/* 右側も左寄せに（中央寄せと相性◎） */
.post-nav .nav-next { text-align: left; }

/* ボタン本体 */
.post-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--pn-bg);
  color: var(--pn-text);
  border: 1px solid var(--pn-border);
  border-radius: 999px;          /* ピル型 */
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transition: background .2s, box-shadow .2s, transform .06s, color .2s;
  white-space: nowrap;
}

/* ホバー/押下/フォーカス */
.post-nav a:hover {
  background: var(--pn-bg-hover);
  box-shadow: 0 6px 16px rgba(0,0,0,.16);
  transform: translateY(-1px);
}
.post-nav a:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.post-nav a:focus-visible {
  outline: 3px solid rgba(2,132,199,.6);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .post-nav {
    flex-direction: column;
    gap: 10px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .post-nav a { width: 100%; box-sizing: border-box; }
}

@media (min-width: 641px) {
  .post-nav {
    max-width: 520px;         /* コンテナ幅を固定 */
    margin: 24px auto;
    justify-content: space-between;
    gap: 8px;
  }
  .post-nav .nav-prev,
  .post-nav .nav-next { flex: 1 1 0; }
}

/* 構造見学会レポート用 */
 .wp-block-mito-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 横に2つ */
    gap: 12px; /* 余白 */
    margin: 1em 0;
  }
  .wp-block-mito-grid figure {
    margin: 0;
  }
  .wp-block-mito-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
  }
  @media (max-width: 768px) {
    .wp-block-mito-grid {
      grid-template-columns: 1fr; /* スマホでは1列 */
    }
  }

/* 建築中案内バナー（全体クリックタイプ） */
.genba-banner {
  text-align: center;
  margin: 25px 0; /* 上下のスペースをやや狭めに */
}

.genba-banner a {
  display: inline-block;
  color: #e26a00; /* 濃いめのオレンジ（文字） */
  font-weight: 500;
  font-size: 1.05em;
  text-decoration: none;
  border: 1.5px solid #ff9433; /* オレンジ枠線 */
  border-radius: 6px;
  padding: 9px 22px;
  transition: 0.3s ease;
  background-color: #ffffff; /* 背景を白に */
}

.genba-banner a:hover {
  background-color: #ffe6cc; /* 薄いオレンジベージュ */
  border-color: #ff7a00; /* hover時は濃い枠線 */
  color: #cc5500; /* 濃いオレンジ文字 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
/* ボタン全体の枠組みの設定 　260322 */
.contact-set2 {
    text-align: center; /* ←PCで中央寄せ */
}

.contact-set2 .button {
    display: inline-block;
    line-height: 0;
    margin: 0;
    max-width: 100%;
}

.contact-set2 .button img {
    display: block;
    width: 320px;
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

@media (max-width: 768px) {
    .contact-set2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        margin: 0;
        padding: 0;
    }

    .contact-set2 .button {
        width: 100%;
        max-width: 320px;
        margin: 0;
    }

    .contact-set2 .button:first-child {
        margin-top: 0;
    }

    .contact-set2 .button img {
        width: 100%;
        margin: 0;
    }
}

/* ボタン全体の配置設定 */
.button-container {
  display: flex;
  gap: 15px; /* ボタンとボタンの間隔 */
  flex-wrap: wrap; /* 画面が狭いときに自動で折り返す設定 */
  margin: 20px 0;
}

.link-button-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 30px 0;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* メインボタン：上品なネイビー */
.link-button-main {
  background: #2f4a5f;
  color: #fff;
  border: 1px solid #2f4a5f;
}

/* サブボタン：淡いグレージュ */
.link-button-sub {
  background: #f4f1ec;
  color: #3f4a50;
  border: 1px solid #cfc7bb;
}

.link-button:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

/* ZEB */
/* 見出し */
.lp-sdgs__business__box__title-02 {
  margin: 40px 0 18px;
  padding-left: 14px;
  border-left: 4px solid #426E86;
  color: #2f4a5f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.lp-sdgs__business__box__note {
  margin: 12px 0 20px;
  padding-left: 1.5em;
  line-height: 1.9;
}

/* 表＋説明文の囲み：PC版 */
.lp-sdgs__business__box__table-wrap {
  width: 780px;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

/* 表全体：PC版 */
.lp-sdgs__business__box__table {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 16px;
  margin-left: 0;
  border: 1px solid #d8ddd9;
  border-radius: 10px;
  background: #fff;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
}

/* Chrome / Edge / Safari用：PC版ではスクロールバーを非表示 */
.lp-sdgs__business__box__table::-webkit-scrollbar {
  display: none;
}

/* 各行を同じ列構成のグリッドにする */
/* PC版：左1列＋年度6列 */
.lp-sdgs__business__box__table__item {
  display: grid;
  grid-template-columns: 120px auto auto auto auto auto auto;
  width: 100%;
  min-width: 0 !important;
}

/* セル共通 */
.lp-sdgs__business__box__table__item__col {
  min-width: 0;
  min-height: 58px;
  padding: 12px 6px;
  border-right: 1px solid #d8ddd9;
  border-bottom: 1px solid #d8ddd9;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 各行の最後のセルは右線なし */
.lp-sdgs__business__box__table__item__col:last-child {
  border-right: none;
}

/* 最後の行は下線なし */
.lp-sdgs__business__box__table__item:last-child .lp-sdgs__business__box__table__item__col {
  border-bottom: none;
}

/* 1行目：年度行 */
.lp-sdgs__business__box__table__item:first-child .lp-sdgs__business__box__table__item__col {
  background: #f4f1ec;
  color: #2f4a5f;
  font-weight: 700;
}

/* 1列目：項目名 */
.lp-sdgs__business__box__table__item .lp-sdgs__business__box__table__item__col:first-child {
  background: #426E86;
  color: #fff;
  font-weight: 700;
}

/* 左上の空セルを「年度」にする */
.lp-sdgs__business__box__table__item:first-child .lp-sdgs__business__box__table__item__col:first-child {
  background: #2f4a5f;
  color: #fff;
  font-size: 0;
}

.lp-sdgs__business__box__table__item:first-child .lp-sdgs__business__box__table__item__col:first-child::before {
  content: "年度";
  font-size: 13px;
}

/* 数値行 */
.lp-sdgs__business__box__table__item:not(:first-child) .lp-sdgs__business__box__table__item__col:not(:first-child) {
  background: #fff;
  color: #426E86;
  font-size: 15px;
  font-weight: 700;
}

/* 説明文：表の右端に揃える */
.lp-sdgs__business__box__text {
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  margin-right: 0;
  margin-bottom: 32px;
  margin-left: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  box-sizing: border-box;
}

.lp-sdgs__business__box__text.right {
  text-align: right !important;
}

.lp-sdgs__business__box__text.margin {
  margin-bottom: 42px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .lp-sdgs__business__box__title-02 {
    margin: 32px 0 14px;
    font-size: 19px;
  }

  .lp-sdgs__business__box__table-wrap {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  /* SP版のみ横スクロールを有効にする */
  .lp-sdgs__business__box__table {
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
  }

  /* SP版ではスクロールバー表示を戻す */
  .lp-sdgs__business__box__table::-webkit-scrollbar {
    display: block;
  }

  /* SP版：横スクロール用に表幅を固定 */
  .lp-sdgs__business__box__table__item {
    display: grid;
    grid-template-columns: 105px 95px 95px 95px 95px 95px 95px;
    width: 675px;
    min-width: 675px !important;
  }

  .lp-sdgs__business__box__table__item__col {
    min-height: 52px;
    padding: 10px 6px;
    font-size: 13px;
  }

  .lp-sdgs__business__box__table__item:not(:first-child) .lp-sdgs__business__box__table__item__col:not(:first-child) {
    font-size: 15px;
  }

  .lp-sdgs__business__box__text {
    width: 100%;
    margin: 8px 0 32px;
  }

  .lp-sdgs__business__box__text.right {
    text-align: left !important;
  }
}

/* ZEBお問い合わせ */
/* お問い合わせボックス全体 */
.inq-box {
  max-width: 760px;
  margin: 40px auto;
  padding: 6px;
  background: linear-gradient(135deg, #426E86, #d8c9b7);
  border-radius: 18px;
}

/* 内側 */
.inr-box {
  padding: 34px 28px;
  background: #ffffff;
  border-radius: 14px;
  text-align: center;
}

/* 見出し */
.inr-box h3 {
  margin: 0 0 24px;
  color: #2f4a5f;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* ボタンリスト */
.f-two {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 各ボタン */
.f-two li {
  width: 100%;
  max-width: 280px;
}

/* リンク共通 */
.f-two li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

/* 電話ボタン */
.f-two li.tel a {
  background: #2f4a5f;
  color: #ffffff;
  border: 1px solid #2f4a5f;
}

/* お問い合わせフォームボタン */
.f-two li.frm a {
  background: #f4f1ec;
  color: #3f4a50;
  border: 1px solid #cfc7bb;
}

/* hover */
.f-two li a:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .inq-box {
    margin: 32px auto;
  }

  .inr-box {
    padding: 28px 20px;
  }

  .inr-box h3 {
    font-size: 20px;
  }

  .f-two {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .f-two li {
    max-width: 320px;
  }

  .f-two li a {
    min-height: 54px;
    font-size: 15px;
  }
}

/* PC表示：固定ヘッダーと本文の重なりを解消 　20260731対応*/
@media screen and (min-width: 769px) {
  body {
    padding-top: 170px;
  }
}

/* 模倣 　2026対応*/
body.home #plan { margin: 50px 0 75px; }
body.home #plan-flex { max-width: 1160px; gap: 20px; }
body.home #plan-flex .plan-box { width: calc((100% - 40px)/3); margin: 0 0 54px; box-shadow: 0 6px 22px rgb(24 48 27 / 9%); }
body.home .plan-title { background: #fff; }
body.home .plan-title div { border-top-color: var(--wg-accent) !important; }
body.home #plan-flex img:hover { opacity: .86; }

/* 施工事例 */
body.home #works { background: var(--wg-light) !important; padding-bottom: 80px; }
body.home #works-flex { max-width: 1160px; gap: 20px; }
body.home #works-flex .works-box { width: calc((100% - 40px)/3); margin: 0 0 26px; box-shadow: 0 6px 22px rgb(24 48 27 / 9%); }
body.home .works-info { padding: 24px 18px; background: #fff; }

/* 建築中の様子、主なメニュー、問い合わせ */
body.home #genba { padding-bottom: 75px; }
body.home #contents { background: var(--wg-deep) !important; padding-bottom: 80px; }
body.home #cont-flex { max-width: 1160px; gap: 20px; }
body.home #cont-flex .cont-box { width: calc((100% - 40px)/3); margin: 0 0 16px; }
body.home .cont-text { border-bottom: 0; min-height: 78px; height: auto; }
body.home .cont-text a::after { border-color: var(--wg-accent); }
body.home #contact { background: var(--wg-accent) !important; }
body.home #contact .top-tt3 h2 { color: #fff !important; }

/* テキストボタン（画像バナーは変更しない） */
body.home .readmore a:link, body.home .readmore a:visited,
body.home .readmore-n a:link, body.home .readmore-n a:visited,
body.home .readmore-sub a:link, body.home .readmore-sub a:visited { background: var(--wg-deep) !important; color: #fff !important; border-radius: 2px; }
body.home .readmore a:hover, body.home .readmore-n a:hover,
body.home .readmore-sub a:hover { background: #1f2d24 !important; }

/* フッター */
body.home footer { background: #26362e !important; color: #fff; }
body.home .footer-box li::before { border-color: #b5c5af; }

/* Tablet */
@media (min-width: 769px) and (max-width: 1050px) {
  body.home #plan-flex .plan-box,
  body.home #works-flex .works-box,
  body.home #cont-flex .cont-box { width: calc((100% - 20px)/2); }
}

/* SPでは既存モバイル用ヘッダーや専用ボタンに干渉しない */
@media (max-width: 768px) {
  body.home .inner { padding-left: 16px; padding-right: 16px; }
  body.home #news-top { margin: 48px 16px; }
  body.home #news-topl { width: 100%; }
  body.home #news-topr { padding: 12px 16px; }
  body.home .news-topline dt { width: 100%; }
  body.home .top-tt2 { padding: 40px 16px 16px !important; }
  body.home .top-tt3 { padding: 45px 16px 30px !important; }
  body.home .top-tt2 h2, body.home .top-tt3 h2 { font-size: 25px; }
  body.home #plan-flex, body.home #works-flex, body.home #cont-flex { padding-left: 16px; padding-right: 16px; gap: 16px; justify-content: center; }
  body.home #plan-flex .plan-box,
  body.home #works-flex .works-box,
  body.home #cont-flex .cont-box { width: 100%; max-width: 500px; margin-left: auto; margin-right: auto; }
  body.home #event { padding-bottom: 50px; }
  body.home .event-box { padding-left: 16px; padding-right: 16px; }
  body.home .event-img, body.home .event-info { width: 100%; padding-left: 0; }
}