.mainvisual {
  width: 85%;
  height: 500px;
  margin: 0px auto;
  padding-bottom: 83px;
  background-color: #f2f2f3;
  background-image: url(../img/mainBg.jpg);
  background-position: center center;
  background-size: auto 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}
.mainvisual p {
  padding: 0 1em;
  background-color: #fff;
}
@media screen and (max-width: 768px) {
  .mainvisual {
    width: 100%;
    height: 450px;
    margin-bottom: 20px;
  }
}
@media screen and (min-width: 769px) {
  .mainvisual {
    min-width: 900px;
    margin-bottom: 50px;
  }
  .mainvisual p {
    font-size: calc(100vw / 45);
  }
}
.concept {
  color: #000 !important;
}
.concept .textarea {
  padding: 20px;
  font-size: 18px;
}
.concept .textarea h2 {
  line-height: 1.7;
}
/* モバイル：テキスト → 画像 */
.concept .twoCol-reverse {
  display: flex;
  flex-direction: column-reverse;
}

/* PC：画像 → テキスト */
@media (min-width: 768px) {
  .concept .twoCol-reverse {
    flex-direction: row;
  }
}
@media (max-width: 767px) {
  .concept .conceptImg {
    width: 80%;
  }
}
.conceptImages {
  position: relative;
  width: 100%;
  margin-top: 0;
}
.conceptImages .img1,
.conceptImages .img2,
.conceptImages .img3 {
  position: absolute;
}

@media (min-width: 768px) {
  .conceptImages {
    height: 600px;
  }
  .conceptImages .img1 {
    top: -80px;
    right: 0;
  }
  .conceptImages .img2 {
    top: 100px;
    left: 100px;
  }
  .conceptImages .img3 {
    bottom: -80px;
    left: 50%;
  }
}
@media (max-width: 767px) {
  .conceptImages {
    height: 200px;
  }
  .conceptImages .img1 {
    width: 50%;
    top: -30px;
    right: 0;
  }
  .conceptImages .img2 {
    width: 35%;
    top: 50px;
    left: 0px;
  }
  .conceptImages .img3 {
    width: 25%;
    bottom: -30px;
    right: 10%;
  }
}
.service {
  color: #fff !important;
}
.service .serviceTtl {
  display: flex;
  margin: 0px;
}
.service .serviceTtl h2 {
  letter-spacing: 0.2em;
  font-style: normal;
  font-weight: 400;
}
.service .lead p {
  font-size: 14px;
}
@media (max-width: 767px) {
  .service {
    background-color: #fff;
    background: linear-gradient(
      to bottom,
      var(--wp--preset--color--primary) 60%,
      #ffffff 60%
    );
    background-repeat: no-repeat;
    background-position: center top;
    background-size: auto;
    padding: 80px 40px;
  }
  .service .lead {
    font-size: 0.8em;
  }
}
@media (min-width: 768px) {
  .service {
    background-image: url(../img/serviceBg.jpg);
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 80% auto;
    padding-block: 120px;
  }
  .service .serviceTtl {
    width: 80%;
    margin: 0 auto 50px;
    padding-right: 10%;
  }
  .service .secTitle {
    border-right: 1px solid #fff;
  }
  .service .lead {
    align-self: flex-end;
  }
}
.service .flex {
  display: flex;
  flex-direction: column;
}
.service .flex .flexItem {
  height: 300px;
  /*display: flex;
  flex-direction: column;
  justify-content: flex-end;*/
  background-image: url(../img/service01.jpg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto 100%;
  margin: 0px;
  padding: 0px;
}
.service .flex a {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}
.service .flex .flexItem h3 {
  background-color: rgba(255, 255, 255, 0.8);
  color: #000 !important;
  padding: 1em 0.5em;
  margin: 0;
  font-weight: 700;
}
.service .flex .flexItem h3 span.num {
  display: inline-block;
  padding-inline: 0.5em;
  border-right: 1px solid #000;
  margin-right: 0.5em;
  font-size: 1em;
}
.service .flex .flexItem h3 span {
  font-size: 0.6em;
  padding-left: 10px;
}
.service .flex .flexItem.item01 {
  background-image: url(../img/service01.jpg);
}
.service .flex .flexItem.item02 {
  background-image: url(../img/service02.jpg);
}
.service .flex .flexItem.item03 {
  background-image: url(../img/service03.jpg);
}
.service .flex .flexItem.item04 {
  background-image: url(../img/service04.jpg);
}

/* PC */

@media screen and (min-width: 768px) {
  .service .flex {
    width: 80%;
    margin: 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .service .flex .flexItem {
    flex-basis: 50%;
    height: 450px;
  }
}
.priceBtn {
  display: flex;
  justify-content: center;
  padding: 80px 0;
}

.garden-nav {
  position: relative;
  width: 100%;
  height: 600px;
  background-image: url("../img/garden.jpg");
  background-size: auto 100%;
  background-position: center;
}

.garden-nav__bar {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background-color: #1a2a5e; /* 濃紺 */
  width: 80%;
}
.garden-nav__bar > div {
  width: 100%;
  gap: 0;
}
.garden-nav__item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  height: 100px;
  transition: opacity 0.3s;
}
.garden-nav__item a {
  display: block;
  width: 100%;
  flex-grow: 2;
}

.garden-nav__item:hover {
  opacity: 0.7;
}

.garden-nav__title {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.1em;
  white-space: nowrap;
  margin: 0;
  text-align: center;
}

.garden-nav__sub {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.2em;
  white-space: nowrap;
  margin: 0;
  text-align: center;
}

.garden-nav__divider {
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}
@media screen and (max-width: 767px) {
  .garden-nav {
    height: 450px;
  }
  .garden-nav__item {
    height: 80px;
  }
  .garden-nav__item + .garden-nav__item {
    border-top: 1px solid #fff;
  }
}
@media screen and (min-width: 768px) {
  .garden-nav__bar {
    max-width: 700px;
  }
  .garden-nav__item + .garden-nav__item {
    border-left: 1px solid #fff;
  }
}

/* ---------- セクション全体 ---------- */
.works-section {
  background: #f0f2f5; /* 背景色：画像に合わせた薄いグレー */
  padding: 80px 5% 80px;
  text-align: center;
}

/* ---------- ヘッダー ---------- */
.works-section__header {
  position: relative;
  margin-bottom: 48px;
}

/* 背景の大文字 "WORKS" */
.works-section__en {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(48px, 10vw, 100px);
  font-weight: 700;
  color: #e4e9ec;
  letter-spacing: 0.15em;
  line-height: 1;
  margin: 0;
  user-select: none;
  pointer-events: none;
}

/* 日本語タイトル */
.works-section__title {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #333;
  margin: -16px 0 0; /* EN文字に重ねて表示 */
  position: relative;
}

/* ---------- カードグリッド ---------- */
.works-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 48px;
  text-align: left;
}

