html, body {
  max-width: 100%;
  overflow-x: hidden;
  /* opacity: 0; */
  /* transition: opacity 0.6s ease-in-out; */
}

/* body.loaded {
  opacity: 1;
} */

/* ページ遷移のフェードアウト */
.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

/* 追加の細かいスタイルがあればここに */
.section-title {
  font-size: 1.6rem;
  margin-top: 50px;
  margin-bottom: 18px;
  text-align: center;
}
.services-grid img {
display: block;
}
/* グローバルメニューを強制的に横並びにする */
/* まず nav 自体を横に広げる */
/* ヘッダー内レイアウト（ロゴ・メニュー・ボタン） */
.header-nav {
display: flex;
align-items: center;
justify-content: space-between;
gap: 40px;
}

/* ヘッダーの固定 + スクロールアニメーション用 */
.header-scroll {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: transform 0.3s ease;
}

/* 非表示状態（上に隠す） */
.header-hidden {
  transform: translateY(-100%);
}

/* nav 自体を伸ばす */
.global-nav {
  display: flex;
  justify-content: center;     /* 中央寄せ */
  align-items: center;
  gap: 50px;                    /* メニュー間のスペース */
  padding: 20px 0;
}

.global-nav .menu {
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

.global-nav .menu:hover {
  opacity: 0.7;
}

/* メニュー全体を横一列・中央寄せ */
.global-nav .menu ul {
display: flex;
flex-wrap: nowrap;          /* 折り返さない */
justify-content: center;    /* 中央寄せ */
gap: 40px;                  /* メニュー間の間隔 */
list-style: none;
margin: 0;
padding: 0;
}

/* li */
.global-nav .menu ul li {
margin: 0;
padding: 0;
}

/* リンクの見た目 */
.global-nav .menu ul li a {
display: block;
white-space: nowrap;        /* 途中で改行させない（お問い / 合わせを防ぐ） */
text-decoration: none;
color: #333;                /* 文字色（お好みで） */
font-size: 14px;
font-weight: 500;
}

/* ホバー時（お好みで） */
.global-nav .menu ul li a:hover {
opacity: 0.7;
}

/*
Theme Name: Smart Housing Theme
Theme URI: http://localhost
Author: 
Description: スマートハウジング用のカスタムテーマ
Version: 1.0
Text Domain: smarthousing-theme
*/
/*
Theme Name: Smart Housing Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: 工務店・リフォーム会社向けの明るい自作テーマ。Next.jsの概算見積フォームを組み込める。
Version: 1.0
Text Domain: smarthousing
*/

body {
font-family: "Segoe UI", "Hiragino Sans", "ヒラギノ角ゴ ProN", "Meiryo", sans-serif;
margin: 0;
background: #f5f9fb;
color: #333;
}

a {
color: #0aa4d6;
text-decoration: none;
}

a:hover {
opacity: .8;
}

img {
max-width: 100%;
height: auto;
}

/* ヘッダー固定 */
.site-header {
top: 0;
z-index: 999;
background: #fff;
border-bottom: 1px solid rgba(0,0,0,0.05);
position: fixed;
left: 0;
width: 100%;
transition: transform 0.35s ease;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

/* コンテナ共通 */
.container {
width: min(1100px, 94vw);
margin: 0 auto;
}

/* Hero */
.hero {
background: linear-gradient(135deg, #eaffff 0%, #ffffff 80%);
background-image: url('https://pub-e9ccb3af54e041148683fa753739c62f.r2.dev/smarthousing-theme/background/top.jpg'); 
background-size: cover;      /* 画像をエリアいっぱいに */
padding: 110px 0 70px;
text-align: center;
background-repeat: no-repeat;
padding: 150px 10px; /* ← 縦20px、横12px にして縦幅UP */
}

/* ▼背景を薄くする白い半透明レイヤー */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6); /* ← 透明度の調整 */
  border-radius: 6px;
  pointer-events: none; /* 操作を邪魔しない */

  /* 数字を前面に出す */
  z-index: 1;
}

.hero * {
  position: relative;
  z-index: 2;
}

.hero h1 {
font-size: clamp(2rem, 4vw, 3rem);
margin-bottom: 15px;
}

.hero p {
font-size: 1.05rem;
color: #555;
margin-bottom: 25px;
}

.btn-primary {
display: inline-block;
background: #0aa4d6;
color: #fff;
padding: 12px 22px;
border-radius: 9999px;
font-weight: 600;
}

/* 施工事例カード */
.case-grid {
display: grid;
grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
gap: 20px;
margin-top: 30px;
}

.case-card {
background: #fff;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0,0,0,0.03);
transition: transform .2s;
}

.case-card:hover {
transform: translateY(-4px);
}

.case-card-body {
padding: 15px 18px 20px;
}

.case-cat {
display: inline-block;
background: rgba(10,164,214,.12);
color: #0aa4d6;
padding: 3px 12px;
border-radius: 999px;
font-size: .7rem;
margin-bottom: 9px;
}

/* フッター */
.site-footer {
background: #0e161e;
color: #fff;
padding: 20px 0 50px;
margin-top: 70px;
}

/* フェードイン */
.fadein {
opacity: 0;
transform: translateY(15px);
transition: opacity .6s ease, transform .6s ease;
}

.fadein.is-visible {
opacity: 1;
transform: translateY(0);
}

/* トップに戻る */
#back-to-top {
position: fixed;
right: 20px;
bottom: 25px;
background: #0aa4d6;
color: #fff;
border-radius: 999px;
padding: 10px 12px;
cursor: pointer;
display: none;
}

