@charset "UTF-8";
@keyframes fuwafuwa {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes fuwafuwa-rotate {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(12deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
/* とけし内装 TOPページ固有CSS
 * .tokeshi-mv / #slideshow / __overlay / __catch / __bottom / __news - メインビジュアル（スライダーはCMS）
 * .tokeshi-greeting / __panel / __img       - ごあいさつ（写真途中から右端まで淡緑帯）
 * .tokeshi-text-lg / .tokeshi-lead           - 本文16px行間2.1 / 中央リード15px
 * .tokeshi-mosaic / __item / --tall / __img / __title - 施工内容モザイク
 * .tokeshi-reason / __item / __num / __title / __text - 選ばれる理由
 * .tokeshi-works-bnr / __img / __body / ...  - 施工事例2分割バナー
 * .tokeshi-area / __catch / __note / __map / __circle - 対応エリア
 */
/* ==========================================================================
   メインビジュアル
   ========================================================================== */
.tokeshi-mv {
  position: relative;
  overflow: hidden;
  background: #1B2A24;
}

#slideshow {
  position: relative;
  z-index: 0; /* CMSスライダー内のz-indexをこの中に閉じ込め、暗幕・キャッチを前面に出す */
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
}

/* CMSスライダー（内部でSwiperを使用）の出力を枠いっぱいに敷く。
   スライドの切替・位置はSwiperに任せ、ここでは高さと画像のフィットのみ指定する */
/* CMS既定の高さ（98vh）を外枠 #slideshow に追従させる */
#slideshow #main_slider.slider_wrapper {
  --swiper-wrapper-height: 100%;
}

#cms-slider-1-1-area,
#slideshow .swiper,
#slideshow .swiper-container,
#slideshow .swiper-wrapper,
#slideshow .swiper-slide {
  height: 100%;
}

#slideshow img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Swiper標準のページネーション・矢印はデザインに合わせて控えめに */
#slideshow .swiper-pagination-bullet {
  width: 28px;
  height: 3px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

#slideshow .swiper-pagination-bullet-active {
  background: #79A456;
}

.tokeshi-mv__overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  /* キャッチを読みやすくする背景レイヤー（中央の楕円＋全体の薄い暗幕）を重ねる */
  background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(10, 32, 28, 0.45) 0%, rgba(10, 32, 28, 0) 100%), linear-gradient(rgba(10, 32, 28, 0.25), rgba(10, 32, 28, 0.25)), linear-gradient(rgba(10, 32, 28, 0.38) 0%, rgba(10, 32, 28, 0) 22%), linear-gradient(270deg, rgba(10, 32, 28, 0.32) 0%, rgba(10, 32, 28, 0) 38%), linear-gradient(0deg, rgba(10, 32, 28, 0.35) 0%, rgba(10, 32, 28, 0) 28%);
}

.tokeshi-mv__catch {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: calc(100% - 2 * clamp(20px, 4vw, 64px));
  text-align: center;
  color: #fff;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: tokeshiMvIn 1s ease both;
}

.tokeshi-mv__line {
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.8);
}

