/* --- リセット & 基本設定 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* 全体の基本フォントを Google Fonts の Noto Sans JP と Poppins に指定 */
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; /* 文字の描写を滑らかにする */
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- 方眼紙（グリッド）背景 --- */
.grid-bg {
  background-color: #ffffff;
  background-image:
    linear-gradient(#e8ecef 1px, transparent 1px),
    linear-gradient(90deg, #e8ecef 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --- 固定ヘッダー --- */
.header {
  position: -webkit-sticky; /* これを sticky の上に追加 */
  position: sticky; /* fixed から sticky に変更 */
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background: linear-gradient(90deg, #2ad2d3 0%, #3a7bd5 50%, #592be6 100%);
  display: flex;
  align-items: center;
  padding: 0 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-link .en {
  font-size: 1rem;
  letter-spacing: 0.8px;
}

.nav-link .ja {
  font-size: 0.55rem;
  font-weight: 500;
  opacity: 0.85;
}

.nav-link:hover { opacity: 0.75; }

.social-link {
  color: #ffffff;
  font-size: 1.4rem;
  text-decoration: none;
}

/* ハンバーガー（スマホ用） */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  position: absolute;
  transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- 共通クラス --- */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.rounded-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: block;
}

/* --- ヒーローセクション --- */
.hero {
  padding-top: 0px; /* ヘッダー固定分の高さ */
  width: 100%;
}

.hero-img-wrapper {
  width: 100%;
}

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

/* --- コンセプトセクション --- */
.concept-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}

.concept-text-box {
  flex: 1;
  position: relative;
}

.stripe-accent {
  width: 90px;
  height: 90px;
  background: repeating-linear-gradient(
    -45deg,
    #ffe600,
    #ffe600 5px,
    #ffffff 5px,
    #ffffff 10px
  );
  margin-bottom: 15px;
}

.concept-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  color: #222222;
}

.concept-desc {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.8;
}

.concept-img-box {
  width: 42%;
}

.banner-container {
  margin-top: 30px;
  text-align: center;
}

.daikin-banner {
  max-width: 700px;
  width: 80%;
  height: auto;
  border: 1px solid #e0e0e0;
  margin-top: 50px;
  margin-bottom: 50px;
}

/* --- サービス（画像左右配置） --- */
.services {
  display: flex;
  flex-direction: column;
  gap: 80px; /* 各画像間の縦の余白 */
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* 横スクロールの発生を防ぐ */
  padding: 0; /* 画面端まで画像をつけるためにパディングをリセット */
  /* background-color: #000000; 必要に応じて黒背景を指定（画像の余白と馴染ませるため） */
}

/* 画像を囲むコンテナの基本設定 */
.service-item-image {
  /* PCなど大画面で大きくなりすぎないように最大幅を設定 */
  width: 100%;
  max-width: 1900px;
}

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

/* --- 左右の配置設定 --- */

/* 右画面の端に寄せる (1番目、3番目) */
.align-right {
  align-self: flex-end;
}

/* 左画面の端に寄せる (2番目) */
.align-left {
  align-self: flex-start;
}

/* --- CTAボタン --- */
.cta-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 100px;
  padding-bottom: 100px;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #555555 0%, #333333 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 18px 25px;
  border-radius: 12px;
  width: 100%;
  max-width: 430px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-btn span {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.8;
  text-align: center;
}

.cta-btn .icon {
  font-size: 2.6rem;
  margin-left: 25px;
}

/* --- フッター --- */
.footer {
  background-color: #f8f9fa;
  padding-top: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-logo-img {
  max-width: 180px;
  height: auto;
  margin-bottom: 25px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: #555555;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
}

.copyright {
  font-size: 0.75rem;
  color: #888888;
  margin-bottom: 40px;
}

.footer-illustration {
  width: 100%;
  line-height: 0;
}

.city-img {
  width: 100%;
  max-width: 1400px;
  height: auto;
  opacity: 0.7;
}

/* --- レスポンシブ (スマホ表示 768px以下) --- */
@media (max-width: 768px) {
  .header { padding: 0 20px; }
  .hamburger { display: block; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(10, 20, 40, 0.95);
    backdrop-filter: blur(8px);
    padding: 90px 30px;
    transition: right 0.4s;
  }
  .nav.is-active { right: 0; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 20px; }

  .concept-inner { flex-direction: column; }
  .concept-img-box { width: 100%; }

  .cta-container { flex-direction: column; align-items: center; }
  .cta-btn { max-width: 100%; }

  /* サービス画像のスマホ用余白調整 */
  .services {
    gap: 40px;
  }
  .pc-only {
    display: none; /* スマホでは自然に折り返させるため<br>を消す */
  }
}


/* --- コンセプトセクション --- */
.concept-title {
  font-size: 2.5rem;
  font-weight: 500; /* 太く力強い見出し */
  line-height: 1.5;
  margin-bottom: 20px;
  color: #222222;
  letter-spacing: -0.5px;
}

.concept-desc {
  font-size: 0.95rem;
  font-weight: 400;
  color: #555555;
  line-height: 1.8;
}

/* --- 対応エリア --- */
.area {
  text-align: center;
}

.area-box {
  max-width: 760px;
  margin: 0 auto;
}

.area-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px; /* バッジとテキストの間隔 */
  padding: 30px 0;
  border-bottom: 1px solid #dcdcdc;
}

.area-row:first-child {
  border-top: 1px solid #dcdcdc;
}

.area-badge {
  background-color: #ffd000;
  color: #333333;
  font-weight: bold;
  font-size: 0.95rem;
  width: 140px;
  text-align: center;
  padding: 8px 0;
  border-radius: 30px;
  flex-shrink: 0;
}

.area-list {
  font-size: 0.95rem;
  color: #333333;
  line-height: 2;
  letter-spacing: 0.05em;
  text-align: left;
}

.area-note {
  text-align: center;
  font-size: 0.85rem;
  color: #666666;
  margin-top: 30px;
}

/* --- フッター全体 --- */
.footer {
  background-color: #f6f6f6; /* 画像のような薄いグレー背景 */
  text-align: center;
}

.footer-inner {
  padding: 60px 20px 40px; /* イラスト上の余白 */
}

/* --- ロゴ部分 --- */
.footer-logo {
  margin-bottom: 40px; /* メニューとの間に余白を作る */
}
.footer-logo-img {
  max-width: 300px; /* 必要に応じてサイズ調整してください */
  height: auto;
}

/* --- 1段目：メインナビゲーション --- */
.footer-nav-main {
  display: flex;
  justify-content: center;
  gap: 60px; /* 各メニューの間隔 */
  list-style: none;
  margin-bottom: 25px;
  padding: 0;
}

.footer-nav-main a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333333;
  transition: opacity 0.3s;
}

.footer-nav-main a:hover {
  opacity: 0.7;
}

.footer-nav-main .en {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #444444;
}

.footer-nav-main .ja {
  font-size: 0.7rem;
  color: #777777;
}

/* --- 2段目：サブナビゲーション --- */
.footer-nav-sub {
  display: flex;
  justify-content: center;
  gap: 50px;
  list-style: none;
  margin-bottom: 45px;
  padding: 0;
}

.footer-nav-sub a {
  color: #999999;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}

.footer-nav-sub a:hover {
  opacity: 0.7;
}

/* --- 3段目：コピーライト --- */
.copyright {
  font-size: 0.8rem;
  color: #666666;
  margin: 0;
}

/* --- 街並みイラスト --- */
.footer-illustration {
  width: 100%;
  height: 120px; /* 画像の高さに合わせて調整してください（例: 100px〜150px）*/
  background-image: url('../img/all/footer.png');
  background-repeat: repeat-x; /* 横方向へ自動で繰り返し並べる */
  background-position: bottom center;
  background-size: contain; /* または auto 100% */
}

/* ロゴ画像のサイズ調整 */
.logo {
  display: inline-block;
  line-height: 0; /* 画像の下に余計な隙間ができるのを防ぐ */
}

.logo .logo-img {
  height: 22px; /* ここでお好みの高さ（例: 35pxや40pxなど）に調整してください */
  width: auto;  /* 高さに合わせて横幅は自動で綺麗に縮小されます */
  display: block;
}

/* --- トップへ戻るボタン --- */
.page-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 99;
  width: 60px;
  height: 60px;
  background-color: #333333; /* サイト全体のトーンに合わせたダークグレー */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

/* ظهرさせるためのクラス（スクロールするとJSで付与されます） */
.page-top.is-show {
  opacity: 1;
  visibility: visible;
}

/* 上向きの矢印（CSSで描画） */
.page-top-arrow {
  width: 10px;
  height: 10px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: rotate(-45deg);
  margin-bottom: 2px;
  transition: transform 0.3s ease;
}

/* 「TOP」の文字 */
.page-top-text {
  font-size: 0.65rem;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ホバー時のアクション */
.page-top:hover {
  background-color: #ffd000; /* エリアバッジ等で使っているアクセントの黄色に変更してもOK */
  color: #333333;
}

.page-top:hover .page-top-arrow {
  border-top-color: #333333;
  border-right-color: #333333;
  /* 順番を「translateY（移動）」を先にして、最後に「rotate（回転）」を指定する */
  transform: translateY(-4px) rotate(-45deg);
}


/* --- カンパニーページ専用スタイル --- */

/* 挨拶・メッセージ */
.company-greeting {
  text-align: center;
}
.greeting-img-box {
  margin-bottom: 40px;
}
.greeting-message {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  line-height: 2;
}

/* 外観画像の基本設定（PC用） */
.greeting-img {
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: -40px auto 0;
  display: block;
}

/* --- 会社情報セクション全体の定義 --- */
.company-info-section {
  width: 100%;
  position: relative; /* ★追加 */
  background-color: #ffffff;
  padding: 40px 0 170px 0;
}

/* ① 上部パーツ（角丸） */
.company-bg-top {
  width: 100%;
  line-height: 0;
  margin-bottom: -1px; /* 中間パーツとの1pxのすき間防止 */
}
.company-bg-top img {
  width: 100%;
  height: auto;
  display: block;
}

/* ② 中間パーツ（グレー背景 ＋ 会社情報） */
.company-info-body {
  width: 100%;
  background-color: #f6f6f6;
  padding: 10px 20px 20px; /* ★下の余白（240px）を広げてビルを重ならせるエリアを作ります */
}

/* 表コンテンツ（ビルより前面に表示） */
.company-info-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative; /* ★追加 */
  z-index: 2;         /* ★ビル画像より前面に表示 */
}

/* 見出し（対応エリア / Service Area） */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 0.05em;
}

.section-title .en-sub {
  font-size: 0.95rem;
  font-weight: 400;
  color: #555555;
  letter-spacing: 0.02em;
}

.info-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 0.05em;
}

