/*
Theme Name: 舷冷熱学
Theme URI: https://genreinetsugaku.jp/
Author: 株式会社舷冷熱学
Description: 福岡の業務用エアコン専門業者 株式会社舷冷熱学のWordPressテーマ
Version: 1.0.0
License: Proprietary
Text Domain: genreinetsugaku
*/

/* ========================================
   株式会社舷冷熱学 ウェブサイト共通CSS
   モバイルファースト レスポンシブデザイン
   ======================================== */

/* ===== リセットCSS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Meiryo", sans-serif;
  color: #333333;
  line-height: 1.8;
  background-color: #FFFFFF;
  word-break: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol {
  list-style: none;
}

/* ===== カラーパレット ===== */
:root {
  /* メインカラー（信頼性・プロフェッショナル - 濃紺系） */
  --primary-blue: #1a3a5f;
  --dark-blue: #0f2537;
  --light-blue: #e8f0f7;
  --medium-blue: #2d5a87;
  --navy-blue: #0a1e2e;

  /* アクセントカラー（親しみやすさ・温かみ） */
  --accent-orange: #FF6600;
  --light-orange: #FFF4E6;
  --dark-orange: #CC5500;

  /* ニュートラルカラー */
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #CCCCCC;
  --off-white: #FAFAFA;
  --white: #FFFFFF;

  /* ステータスカラー */
  --success: #28A745;
  --warning: #FFC107;
  --error: #DC3545;
  --info: #17A2B8;

  /* スペーシング */
  --spacing-xs: 0.25rem;  /* 4px */
  --spacing-s: 0.5rem;    /* 8px */
  --spacing-m: 1rem;      /* 16px */
  --spacing-l: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;     /* 32px */
  --spacing-xxl: 3rem;    /* 48px */
  --spacing-xxxl: 4rem;   /* 64px */
}

/* ===== タイポグラフィ ===== */
h1 {
  font-size: 1.75rem;  /* 28px */
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy-blue);
  margin-bottom: var(--spacing-l);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;   /* 24px */
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy-blue);
  margin-bottom: var(--spacing-m);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy-blue);
  margin-bottom: var(--spacing-m);
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  line-height: 1.5;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-s);
}

p {
  font-size: 1rem;     /* 16px */
  line-height: 1.8;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-m);
}

/* ===== コンテナ ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-m);
}

.section {
  padding: var(--spacing-xxl) 0;
}

/* ===== ヘッダー ===== */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 12px rgba(15, 37, 55, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  border-bottom: 1px solid rgba(15, 37, 55, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 var(--spacing-m);
  position: relative;
}

/* モバイル: ロゴ左、ハンバーガー右 */
@media (max-width: 767px) {
  .header-inner {
    justify-content: space-between;
  }

  .header-actions {
    display: none; /* モバイルでは電話番号を非表示 */
  }
}

.logo {
  height: 40px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.footer-section img {
  height: 40px;
  width: auto;
  margin-bottom: var(--spacing-m);
  object-fit: contain;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-m);
}

.phone-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-s);
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  word-break: keep-all;
  white-space: nowrap;
}

.phone-link svg {
  flex-shrink: 0;
  color: var(--primary-blue);
}

.phone-link:hover {
  color: var(--medium-blue);
}

.phone-link:hover svg {
  color: var(--medium-blue);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 28.8px;
  height: 28.8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-blue);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7.2px, 7.2px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7.2px, -7.2px);
}

/* ナビゲーションメニュー（モバイル） */
.nav-mobile {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: 0 4px 20px rgba(15, 37, 55, 0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid rgba(15, 37, 55, 0.05);
}

.nav-mobile.active {
  max-height: 100vh;
}

.nav-mobile ul {
  padding: var(--spacing-m);
}

.nav-mobile li {
  border-bottom: 1px solid var(--light-gray);
}

.nav-mobile a {
  display: block;
  padding: var(--spacing-m);
  color: var(--dark-gray);
  font-weight: 500;
}

.nav-mobile a:hover {
  background-color: var(--off-white);
  color: var(--primary-blue);
}

/* デスクトップナビゲーション */
.nav-desktop {
  display: none;
}

/* ===== 固定フッター（コンタクトボックス - モバイルのみ） ===== */
.contact-footer {
  display: none; /* デスクトップでは非表示 */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--navy-blue);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
  padding: var(--spacing-m);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-footer.active {
  display: block;
}

.contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-s);
  max-width: 600px;
  margin: 0 auto;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-s);
  padding: var(--spacing-m);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  color: var(--white);
  text-decoration: none;
}