.tokeshi-mv__title {
  font-size: clamp(23px, 3.8vw, 52px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.tokeshi-mv__en {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

@keyframes tokeshiMvIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
.tokeshi-mv__bottom {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 4vw, 64px);
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(24px, 3.5vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.tokeshi-mv__info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(100%, 600px);
}

.tokeshi-mv__lead {
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 500;
  line-height: 1.9;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* CMS出力のラッパー（span等）が入ってもレイアウトが崩れないように */
.tokeshi-mv__news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tokeshi-mv__news-list > span {
  display: contents;
}

.tokeshi-mv__news {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  min-height: 72px;
  padding: 20px 32px;
  border-radius: 4px;
  background: rgba(254, 254, 254, 0.86);
  backdrop-filter: blur(4px);
  font-size: 1.5rem;
}

.tokeshi-mv__news-date {
  font-weight: 700;
  color: #126F62;
}

a.tokeshi-mv__news {
  color: #1B2A24;
  transition: background 0.3s;
}

a.tokeshi-mv__news:hover {
  background: rgba(254, 254, 254, 0.95);
  color: #126F62;
}

.tokeshi-mv__news-title {
  position: relative;
  padding-left: 21px;
  font-weight: 500;
}

.tokeshi-mv__news-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: #9FB3AA;
}

/* ==========================================================================
   ごあいさつ
   ========================================================================== */
.tokeshi-greeting {
  padding: clamp(72px, 9vw, 120px) 0;
}

.tokeshi-greeting__panel {
  position: absolute;
  top: clamp(40px, 5vw, 64px);
  bottom: clamp(40px, 5vw, 64px);
  left: 38%;
  right: 0;
  border-radius: 4px 0 0 4px;
  /* 淡いグリーン＋うっすら斜めストライプ */
  background: repeating-linear-gradient(45deg, rgba(121, 164, 86, 0.08) 0, rgba(121, 164, 86, 0.08) 1px, transparent 1px, transparent 14px) #F2F8EE;
  pointer-events: none;
}

.tokeshi-greeting__img {
  aspect-ratio: 5/4;
  overflow: hidden;
  border-radius: 4px;
  background: #E8F1E4;
}

.tokeshi-text-lg {
  font-size: 1.6rem;
  line-height: 2.1;
}

.tokeshi-lead {
  font-size: 1.5rem;
  color: #2E3D37;
}

@media (max-width: 1079px) {
  .tokeshi-greeting__panel {
    left: 0;
  }
}
/* ==========================================================================
   施工内容モザイク
   ========================================================================== */
.tokeshi-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: 12px;
}

.tokeshi-mosaic__item {
  position: relative;
  display: block;
  min-height: 220px;
  overflow: hidden;
  border-radius: 4px;
  color: #fff;
}

.tokeshi-mosaic__item--tall {
  grid-row: span 2;
}

.tokeshi-mosaic__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tokeshi-mosaic__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 22px 20px;
  background: linear-gradient(0deg, rgba(10, 32, 28, 0.82) 0%, rgba(10, 32, 28, 0.55) 55%, rgba(10, 32, 28, 0) 100%);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.tokeshi-mosaic__title small {
  font-size: 0.85em;
  font-weight: 500;
}

.tokeshi-mosaic__item:hover {
  color: #fff;
}

/* ホバーで写真をゆっくり拡大（枠は overflow:hidden で固定） */
.tokeshi-mosaic__img {
  transition: transform 0.6s ease;
}

.tokeshi-mosaic__item:hover .tokeshi-mosaic__img,
.tokeshi-mosaic__item:focus-visible .tokeshi-mosaic__img {
  transform: scale(1.08);
}

@media (max-width: 1079px) {
  .tokeshi-mosaic {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  }
  .tokeshi-mosaic__item--tall {
    grid-row: auto;
  }
}
/* ==========================================================================
   選ばれる理由
   ========================================================================== */
.tokeshi-reason.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 0;
  border-top: 1px solid #1B2A24;
}

.tokeshi-reason__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 24px 36px;
  border-right: 1px solid #E3EDE0;
  border-bottom: 1px solid #E3EDE0;
}

.tokeshi-reason__num {
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #79A456;
}

.tokeshi-reason__title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.tokeshi-reason__text {
  font-size: 1.4rem;
  line-height: 1.9;
  color: #2E3D37;
}

/* ==========================================================================
   施工事例バナー
   ========================================================================== */
.tokeshi-works-bnr-section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.tokeshi-works-bnr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(18, 42, 36, 0.08);
  color: #fff;
}

.tokeshi-works-bnr:hover {
  color: #fff;
}

.tokeshi-works-bnr__img {
  position: relative;
  min-height: 280px;
  background: #DCEBD5;
}

.tokeshi-works-bnr__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: clamp(32px, 5vw, 64px);
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 14px) #79A456;
}

.tokeshi-works-bnr__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tokeshi-works-bnr__en {
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.06em;
}

.tokeshi-works-bnr__ja {
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.tokeshi-works-bnr__desc {
  font-size: 1.5rem;
}

.tokeshi-works-bnr__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
  font-weight: 700;
}

.tokeshi-works-bnr__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FEFEFE;
  color: #6A9249;
  transition: transform 0.3s;
}

.tokeshi-works-bnr:hover .tokeshi-works-bnr__arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   対応エリア
   ========================================================================== */
.tokeshi-area {
  background: repeating-linear-gradient(90deg, rgba(18, 111, 98, 0.05) 0, rgba(18, 111, 98, 0.05) 1px, transparent 1px, transparent 64px) #FEFEFE;
}

.tokeshi-area .container {
  max-width: 1100px;
}

