/* ベース */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: #222;
}

/* =========================
   ヘッダー
   ========================= */

.site-header {
  position: relative;
  z-index: 1100;
  background-color: #1f1f22;
  color: #fff;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-family: "Anton", system-ui, sans-serif;
  font-size: 32px;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-instagram img {
  display: block;
  height: 40px;
  width: auto;
}

/* ハンバーガー */

.menu-toggle {
  border: none;
  background: none;
  padding: 0;
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1200;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #fff;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease, bottom 0.25s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.is-open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  bottom: auto;
  top: 9px;
  transform: rotate(-45deg);
}

@media (max-width: 600px) {
  .menu-toggle {
    width: 26px;
    height: 18px;
  }

  /* ★ スマホ用に線の位置も調整 */
  .menu-toggle span:nth-child(1) { top: 0; }
  .menu-toggle span:nth-child(2) { top: 8px; }  /* 真ん中 */
  .menu-toggle span:nth-child(3) { bottom: 0; }

  .menu-toggle.is-open span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
  }
  .menu-toggle.is-open span:nth-child(3) {
    top: 8px;
    bottom: auto;
    transform: rotate(-45deg);
  }
}


/* ドロワーメニュー */

.global-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  max-width: 320px;
  height: 100vh;
  background-color: #1f1f22;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  padding: 80px 24px 32px;
}

.global-nav.is-open {
  transform: translateX(0);
}

.global-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.global-nav-list a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.global-nav-list a:hover {
  text-decoration: underline;
}

/* オーバーレイ */

.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.nav-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* スマホ調整 */
@media (max-width: 600px) {
  .header-inner {
    padding: 12px 16px;
  }
  .header-logo {
    font-size: 18px;
  }
  .header-instagram img {
    height: 22px;
  }
  .menu-toggle {
    width: 26px;
    height: 18px;
  }
}

/* =========================
   HERO（フェード切り替え）
   ========================= */

.hero {
  width: 100%;
}

.hero-slider {
  position: relative;
  width: 100%;
  display: grid;   /* グリッド1セルに重ねる */
  overflow: hidden;
}

.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================
   WORKS
   ========================= */

.works-section {
  background: #f9f4e8;
  padding: 60px 16px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Works 見出しだけ Noto */
.works-section .section-title {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 24px;
  margin: 0 0 20px;
  border-bottom: 3px solid #222;
  display: inline-block;
   padding-right: 60px;
}

/* スマホ：カルーセル */

.works-slider {
  display: block;
  position: relative;
}

.works-slider-inner {
  display: grid;   /* 高さを画像に合わせる */
}

.works-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.works-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.works-slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* 矢印 */

.works-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.works-arrow-prev { left: 12px; }
.works-arrow-next { right: 12px; }

/* PC用グリッド */

.works-grid {
  display: none; /* スマホでは隠す */
}

.works-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.works-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.works-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.works-card:hover .works-thumb img {
  transform: scale(1.03);
}

/* PC */
@media (min-width: 900px) {
  .works-section {
    padding: 80px 24px;
  }

  .works-section .section-title {
    font-size: 28px;
    margin-bottom: 28px;
  }

  .works-slider {
    display: none; /* PCではカルーセル非表示 */
  }

  .works-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}







/* =====================================
   HOME：Service セクション専用スコープ
   ReformのCSSとは一切衝突しない
===================================== */

.home-service .service-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .home-service .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-service .service-card--text {
  display: block;
  padding: 32px 32px 36px;
  border-radius: 18px;
  background: #eeeeee;
  box-shadow: 0 14px 28px rgba(0,0,0,0.15);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  /* Reform 側の service-card を完全遮断 */
  overflow: visible;
  height: auto;
  padding-bottom: 36px;
}

.home-service .service-card--text:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(0,0,0,0.22);
}

.home-service .service-card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.home-service .service-card-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 18px;
  line-height: 1.8;
}


