@charset "utf-8";

/* ======================================== */
/* 全体設定ここから */
/* ======================================== */
/* ==================== */
/* リセット・基本設定 */
/* ==================== */
*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  overflow-x: hidden;
  font-size: 16px;
}

/* ==================== */
/* リンクスタイル */
/* ==================== */
a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* ページ内リンクのズレ修正 */
.anchor {
  padding-top: 80px;
  margin-top: 80px;
}

/* ナビゲーションリンクのhover */
.header__nav a:hover,
.footer__nav a:hover {
  opacity: 1;
  color: #7c6c5d;
}

/* スライドアイテムのhover */
.swiper-slide a:hover {
  opacity: 1;
  transform: scale(1.02);
}

iframe {
  height: 500px;
}

/* ==================== */
/* リストスタイル */
/* ==================== */
ul li {
  list-style: none;
}

.policy ul li {
  list-style: disc;
  list-style-position: inside;
}

ol li {
  list-style-position: inside;
}

ul img {
  width: 100%;
  height: auto;
}

figure {
  overflow: hidden;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  text-align: center;
  font-size: clamp(13px, 1.2vw, 20px);
}

/* 横並びレイアウト */
ul.row__list {
  display: flex;
  gap: 3%;
  justify-content: center;
  align-items: flex-start;
}

ul.row__list span {
  display: flex;
  margin: auto;
}

/* 3カラムレイアウト */
ul.grid3__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 95%;
  margin: 2% auto 0;
  text-align: center;
  gap: 3% 2%;
}

/* figcaption付きの3カラムレイアウト */
ul.card__list,
ul.card3-2__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 95%;
  margin: 5% auto;
  text-align: center;
  gap: 3% 2%;
}

ul.card3-2__list li,
ul.card__list li {
  background-color: #fff;
  position: relative;
}

ul.card__list li::after,
ul.card3-2__list li::after {
  position: absolute;
  right: 8px;
  bottom: 1.5%;
  z-index: 1;
  content: "";
  width: 20px;
  height: 20px;
  background: url(../img/works/square.webp) no-repeat center center / contain;
}

ul.card3-2__list img,
ul.card__list img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

ul.card3-2__list figure {
  overflow: visible;
  height: 80%;
}

ul.card3-2__list figcaption {
  text-align: left;
  font-weight: 400;
  padding: 4%;
  font-size: clamp(13px, 1.3vw, 18px);
}

ul.card__list figcaption {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 3% 10%;
  font-weight: 600;
  align-items: flex-start;
  text-align: left;
}

ul.card__list figcaption p {
  font-size: clamp(12px, 1vw, 17px);
  margin-top: 1%;
}

ul.card3-2__list figcaption::after {
  width: 16px;
  height: 16px;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
}

/* 日付 */
.card__date {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

/* ==================== */
/* テキストスタイル */
/* ==================== */
.tx-br {
  color: #7c6c5d;
}

.fw-400 {
  font-weight: 400;
}

.fw-600 {
  font-weight: 600;
}

.fw-800 {
  font-weight: 800;
}

.tx-center {
  text-align: center;
}

.lh2 {
  line-height: 2;
}

/* ==================== */
/* レスポンシブ表示切替 */
/* ==================== */
.sp {
  display: none;
}

.mb {
  display: none;
}

.brown-btn.sp {
  display: none;
}

.sp1000 {
  display: none;
}

.brown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8%;
  min-height: 60px;
  min-width: 130px;
  background-color: #7c6c5d;
  color: #f9f9f9;
  white-space: nowrap;
  font-size: clamp(13px, 1.5vw, 24px);
  font-weight: 600;
  letter-spacing: 0.2em;
  position: relative;
  line-height: 1;
}

.brown-btn::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("../img/arrow.png") no-repeat center center / contain;
  flex-shrink: 0;
  margin-left: 12px;
  vertical-align: middle;
}

.brown-btn:hover {
  background-color: #a08c7a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.f-news .brown-btn {
  align-self: flex-end;
  margin-top: 2%;
}

.f-about .brown-btn {
  margin-left: auto;
  margin-right: 4%;
  padding: 1% 4%;
  width: 30%;
}

.f-slides .brown-btn {
  width: 30%;
  margin: 3% auto 0;
  min-width: 300px;
}

.f-our .brown-btn,
.topix .brown-btn,
.csr .brown-btn,
.town .brown-btn,
.news .brown-btn,
.teardown .brown-btn {
  width: 50%;
  margin: 3% auto 0;
  min-width: 320px;
}

.tel-mail .brown-btn {
  display: flex;
  font-size: 12px;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  padding: 0.5% 2%;
  min-height: 60px;
  height: 60px;
  border-radius: 5px;
  flex-shrink: 0;
}

.tel-mail .brown-btn::after {
  display: none;
}

.archive-link-btn {
  margin: 5% auto 0;
  width: 50%;
  min-width: 300px;
}

/* ==================== */
/* パンくずリスト */
/* ==================== */
.breadcrumb {
  background-color: #f2f4ef;
  padding: 15px 0;
  margin-bottom: 0;
}

.breadcrumb__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3%;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb__list li {
  display: flex;
  align-items: center;
  color: #7c6c5d;
}

.breadcrumb__list li a {
  color: #7c6c5d;
  transition: color 0.3s ease;
}

.breadcrumb__list li a:hover {
  color: #92cac0;
  opacity: 1;
}

.breadcrumb__list li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: #a08c7a;
  font-size: 16px;
}

.breadcrumb__list li:last-child {
  color: #a08c7a;
  font-weight: 600;
}

/* ======================================== */
/* 全体設定ここまで */
/* ======================================== */

/* ======================================== */
/* ヘッダーここから */
/* ======================================== */
header {
  width: 100%;
  height: 80px;
  background-color: transparent;
  align-items: center;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  transition: all 0.2s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__logo-btn {
  width: 30%;
  display: flex;
  align-items: center;
  height: 100%;
}

.header__logo a img {
  width: 100%;
  display: block;
}

.header__inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 4%;
  max-width: 1500px;
  margin: auto;
}

.hmb-btn {
  display: none;
}

.header__nav {
  display: flex;
  width: 100%;
  align-items: center;
  font-weight: 600;
}

.header__nav ul {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  gap: 2%;
}

/* ======================================== */
/* ヘッダーここまで */
/* ======================================== */