@media (max-width: 768px) {
  .works-section__en {
    top: -80px;
  }
  .works-section__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 個別カード ---------- */
.works-card {
  background: #fff;
  overflow: hidden;
}

/* サムネイル */
.works-card__thumb-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.works-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.works-card__thumb-link:hover .works-card__thumb {
  transform: scale(1.05);
}

.works-card__thumb--noimage {
  width: 100%;
  height: 100%;
  background: #ddd;
}

/* カードボディ */
.works-card__body {
  padding: 8px 14px 14px;
}

/* カテゴリーラベル */
.works-card__label {
  display: inline-block;
  background: #1a3566; /* ネイビー */
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  margin-bottom: 8px;
}

/* タイトル */
.works-card__name {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  color: #333;
}

.works-card__name a {
  color: inherit;
  text-decoration: none;
}

.works-card__name a:hover {
  text-decoration: underline;
}

/* ---------- 一覧ボタン ---------- */
.works-section__btn-wrap {
  margin-top: 40px;
}

.works-section__btn {
  display: inline-block;
  background: #1a3566; /* ネイビー */
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.15em;
  padding: 18px 64px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.works-section__btn:hover {
  background: #0f2244;
}

.news-section {
  padding-block: 80px;
  margin-bottom: 80px;
}
/* リスト上部ボーダー */
.news-query .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #b0b8c5;
}

/* 各アイテム */
.news-item {
  padding: 20px 0 !important;
  gap: 32px !important;
}
.news-list li:not(:first-child) {
  margin-block-start: 0rem;
}

/* 日付 */
.news-date {
  flex-shrink: 0;
  white-space: nowrap;
}

/* タイトルリンク */
.news-text {
  flex-grow: 2;
}
.news-text a {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
  line-height: 1.7;
}
.news-text a:hover {
  opacity: 0.6;
}

/* ============================================
   モバイル（768px以下）
   ============================================ */
@media screen and (max-width: 768px) {
  /* カラムを縦積みに上書き */
  .news-section .wp-block-columns {
    flex-direction: column !important;
    gap: 24px !important;
  }

  .news-section .wp-block-column {
    flex-basis: auto !important;
    width: 100% !important;
  }

  /* アイテム内も縦積み */
  .news-item {
    flex-direction: column !important;
    gap: 4px !important;
    align-items: flex-start;
  }
  .news-text {
    width: 100%;
  }
}