/* =====================================
   HOME専用：service-card--text（ここが重要）
===================================== */

.service-card--text {
  display: block;
  padding: 32px 32px 36px;
  border-radius: 18px;
  background: #eeeeee;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card--text:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
}

.service-card--text .service-card-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px;
}

.service-card--text .service-card-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 18px;
  line-height: 1.8;
}




/* =========================
   Concept
   ========================= */

.concept-section {
  background: #f9f4e8;       /* 他セクションと揃えるならこのまま */
  padding: 60px 16px;
}

.concept-section .section-title {
  display: inline-block;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 32px;
  margin: 0 0 24px;
  border-bottom: 3px solid #222;
  padding-bottom: 6px;

  padding-right: 80px;  /* ★ここが線の「はみ出し」量 */
}

/* ★スマホだけ少し小さくする */
@media (max-width: 800px) {
  .concept-section .section-title {
    font-size: 24px;   /* 好きなサイズに：22〜24pxくらいが無難 */
    padding-right: 50px;  /* 線の長さも少し短めにしたければここ調整 */
    margin-bottom: 16px;
  }
}

/* 木目背景の帯 */
.concept-panel {
  position: relative;
  margin-top: 28px;
  background-image: url("../images/mokume_gray.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 0;          /* 丸めたいなら 8px とかに変更 */
  overflow: hidden;
   width: 100vw;                          /* 画面幅いっぱい */
  margin-left: calc(50% - 50vw);         /* センターから左右にはみ出させる */
}

/* 暗めのベール */
.concept-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);  /* ★ベールの濃さ。数値上げると暗くなる */
}

/* テキストエリア */
.concept-panel-inner {
  position: relative;        /* ベールより前面に出す */
  padding: 36px 24px;        /* ★高さはここで調整（上下のpadding） */
  color: #fdfdfd;
  text-align: center;
}

/* リード文・本文 */
.concept-lead {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.concept-text {
  margin: 0;
  font-size: 16px;
  line-height: 2;
}

/* PC で少しだけゆったりさせる */
@media (min-width: 900px) {
  .concept-section {
    padding: 80px 24px;
  }

  .concept-panel-inner {
    padding: 48px 80px;      /* 帯の高さをもう少し出したければここを増やす */
  }

  .concept-lead {
    font-size: 26px;
  }

  .concept-text {
    font-size: 18px;
  }
}






/* =========================
   選ばれる理由
   ========================= */

.reason-section {
  background: #f9f4e8;   /* 他セクションと合わせてベージュ */
  padding: 60px 16px 80px;
}

/* 見出し（下線ちょい長め） */
.reason-title {
  display: inline-block;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 24px;
  margin: 0 0 24px;
  border-bottom: 3px solid #222;
  padding-bottom: 6px;
  padding-right: 120px; /* 線の伸ばし量。数字だけいじればOK */
}

/* レイアウト：スマホは縦、タブレット以上で横並び */
.reason-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reason-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 32px rgba(0,0,0,0.25);
  object-fit: cover;
}

/* カード本体 */
.reason-card {
  background: #e3e3e3;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.22);
  padding: 24px 20px 28px;
}

.reason-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reason-list li + li {
  margin-top: 16px;
}

.reason-list h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.reason-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

/* タブレット以上：写真＋カード横並び */
@media (min-width: 900px) {
  .reason-section {
    padding: 80px 24px 100px;
  }

  .reason-title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .reason-content {
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
  }

  .reason-photo,
  .reason-card {
    flex: 1 1 50%;
  }
/* ★画像側をカードの高さに合わせる */
  .reason-photo {
    display: flex;               /* 中のimgを縦方向いっぱいに伸ばすため */
  }

  .reason-photo img {
    width: 100%;
    height: 100%;                /* 親(.reason-photo)の高さ＝カードと同じ高さ */
    object-fit: cover;           /* 引き伸ばしすぎずトリミングで調整 */
    border-radius: 18px;
    box-shadow: 0 18px 32px rgba(0,0,0,0.25);
  }


  .reason-card {
    padding: 32px 40px 40px;
  }

  .reason-list h3 {
    font-size: 20px;
  }

  .reason-list p {
    font-size: 16px;
  }
}