/* ======================================== */
/* フッターここから */
/* ======================================== */
footer {
  margin-top: 8%;
}

.footer__inner {
  display: flex;
  width: 90%;
  max-width: 1500px;
  margin: auto;
  gap: 5%;
}

.footer__company {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer__company a {
  display: flex;
  width: 80%;
}

.footer__logo {
  width: 100%;
}

.footer__company p {
  margin-top: 3%;
}

.footer__contact {
  width: 100%;
}

.footer__contact p:first-child {
  border-bottom: 1px solid #92cac0;
  padding-bottom: 1%;
}

.tel-mail {
  display: flex;
  margin-top: 1.5%;
  gap: 4%;
  align-items: flex-start;
}

.tel {
  margin-top: 1%;
  width: 100%;
}

.tel a {
  font-size: clamp(0px, 3vw, 40px);
  font-weight: 600;
  line-height: 1;
}

img.mailicon {
  width: 30px;
  margin-right: 2%;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 16/2.95;
  background: url(../img/footer-bg.png) no-repeat center bottom / contain;
  /* フォールバック: 相対パスで読み込めない場合はCSSで対応 */
}

.footer__nav ul {
  display: flex;
  padding-top: 10%;
  gap: 10%;
  white-space: nowrap;
  font-size: clamp(13px, 2vw, 18px);
}

.footer__nav ul li::before {
  content: "|";
  margin-right: 10%;
}

.footer__nav ul li:first-child::before {
  content: none;
}

.footer__bottom small {
  display: flex;
  margin-top: auto;
}

/* ======================================== */
/* フッターここまで */
/* ======================================== */

/* ======================================== */
/* トップページここから */
/* ======================================== */

.f-front h2 {
  align-items: center;
  color: #7c6c5d;
  font-size: 2em;
  line-height: 0.8;
  margin-top: 2%;
  text-align: center;
  font-size: clamp(24px, 4vw, 48px);
}

.f-front h2 > span {
  font-size: 15px;
  text-align: center;
}

/* ==================== */
/* ヒーローセクション */
/* ==================== */
.hero {
  width: 100%;
  min-height: 600px;
  margin-bottom: 150px;
  position: relative;
  z-index: 1;
}

.slide__content {
  width: 67%;
  max-width: 1400px;
  display: flex;
  margin-left: auto;
  margin-right: -2%;
  position: relative;
}

.swiper {
  display: flex;
}

.swiper-wrapper {
  width: 100%;
}

.swiper-slide {
  width: 50%;
  position: relative;
}

.hero__slide img {
  width: 100%;
}

.hero__slide.swiper {
  position: relative;
}

.subtitle {
  font-size: clamp(16px, 2vw, 40px);
  font-weight: 600;
  top: 25%;
  left: -20%;
  transform: translateX(-50%);
  position: absolute;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
}

img.bird {
  position: absolute;
  width: 20%;
  height: auto;
  top: 10%;
  left: -6%;
  z-index: 2;
}

img.hero-deco1 {
  position: absolute;
  width: 25%;
  height: auto;
  top: 70%;
  right: 5%;
  z-index: 2;
}

img.hero-deco2 {
  position: absolute;
  bottom: -10%;
  right: 2.5%;
  width: 40%;
}

/* ==================== */
/* NEWSセクション */
/* ==================== */
.f-news {
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 90%;
  top: 60%;
  left: -50%;
  align-items: flex-start;
  white-space: nowrap;
  z-index: 2;
  font-weight: 600;
}

.news__cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  text-align: center;
  padding: 4px 12px;
  border-radius: 10px;
  color: #f9f9f9;
  font-size: clamp(12px, 1vw, 13px);
  font-weight: 700;
  margin: 0 2%;
  background-color: #7c6c5d;
}

.cat-br {
  background-color: #7c6c5d;
}

.cat-red {
  background-color: #c89482;
}

.f-news__list {
  margin-top: 3%;
}

.f-news__item {
  font-size: clamp(13px, 1vw, 20px);
  margin-top: 1%;
}

.f-news__item a {
  display: block;
  padding: 8px 0;
  transition: opacity 0.3s ease;
}

.f-news__item a:hover {
  opacity: 0.7;
}

.f-news__item:first-child {
  margin-top: 0;
}

/* ==================== */
/* ABOUTセクション */
/* ==================== */

.f-about {
  position: relative;
  z-index: 2;
}

.f-about__content {
  display: flex;
  align-items: center;
  gap: 5%;
  max-width: 1700px;
}

img.f-about-deco {
  width: 50%;
  height: auto;
}

.f-about__text-box {
  margin-top: -20%;
  width: 100%;
}

.f-about__text-box h2 {
  transform: translate(-20%, -80%);
}

/* ==================== */
/* SERVICEセクション */
/* ==================== */
.f-service-works {
  width: 100%;
  margin-top: -10%;
}

.f-service-works h2 {
  color: #f9f9f9;
}

.f-service-works__box {
  background: url(../img/service-bg.webp) no-repeat center center / contain;
  width: 95%;
  margin: auto;
  aspect-ratio: 16/9.3;
  padding: 5% 0;
  max-width: 1500px;
}

.f-service__lists {
  display: flex;
  margin: 2% auto;
  width: 80%;
  gap: 2%;
  justify-content: center;
  flex-wrap: wrap;
}

.f-service__lists li {
  width: 31%;
}

.f-service__lists li img {
  width: 100%;
  transition: all 0.18s;
}

.f-service__lists li:hover img {
  opacity: 0.8;
}

.f-service__lists li:last-child:hover img {
  opacity: 1;
}

/* ==================== */
/* TOPIX/CSRスライダーセクション */
/* ==================== */

.f-slides {
  padding: 3% 0;
}

.f-slides:has(.csr-swiper) {
  background-color: #f2f4ef;
}

.f-slides .container {
  margin-inline: auto;
  width: 80%;
  position: relative;
  max-width: 1500px;
}

.f-slides .swiper-wrapper {
  gap: 2%;
  margin-top: 3%;
}

.f-slides .swiper-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  height: auto;
}

.f-slides .swiper-slide {
  transition: opacity 0.3s ease;
}

.f-slides .swiper-slide:hover {
  opacity: 0.7;
}