.tokeshi-area__catch {
  margin-top: 36px;
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: #126F62;
}

.tokeshi-area__note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 1.5rem;
  font-weight: 500;
}

.tokeshi-area__map {
  position: relative;
  display: flex;
  justify-content: center;
}

.tokeshi-area__map img {
  width: 100%;
  max-width: 400px;
}

.tokeshi-area__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92%, 460px);
  aspect-ratio: 1/1;
  border: 1px solid rgba(121, 164, 86, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.tokeshi-area__circle--dashed {
  width: min(70%, 350px);
  border: 1px dashed rgba(121, 164, 86, 0.4);
}

/* お知らせ：SPは日付とタイトルを縦並び（区切り線なし） */
@media (max-width: 639px) {
  .tokeshi-mv__news {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 0;
    padding: 14px 20px;
    font-size: 1.4rem;
  }
  .tokeshi-mv__news-title {
    padding-left: 0;
  }
  .tokeshi-mv__news-title::before {
    display: none;
  }
}
/* お知らせ：CMSで本文にリンクを入れた場合 */
.tokeshi-mv__news-title a {
  color: #1B2A24;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tokeshi-mv__news-title a:hover {
  color: #126F62;
}

/* 対応エリア：上下余白を詰める */
.section.tokeshi-area {
  padding: clamp(48px, 6vw, 80px) 0;
}

/* ごあいさつ：画像とテキストの間を広げる（縦積み時は解除） */
.tokeshi-greeting .column2__child:last-child {
  padding-left: clamp(16px, 3.5vw, 48px);
}

@media (max-width: 896px) {
  .tokeshi-greeting .column2__child:last-child {
    padding-left: 0;
  }
}
/* リード文：SPは中央揃え＋文節で自然に改行 */
@media (max-width: 639px) {
  .tokeshi-lead {
    text-align: center;
    text-wrap: balance;
    word-break: auto-phrase;
  }
}
@media (max-width: 639px) {
  /* 施工内容モザイク：「修築」の後ろで改行 */
  .tokeshi-mosaic__title small {
    display: block;
  }
  /* 対応エリア：マップを幅80%で中央揃え */
  .tokeshi-area__map img {
    width: 80%;
    margin: 0 auto;
  }
}
/* メインビューのキャッチ：SPは字間を詰める */
@media (max-width: 639px) {
  .tokeshi-mv__title {
    letter-spacing: 0.1em;
  }
}
/* メインビュー：タブレット・SP（ハンバーガー表示幅）は高さ80vh */
@media (max-width: 1100px) {
  #slideshow {
    height: 80vh;
    height: 80svh;
    min-height: 0;
  }
}
@media (max-width: 639px) {
  /* メインビュー：SP時にキャッチと下部テキストが重ならないよう上寄せ */
  .tokeshi-mv__catch {
    top: 44%;
    gap: 12px;
  }
  .tokeshi-mv__line {
    height: 32px;
  }
  .tokeshi-mv__bottom {
    bottom: 16px;
  }
  .tokeshi-mv__info {
    gap: 10px;
  }
  /* 対応エリア：テキストブロックを中央揃え */
  .tokeshi-area__inner .column2__child:first-child > div {
    text-align: center;
  }
  .tokeshi-area__note {
    justify-content: center;
  }
}
/* ==========================================================================
   お知らせ：白枠1つの中に全件を並べ、枠内でスクロール（最大50件）
   ========================================================================== */
.tokeshi-mv__news-list {
  display: block;
  max-height: 60px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 4px;
  background: rgba(254, 254, 254, 0.86);
  backdrop-filter: blur(4px);
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 111, 98, 0.4) transparent;
}

.tokeshi-mv__news-list .tokeshi-mv__news {
  min-height: 0;
  padding: 16px 32px;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(27, 42, 36, 0.08);
}

.tokeshi-mv__news-list .tokeshi-mv__news:last-child {
  border-bottom: none;
}

.tokeshi-mv__news-list a.tokeshi-mv__news:hover {
  background: rgba(254, 254, 254, 0.6);
}

.tokeshi-mv__news-list .tokeshi-mv__news:nth-child(n+51) {
  display: none;
}

@media (max-width: 639px) {
  .tokeshi-mv__news-list {
    max-height: 80px;
  }
  .tokeshi-mv__news-list .tokeshi-mv__news {
    padding: 12px 20px;
  }
}