/* =========================
   お客様の声
   ========================= */

.voice-section {
  background: #f9f4e8;           /* 全体の背景色に合わせておく */
  padding: 60px 16px 80px;
}

/* 見出し（他セクションとトーン合わせ） */
.voice-title {
  display: inline-block;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 32px;
  margin: 0 0 24px;
  border-bottom: 3px solid #222;
  padding-bottom: 6px;
  padding-right: 80px;   /* 下線の伸ばし量。数字いじるだけで調整可 */
}

/* 画像の並び：スマホ1列、PC2列 */
.voice-grid {
  display: grid;
  gap: 32px;
  margin-top: 24px;
}

/* PCで2枚横並び */
@media (min-width: 900px) {
  .voice-section {
    padding: 80px 24px 100px;
  }

  .voice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 各カード＋ドロップシャドウ */
.voice-item {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);  /* ★ドロップシャドウ */
  overflow: hidden;
}

.voice-item img {
  display: block;
  width: 100%;
  height: auto;
}






/* =========================
   フェードイン（スクロール）
   ========================= */

/* 初期状態：ちょい下・薄い */
.js-fade {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

/* 表示状態：普通の位置・不透明 */
.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}




/* =========================
   CTA
   ========================= */

.cta-section {
  background: #f9f4e8;
  padding: 80px 16px 120px;   /* ←上下余白を増やして存在感アップ */
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 96px;                /* ←ボタン同士の間隔も少し広めに */
  }
}


.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 470px;           /* ←ボタンの最大幅。もっとデカくしたければ480とかに */
  padding: 24px 40px;         /* ←高さを出すところ */

  background: #333333;
  color: #ffffff;
  border-radius: 22px;
  text-decoration: none;

  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;            /* ←文字サイズ。強めにしたければ24pxでもOK */
  letter-spacing: 0.12em;
  text-align: center;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    opacity 0.15s ease-out;
}

@media (min-width: 900px) {
  .cta-btn {
    font-size: 24px;          /* PC ではさらに少し大きく */
    padding: 26px 56px;
  }
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  opacity: 0.96;
}

/* LINEボタン用（そのまま） */
.cta-btn-line .cta-line-icon {
  width: 28px;
  height: 28px;
  margin-right: 14px;
  display: inline-block;
}



html {
  scroll-behavior: smooth;  /* ★クリックしたときスムーズスクロール */
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
  z-index: 50;
  opacity: 0.9;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

.back-to-top:hover {
  transform: translateY(-2px);
  opacity: 1;
}

/* スマホで邪魔なら少し小さく */
@media (max-width: 480px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}






/* =========================
   Footer
   ========================= */

.site-footer {
  background: #222222;
  color: #ffffff;
  padding: 64px 0 40px;
  font-family: "Noto Sans JP", system-ui, sans-serif;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  column-gap: 80px;
  row-gap: 48px;
}

/* 共通カラム */
.footer-col {
  font-size: 16px;
  line-height: 1.9;
}

/* 左ロゴ（Anton） */
.footer-logo {
  font-family: "Anton", system-ui, sans-serif;
  font-size: 40px;
  letter-spacing: 0.08em;
  margin: 0 0 32px;
}

/* 見出し（SITE MENU / SNS） */
.footer-heading {
  font-family: "Anton", system-ui, sans-serif;
  font-size: 40px;
  letter-spacing: 0.08em;
  margin: 0 0 32px;
}

/* 住所などの行 */
.footer-info-line {
  margin: 0 0 4px;
}

.footer-info-space {
  margin-top: 16px;
}

/* SITE MENU リスト */
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li + li {
  margin-top: 10px;
}

.footer-menu a {
  color: #ffffff;
  text-decoration: none;
}

.footer-menu a:hover {
  text-decoration: underline;
}

/* SNS ブロック（テキスト → 画像を縦並び） */
.footer-sns-block {
  display: flex;
  flex-direction: column;
  gap: 32px;   /* リフォームとデザインの間隔 */
}

.footer-sns-item {
  display: flex;
  flex-direction: column;   /* テキスト → 画像の縦並び */
  align-items: flex-start;
  text-decoration: none;
  color: #ffffff;
}

.footer-sns-label {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 8px;
}

.footer-sns-icon {
  width: 64px;       /* 必要ならここでサイズ調整 */
  height: auto;
  flex-shrink: 0;
}

/* コピーライト */
.footer-copy {
  margin: 40px auto 0;
  text-align: center;
  font-size: 14px;
}

/* ページトップボタン（任意） */
.footer-pagetop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #555555;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 50;
}