/* スライダーナビゲーションボタン */
.swiper-button-prev,
.swiper-button-next {
  width: 44px;
  height: 44px;
  background: #7c6c5d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 40%;
  z-index: 10;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: none;
  transition: background 0.2s;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border: solid #fff;
  border-width: 0 4px 4px 0;
  border-radius: 2px;
  padding: 0;
}

.swiper-button-prev::after {
  transform: rotate(135deg);
  margin-left: 2px;
}

.swiper-button-next::after {
  transform: rotate(-45deg);
  margin-right: 2px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #a08c7a;
}

.swiper-button-prev {
  left: -60px;
}

.swiper-button-next {
  right: -60px;
}

.f-slides h3 {
  font-size: clamp(16px, 1vw, 24px);
  font-weight: 600;
  margin-top: 2%;
}

.f-slides p {
  font-size: clamp(13px, 1vw, 16px);
  margin-top: 1%;
}

.csr {
  background-color: #f2f4ef;
}

.f-works {
  margin-top: 3%;
}

.f-works__lists {
  margin-top: 2%;
}

.f-works__lists ul {
  display: flex;
  gap: 1%;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 15px;
  width: 95%;
  margin: auto;
}

.f-works__lists ul li {
  background-color: #f9f9f9;
  color: #7c6c5d;
  white-space: nowrap;
  font-size: clamp(13px, 1.2vw, 16px);
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 15%;
  text-align: center;
}

.f-works__lists ul li a {
  display: block;
  padding: 5% 0;
  width: auto;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.f-works__lists ul li:hover {
  background-color: #655a4f;
  color: #f9f9f9;
}

.f-works__lists ul:nth-child(2) {
  margin-top: 1%;
}

.f-our {
  margin-top: 5%;
}

.f-our__content {
  max-width: 1500px;
  margin: auto;
}

.f-our__lists {
  display: flex;
  width: 80%;
  margin: 3% auto 0;
  gap: 3%;
}

.f-our__lists li img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.1s;
}

.f-our__lists li:hover img {
  opacity: 0.6;
}

.f-our__lists li h3 {
  font-weight: 600;
  font-size: 16px;
}

.f-our__lists li p {
  font-size: 14px;
}

small {
  color: #fff;
}

/* ======================================== */
/* トップページここまで */
/* ======================================== */

/* ======================================== */
/* 下層ページここから */
/* ======================================== */
.about .page-top,
.slogan .page-top {
  background: url(../img/about/top-about.webp) no-repeat right center / contain;
}

.service .page-top {
  background: url(../img/service/top-service.png) no-repeat right center /
    contain;
}

.planning .page-top {
  background: url(../img/service/planning/top-planning.webp) no-repeat right
    center / contain;
}

.landscape .page-top {
  background: url(../img/service/landscape/top-landscape.webp) no-repeat right
    center / contain;
}

.teardown .page-top {
  background: url(../img/service/teardown/top-teardown.webp) no-repeat right
    center / contain;
}

.manage .page-top {
  background: url(../img/service/manage/top-manage.webp) no-repeat right center /
    contain;
}

.exterior .page-top {
  background: url(../img/service/exterior/top-exterior.webp) no-repeat right
    center / contain;
}

.works .page-top {
  background: url(../img/works/top-works.webp) no-repeat right center / contain;
}

.profile .page-top {
  background: url(../img/profile/top-profile.webp) no-repeat right center /
    contain;
}

.csr .page-top {
  background: url(../img/csr/top-csr.webp) no-repeat right center / contain;
}

.town .page-top {
  background: url(../img/town/top-town.webp) no-repeat right center / contain;
}

.topix .page-top {
  background: url(../img/topix/top-topix.webp) no-repeat right center / contain;
}

.news .page-top {
  background: url(../img/news/top-news.webp) no-repeat right center / contain;
}

.policy .page-top {
  background: url(../img/policy/top-policy.webp) no-repeat right center /
    contain;
}

.contact .page-top {
  background: url(../img/contact/top-contact.webp) no-repeat right center /
    contain;
}

.map .page-top {
  background: url(../img/map/top-map.webp) no-repeat right center / contain;
}

/* works-各カテゴリ */
.gate .page-top {
  background: url(../img/works/top-gate.webp) no-repeat right center / contain;
}

.fence .page-top {
  background: url(../img/works/top-fence.webp) no-repeat right center / contain;
}

.garden .page-top {
  background: url(../img/works/top-garden.webp) no-repeat right center / contain;
}

.parking .page-top {
  background: url(../img/works/top-parking.webp) no-repeat right center /
    contain;
}

.slope .page-top {
  background: url(../img/works/top-slope.webp) no-repeat right center / contain;
}

.terrace .page-top {
  background: url(../img/works/top-terrace.webp) no-repeat right center /
    contain;
}

.total .page-top {
  background: url(../img/works/top-total.webp) no-repeat right center / contain;
}

.felling .page-top {
  background: url(../img/works/top-felling.webp) no-repeat right center /
    contain;
}

.facility .page-top {
  background: url(../img/works/top-facility.webp) no-repeat right center /
    contain;
}

.green .page-top {
  background: url(../img/works/top-green.webp) no-repeat right center / contain;
}

.other .page-top {
  background: url(../img/works/top-other.webp) no-repeat right center / contain;
}

.demolition .page-top {
  background: url(../img/works/top-demolition.webp) no-repeat right center /
    contain;
}

.page-top {
  position: relative;
  width: 100%;
  aspect-ratio: 16/4;
  margin-top: 80px;
}

.page-top::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: #f2f4ef;
  z-index: -1;
}