.info-section-title .en-sub {
  font-size: 0.95rem;
  font-weight: 400;
  color: #555555;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* 会社情報テーブルの装飾 */
.info-row {
  display: flex;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid #dcdcdc;
}

.info-row:first-child {
  border-top: 1px solid #dcdcdc;
}

.info-badge {
  background-color: #ffd000;
  color: #333333;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 20px;
  width: 140px;
  text-align: center;
  flex-shrink: 0;
  margin-right: 40px;
}

.info-text {
  font-size: 0.95rem;
  color: #444444;
  line-height: 1.8;
}

/* ③ 下部パーツ（絶対配置で表の下側にめり込ませる） */
.company-bg-bottom {
  width: 100%;
  line-height: 0;
  position: absolute; /* ★絶対配置に変更 */
  bottom: 5px;          /* セクションの最下部に固定 */
  left: 0;
  z-index: 1;         /* 表の後ろに配置 */
  pointer-events: none; /* マウス操作を透過 */
}

.company-bg-bottom img {
  width: 100%;
  height: auto;
  display: block;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .company-info-body {
    padding: 0 15px;
  }
  .info-row {
    flex-direction: column;
    gap: 10px;
  }
  .info-badge {
    margin-right: 0;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .company-info-box {
    padding: 40px 20px;
    background-size: cover;
  }

  .info-row {
    flex-direction: column;
    gap: 10px;
  }

  .info-badge {
    margin-right: 0;
  }
}

/* --- 地図セクション全体 --- */
.map-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

.map-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* タイトル (「地 図」と「MAP」) */
.map-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333333;
  letter-spacing: 0.1em;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-title .en-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: #888888;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* 地図枠（絶対配置の基準） */
.map-wrapper {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

/* 左上の青いドット装飾（純粋CSSで再現） */
.map-dots-deco {
  position: absolute;
  top: -45px;
  left: -55px;
  width: 130px;
  height: 130px;
  z-index: 1; /* マップの後ろに配置 */

  /* 青い水玉グラデーション */
  background-image: radial-gradient(#00a0e9 38%, transparent 39%);
  background-size: 22px 22px;

  /* 45度回転させてひし形パターンにする */
  transform: rotate(45deg);
  pointer-events: none;
}

/* Googleマップ本体 */
.map-wrapper iframe {
  position: relative;
  z-index: 2; /* ドット装飾の前に重ねる */
  width: 100%;
  height: 380px;
  display: block;
}

/* --- レスポンシブ対応 (スマホ) --- */
@media (max-width: 768px) {
  .map-dots-deco {
    width: 110px;
    height: 110px;
    top: -25px;
    left: -15px;
    background-size: 16px 16px;
  }

  .map-wrapper iframe {
    height: 300px;
  }
}

/* レスポンシブ（スマホ用） */
@media (max-width: 768px) {
  .company-info-box {
    padding: 30px 20px;
  }
  .info-row {
    flex-direction: column;
    gap: 10px;
  }
  .info-badge {
    margin-right: 0;
  }
}

/* ==========================================
   流れセクション下部 CTA・ボタンエリア
   ========================================== */
.flow-cta {
  margin-top: 80px;
  text-align: center;
}

.flow-note {
  font-size: 0.8rem;
  color: #666666;
  margin-bottom: 12px;
}

.flow-cta-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 45px;
  letter-spacing: 0.03em;
}

/* ボタン配置グループ */
.flow-btn-group {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ダークグレーボタン本体 */
.flow-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 370px;
  max-width: 100%;
  padding: 22px 28px;
  background-color: #555555;
  color: #ffffff;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.flow-btn:hover {
  background-color: #333333;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.flow-btn .btn-text {
  text-align: center;
  flex-grow: 1;
}

.flow-btn .sub {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: #e0e0e0;
  margin-bottom: 4px;
}

.flow-btn .main {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.flow-btn .btn-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-left: 12px;
}

/* スマホ表示切り替え（768px以下） */
@media (max-width: 768px) {
  .flow-cta {
    margin-top: 50px;
  }

  .flow-cta-title {
    font-size: 1.15rem;
    margin-bottom: 30px;
  }

  .flow-btn-group {
    gap: 16px;
  }

  .flow-btn {
    width: 90%;
    padding: 18px 20px;
  }

  .flow-btn .sub {
    font-size: 0.78rem;
  }

  .flow-btn .main {
    font-size: 0.95rem;
  }

  .flow-btn .btn-icon {
    width: 32px;
    height: 32px;
  }
}

@media screen and (max-width: 768px) {
  .concept-inner {
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    padding: 0%; /* 画面両端の余白（グリッド背景の余白に合わせる） */
  }

  /* --- 画像部分の調整 --- */
  .concept-img-box {
    order: 1; /* 画像を上に配置 */
    width: 85%; /* 画像左側に空白を作るため、幅を85%程度にする */
    margin-left: auto; /* 右寄せにする */
    margin-bottom: 30px; /* 下のテキストとの余白 */
  }

  .concept-img-box img {
    /* HTML直書きの style="width:109%;" を強制リセット */
    width: 100% !important;
    height: auto;
    display: block;
  }

  /* --- テキスト部分のベース --- */
    .concept-text-box {
      order: 2;
      position: relative;
      padding-left: 10px;
      z-index: 0; /* ★追加：ここで重なりの基準（親レイヤー）を作ります */
    }

    /* --- 黄色い斜めストライプ（アクセント） --- */
      .stripe-accent {
        position: absolute;
        top: -35px;
        left: 0;
        margin: 0 !important;
        width: 48px;
        height: 48px;
        z-index: 1; /* ★修正：マイナスではなく「1」にして背景に埋もれないようにします */
      }

      /* --- タイトル --- */
        .concept-title {
          font-size: 25px;
          font-weight: 600;
          line-height: 1.4;
          margin-bottom: 24px;
          position: relative;
          z-index: 2; /* ★修正：ストライプの「1」より大きい「2」にすることで、文字を確実に手前に出します */
          letter-spacing: 0.05em;
        }

  /* 説明文（リード文） */
  .concept-desc {
    font-size: 16px;
    line-height: 1.8; /* 画像のように行間をゆったり取る */
    color: #333;
  }
}

/* --- PCとスマホの切り替え用（メディアクエリの外に記述） --- */
.sp-only {
  display: none;
}

/* --- 以下、モバイル用メディアクエリ内に追加 --- */
@media (max-width: 768px) {

  .sp-only {
    display: block;
  }
  .pc-only {
    display: none !important;
  }

  /* サービスセクション全体の調整 */
  .services {
    gap: 70px !important; /* ブロック間の間隔 */
  }

  .service-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  /* --- 写真部分の配置 --- */
  .service-photo {
    width: 100%;
    overflow: hidden; /* JPG画像の黒い四隅を切り落として丸く見せます */
  }

  /* 給排水（左寄せ・右側だけ角丸） */
  .service-block.type-left .service-photo {
    margin-right: auto;
    margin-left: 0;
  }

  /* 空調（右寄せ・左側だけ角丸） */
  .service-block.type-right .service-photo {
    margin-left: auto;
    margin-right: 0;
  }

  .service-photo img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* --- タイトルボタン部分（写真に重ねる） --- */
  .service-btn {
    width: 82%;
    max-width: 320px;
    margin-top: -35px; /* ★マイナス値で上の写真にめり込ませる */
    position: relative;
    z-index: 2;
  }

  .service-btn img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18)); /* 影をつけて浮遊感を出す */
  }

  /* --- テキスト部分 --- */
  .service-text {
    margin-top: 25px; /* ボタンとテキストの空き */
    width: 90%;
    text-align: center;
  }

  .service-text p {
    font-size: 1.1rem;
    line-height: 2.2; /* 行間をゆったり取る */
    color: #333;
    font-weight: 500;
  }

  /* --- 装飾パーツの配置 --- */
  .accent-blue {
    position: absolute;
    bottom: -15px;
    left: 10%; /* 画面左からの空き */
    width: 40px;
    height: auto;
    z-index: -1;
  }

  .accent-pink {
    position: absolute;
    bottom: -25px;
    right: 5%; /* 画面右からの空き */
    width: 60px;
    height: auto;
    z-index: -1;
  }

  /* ==========================================
     フッター（スマホ表示の完全再現）
     ========================================== */

  /* フッター全体の余白バランス調整 */
  .footer-inner {
    padding: 50px 20px 25px;
  }

  /* ロゴのサイズと下の余白 */
  .footer-logo {
    margin-bottom: 40px;
  }
  .footer-logo-img {
    max-width: 230px; /* スクリーンショットの比率に合わせたサイズ */
    width: 100%;
  }

  /* 1段目：メインナビ（HOME, COMPANY等）を非表示にする */
  .footer-nav-main {
    display: none;
  }

  /* 2段目：サブナビ（プライバシー、サイトマップ）を縦並びに */
  .footer-nav-sub {
    flex-direction: column;
    align-items: center;
    gap: 14px; /* 2つのリンクの縦の絶妙な間隔 */
    margin-bottom: 35px; /* コピーライトとの間隔 */
  }

  .footer-nav-sub a {
    font-size: 0.9rem;
    color: #555555; /* スクリーンショットに合わせた少し濃いグレー */
    letter-spacing: 0.05em;
  }

  /* 3段目：コピーライト */
  .copyright {
    font-size: 0.8rem;
    color: #666666;
  }

  /* 街並みイラストのスマホ用サイズ調整 */
  .footer-illustration {
    height: 115px; /* ★スクリーンショットの比率に合わせた建物の高さ */
    background-size: auto 100%; /* ★重要：画面幅に縮小させず、高さを基準にサイズを固定する */
    background-position: bottom center;
  }

  /* 外観画像のスマホ用重なり・サイズ調整 */
  .greeting-img {
    margin-top: -30px; /* 重なり幅をスマホ用に適切に縮小 */
    width: 100%;
    max-width: 100%;
  }

  /* 横ブレ（横スクロール）防止対策 */
  .company-greeting,
  .company-info-section,
  .map-section {
    overflow: hidden;
    width: 100%;
  }
  /* 外観画像のスマホ用重なり・サイズ調整 */
    .greeting-img {
      margin-top: -30px; /* 重なり幅をスマホ用に適切に縮小 */
      width: 100%;
      max-width: 100%;
    }
}