.footer-pagetop:hover {
  background: #777777;
}

/* -------------------------
   レスポンシブ
   ------------------------- */

@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }

  .footer-col-info {
    grid-column: 1 / 3;  /* 上段に幅広で表示 */
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-logo,
  .footer-heading {
    font-size: 32px;
  }

  .footer-col-info {
    grid-column: auto;
  }
}



/*===================================
          サービスページ 改良版CSS
   重複排除・整形済み（兄貴専用）
===================================*/


/* =========================
   全体・共通レイアウト
========================= */

:root {
  --side-padding: 24px;
}

body {
  background: #f9f4e8;
}

.section {
  padding: 80px 0;
}

.section-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* =========================
   H2 見出し（全セクション統一）
========================= */
.section-title {
  font-size: 26px;
  font-weight: 700;
  text-align: left;
  line-height: 1.3;
  margin-bottom: 25px;
  display: inline-block;
  border-bottom: 3px solid #333;
  padding-bottom: 6px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 20px;
    margin-bottom: 18px;
  }
}

/* ミニ導線（まずはご相談ください）だけ微調整 */
.lead-card .section-title {
  font-size: 24px;
}
@media (max-width: 768px) {
  .lead-card .section-title {
    font-size: 20px;
  }
}


/* =========================
   サービスページ・ヒーロー
========================= */

.service-hero {
  width: 100%;
  height: 420px;
  background: url("../images/service_hero.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.service-hero-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.service-hero-title {
  font-size: 42px;
  line-height: 1.5;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
  .service-hero {
    height: 280px;
    background-position: center top;
    align-items: center;
  }

  .service-hero-inner {
    padding: 0 12px;
    margin-top: -40px;
  }

  .service-hero-title {
    font-size: 26px !important;
    line-height: 1.35;
  }
}


/* =========================
   主な施工
========================= */

.service-section {
  background: #f9f4e8;
  padding: 80px 0;
}

.service-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.service-title {
  font-size: 26px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 48px;
  color: #222;
  position: relative;
}

.service-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 160px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* PC グリッド */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

/* PC カード */
.service-card {
  background: #eee;
  border-radius: 16px;
  overflow: hidden;
  padding-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.service-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.service-card h3 {
  font-size: 18px;
  margin: 16px var(--side-padding) 6px;
  font-weight: 700;
  color: #222;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 var(--side-padding);
  color: #444;
}


/* ========== スマホ用カルーセル ========== */

.sp-only { display: none; }

@media (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: block; }
}

.service-slider {
  position: relative;
  margin-top: 24px;
}

.service-slider-inner {
  display: grid;
}

.service-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* SP 専用カード */
@media (max-width: 768px) {
  .service-card {
    padding: 16px;
  }

  .service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .service-card h3 {
    margin: 6px 0;
    font-size: 17px;
  }

  .service-card p {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* 矢印 */
.service-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.service-arrow-prev { left: 12px; }
.service-arrow-next { right: 12px; }



/* =========================
   ミニ導線ブロック
========================= */

.lead-flex {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.lead-image-wrap {
  flex: 1 1 48%;
}

.lead-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* 右の文章カード */
.lead-card {
  flex: 1 1 52%;
  background: #eeeeee;
  padding: 40px 32px;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .lead-flex {
    flex-direction: column;
    padding: 0 20px;
  }

  .lead-card {
    padding: 28px 20px;
  }
}


/* =========================
   選ばれる理由（見出し）
========================= */
.reason-title-extend {
  font-size: 26px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 48px;
  color: #222;
  position: relative;
}

/* 見出しの右だけ伸びるライン */
.reason-title-extend::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 520px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* 見出しの下のラインを隠して右だけ伸びて見せる */
.reason-title-extend::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 3px;
  width: 100%;
  background: #f6f0de; /* 背景色 */
}


/* =========================
   リスト全体
========================= */
.reason-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 var(--side-padding);
}


/* =========================
   選ばれる理由（カード版）
========================= */

.reason-cards-section {
  
  padding: 60px 16px 80px;
}

/* 見出し（右だけ伸びる線） */
.reason-section-heading {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
}

.reason-section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 420px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

.reason-section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 3px;
  background: #f9f4e8;
}

/* =========================
   カード一覧
========================= */
.reason-card-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 16px;
}