.page-title {
  position: absolute;
  top: 20%;
  right: 75%;
  display: flex;
  width: 15%;
  aspect-ratio: 1/1;
  background-color: #7c6c5d;
  color: #fff;
  border-radius: 15%;
  transform: rotate(45deg);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.planning .page-title,
.landscape .page-title,
.manage .page-title,
.exterior .page-title {
  font-size: clamp(13px, 1vw, 20px);
}

.town .page-title h2 {
  font-size: clamp(13px, 2.4vw, 100px);
  transform: translateX(5%) rotate(-45deg);
}

.manage .page-title h2 {
  line-height: 1.2;
}

.town .page-title h2 > span {
  display: block;
  line-height: 1.3;
  margin-top: 5%;
}

.map .page-title h2 {
  font-size: clamp(10px, 2.1vw, 80px);
}

.planning .page-title {
  background-color: #c89c82;
}

.landscape .page-title {
  background-color: #99a4ab;
}

.teardown .page-title {
  background-color: #ae9869;
}

.manage .page-title {
  background-color: #66687e;
}

.exterior .page-title {
  background-color: #6f8a42;
}

.landscape .page-title h2 {
  letter-spacing: 1em;
  text-indent: 1.3em;
}

.map .page-title {
  background-color: #92cac0;
}

.page-title h2 {
  margin-top: 10%;
  transform: rotate(-45deg);
  font-size: clamp(13px, 2.5vw, 100px);
  line-height: 0.9;
}

.page-title h2 span {
  font-size: clamp(8px, 1vw, 20px);
}

.policy .page-title h2 {
  font-size: clamp(13px, 2.2vw, 80px);
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.planning .page-title h2 {
  font-size: clamp(13px, 2vw, 80px);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* 背景 */

.bg-section {
  background-color: #f2f4ef;
  padding: 5% 0 10%;
}

.about .bg-section {
  background: linear-gradient(to bottom, #f2f4ef 50%, #f9f9f9 50%);
}

/* コンテナー */
.container {
  width: 70%;
  margin: 0 auto;
  max-width: 1300px;
}

.container-inner {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 95%;
  margin: 0 auto;
}

/* 下層ページh3 */
h3.h3-band {
  font-size: clamp(18px, 2.2vw, 32px);
  color: #fff;
  padding-left: 3%;
  padding-top: 0.5%;
  margin: 8% 0% 5%;
  background-color: #7c6c5d;
  font-weight: 400;
}

.slogan h3.h3-diamond {
  margin: 5% auto 10%;
}

h3.h3-diamond {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  background-color: #7c6c5d;
  color: #fff;
  width: 150px;
  border-radius: 13%;
  aspect-ratio: 1/1;
  /* margin: auto; */
  transform: rotate(45deg);
  margin-bottom: 5%;
  white-space: nowrap;
}

h3.h3-diamond span {
  display: inline-block;
  transform: rotate(-45deg);
}

.h3-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: auto auto auto 5%;
  max-width: 800px;
}

.h3-row > div {
  margin-left: 5%;
}

.planning h3.h3-band {
  background-color: #c89c82;
}

.landscape h3.h3-band {
  background-color: #99a4ab;
}

.teardown h3.h3-band {
  background-color: #ae9869;
}

.manage h3.h3-band {
  background-color: #66687e;
}

.map h3.h3-band {
  background-color: #92cac0;
}

.bg-section .container:first-child h3.h3-band {
  margin-top: 0;
}

/* ひと言メモ */
.memo {
  font-size: clamp(15px, 1.3vw, 20px);
  background-color: #fff;
  padding: 5% 8%;
  margin-top: 8%;
  display: flex;
  align-items: center;
  gap: 5%;
}

.memo > div:first-child p {
  writing-mode: vertical-rl;
  color: #7c6c5d;
  font-weight: 600;
  font-size: clamp(16px, 1.7vw, 25px);
}

.memo > div:nth-child(2) {
  flex: 1;
  position: relative;
  padding-left: 5%;
  --border-height: 0%;
}

.memo > div:nth-child(2)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: var(--border-height);
  background-color: #7c6c5d;
  transition: height 0.8s ease;
}

.memo > div:nth-child(2) {
  font-family: "Zen Old Mincho", serif;
  font-style: normal;
}

.memo > div:nth-child(2) h4 {
  font-weight: 600;
  font-size: clamp(14px, 3vw, 40px);
  margin-bottom: 5%;
}

.memo > img {
  max-width: 200px;
  width: 40%;
  height: auto;
  object-fit: contain;
}

/* ==========aboutここから========== */

.about__greeting {
  display: flex;
  flex-direction: column;
  justify-content: center;
  writing-mode: vertical-rl;
  width: 100%;
  position: relative;
  gap: 5%;
}

.about__greeting h3 {
  position: relative;
  font-size: clamp(18px, 3vw, 32px);
  color: #7c6c5d;
  margin: 20px 0;
}

.bird-about {
  position: absolute;
  top: 0;
  right: -60px;
  width: 50px;
  height: auto;
}

img.advisor {
  width: 15%;
  object-fit: contain;
}

.one-stop {
  display: flex;
  flex-direction: column;
  width: 70%;
  background-color: #fff;
  margin: 5% auto;
  padding: 3% 0;
  text-align: center;
}

.plants-soil-blocks {
  display: flex;
  flex-direction: row;
  gap: 5%;
  font-size: clamp(12px, 2vw, 30px);
  margin: auto;
  white-space: nowrap;
}

.plants-soil-blocks p span:first-child {
  font-size: clamp(20px, 4vw, 60px);
  vertical-align: middle;
}

.plants-soil-blocks p span:last-child {
  vertical-align: -20%;
  font-size: clamp(10px, 3vw, 40px);
}

.one-stop > p {
  font-size: clamp(12px, 2vw, 24px);
  margin-top: 1%;
}

.one-stop__title {
  font-size: clamp(16px, 3vw, 40px);
}

.one-stop__title {
  margin-top: 1%;
  font-size: clamp(16px, 5.5vw, 100px);
}

ul.flow {
  display: flex;
  justify-content: center;
  gap: 5%;
  width: 60%;
  max-width: 700px;
  margin: 0 auto 3%;
}

ul.flow li {
  text-align: center;
  background-color: #7c6c5d;
  color: #fff;
  width: 15%;
  border-radius: 5px;
  position: relative;
}

ul.flow li::after,
ul.flow li::before {
  position: absolute;
  display: block;
  content: "";
  width: 8px;
  height: 2px;
  background-color: #7c6c5d;
}

ul.flow li::before {
  top: 45%;
  right: -23%;
  transform: rotate(45deg);
}

ul.flow li::after {
  top: 65%;
  right: -23%;
  transform: rotate(-45deg);
}

ul.flow li:last-child::before,
ul.flow li:last-child::after {
  display: none;
}

.attempt {
  background: url(../img/about/attempt_bg.png) no-repeat center center / contain;
  width: 95%;
  aspect-ratio: 16/10;
  color: #fff;
  margin: 5% auto 0;
}

.attempt__inner {
  display: flex;
  width: 85%;
  padding: 7% 0;
  margin: auto;
  gap: 5%;
}

.attempt__inner h3 {
  writing-mode: vertical-rl;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.attempt__content {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.attempt__content > div {
  margin-top: 2%;
}

.attempt__content figcaption {
  font-size: clamp(12px, 1vw, 40px);
  margin-bottom: 5%;
}

.attempt__content ul:first-of-type {
  width: 90%;
  margin-top: 2%;
}

.attempt__content ul:nth-of-type(2) {
  gap: 1%;
  width: 70%;
}

.attempt__content h4 {
  font-size: clamp(14px, 2.5vw, 40px);
}

.about__slogan {
  margin-top: 5%;
  width: 100%;
}

.about__slogan__inner {
  display: flex;
  width: 90%;
  margin: auto;
}

.about__slogan__inner div {
  display: flex;
  flex-direction: column;
  margin: auto;
}

.about__slogan__inner h3 {
  display: flex;
  writing-mode: vertical-rl;
  font-size: clamp(18px, 3vw, 32px);
  color: #7c6c5d;
  width: 15%;
  align-items: center;
}

.about__slogan__inner > div > img {
  width: 100%;
}

.slogan-link {
  display: flex;
  width: 70%;
  min-height: 50px;
  background-color: #7c6c5d;
  color: #fff;
  font-weight: 600;
  padding: 2%;
  margin: 5% auto 0;
}

.slogan-link::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("../img/arrow.png") no-repeat center center / contain;
  flex-shrink: 0;
  margin-left: 10%;
}

/* スローガンページ */
.slogan__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2%;
  width: 80%;
  max-width: 1400px;
  margin: 0 auto 8%;
}

.slogan__list img {
  width: 100%;
}

/* ==========aboutここまで========== */

/* ==========sesrviceここから========== */
.service__lead {
  text-align: center;
  font-size: clamp(16px, 2vw, 24px);
}

ul.service__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2% 1%;
  max-width: 1400px;
  margin: 5% auto 0;
}

ul.service__list li {
  width: 28%;
}

ul.service__list img {
  width: 100%;
}

/* プランニング・アイデアここから */

.planning-flow p:nth-child(2) {
  font-size: clamp(16px, 5vw, 24px);
}

ul.consul__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

ul.consul__list li {
  display: flex;
  gap: 3%;
  min-height: 80px;
  align-items: center;
}

ul.consul__list li > h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #7c6c5d;
  font-weight: 600;
  color: #fff;
  width: 30%;
  border-radius: 5px;
  min-height: 80px;
  padding: 10px;
  text-align: center;
}