/* ハンバーガーボタン */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 999px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}

/* 開いたとき：三本線 → バツ */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================
   会社概要テーブル
   ============================ */
/* ============================
   代表者挨拶（共通）
   ============================ */
.company-greeting {
  max-width: 900px;
  margin: 40px auto;
  line-height: 1.8;
}

.greeting-text {
  font-size: 0.95rem;
  color: #333;
}

.greeting-more {
  /* PCではそのまま表示 */
  display: inline;
}

.greeting-toggle {
  margin-top: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid #0aa4d6;
  background: #fff;
  color: #0aa4d6;
  cursor: pointer;
  display: none; /* PCではボタン非表示 */
}
/* 会社概要 */
.company-table {
width: 100%;
max-width: 1000;   /* ★ 横幅を700 → 900 に拡大（必要なら1000pxなどに変更） */
margin: 20px auto 0;
border-collapse: collapse;
background: #fff;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.company-table th,
.company-table td {
  padding: 12px 16px;
  font-size: 0.95rem;
}

.company-table th {
  width: 200px;       /* PC時のラベル側の幅 */
  background: #f0f7fa;
  text-align: left;
  white-space: nowrap;
}

.company-table tr:nth-child(even) td {
  background: #fafcff;
}

/* 挨拶 */
.access-section {
  margin: 40px auto;
}

.access-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 20px;
}

/* 左側：地図 */
.access-map-card {
  max-width: 600px;                 /* PCでの最大幅 */
  margin: 20px auto;                /* 中央寄せ＋上下余白 */
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* レスポンシブなマップ用ラッパー（4:3くらいの比率） */
.access-map-embed {
  position: relative;
  width: 100%;
  padding-top: 75%;                 /* ← 縦横比 (4:3)。低くしたければ 70% などに変更 */
  border-radius: 14px;
  overflow: hidden;
}

/* iframe を枠いっぱいにフィットさせる */
.access-map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;                      /* カード幅にピッタリ */
  height: 100%;
  border: 0;
}

/* 右側：テーブル */
.access-info {
  flex: 0.9;
}

.access-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.access-table th,
.access-table td {
  padding: 10px 14px;
  font-size: 0.95rem;
}

.access-table th {
  width: 140px;
  background: #f0f7fa;
  text-align: left;
  white-space: nowrap;
}

.access-table tr:nth-child(even) td {
  background: #fafcff;
}

/* ============================
   サービス紹介のカードグリッド
   ============================ */
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: 20px;
margin-top: 20px;
}

.service-card {
background: #fff;
border-radius: 20px;
padding: 18px 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.04);
transition: transform .2s ease, box-shadow .2s ease;
display: flex;
flex-direction: column;
}

.service-card h3 {
margin-top: 0;
margin-bottom: 8px;
font-size: 1.05rem;
}

.service-card p {
margin: 0;
font-size: 0.9rem;
line-height: 1.7;
}

.service-card:hover {
transform: translateY(-3px);
box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

/* 本文部分を “伸びる” 領域にする */
.service-card-body {
  flex: 1; /* ← これで高さ調整される！ */
  display: flex;
  flex-direction: column;
}

/* 本文のテキスト部分に可変余白を持たせる */
.service-card-body p {
  flex: 1;
}

/* ボタン部分は下に固定 */
.service-card-footer {
  margin-top: auto; /* ← これでカード下部に固定される */
}

.service-card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;     /* ← 好きな比率に調整可能（例：16/9, 1/1） */
  height: 150px;               /* ここで画像枠の高さを統一 */
  display: flex;
  align-items: center;         /* 縦中央 */
  justify-content: center;     /* 横中央 */
  overflow: hidden;
  background: #fff;
  border-radius: 16px 16px 0 0;   /* ← 上だけ丸くする */
  overflow: hidden;               /* ← 画像の角も丸くする */
}