/* 各カード */
.reason-card {
  background: #eee;
  padding: 24px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* カード内タイトル */
.reason-card-title {
  font-size: 20px;
  font-weight: 700;
  border-bottom: 2px solid #333;
  padding-bottom: 4px;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* カード本文 */
.reason-card-text {
  color: #555;
  line-height: 1.7;
}

/* スマホ最適化 */
@media (max-width: 768px) {
  .reason-section-heading::after {
    width: 260px;
  }
}

/* PCでは br 無効化 */
.sp-br {
  display: none;
}

/* スマホだけ br を改行として表示 */
@media (max-width: 768px) {
  .sp-br {
    display: block;
  }
}



/* =========================
   対応エリア
========================= */

.area-text {
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.7;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.area-list li {
  background: #ffffff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 15px;
}

.area-note {
  text-align: center;
  font-size: 14px;
  color: #333;
  margin-top: 10px;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  column-gap: 40px; /* 行ごとの間隔 */
  row-gap: 12px;
}

.area-title {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: none;   /* ← これを消すのが最重要 */
}

/* 下線すべてを ::after で描く（段差ゼロ） */
.area-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% + 40px); /* ← 右へ伸ばす量（数字だけ調整すればOK） */
  height: 3px;
  background: #333;
}



/* スマホ（600px以下）は左寄せにする */
@media (max-width: 600px) {
  .area-text,
  .area-note {
    text-align: left;
  }

  .area-list {
    justify-content: flex-start;
  }
}
/* スマホ（600px以下）は1列 */
@media (max-width: 600px) {
  .area-list {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* =========================
   対応エリア（カード化）
========================= */

.area-inner-card {
  background: #eee;
  border-radius: 16px;
  padding: 32px 24px;    /* もとの余白に近い値（必要なら調整可） */
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* =========================
   FAQ（カード化）
========================= */

.faq-title {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: none; /* ← 標準の下線を無効化 */
}

.faq-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% + 40px);  /* ← 右に伸ばす量（数字だけ調整でOK） */
  height: 3px;
  background: #333;          /* ← 黒い線 */
}


.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px; /* カード同士の余白 */
}

/* 各質問をカード化 */
.faq-item {
  background: #f3f3f3;        /* 明るいグレーのカード */
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* 質問（Qの部分） */
.faq-question {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 2px solid #333;
  padding-bottom: 6px;
  line-height: 1.6;
}

/* 回答 */
.faq-answer {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

/* スマホで少し余白を調整 */
@media (max-width: 600px) {
  .faq-item {
    padding: 20px 16px;
  }
}


/* =========================
   FAQ
========================= */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-question {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}

.faq-answer {
  line-height: 1.7;
  color: #555;
}



/* =========================
   見積無料範囲
========================= */

.estimate-title {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: none; /* 既存の線を無効化 */
}

.estimate-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% + 40px);  /* ← 右へ伸ばす長さ（数字だけ調整） */
  height: 3px;
  background: #333;
}


.estimate-lead {
  text-align: center;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #555;
}

.estimate-box {
  display: flex;
  gap: 40px;
  justify-content: space-between;
}

.estimate-box > div {
  flex: 1;
  background: #fafafa;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.estimate-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.estimate-list li {
  margin-bottom: 10px;
}

.estimate-note {
  font-size: 14px;
  margin-top: 16px;
  color: #777;
}

@media (max-width: 768px) {
  .estimate-box {
    flex-direction: column;
  }
}


/* ============================
   CTA
============================ */

.cta-section {
  background: #f9f4e8;
  padding: 80px 16px 120px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 96px;
  }
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 470px;
  padding: 24px 40px;
  background: #333;
  color: #fff;
  border-radius: 22px;
  text-decoration: none;
  font-weight: 700;
}