ul.consul__list li > p {
  flex: 1;
}

.plan {
  display: flex;
  gap: 3%;
  align-items: flex-start;
}

.plan > div {
  flex: 1;
}

.plan > div > p:first-child {
  margin-top: 0;
}

.plan > img {
  flex-shrink: 1;
  max-width: 50%;
  height: auto;
}

.cost > div:nth-child(2) {
  display: flex;
  gap: 4%;
  align-items: flex-start;
}

.cost h4 {
  margin-bottom: 5%;
}

.cost > div > img {
  object-fit: contain;
  max-width: 40%;
}

/* プランニング・アイデアここまで */

/* 造園ここから */

.landscape__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5% 3%;
  max-width: 1000px;
  width: 100%;
  margin: 5% auto 10%;
}

.landscape__list li {
  background-color: #fffffd;
  border-radius: 25px;
  text-align: center;
  gap: 5%;
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5%;
}

.landscape__list li img {
  width: 30%;
  height: auto;
}

.landscape__list li h4 {
  color: #277570;
  font-size: clamp(16px, 1.6vw, 25px);
}

.calendar {
  background-color: #fff;
  padding: 5% 7%;
}

.calendar img {
  width: 100%;
}

/* 造園ここまで */

/* 土地管理・家屋解体ここから */
.manage__lead {
  text-align: center;
}

.green-title {
  font-size: clamp(16px, 3.8vw, 40px);
  color: #277570;
}

ul.promise__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: auto;
}

ul.promise__list li {
  display: flex;
  gap: 3%;
}

ul.promise__list li img {
  width: 10%;
  height: 10%;
}

ul.promise__list h4 {
  font-size: clamp(14px, 2.5vw, 30px);
  margin-bottom: -3%;
}

table.fee__table {
  background-color: #fff;
  width: 100%;
  padding: 3% 6%;
  border-spacing: 10px;
}

.row__list span {
  color: #999999;
}

ul.demolition__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

ul.demolition__list > li span {
  color: #277570;
  font-weight: 600;
}

ul.demolition__list > li > *:not(span) {
  text-indent: 2em;
}

/* 土地管理・家屋解体ここまで */

/* 外構ここから */

.exterior__lead h3 {
  color: #005130;
  margin-bottom: 5%;
}

.exterior__lead ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 85%;
  margin: auto;
}

.exterior__lead ul li {
  background-color: #6f8a42;
  padding: 1.5% 0;
  border-radius: 10px;
  color: #fff;
}

ul.exterior__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1%;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
}

ul.exterior__list li {
  width: 100%;
  padding: 3%;
  display: flex;
  align-items: center;
  justify-content: center;
}

ul.exterior__list li img {
  object-fit: contain;
  max-width: 100%;
  aspect-ratio: 16/13;
  background-color: #fff;
  padding: 2.5%;
}

ul.exterior__list li figcaption {
  margin-top: 2%;
}

.lend-post {
  background-color: #fff;
  padding: 5% 7%;
}

.lend-post h4 {
  text-align: center;
  font-size: clamp(16px, 3vw, 32px);
}

.lend-post div {
  display: flex;
  gap: 3%;
  margin-top: 20px;
}

.lend-post img {
  width: 40%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
}

.exterior .brown-btn {
  width: 70%;
  align-self: center;
}

/* 外構ここまで */
/* ==========serviceここまで========== */

/* ==========profileここから========== */
table.profile__table {
  width: 100%;
  background-color: #fff;
  padding: 3%;
  border-collapse: collapse;
  text-align: left;
}

table.profile__table th,
table.profile__table td {
  padding: 1.5% 0;
  border-bottom: 1px solid #92cac0;
  padding-left: 5%;
}

table.profile__table tr:last-child th,
table.profile__table tr:last-child td {
  border-bottom: none;
}