.service-card-thumb img {
  width: 90%;
  height: 90%;
  object-fit: cover;         /* 切り抜かず全体表示 */
  object-position: center;     /* 常に中央 */
  display: block;
  border-radius: 16px 16px 16px 16px;   /* 念のため画像にも丸み */
}


/* 概算見積りページ用の全画面風レイアウト */
.estimate-fullwrap {
  margin: 0;
  padding: 0;
}

.estimate-iframe {
  display: block;
  width: 100vw;                         /* 画面の横幅いっぱい */
  height: calc(100vh - 80px);           /* 画面の高さからヘッダー分を引く */
  border: 0;
}

/* テーマによっては body や .container に余白があるので打ち消し */
.page-template-estimate-page body,
.page-template-estimate-page .container {
  margin: 0;
  padding: 0;
}

/* ============================
   施工事例一覧カード（Construction Example 用）
============================= */

.example-wrapper {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin: 50px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  max-width: 1200px;
  align-items: center;
}

.exampleSwiper {
  width: 55%;
  border-radius: 16px;
  overflow: hidden;
}

.exampleSwiper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  color: #0ea5e9;
}

.swiper-pagination-bullet-active {
  background: #0ea5e9 !important;
}

.example-info {
  width: 45%;
}

.example-info h3 {
  font-size: 26px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #333;
}

.example-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 25px;
}

.example-meta span {
  display: inline-block;
  margin-right: 15px;
  padding: 6px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 14px;
  color: #475569;
}

/* === 自作お問い合わせフォーム用 === */

.contact-form .contact-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-form .contact-table th,
.contact-form .contact-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.contact-form .contact-table th {
  width: 22%;
  font-weight: 600;
  text-align: left;
  vertical-align: middle;
}

.contact-form .contact-table td input[type="text"],
.contact-form .contact-table td input[type="email"],
.contact-form .contact-table td input[type="tel"],
.contact-form .contact-table td textarea,
.contact-form .contact-table td select {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
}

.contact-form .name-row {
  display: flex;
  gap: 12px;
}

.contact-form .name-block {
  flex: 1;
}

.contact-form .name-block label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.date-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 52%; 
}

/* セレクトボックスのサイズ調整 */
.date-row select {
  width: 100px; /* 必要に応じて調整（例：90px / 120px） */
  padding: 6px 8px;
  font-size: 14px;
}

/* 「年」「月」「日」などの文字も横並び */
.date-row span,
.date-row label {
  white-space: nowrap;
}

.contact-form .contact-submit-wrap {
  text-align: center;
  margin-top: 24px;
}

.contact-form .contact-submit-wrap button {
  padding: 10px 40px;
  font-size: 1rem;
  border-radius: 4px;
  border: none;
  background: #ff9800;
  color: #fff;
  cursor: pointer;
}

.form-errors {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #f44336;
  color: #c62828;
  background: #ffebee;
  font-size: 0.9rem;
}

.field-error {
  color: #c62828;
  font-size: 0.85rem;
  margin-top: 4px;
}

.badge-required {
  background-color: #ff8a9a;   /* 赤っぽい */
  color: #ffffff;
}

.badge-optional {
  background-color: #5ca9ff;   /* 青っぽい */
  color: #ffffff;
}

/* ====== フッター全体 ====== */
.site-footer {
  background: #0e1822; /* 高級感ある濃紺 */
  color: #d0d7dd;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

/* ======  左：ロゴ エリア ====== */
.footer-left {
  width: 32%;
}

.footer-logo {
  width: 140px;
  height: auto;
  margin-bottom: 10px;
}

.footer-copy {
  font-size: 13px;
  line-height: 1.6;
  color: #9ba3ad;
}

/* ====== 中央メニュー ====== */
.footer-center h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-center ul {
  list-style: none;
  padding: 0;
}

.footer-center li {
  margin-bottom: 8px;
}

.footer-center a {
  color: #d0d7dd;
  text-decoration: none;
}

.footer-center a:hover {
  color: #4ecbff;
}

/* ====== 右：SNS・SDGs ====== */
.footer-right {
  width: 32%;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  /* flex-direction: column; ====== 縦表示 ====== */
  flex-direction: row;            /* 横並び */
  /* justify-content: center;        中央寄せ */
  align-items: center;            /* 上下中央揃え */
  gap: 20px;                      /* 画像の間隔 */
  /* margin-top: 90px; */
}

.footer-right img {
  width: 150px;
  height: auto;
  border-radius: 6px;
  transition: 0.2s;
}

.footer-right img:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* ====== スマホ対応 ====== */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
  }

  .footer-right {
    width: 100%;
    display: flex;
    flex-direction: row;            /* 横並び */
    justify-content: center;        /* 中央寄せ */
    align-items: center;            /* 上下中央揃え */
    gap: 20px;                      /* 画像の間隔 */
    margin-top: 20px;
  }

  .footer-right img {
    width: 70px;
    height: auto;
  }
}