.contact-btn-phone {
  background-color: #28a745;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.contact-btn-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.contact-btn-phone:active {
  transform: translateY(0);
}

.contact-btn-line {
  background-color: #06c755;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.contact-btn-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.4);
}

.contact-btn-line:active {
  transform: translateY(0);
}

.contact-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-btn-icon svg {
  width: 100%;
  height: 100%;
}

.contact-btn-text {
  font-size: 0.875rem;
  font-weight: 600;
}

/* モバイルのみ表示 */
@media (max-width: 767px) {
  .contact-footer {
    display: block;
  }

  /* 固定フッター分の余白を追加 */
  main {
    padding-bottom: 90px;
  }

  .footer {
    padding-bottom: 110px; /* 固定フッター分の余白 */
  }

  /* スマホ用ヒーロー画像（縦長・作業風景）に差し替え */
  .hero {
    background-image: url('images/hero/hero-mobile.png');
    background-attachment: scroll;
    background-position: center center;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero p {
    font-size: 0.9375rem;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* モバイルでのタイポグラフィ調整 */
  h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: 1.375rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  h3 {
    font-size: 1.125rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  h4 {
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* モバイルでのカードタイトルとテキスト調整 */
  .card-title {
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .card-text {
    font-size: 0.875rem;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* モバイルでのグリッド調整 */
  .grid {
    gap: var(--spacing-m);
  }

  /* モバイルでのカード調整 */
  .card {
    padding: var(--spacing-m);
  }

  /* モバイルでのセクションタイトル調整 */
  .section-title h2 {
    font-size: 1.375rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .section-title p {
    font-size: 0.875rem;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* モバイルでのボタンテキスト調整 */
  .btn {
    font-size: 0.875rem;
    padding: var(--spacing-m) var(--spacing-l);
    word-break: keep-all;
    white-space: nowrap;
  }

  /* モバイルでの電話番号リンク調整 */
  .phone-link {
    font-size: 0.8125rem;
    word-break: keep-all;
  }

  /* モバイルでのコンテナ調整 */
  .container {
    padding: 0 var(--spacing-m);
  }

  /* モバイルでのテキスト調整 */
  p {
    font-size: 0.875rem;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* モバイルでのリスト調整 */
  ul, ol {
    font-size: 0.875rem;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* モバイルでの改行調整 */
  .mobile-br {
    display: block;
  }

  /* モバイルでのフッターロゴ中央揃え */
  .footer-section img {
    margin-left: auto;
    margin-right: auto;
  }

  /* モバイルでのフッターセクション中央揃え */
  .footer-section:first-child {
    text-align: center;
  }
}

/* デスクトップでは改行を非表示 */
@media (min-width: 768px) {
  .mobile-br {
    display: none;
  }
}

/* ===== フッター ===== */
.footer {
  background-color: var(--navy-blue);
  color: var(--white);
  padding: var(--spacing-xxl) 0 var(--spacing-l);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  padding: 0 var(--spacing-m);
}

.footer-section {
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-m);
}

.footer-section p {
  color: var(--white);
  opacity: 0.9;
}

.footer-section ul li {
  margin-bottom: var(--spacing-s);
  color: var(--white);
}

.footer-section a {
  color: var(--white);
  opacity: 0.9;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-l);
  text-align: center;
  font-size: 0.875rem;
  color: var(--white);
  opacity: 0.9;
}

.footer-bottom p {
  color: var(--white);
  opacity: 0.9;
}

.footer-bottom a {
  color: var(--white);
  opacity: 0.9;
  text-decoration: none;
}

.footer-bottom a:hover {
  opacity: 1;
  color: var(--white);
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: var(--spacing-m) var(--spacing-xl);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  word-break: keep-all;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
}

.btn-primary:hover {
  background-color: var(--dark-orange);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(26, 58, 95, 0.25);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
  align-items: center;
  margin-top: var(--spacing-xl);
}

@media (min-width: 768px) {
  .btn-group {
    flex-direction: row;
    justify-content: center;
    gap: var(--spacing-l);
  }
}

/* ===== カード ===== */
.card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15, 37, 55, 0.08);
  padding: var(--spacing-l);
  transition: all 0.3s ease;
  border: 1px solid rgba(15, 37, 55, 0.05);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(15, 37, 55, 0.12);
  transform: translateY(-4px);
  border-color: rgba(15, 37, 55, 0.1);
}

.card-image {
  width: 100%;
  margin-bottom: var(--spacing-m);
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

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

/* サービス一覧カード: 全画像を同じアスペクト比でトリミング（横3：縦2） */
.card-image.card-image-service {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-bottom: var(--spacing-m);
}

.card-image.card-image-service img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-image-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin-bottom: var(--spacing-m);
}

.card-image-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.card-image-works img {
  height: 250px;
  object-fit: cover;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-s);
  color: var(--navy-blue);
  letter-spacing: -0.01em;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
}

.card-text {
  font-size: 0.875rem;
  color: var(--medium-gray);
  margin-bottom: var(--spacing-m);
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.7;
}

.card-link {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-s);
}

/* 対応メーカー（ロゴ表示） */
.card-center {
  text-align: center;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-m);
  background: var(--white);
  border-radius: 10px;
  border: 1px solid rgba(15, 37, 55, 0.06);
  margin-bottom: var(--spacing-s);
}

.brand-logo-container img {
  width: 100%;
  max-width: 220px;
  height: 56px;
  object-fit: contain;
}

/* ===== ヒーローセクション ===== */
.hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  background-color: var(--navy-blue);
  background-image: url('images/hero/genreinetsugaku.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-m);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 30, 46, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xxl) var(--spacing-m);
}

.hero h1 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: var(--spacing-m);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.hero p {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
  align-items: center;
  margin-top: var(--spacing-xl);
}

.hero-actions .btn {
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* スマホ表示時のみヒーロー背景を差し替え（後続のためここで上書き） */
@media (max-width: 767px) {
  .hero {
    background-image: url('images/hero/hero-mobile.png');
    background-attachment: scroll;
    background-position: center center;
  }
}

/* ===== セクション ===== */
.section {
  padding: var(--spacing-xxl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
  position: relative;
  padding-bottom: var(--spacing-l);
}

.section-title h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-s);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-orange);
  border-radius: 2px;
}

.section-title p {
  color: var(--medium-gray);
  font-size: 0.9375rem;
  margin-top: var(--spacing-l);
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ===== グリッド ===== */
.grid {
  display: grid;
  gap: var(--spacing-l);
}

.grid-1 {
  grid-template-columns: 1fr;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

/* カード画像の高さ統一 */
.card-image img[style*="height: 200px"] {
  height: 200px;
  object-fit: cover;
}

.card-image img[style*="height: 250px"] {
  height: 250px;
  object-fit: cover;
}

/* ===== パンくずリスト ===== */
.breadcrumb {
  padding: var(--spacing-m);
  background-color: var(--off-white);
  font-size: 0.875rem;
  margin-top: 64px;
}

.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-s);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: var(--spacing-s);
  color: var(--medium-gray);
}

.breadcrumb a {
  color: var(--primary-blue);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== フォーム ===== */
.form-group {
  margin-bottom: var(--spacing-l);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-s);
  color: var(--dark-gray);
}

.form-label.required::after {
  content: " *";
  color: var(--error);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-m);
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== 画像プレースホルダー ===== */
.image-placeholder {
  width: 100%;
  background-color: var(--off-white);
  border: 2px dashed var(--light-gray);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium-gray);
  font-size: 0.875rem;
  text-align: center;
  padding: var(--spacing-xl);
  min-height: 200px;
}

/* ===== ユーティリティ ===== */
.text-center {
  text-align: center;
}

/* セクションの一時非表示（再表示時はクラスを外す） */
.is-hidden {
  display: none !important;
}

/* Leaflet（対応エリアマップ） */
#service-area-map.leaflet-container {
  font-family: inherit;
}