.cta-btn-line {
  background: #00c300;
  color: #fff;
}

/* LINEアイコン */
.cta-line-icon {
  width: 26px;
  margin-right: 8px;
}

/* CTAボタンのテキストを1行に収める（スマホ用） */
@media (max-width: 480px) {
  .cta-btn,
  .cta-btn-line {
    font-size: 18px;  /* ← 今より2〜4px下げれば確実に1行に収まる */
    white-space: nowrap;  /* ← 強制改行禁止 */
  }
}



/* ============================
   ページトップ
============================ */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #333;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  opacity: 0.8;
}

.back-to-top:hover {
  opacity: 1;
}




/*==============================================
                aboutページ
==============================================*/


/* =========================
   About専用 見出しデザイン
========================= */

.section-title-about {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: none; /* 既存の線を無効化 */
}

/* 右に40pxだけ伸ばす線 */
.section-title-about::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% + 40px);  /* ← 右へ伸ばす長さ（数字だけ調整） */
  height: 3px;
  background: #333;
}

/* スマホ時の見出し */
@media (max-width: 768px) {
  .section-title-about {
    font-size: 22px;
    margin-bottom: 24px;
  }
}

/* =========================
   ABOUT：ヒーロー
========================= */

.about-hero-inner {
  padding-top: 40px;
}

.about-hero-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
}

/* 左：写真エリア */
.about-photo-wrap {
  flex: 1 1 40%;       /* ← 写真の幅を 40% に制限 */
  max-width: 420px;    /* ← 写真がデカくなりすぎるのを防ぐ */
}

.about-photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 右：テキストエリア */
.about-hero-text {
  flex: 1 1 60%;       /* ← 右側を広めに確保 */
}