/* 横ブレ（横スクロール）防止対策 */
.company-greeting,
.company-info-section,
.map-section {
  overflow: hidden;
  width: 100%;
}

/* ==========================================
   モバイル検証 横ブレ完全解消修正コード
   ========================================== */

/* 1. 全体コンテナの横溢れカット（iOS / DevTools対策） */
html, body {
  width: 100%;
  max-width: 100%;
}

main {
  width: 100%;
  overflow: hidden;
}

/* 2. スマホ（768px以下）用はみ出し要素の個別修正 */
@media (max-width: 768px) {

  /* 【原因①の対策】対応エリアの文字間隔と表示形式を修正 */
  .area-row {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      padding: 30px 0;
    }

    .area-badge {
      margin: 0 auto;
    }

    .area-list {
      text-align: center !important;
      line-height: 2.2 !important;
      letter-spacing: 0.05em !important;
      width: 100% !important;
      display: block !important;
      box-sizing: border-box !important;
      word-break: break-all;
    }


  /* 【原因②の対策】地図ドット装飾の画面外飛び出しをカット */
  .map-wrapper {
    position: relative;
    overflow: hidden !important;       /* マイナス配置・回転されたドットの飛び出しを遮断 */
  }

  .map-dots-deco {
    left: 0 !important;               /* マイナス配置を解除して画面内に収める */
    top: -10px !important;
  }

  /* 各主要セクションの横幅・要素オーバーフロー固定 */
  .hero,
  .company-greeting,
  .company-info-section,
  .map-section,
  .flow-btn-group,
  .area,
  .footer {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .info-badge {
    font-size: 16px;
  }
  .info-text {
    font-size: 16px;
    padding-left: 10px;
  }
}
  /* ==========================================
   会社情報 モバイル用背景画像のレスポンシブ調整
   ========================================== */
@media (max-width: 768px) {
  /* pictureタグ自体の表示スタイル制御 */
  .company-bg-top picture,
  .company-bg-bottom picture {
    display: block;
    width: 100%;
  }

  /* モバイル用画像のアスペクト比に合わせてめり込み位置を最適化 */
  .company-bg-bottom {
    bottom: 100px; /* モバイル画像（back_kadomaru_under_mob.png）の高さに合わせて微調整してください */
  }

  /* 表の下部余白を調整してビル線画と重なりすぎないようにガード */
  .company-info-body {
    padding-bottom: 0px !important;
  }
  .map-section {
    margin-top: -87px;
  }
  .footer-illustration {
    height: 115px; /* ★スクリーンショットの比率に合わせた建物の高さ */
    background-size: auto 100%; /* ★重要：画面幅に縮小させず、高さを基準にサイズを固定する */
    background-position: bottom center;
    background-image: url('../img/all/mob/footer_mob.png');
  }
}

/* --- スクロールアニメーション共通設定 --- */
.js-fade-up,
.js-fade-left,
.js-fade-right,
.js-zoom-in {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 2.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* 各方向の初期位置（画面外・変形） */
.js-fade-up { transform: translateY(50px); }
.js-fade-left { transform: translateX(-100px); }
.js-fade-right { transform: translateX(100px); }
.js-zoom-in { transform: scale(0.92); }

/* アニメーション発火時（画面内に入った時） */
.js-fade-up.is-animated,
.js-fade-left.is-animated,
.js-fade-right.is-animated,
.js-zoom-in.is-animated {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ディレイ（時間差で表示させる場合） */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }


/* ページ内リンクで飛んだ際、ヘッダーの高さ分（+少しの余白）をズラす設定 */
#plumbing,
#hvac,
#renovation {
  scroll-margin-top: 100px; /* ヘッダーの高さが70pxの場合、少し余裕を持たせて100px程度がおすすめ */
}

/* （おまけ）画像がリンクになったことが分かるようにホバー時に少し透過させる */
a[href^="works.html#"] {
  display: block; /* 余白の崩れを防ぐ */
  transition: opacity 0.3s ease;
}
a[href^="works.html#"]:hover {
  opacity: 0.8;
}


/* モバイル表示時（画面幅768px以下）のメニュー左揃え設定 */
@media (max-width: 768px) {
  /* メニュー領域全体のパディング（左端からの余白調整） */
  .nav {
    padding: 90px 40px !important; /* 40px 部分で左余白を調整できます */
  }

  /* メニューリスト全体の左揃え */
  .nav-list {
    flex-direction: column;
    align-items: flex-start !important;
  }

  /* 英語（HOME等）と日本語（ホーム等）の左揃え */
  .nav-link {
    align-items: flex-start !important;
    text-align: left !important;
  }
}