.leaflet-tooltip.area-tooltip {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 37, 55, 0.2);
  color: var(--navy-blue);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(15, 37, 55, 0.12);
}

.leaflet-tooltip.area-tooltip::before {
  border-top-color: rgba(15, 37, 55, 0.2);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-s); }
.mt-2 { margin-top: var(--spacing-m); }
.mt-3 { margin-top: var(--spacing-l); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-s); }
.mb-2 { margin-bottom: var(--spacing-m); }
.mb-3 { margin-bottom: var(--spacing-l); }
.mb-4 { margin-bottom: var(--spacing-xl); }

/* ===== レスポンシブ（タブレット） ===== */
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }

  h1 {
    font-size: 2.25rem; /* 36px */
  }

  h2 {
    font-size: 1.875rem; /* 30px */
  }

  h3 {
    font-size: 1.5rem; /* 24px */
  }

  .container {
    max-width: 768px;
    padding: 0 var(--spacing-xl);
  }

  .hero {
    min-height: 100vh;
    height: 100vh;
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

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

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

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

  /* サービス一覧: タブレット・PCとも2列表示 */
  .grid.service-list-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .nav-mobile {
    display: none;
  }

  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--spacing-l);
  }

  .nav-desktop a {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.875rem;
  }

  .nav-desktop a:hover {
    color: var(--primary-blue);
  }

  .menu-toggle {
    display: none;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
}