.about-catch {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* -----------------------
   スマホ表示
------------------------ */
@media (max-width: 768px) {
  .about-hero-flex {
    flex-direction: column;
    gap: 24px;
  }

  .about-photo-wrap {
    max-width: 300px; /* スマホではさらに控えめに */
  }

  .about-catch {
    font-size: 18px;
  }
}



/* =========================
   STORY（Why）
========================= */

.about-story-text p {
  margin-bottom: 18px;
  line-height: 1.8;
  color: #444;
}


/* =========================
   Tools（現場のこだわり）
========================= */

.about-kougu-flex {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.kougu-photo-wrap {
  flex: 1 1 45%;
}

.kougu-photo {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.kougu-text {
  flex: 1 1 55%;
}

.kougu-policy-list {
  margin: 16px 0;
  padding-left: 1.2em;
  line-height: 1.8;
}

.kougu-policy-list li {
  margin-bottom: 6px;
}

/* スマホ時：縦並び */
@media (max-width: 768px) {
  .about-kougu-flex {
    flex-direction: column;
  }

  .kougu-photo-wrap,
  .kougu-text {
    flex: none;
    width: 100%;
  }
}



/*===============================================
                 よくある質問
===============================================*/

/* =========================
   FAQ
========================= */

.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 16px;
}

.faq-title {
  font-size: 28px;
  margin-bottom: 48px;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-question {
  width: 100%;
  padding: 20px 8px;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.faq-answer p {
  padding: 0 8px 24px;
  line-height: 1.7;
  color: #555;
}

/* 開いた状態 */
.faq-item.active .faq-answer {
  max-height: 500px; /* 想定最大 */
  opacity: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* ＋ → × */
}






/*==========================================
            ポリシーページ
==========================================*/

/* ============================
   POLICY PAGE
============================ */

/* セクション全体 */
.policy-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 100px;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.8;
}

/* タイトル */
.policy-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

/* 冒頭説明 */
.policy-intro {
  font-size: 16px;
  color: #555;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* 見出し(H2) */
.policy-heading {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-left: 14px;
  border-left: 4px solid #333;
}

/* ボックススタイル */
.policy-box {
  background: #f4f4f4;
  padding: 22px 26px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* リスト */
.policy-box ul {
  margin-top: 12px;
  padding-left: 20px;
}

.policy-box li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* 締めメッセージ */
.policy-footer {
  margin-top: 60px;
  text-align: center;
  color: #555;
  font-size: 15px;
  line-height: 1.8;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 768px) {

  .policy-title {
    font-size: 26px;
  }

  .policy-heading {
    font-size: 19px;
    margin: 36px 0 12px;
  }

  .policy-box {
    padding: 18px 18px;
  }

  .policy-intro {
    font-size: 14px;
  }
}





/*=========================================
           お問い合わせページ
=========================================*/

/* ============================
   CONTACT PAGE
============================ */

.contact-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 120px;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
}

.contact-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.contact-intro {
  text-align: center;
  font-size: 15px;
  color: #555;
  margin-bottom: 40px;
 line-height: 1.8;
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
  font-weight: 500;
  color: #444;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.contact-submit {
  width: 100%;
  background: #333;
  color: #fff;
  border: none;
  padding: 18px 0;
  margin-top: 12px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-submit:hover {
  opacity: 0.85;
}

.policy-check {
  margin: 20px 0 10px;
}

.contact-note {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-title { font-size: 26px; }
  .contact-submit { font-size: 16px; padding: 16px 0; }
}

.policy-check label {
  display: flex;
  align-items: center;
  gap: 8px; /* チェックと文字の間 */
  font-size: 15px;
}

.policy-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}




/*==============================
         施工事例ページ
==============================*/

/* ============================
   Works Section
============================ */
.works-section {
  padding: 60px 20px;
}

.works-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 施工事例グリッドの最大幅を制限して中央寄せ */
.works-grid {
  max-width: 1200px;    /* ← PCでの最大幅 */
  margin: 0 auto;       /* ← 中央寄せ */
  padding: 0 20px;      /* ← 端がくっつかないよう調整 */
  box-sizing: border-box;
}


.work-item {
  cursor: pointer;
  position: relative;
}

.work-item img {
  width: 100%;
  aspect-ratio: 1 / 1;     /* ← 正方形の比率固定 */
  object-fit: cover;       /* ← 正方形の中に綺麗に収まる */
  border-radius: 10px;
}

.work-label {
  margin-top: 8px;
  font-weight: 600;
}

/* タブ */
.modal-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.tab-btn {
  padding: 6px 14px;
  background: #ddd;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.tab-btn.active {
  background: #666;
  color: #fff;
}

/* ============================
   Modal
============================ */
.work-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9990;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.work-modal-content {
  position: relative;
  background: #fff;
  padding: 20px;
  width: 70%; /* PCは70% */
  max-width: 900px;
  border-radius: 12px;
  z-index: 9991;
  margin-top: 60px; /* ヘッダーと被らない */
}

.work-modal-content img {
  width: 100%;
  border-radius: 8px;
}

/* Closeボタン */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #666;
  color: #fff;
  border: none;
  font-size: 20px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 9992;
}

/* prev/next */
.modal-prev,
.modal-next {
  background: #666;
  color: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 12px;
}

.modal-prev { float: left; }
.modal-next { float: right; }

/* モーダルの外枠全体 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: auto; /* ←背景スクロール防止＋内部スクロール許可 */
}

/* モーダルの中身 */
.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  background: #222;
  padding: 20px;
  border-radius: 12px;
}

/* ★ 画像の強制縮小（絶対効くやつ）★ */
.modal-content img,
#modalImage {
  width: auto !important;
  height: auto !important;
  max-width: 80vw !important;   /* 画面の8割以内 */
  max-height: 70vh !important;  /* 画面の7割以内 */
  display: block;
  margin: 0 auto;
  object-fit: contain !important;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 28px;
  cursor: pointer;
  z-index: 100;
  color: #fff;
}