table.profile__table th {
  width: 25%;
  white-space: nowrap;
}

/* ==========profileここまで========== */

/* ==========csrここから========== */

/* ==========csrここまで========== */

/* ==========お知らせここから========== */
ul.news__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-weight: 600;
}

ul.news__list li a {
  display: flex;
  gap: 20px;
}

ul.news__list li div {
  display: flex;
  gap: 20px;
}

ul.news__list:not(span) {
  font-size: clamp(12px, 1.2vw, 20px);
}

/* ==========お知らせここまで========== */

/* ==========サイトマップここから========== */
ul.map__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2%;
  width: 90%;
  margin: auto;
}

ul.map__list li {
  display: flex;
  padding: 2% 0;
  align-items: center;
}

ul.map__list li a {
  transition: all 0.3s ease;
}

ul.map__list li::before {
  display: inline-flex;
  content: "";
  width: 8%;
  aspect-ratio: 1/1;
  background: url(../img/map-arrow.webp) no-repeat center center / contain;
  margin-right: 3.5%;
  margin-bottom: 1%;
}

ul.map__list li:hover a {
  text-decoration: underline;
}

ul.map__list li:hover::before {
  filter: brightness(0.7);
}

/* ==========サイトマップここまで========== */

/* ==========お問い合わせここから========== */
.tel-contact {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 600;
  color: #b4364b;
}

/* ==========お問い合わせここまで========== */

/* ==================== */
/* 詳細記事ページ */
/* ==================== */
/* 日付 */
.post-meta {
  margin: 1rem 0 2rem;
}

.post-meta time {
  font-size: 0.85rem;
  color: #999;
  font-weight: 400;
}

/* サムネイル */
.post-thumbnail {
  max-width: 600px;
  width: 40%;
  min-width: 300px;
  margin: 0 auto 2rem;
}

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