/* ===== レスポンシブ（デスクトップ） ===== */
@media (min-width: 1024px) {
  html {
    font-size: 18px;
  }

  h1 {
    font-size: 3rem; /* 48px */
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 2.25rem; /* 36px */
  }

  h3 {
    font-size: 1.75rem; /* 28px */
  }

  .hero {
    min-height: 100vh;
    height: 100vh;
    background-attachment: fixed;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  /* サービス一覧: デスクトップでも2列のまま（4列にしない） */
  .grid.service-list-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: var(--spacing-xxxl) 0;
  }
}

/* ===== アニメーション ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== アクセシビリティ ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* フォーカス表示の改善 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

/* スキップリンク */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-blue);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ===== 追加スタイル ===== */
.section-bg-light {
  background-color: var(--off-white);
}

.section-bg-blue {
  background-color: var(--primary-blue);
  color: var(--white);
}

.section-bg-blue h2,
.section-bg-blue h3,
.section-bg-blue p {
  color: var(--white);
}

.section-bg-blue .section-title h2::after {
  background-color: var(--white);
}

.section-margin-top {
  margin-top: var(--spacing-xl);
}

.section-padding-top {
  padding-top: var(--spacing-m);
}

.list-disc {
  list-style: disc;
  padding-left: var(--spacing-l);
}

.list-disc li {
  margin-bottom: var(--spacing-s);
}

.list-decimal {
  list-style: decimal;
  padding-left: var(--spacing-l);
}

.list-decimal li {
  margin-bottom: var(--spacing-s);
}

.phone-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.heading-large {
  font-size: 1.5rem;
  font-weight: 700;
}

.heading-large a {
  color: var(--primary-blue);
}

.text-note {
  font-size: 0.875rem;
  color: var(--medium-gray);
  margin-top: var(--spacing-m);
}

.text-italic {
  font-style: italic;
}

.text-bold-small {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--medium-gray);
}

.card-margin-bottom {
  margin-bottom: var(--spacing-l);
}

.testimonial-box {
  background-color: var(--off-white);
  padding: var(--spacing-l);
  border-radius: 8px;
  margin-bottom: var(--spacing-m);
  border-left: 4px solid var(--accent-orange);
}

.faq-item {
  margin-bottom: var(--spacing-m);
}

.faq-question {
  cursor: pointer;
  padding: var(--spacing-m);
  background-color: var(--light-blue);
  border-radius: 4px;
}

.faq-question h3 {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: var(--spacing-m);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.merit-demerit-list {
  list-style: disc;
  padding-left: var(--spacing-l);
  margin-bottom: var(--spacing-m);
}

.merit-demerit-list li {
  margin-bottom: var(--spacing-s);
}

.merit-demerit-title {
  font-size: 1rem;
  margin-top: var(--spacing-m);
  margin-bottom: var(--spacing-s);
}

.map-container {
  margin-top: var(--spacing-l);
}

.service-main-image {
  margin-bottom: var(--spacing-l);
}

.card-image-service {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.works-image-container {
  margin-top: var(--spacing-l);
}

.mobile-menu-cta {
  padding: var(--spacing-m);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Form 7 スタイル調整 */
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-tel,
.wpcf7-form .wpcf7-textarea,
.wpcf7-form .wpcf7-select {
  width: 100%;
  padding: var(--spacing-m);
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  margin-bottom: var(--spacing-s);
}

.wpcf7-form .wpcf7-submit {
  background-color: var(--accent-orange);
  color: var(--white);
  padding: var(--spacing-m) var(--spacing-xl);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.wpcf7-form .wpcf7-submit:hover {
  background-color: var(--dark-orange);
}