/* Responsive */
@media (max-width: 900px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-modal-content {
    width: 90%;
  }
}

@media (max-width: 600px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

html, body {
  overflow-x: hidden;
}

.works-grid {
  width: 100%;
  box-sizing: border-box;
}

.work-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.work-modal-content {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .work-modal-content {
    width: 90%;
    margin: 40px auto;
  }
  .works-grid {
    padding: 0 10px;
  }
}

@media (min-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px; /* 適度な余白 */
  }
}


/* ---- モーダル内画像の強制フィット ---- */
.modal-content img,
#modalImage {
  display: block;
  max-width: 100% !important;
  height: auto !important;
}

@media (min-width: 1024px) and (max-width: 1400px) {
  .modal-content {
    width: 90vw !important;
    max-width: 900px !important;
    max-height: 90vh !important;
  }

  .modal-content img,
  #modalImage {
    max-width: 100% !important;
    max-height: 80vh !important;
    object-fit: contain !important;
  }
}

.concept-panel {
  width: 100%;
  margin-left: 0;
}
html, body {
  overflow-x: hidden;
}
@media (min-width: 900px) {
  .works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
  }
}
/*=======================最終調整=========================*/

/* 施工事例ページ（works.html）専用の列数変更 */
.works-page .works-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  margin: 0 auto;
}

/* ---- 施工事例ページ専用レイアウト ---- */
.works-page .works-grid {
  grid-template-columns: repeat(2, 1fr);  /* ★スマホは2列 */
  gap: 28px;
}

/* タブレット以上で3列 */
@media (min-width: 768px) {
  .works-page .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* PC：スマホスライダーを消す、グリッド4列を使う */
.works-slider {
  display: none;
}

.works-grid {
  display: grid;
}

@media (max-width: 768px) {

  /* スマホ：グリッドを消す */
  .works-grid {
    display: none;
  }

  /* スマホ：スライダーだけ表示 */
  .works-slider {
    display: flex;
  }
}





/* ▼ 施工事例ページでは必ずグリッドを表示する */
.works-page .works-grid {
  display: grid !important;
}

/* ▼ 施工事例ページではスライダーは非表示 */
.works-page .works-slider {
  display: none !important;
}

/* スマホ（2列） */
@media (max-width: 600px) {
  .works-page .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* タブレット（3列） */
@media (min-width: 600px) and (max-width: 1024px) {
  .works-page .works-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* PC（4列にしたいならここで変更） */
@media (min-width: 1024px) {
  .works-page .works-grid {
    grid-template-columns: repeat(3, 1fr); /* ← 3 or 4 好きに調整 */
    gap: 32px;
  }
}