/* 見出し */
h2.wp-block-heading {
  font-size: clamp(24px, 2vw, 48px);
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/* ------------------------------------------
 * TOPIX / CSR / OUR TOWN 個別ページのスタイリング
 * ------------------------------------------ */
/* リンクスタイル - 下線とhover時の水色 */
main.topix .post-content a,
main.csr .post-content a,
main.town .post-content a {
  display: inline-block;
  text-decoration: underline;
  color: inherit;
  transition: color 0.3s ease;
  margin-top: 10px;
  font-weight: 600;
}

main.topix .post-content a:hover,
main.csr .post-content a:hover,
main.town .post-content a:hover {
  color: #92cac0;
  opacity: 1;
}

/* h2タグのスタイル - 左ボーダーで強調 */
main.topix .post-content h2,
main.csr .post-content h2,
main.town .post-content h2 {
  border-left: 4px solid #92cac0;
  padding-left: 1rem;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 600;
  line-height: 1.4;
}

/* 施工事例（post_type=works）の本文内の画像レイアウト */
/* インポートした過去の投稿（legacy-layout）のみ3列レイアウトを適用 */

/* JSで囲まれたimage-with-captionコンテナ（インポートした施工事例のみ） */
main.gate .post-content.legacy-layout .image-with-caption,
main.fence .post-content.legacy-layout .image-with-caption,
main.garden .post-content.legacy-layout .image-with-caption,
main.parking .post-content.legacy-layout .image-with-caption,
main.slope .post-content.legacy-layout .image-with-caption,
main.terrace .post-content.legacy-layout .image-with-caption,
main.total .post-content.legacy-layout .image-with-caption,
main.felling .post-content.legacy-layout .image-with-caption,
main.facility .post-content.legacy-layout .image-with-caption,
main.green .post-content.legacy-layout .image-with-caption,
main.other .post-content.legacy-layout .image-with-caption {
  display: inline-block;
  vertical-align: top;
  width: calc(33.333% - 2.15rem);
  margin: 1rem;
  box-sizing: border-box;
}

/* コンテナ内の画像（インポートした施工事例のみ） */
main.gate .post-content.legacy-layout .image-with-caption .wp-block-image,
main.fence .post-content.legacy-layout .image-with-caption .wp-block-image,
main.garden .post-content.legacy-layout .image-with-caption .wp-block-image,
main.parking .post-content.legacy-layout .image-with-caption .wp-block-image,
main.slope .post-content.legacy-layout .image-with-caption .wp-block-image,
main.terrace .post-content.legacy-layout .image-with-caption .wp-block-image,
main.total .post-content.legacy-layout .image-with-caption .wp-block-image,
main.felling .post-content.legacy-layout .image-with-caption .wp-block-image,
main.facility .post-content.legacy-layout .image-with-caption .wp-block-image,
main.green .post-content.legacy-layout .image-with-caption .wp-block-image,
main.other .post-content.legacy-layout .image-with-caption .wp-block-image {
  display: block;
  width: 100%;
  margin: 0;
}

main.gate .post-content.legacy-layout .image-with-caption .wp-block-image img,
main.fence .post-content.legacy-layout .image-with-caption .wp-block-image img,
main.garden .post-content.legacy-layout .image-with-caption .wp-block-image img,
main.parking
  .post-content.legacy-layout
  .image-with-caption
  .wp-block-image
  img,
main.slope .post-content.legacy-layout .image-with-caption .wp-block-image img,
main.terrace
  .post-content.legacy-layout
  .image-with-caption
  .wp-block-image
  img,
main.total .post-content.legacy-layout .image-with-caption .wp-block-image img,
main.felling
  .post-content.legacy-layout
  .image-with-caption
  .wp-block-image
  img,
main.facility
  .post-content.legacy-layout
  .image-with-caption
  .wp-block-image
  img,
main.green .post-content.legacy-layout .image-with-caption .wp-block-image img,
main.other .post-content.legacy-layout .image-with-caption .wp-block-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* コンテナ内のキャプション（p）（インポートした施工事例のみ） */
main.gate .post-content.legacy-layout .image-with-caption > p,
main.fence .post-content.legacy-layout .image-with-caption > p,
main.garden .post-content.legacy-layout .image-with-caption > p,
main.parking .post-content.legacy-layout .image-with-caption > p,
main.slope .post-content.legacy-layout .image-with-caption > p,
main.terrace .post-content.legacy-layout .image-with-caption > p,
main.total .post-content.legacy-layout .image-with-caption > p,
main.felling .post-content.legacy-layout .image-with-caption > p,
main.facility .post-content.legacy-layout .image-with-caption > p,
main.green .post-content.legacy-layout .image-with-caption > p,
main.other .post-content.legacy-layout .image-with-caption > p {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5rem;
  text-align: left;
}

/* JSで囲まれていない通常の画像（キャプションなし）（インポートした施工事例のみ）※カラムブロック内は除外 */
main.gate
  .post-content.legacy-layout
  > .wp-block-image:not(.image-with-caption .wp-block-image),
main.fence
  .post-content.legacy-layout
  > .wp-block-image:not(.image-with-caption .wp-block-image),
main.garden
  .post-content.legacy-layout
  > .wp-block-image:not(.image-with-caption .wp-block-image),
main.parking
  .post-content.legacy-layout
  > .wp-block-image:not(.image-with-caption .wp-block-image),
main.slope
  .post-content.legacy-layout
  > .wp-block-image:not(.image-with-caption .wp-block-image),
main.terrace
  .post-content.legacy-layout
  > .wp-block-image:not(.image-with-caption .wp-block-image),
main.total
  .post-content.legacy-layout
  > .wp-block-image:not(.image-with-caption .wp-block-image),
main.felling
  .post-content.legacy-layout
  > .wp-block-image:not(.image-with-caption .wp-block-image),
main.facility
  .post-content.legacy-layout
  > .wp-block-image:not(.image-with-caption .wp-block-image),
main.green
  .post-content.legacy-layout
  > .wp-block-image:not(.image-with-caption .wp-block-image),
main.other
  .post-content.legacy-layout
  > .wp-block-image:not(.image-with-caption .wp-block-image) {
  display: inline-block;
  vertical-align: top;
  width: calc(33.333% - 2.15rem);
  margin: 1rem;
  box-sizing: border-box;
}

/* 画像のスタイル（カラムブロック内は除外）（インポートした施工事例のみ） */
main.gate .post-content.legacy-layout > .wp-block-image img,
main.gate .post-content.legacy-layout > .image-with-caption .wp-block-image img,
main.fence .post-content.legacy-layout > .wp-block-image img,
main.fence
  .post-content.legacy-layout
  > .image-with-caption
  .wp-block-image
  img,
main.garden .post-content.legacy-layout > .wp-block-image img,
main.garden
  .post-content.legacy-layout
  > .image-with-caption
  .wp-block-image
  img,
main.parking .post-content.legacy-layout > .wp-block-image img,
main.parking
  .post-content.legacy-layout
  > .image-with-caption
  .wp-block-image
  img,
main.slope .post-content.legacy-layout > .wp-block-image img,
main.slope
  .post-content.legacy-layout
  > .image-with-caption
  .wp-block-image
  img,
main.terrace .post-content.legacy-layout > .wp-block-image img,
main.terrace
  .post-content.legacy-layout
  > .image-with-caption
  .wp-block-image
  img,
main.total .post-content.legacy-layout > .wp-block-image img,
main.total
  .post-content.legacy-layout
  > .image-with-caption
  .wp-block-image
  img,
main.felling .post-content.legacy-layout > .wp-block-image img,
main.felling
  .post-content.legacy-layout
  > .image-with-caption
  .wp-block-image
  img,
main.facility .post-content.legacy-layout > .wp-block-image img,
main.facility
  .post-content.legacy-layout
  > .image-with-caption
  .wp-block-image
  img,
main.green .post-content.legacy-layout > .wp-block-image img,
main.green
  .post-content.legacy-layout
  > .image-with-caption
  .wp-block-image
  img,
main.other .post-content.legacy-layout > .wp-block-image img,
main.other
  .post-content.legacy-layout
  > .image-with-caption
  .wp-block-image
  img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* figcaptionがある場合（インポートした施工事例のみ） */
main.gate .post-content.legacy-layout .wp-block-image figcaption,
main.fence .post-content.legacy-layout .wp-block-image figcaption,
main.garden .post-content.legacy-layout .wp-block-image figcaption,
main.parking .post-content.legacy-layout .wp-block-image figcaption,
main.slope .post-content.legacy-layout .wp-block-image figcaption,
main.terrace .post-content.legacy-layout .wp-block-image figcaption,
main.total .post-content.legacy-layout .wp-block-image figcaption,
main.felling .post-content.legacy-layout .wp-block-image figcaption,
main.facility .post-content.legacy-layout .wp-block-image figcaption,
main.green .post-content.legacy-layout .wp-block-image figcaption,
main.other .post-content.legacy-layout .wp-block-image figcaption {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5rem;
}

/* 家屋解体 */

.demolition .wp-block-image {
  display: inline-block;
  width: 49.5%;
}

/* ==================== */
/* WordPressブロックエディタのサポート */
/* ==================== */
/* カラムブロック */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin-bottom: 1.75em;
}

.wp-block-column {
  flex-basis: 0;
  flex-grow: 1;
  min-width: 0;
}

/* 2カラム */
.wp-block-columns:not(.is-not-stacked-on-mobile)
  > .wp-block-column:not(:only-child) {
  flex-basis: calc(50% - 1em);
}

/* 3カラム以上 */
.wp-block-columns.has-3-columns > .wp-block-column {
  flex-basis: calc(33.33% - 1.33em);
}

.wp-block-columns.has-4-columns > .wp-block-column {
  flex-basis: calc(25% - 1.5em);
}

/* カラム内の画像 */
.wp-block-column .wp-block-image img {
  max-width: 100%;
  height: auto;
}

/* ------------------------------------------
 * demolitionカテゴリー（2025年11月20日までの投稿）
 * 2カラムレイアウト（すべてのスタイルより優先）
 * ------------------------------------------ */
.post-content p {
  padding-bottom: 10px;
}

/* work-before-after内の構造に対応 - グリッドで2列レイアウト */
main.demolition .post-content.demolition-old .work-before-after {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2rem !important;
  margin-bottom: 3rem;
}