/* スマホ：縦並びレイアウト */
@media (max-width: 768px) {
  .contact-form .contact-table,
  .contact-form .contact-table tbody,
  .contact-form .contact-table tr,
  .contact-form .contact-table th,
  .contact-form .contact-table td {
    display: block;
    width: 100%;
  }

  .contact-form .contact-table th {
    border-bottom: none;
    padding-bottom: 0;
  }

  .contact-form .contact-table td {
    padding-top: 4px;
    margin-bottom: 12px;
  }

  .contact-form .name-row {
    flex-direction: column;
  }

  .date-row {
    flex-wrap: wrap;
    gap: 6px 12px;
}
.date-row select {
    width: 47%;
}

}


/* ============================
   SP（スマホ）対応
============================= */

@media screen and (max-width: 768px) {

  .example-wrapper {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .exampleSwiper {
    width: 100%;
  }

  .example-info {
    width: 100%;
  }

  .example-info h3 {
    font-size: 22px;
    text-align: center;
  }

  .example-meta span {
    margin-bottom: 8px;
  }
}
  

/* ============================
   スマホ（768px以下）共通左右余白
   ============================ */
@media (max-width: 768px) {

  /* ページ全体の左右に余白 */
  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden !important;  /* ← 横スクロール完全禁止 */
  }

  /* コンテンツ共通の左右余白（16px） */
  .container,
  .fadein,
  section,
  .services-grid--page,
  .access-map-card {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

.container h1 {
  padding-top: 55px !important;
}

  /* グリッドの横幅オーバー防止 */
  .services-grid,
  .services-grid--page {
    width: 100% !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* カードがはみ出さないようにする */
  .service-card {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* iframe（Googleマップ）が横にはみ出す問題の防止 */
  iframe {
    max-width: 100% !important;
    width: 100% !important;
    display: block;
  }
}


  /* ヘッダー*/
/* ============================
   スマホ幅（768px以下）のレイアウト
   ============================ */
@media (max-width: 768px) {

  /* Hero セクション少し上を詰める */
  .hero {
    padding-top: 90px;
    padding: 10px 10px; /* ← 縦20px、横12px にして縦幅UP */
    background-position: 50% 10%;
  }
  .hero h1 {
    font-size: 20px;
  }

  .hero p {
    font-size: 14px;   /* ← 好きなサイズに変更 */
    line-height: 1.6;  /* 読みやすさのため */
  }

  /* ヘッダーのレイアウト（ロゴ + ボタン） */
  .header-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap; /* 前に書いていた wrap もここでまとめる */
  }

  /* ロゴ小さめに */
  .site-title img {
    max-width: 180px;
    height: auto;
  }

  /* 概算見積もりボタンは下に・横いっぱい */
  .header-nav > .btn-primary {
    align-self: stretch;
    text-align: center;
    font-size: 14px;
    padding: 10px 0;
  }

  /* ハンバーガーを右上に固定 */
  .hamburger {
    display: flex;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 10001;
  }

  /* 三本線 → バツ用アニメーション */
  .hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 999px;
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
  }

  .hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* ナビ（.global-nav）をフルスクリーンのスライドメニューにする */
  .global-nav {
    position: fixed;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    z-index: 10000;
    flex-direction: column; 
    /* 右の外から待機 */
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s ease, opacity .35s ease;
  }

  /* 開いた時：右から左へスライドイン */
  .global-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* メニューを縦並びに */
  .global-nav .menu ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .global-nav .menu ul li a {
    font-size: 1.3rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
  }
}
 
/* メインページ */
@media (max-width: 768px) {
  .main-service-card h3 {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
  }
}

/* 会社概要 */

  /* 会社概要 */
  @media (max-width: 768px) {
  /* 挨拶 */
  .company-greeting {
    padding: 0 10px;
  }

  /* スマホでは挨拶の「続き」は最初は隠す */
  .greeting-more {
    display: none;
  }

  /* 開いた状態（JSで .is-open を付ける） */
  .greeting-text.is-open .greeting-more {
    display: inline;
  }

  /* スマホのときだけ「続きを読む」ボタンを表示 */
  .greeting-toggle {
    display: inline-block;
  }

  /* 会社概要 */
  .company-table {
    max-width: 100%;       /* 画面いっぱい使う */
    box-shadow: none;      /* フラットにしたいならお好みで */
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .company-table th {
    width: 100%;
    white-space: normal;
    border-bottom: none;
  }

  .company-table tr {
    margin-bottom: 8px;
    display: block;
    border-bottom: 1px solid #eee;
  }

  /* アクセス */
  .access-layout {
    flex-direction: column;
  }

  .access-section {
    padding: 0 10px;
  }

  .access-map iframe {
    min-height: 260px;   /* スマホでもある程度高さを確保 */
    border-radius: 12px;
    box-shadow: none;    /* 好みでOFF */
  }
  
  .access-map-card {
    margin: 16px auto;
  }

  .access-table th,
  .access-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .access-table th {
    border-bottom: none;
    white-space: normal;
  }

  .access-table tr {
    display: block;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
  }
}

/* ============================
   カード系をスマホで2列にする
   ============================ */
@media (max-width: 768px) {

  /* 共通：カードを2列 */
  .case-grid,
  .card-grid,
  .cards,
  .item-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* カードの中身が崩れにくくなる */
  .case-card,
  .card,
  .item-card {
    width: 100% !important;
  }
}

/* ▼ スマホ用カード最適化 ▼ */
@media (max-width: 480px) {
  .services-grid {
      display: flex;
      flex-direction: column;
      gap: 18px; /* カードの間隔 */
      padding: 0 12px;
  }

  .service-card {
      background: #ffffff;
      border-radius: 16px;
      padding: 16px 18px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      width: 100%;
      box-sizing: border-box;
      overflow-wrap: break-word; /* 文字がはみ出ない */
      word-break: break-word;
  }

  .service-card h3 {
      font-size: 1.2rem;
      margin-bottom: 8px;
      line-height: 1.4;
      padding: 5px 5px;
  }

  .service-card p {
      font-size: 0.95rem;
      line-height: 1.6;
      margin: 0;
      color: #333;
      padding: 10px 10px;
  }

  /* 見出しもスマホ最適化 */
  .section-title {
      font-size: 1.4rem;
      text-align: center;
      margin-bottom: 12px;
  }
}


@media (max-width: 768px) {

  /* サービス一覧ページ：スマホは2列 & 画面端に少し余白 */
  /* .services-grid--page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 10px;
    padding: 0 10px;
    box-sizing: border-box;
  } */

  /* .service-card {
    padding: 0;
    border-radius: 14px;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  } */

  /* ★ 画像を低くしてカード全体をコンパクトに */
  .service-card-thumb {
    height: 90px;         /* 150px → 90px に圧縮 */
  }

  .service-card-body {
    padding: 8px 10px;
  }

  .service-card-footer {
    padding: 0 10px 10px;
  }

  /* タイトル小さめ＋1行 */
  .service-card-body h2 {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
  }

  /* 説明文は非表示のまま */
  .service-card-body p {
    display: none;
  }

  /* 「詳しく見る」を小さくする */
  .btn-primary.btn-primary-sm {
    font-size: 0.7rem;
    padding: 4px 10px;      /* かなり小さめの Pill ボタンに */
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .exampleSwiper {
    height: 260px;
  }
}

/* ▼ スマホ（横幅 768px 以下）の時だけ height を画面内に収める */
@media (max-width: 768px) {
  iframe {
    height: 100vh !important;   /* 画面の高さぴったり */
    max-height: 100vh !important;
    /* overflow: hidden; */
  }
}

@media (max-width: 768px) {
  .iframe-wrap {
    margin-top: 10px !important;
  }
}

@media (max-width: 768px) {
  .estimate-frame {
    height: 100vh !important;
    max-height: 100vh !important;
  }
}

@media (max-width: 768px) {
  iframe {
    height: 100vh !important;
    max-height: 100vh !important;

    /* ← これが重要！ */
    min-height: 100vh !important; 

    /* スマホだと画面内に収まる */
    /* overflow: hidden; */
  }
}