/* 1つ目と2つ目のpタグ（作業前セット）を1列目に縦並び */
main.demolition
  .post-content.demolition-old
  .work-before-after
  > p:nth-child(1) {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

main.demolition
  .post-content.demolition-old
  .work-before-after
  > p:nth-child(2) {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

/* 3つ目と4つ目のpタグ（作業完了後セット）を2列目に縦並び */
main.demolition
  .post-content.demolition-old
  .work-before-after
  > p:nth-child(3) {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

main.demolition
  .post-content.demolition-old
  .work-before-after
  > p:nth-child(4) {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

/* pタグの基本スタイル */
main.demolition .post-content.demolition-old .work-before-after > p {
}

/* 画像のスタイル */
main.demolition .post-content.demolition-old .work-before-after img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* strongのスタイル */
main.demolition .post-content.demolition-old .work-before-after strong {
  display: block !important;
  margin-bottom: 0.5rem !important;
  font-weight: bold !important;
  font-size: 1.1em !important;
}

/* 旧スタイル（他の投稿用に念のため残す） */
main.demolition .post-content.demolition-old > figure,
main.demolition .post-content.demolition-old > .wp-block-image,
main.demolition .post-content.demolition-old > .image-with-caption,
main.demolition .post-content.demolition-old > p > img {
  display: inline-block !important;
  width: calc(50% - 1rem) !important;
  vertical-align: top !important;
  margin: 0.5rem !important;
  box-sizing: border-box !important;
}

main.demolition .post-content.demolition-old img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* レスポンシブ対応 */
@media (max-width: 781px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) {
    flex-direction: column;
  }

  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* 今日までの旧投稿だけ 2 カラム化 */
.single-works.demo-oldpost .entry-content {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.single-works.demo-oldpost .entry-content p {
  width: 45%;
  margin-bottom: 16px;
}

.single-works.demo-oldpost .entry-content p img {
  width: 100%;
  display: block;
}

@media screen and (max-width: 459px) {
  .single-works.demo-oldpost .entry-content p {
    width: 95%;
  }
}

/* ページネーション */
.page-numbers {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  margin: auto;
}

/* 現在のページ番号のスタイル */
.page-numbers .current {
  color: #92cac0;
  font-weight: bold;
  pointer-events: none;
  /* hover無効化 */
}

/* ページ番号のhoverスタイル（currentは除外） */
.page-numbers li:not(.current) a:hover {
  color: #92cac0;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 10%;
  color: #777;
}

.nav-links {
  display: flex;
}

.prev-icon,
.next-icon {
  display: inline-block;
  width: 4px;
  height: auto;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 4px;
}

.cls-1 {
  fill: none;
  stroke: #777;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 13px;
}

.next-icon .cls-1,
.prev-icon .cls-1 {
  transition: all 0.4s ease;
}

.next-icon:hover .cls-1,
.prev-icon:hover .cls-1 {
  stroke: #92cac0;
}

/* ======================================== */
/* 下層ページここまで */

.weeds-content {
  width: 100%;
  background-color: #0d0701;
  margin-top: -1%;
  padding: 3%;
}

.weeds-title {
  display: flex;
  margin: auto;
  width: 100%;
}

.weeds-box {
  display: flex;
  width: 100%;
  background-color: #fff;
  margin-top: 10%;
}

@media screen and (max-width: 768px) {
  .weeds-box {
    flex-direction: column;
    padding-top: 5%;
  }
}

.weeds-box img {
  width: 40%;
  height: auto;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .weeds-box img {
    margin: auto;
  }
}

.weeds-box dl {
  padding: 5% 2%;
  width: 100%;
}

.weeds-box dt {
  font-weight: 600;
  font-size: 18px;
  padding-bottom: 1%;
  margin-bottom: 3%;
  border-bottom: orange solid 1px;
}

/* ======================================== */
/* 画像モーダルウィンドウ */
/* ======================================== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 40, 40, 0.521);
  overflow: auto;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.image-modal__content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }

  to {
    transform: scale(1);
  }
}

.image-modal__close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
}

.image-modal__close:hover,
.image-modal__close:focus {
  color: #bbb;
}

.image-modal__prev,
.image-modal__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(124, 108, 94, 0.77);
  color: white;
  border: none;
  font-size: 30px;
  padding: 15px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10000;
}

.image-modal__prev:hover,
.image-modal__next:hover {
  background-color: rgba(76, 65, 55, 0.77);
}

.image-modal__prev {
  left: 20px;
}

.image-modal__next {
  right: 20px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .image-modal__content {
    max-width: 95%;
    max-height: 80vh;
  }

  .image-modal__close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }

  .image-modal__prev,
  .image-modal__next {
    font-size: 24px;
    padding: 10px 15px;
  }

  .image-modal__prev {
    left: 10px;
  }

  .image-modal__next {
    right: 10px;
  }
}

/* 459px以下ではモーダルを完全に無効化 */
@media (max-width: 459px) {
  .image-modal {
    display: none !important;
  }

  /* カーソルも通常に戻す */
  .post-content img {
    cursor: default !important;
  }
}

/* ======================================== */
/* アニメーション初期設定 */
/* ======================================== */
/* GSAP用の初期状態 */
.subtitle span,
.about__greeting h3 span {
  display: inline-block;
}

.bird,
.bird-about,
.greeting__comments,
.advisor {
  opacity: 0;
}

/* memo内のborderアニメーション用 */
/* 初期状態はCSS変数で制御（--border-height, --border-width） */
/* ======================================== */
/* アニメーション初期設定ここまで */
/* ======================================== */

/* ============================================  */
/* アニメーション用クラス ここから */
/* ============================================  */

/* ====================== */
/* 全ページ共通：js- */
/* ====================== */
/* fadeup */
.js-fadeup {
  opacity: 0;
  transform: translateY(100px);
}

.js-fadeup.fadeup {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease, transform 1.5s ease;
}

/* fadein(左からIN) */
.js-fadein {
  opacity: 0;
  transform: translateX(-20px);
}

.js-fadein.fadein {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 1s ease, transform 2s ease;
}

/* fadeinR(右からIN) */
.js-fadeinR {
  opacity: 0;
  transform: translateX(20px);
}

.js-fadeinR.fadeinR {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 1s ease, transform 2s ease;
}

/* ============================================  */
/* アニメーション用クラス ここまで */
/* ============================================  */

/* ------------------------------------------
 * 個別投稿ページのナビゲーションを非W表示
 * ------------------------------------------ */
.single .post-navigation,
.single-topix .post-navigation,
.single-csr .post-navigation,
.single-town .post-navigation,
.single-works .post-navigation,
.single-news .post-navigation {
  display: none !important;
}
