/*
 Theme Name: GeneratePress Child
 Description: GeneratePress Child Theme
 Template: generatepress
 Version: 1.0.0
 Text Domain: generatepress-child
*/

/* ============================================
   CSS変数（デザイントークン）
   ============================================ */
:root {
  /* Colors */
  --aw-bg:            #FFFFFF;
  --aw-bg-subtle:     #F9FAFB;
  --aw-bg-accent:     #EEF2FF;
  --aw-text-primary:  #111827;
  --aw-text-secondary:#6B7280;
  --aw-text-muted:    #9CA3AF;
  --aw-accent:        #6366F1;
  --aw-accent-dark:   #4F46E5;
  --aw-accent-light:  #EEF2FF;
  --aw-accent-border: #C7D2FE;
  --aw-border:        #E5E7EB;
  --aw-border-subtle: #F3F4F6;
  --aw-dark:          #111827;
  --aw-success:       #10B981;
  /* Shadows */
  --aw-shadow-card:   0 1px 4px rgba(0,0,0,0.06);
  --aw-shadow-md:     0 4px 16px rgba(0,0,0,0.08);
  --aw-shadow-lg:     0 20px 60px rgba(0,0,0,0.08);
  /* Border radius */
  --aw-radius-sm:     8px;
  --aw-radius:        12px;
  --aw-radius-lg:     16px;
  --aw-radius-xl:     20px;
  /* Spacing */
  --aw-section-pad:   120px 52px;
  --aw-container:     1200px;
  --aw-gap:           16px;
  /* Easing */
  --aw-ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --aw-ease-out:      cubic-bezier(0.33, 1, 0.68, 1);
  --aw-ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Indigo (blue) palette — サービス・ソリューション系セクション */
  --indigo:       #2563EB;
  --indigo-dark:  #1D4ED8;
  --indigo-50:    #F0F4FF;
  --indigo-100:   #DBEAFE;
  --indigo-200:   #BFDBFE;
  --indigo-300:   #93C5FD;
  --indigo-400:   #60A5FA;
  /* Blue aliases (= indigo) */
  --blue:         #2563EB;
  --blue-dark:    #1D4ED8;
  --blue-50:      #F0F4FF;
  --blue-100:     #DBEAFE;
  --blue-200:     #BFDBFE;
  /* Green palette */
  --green:        #059669;
  --green-dark:   #047857;
  --green-50:     #ECFDF5;
  --green-100:    #D1FAE5;
  --green-200:    #A7F3D0;
  --green-300:    #6EE7B7;
  /* Gray aliases */
  --gray-50:      #F9FAFB;
  --gray-100:     #F3F4F6;
  --gray-200:     #E5E7EB;
  --gray-300:     #D1D5DB;
  --gray-400:     #9CA3AF;
  --gray-500:     #6B7280;
  --gray-700:     #374151;
  --gray-900:     #111827;
}

/* ============================================
   アニメーション
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* スクロールフェードイン共通クラス（全ページ）*/
.aw-fade, .aw2-fade, .awa-fade, .aws-fade, .awr-fade, .awc-fade, .awsv-fade {
  opacity: 0; transform: translateY(32px) scale(0.98);
  transition: opacity .7s var(--aw-ease), transform .7s var(--aw-ease);
}
.aw-slide-l, .awa-slide-left, .aws-slide-l {
  opacity: 0; transform: translateX(-48px) scale(0.98);
  transition: opacity .7s var(--aw-ease), transform .7s var(--aw-ease);
}
.aw-slide-r, .awa-slide-right, .aws-slide-r {
  opacity: 0; transform: translateX(48px) scale(0.98);
  transition: opacity .7s var(--aw-ease), transform .7s var(--aw-ease);
}
.aw-fade.in, .aw2-fade.in, .awa-fade.in, .aws-fade.in, .awr-fade.in, .awc-fade.in, .awsv-fade.in,
.aw-slide-l.in, .aw-slide-r.in,
.awa-slide-left.in, .awa-slide-right.in,
.aws-slide-l.in, .aws-slide-r.in {
  opacity: 1; transform: translateY(0) scale(1);
}
/* 遅延バリエーション（0.08s刻み — 自然なカスケード） */
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .4s; }
.d6 { transition-delay: .48s; }
.d7 { transition-delay: .56s; }
.d8 { transition-delay: .64s; }
/* JS未ロード時フォールバック：3秒後にコンテンツを表示 */
@keyframes awFallbackShow {
  to { opacity: 1; transform: none; }
}
.aw-fade, .aw2-fade, .awa-fade, .aws-fade, .awr-fade, .awc-fade, .awsv-fade,
.aw-slide-l, .aw-slide-r, .awa-slide-left, .awa-slide-right,
.aws-slide-l, .aws-slide-r {
  animation: awFallbackShow 0s 3s forwards;
}

/* ============================================
   レスポンシブ・ユーティリティクラス
   ============================================ */
.aw-section {
  padding: var(--aw-section-pad);
}
.aw-container {
  max-width: var(--aw-container);
  margin: 0 auto;
  width: 100%;
}

/* グリッドレイアウト */
.aw-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--aw-gap); }
.aw-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--aw-gap); }
.aw-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--aw-gap); }
.aw-grid-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.aw-grid-story { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.aw-grid-sim { display: grid; grid-template-columns: 1fr 1fr; }

/* フォントサイズ変数 */
.aw-h1 { font-size: 56px; font-weight: 700; color: var(--aw-text-primary); line-height: 1.2; letter-spacing: -2px; }
.aw-h2 { font-size: 38px; font-weight: 700; color: var(--aw-text-primary); line-height: 1.3; letter-spacing: -0.5px; }
.aw-h3 { font-size: 26px; font-weight: 700; color: var(--aw-text-primary); line-height: 1.35; }
.aw-lead { font-size: 16px; color: var(--aw-text-secondary); line-height: 1.9; }

/* ============================================
   サイト全体
   ============================================ */
html {
  overflow-x: hidden !important;
}
body {
  background-color: #fff;
  color: #111;
  font-family: 'Noto Sans JP', sans-serif;
  overflow-x: hidden !important;
}

/* ============================================
   ヘッダー（Notion-like）
   ============================================ */
.aw-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--aw-ease-out), border-color .3s var(--aw-ease-out), box-shadow .3s var(--aw-ease-out);
}
.aw-header.scrolled {
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: #E5E7EB;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.aw-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
}
.aw-header-spacer { height: 64px; }
.aw-header-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.aw-header-logo img {
  height: 20px;
  width: auto;
  display: block;
}

/* ナビゲーション */
.aw-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}
.aw-nav-item { position: relative; }
.aw-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  border-radius: 8px;
  transition: color .2s var(--aw-ease-out), background-color .2s var(--aw-ease-out);
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.5;
  white-space: nowrap;
}
.aw-nav-link:hover,
.aw-has-dropdown.open > .aw-nav-link {
  color: #111827;
  background: rgba(243,244,246,.7);
}
.aw-nav-link:active {
  transform: scale(0.97);
}
.aw-chevron {
  transition: transform .2s;
  flex-shrink: 0;
}
.aw-has-dropdown.open .aw-chevron {
  transform: rotate(180deg);
}

/* ドロップダウン */
.aw-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  transition: opacity .2s var(--aw-ease), visibility .2s, transform .2s var(--aw-ease);
  pointer-events: none;
}
.aw-has-dropdown.open .aw-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}
.aw-dropdown-inner {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #F3F4F6;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  min-width: 260px;
}
.aw-dropdown-multi .aw-dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  min-width: 480px;
}
.aw-dropdown-label {
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 6px 12px;
}
.aw-dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color .15s var(--aw-ease-out), transform .15s var(--aw-ease-out);
}
.aw-dropdown-item:hover { background: #F3F4F6; }
.aw-dropdown-item:active { transform: scale(0.98); }
.aw-dropdown-name {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: color .15s;
}
.aw-dropdown-item:hover .aw-dropdown-name { color: #111827; }
.aw-dropdown-desc {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 2px;
}

/* ヘッダーアクション */
.aw-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.aw-btn-cta-header {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #111827;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color .2s var(--aw-ease-out), transform .2s var(--aw-ease-spring), box-shadow .2s var(--aw-ease-out);
}
.aw-btn-cta-header:hover {
  background: #374151;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.aw-btn-cta-header:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}

/* ============================================
   全ページ：サイドバー非表示 / フルワイド化
   ============================================ */
.widget-area,
.sidebar {
  display: none !important;
}
.content-area {
  width: 100% !important;
  float: none !important;
}
body.home .entry-header,
body.home h1.entry-title,
body.page .entry-header,
body.page h1.entry-title {
  display: none !important;
}
.inside-article {
  padding: 0 !important;
}
.entry-content {
  margin: 0 !important;
}
/* ページコンテナのフルワイド化 */
#page.grid-container,
.site-content,
.site-content > .grid-container {
  padding: 0 !important;
  max-width: 100% !important;
}
/* 記事コンテンツ内の余白を除去 */
.separate-containers .inside-article,
.separate-containers .page-header {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* ============================================
   モバイルメニュー
   ============================================ */
.aw-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 24px;
  height: 20px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}
.aw-hamburger-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #374151;
  border-radius: 1px;
  transition: transform .25s, opacity .15s;
  transform-origin: center;
}
.aw-hamburger.active .aw-hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.aw-hamburger.active .aw-hamburger-line:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.aw-hamburger.active .aw-hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ドロワーオーバーレイ */
.aw-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity .25s var(--aw-ease-out);
}
.aw-drawer-overlay.open {
  display: block;
  opacity: 1;
}

/* ドロワー本体 */
.aw-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .35s var(--aw-ease);
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
}
.aw-drawer.open { transform: translateX(0); }
.aw-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  flex-shrink: 0;
}
.aw-drawer-logo {
  display: flex;
  align-items: center;
}
.aw-drawer-logo img {
  height: 18px;
  width: auto;
  display: block;
}
.aw-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .15s;
}
.aw-drawer-close:hover { background: #F3F4F6; }
.aw-drawer-body {
  flex: 1;
  padding: 0 24px;
}

/* アコーディオン */
.aw-drawer-accordion {
  border-bottom: 1px solid #F3F4F6;
}
.aw-drawer-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: #6B7280;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
}
.aw-drawer-chevron {
  transition: transform .2s;
}
.aw-drawer-accordion.open .aw-drawer-chevron {
  transform: rotate(180deg);
}
.aw-drawer-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease-in-out;
  padding-left: 4px;
}
.aw-drawer-accordion.open .aw-drawer-acc-body {
  max-height: 400px;
}
.aw-drawer-sub-label {
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 12px;
}
.aw-drawer-sub-link {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: #6B7280;
  text-decoration: none;
  border-radius: 8px;
  transition: color .15s, background-color .15s;
}
.aw-drawer-sub-link:hover {
  color: #111827;
  background: #F9FAFB;
}

/* ドロワー通常リンク */
.aw-drawer-link {
  display: flex;
  align-items: center;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: #6B7280;
  text-decoration: none;
  border-bottom: 1px solid #F3F4F6;
}
.aw-drawer-link:hover { color: #111827; }

/* ドロワーフッター */
.aw-drawer-footer {
  padding: 24px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aw-drawer-btn-primary {
  display: block;
  text-align: center;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #111827;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color .2s var(--aw-ease-out), transform .2s var(--aw-ease-spring);
}
.aw-drawer-btn-primary:hover {
  background: #374151;
  color: #fff;
}
.aw-drawer-btn-primary:active {
  transform: scale(0.97);
}

/* ============================================
   フッター
   ============================================ */
.aw-footer {
  background: #111827;
  color: #9CA3AF;
  font-family: 'Noto Sans JP', sans-serif;
}
.aw-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* 上段 */
.aw-footer-top {
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  gap: 48px;
  align-items: start;
  padding: 72px 52px 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.aw-footer-logo {
  margin-bottom: 10px;
}
.aw-footer-logo img {
  height: 20px;
  width: auto;
  display: block;
}
.aw-footer-tagline {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

/* ナビ */
.aw-footer-nav {
  display: flex;
  gap: 48px;
}
.aw-footer-nav-title {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.aw-footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.aw-footer-nav ul li {
  margin-bottom: 10px;
}
.aw-footer-nav ul li a {
  font-size: 13px;
  color: #9CA3AF;
  text-decoration: none;
  transition: color .2s var(--aw-ease-out);
}
.aw-footer-nav ul li a:hover {
  color: #FFFFFF;
}

/* CTA */
.aw-footer-cta {
  text-align: right;
}
.aw-footer-cta-text {
  font-size: 14px;
  font-weight: 600;
  color: #D1D5DB;
  line-height: 1.6;
  margin-bottom: 16px;
}
.aw-footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  background: #6366F1;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s var(--aw-ease-out), transform .25s var(--aw-ease-spring), box-shadow .25s var(--aw-ease-out);
}
.aw-footer-cta-btn:hover {
  background: #4F46E5;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}
.aw-footer-cta-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}

/* 下段 */
.aw-footer-bottom {
  padding: 24px 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aw-footer-copy {
  font-size: 12px;
  color: #4B5563;
}

/* ============================================
   フォーカス状態（アクセシビリティ）
   ============================================ */
:focus-visible {
  outline: 2px solid var(--aw-accent);
  outline-offset: 2px;
}
/* ボタン・リンクのfocus-visible */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--aw-accent);
  outline-offset: 2px;
  border-radius: var(--aw-radius-sm);
}

/* ============================================
   レスポンシブ（タブレット：〜1024px）
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --aw-section-pad: 80px 40px;
    --aw-container: 100%;
  }

  /* グリッド：4列→2列 */
  .aw-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }

  /* ヒーロー・ストーリー横並び→縮小ギャップ */
  .aw-grid-hero,
  .aw-grid-story { gap: 48px !important; }

  /* フッター：タブレット */
  .aw-footer-top { grid-template-columns: 1fr 1fr; gap: 36px; padding: 56px 40px 48px; }
  .aw-footer-cta { grid-column: 1 / -1; text-align: left; }
  .aw-footer-bottom { padding: 20px 40px; }

  /* ヘッダー：ナビ・アクション非表示、ハンバーガー表示 */
  .aw-hamburger { display: flex !important; }
  .aw-nav, .aw-header-actions { display: none !important; }
  .aw-header-inner { height: 60px; }
  .aw-header-spacer { height: 60px; }
  .aw-header-logo img { height: 18px; }
}

/* ============================================
   レスポンシブ（モバイル：〜768px）
   ============================================ */
@media (max-width: 768px) {
  :root {
    --aw-section-pad: 64px 20px;
  }

  /* ─ グリッド：全て1列に ─ */
  .aw-grid-2,
  .aw-grid-3,
  .aw-grid-4,
  .aw-grid-hero,
  .aw-grid-story,
  .aw-grid-sim {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* ─ 見出しサイズ縮小 ─ */
  .aw-h1, h1[style*="font-size:5"],
  h1[style*="font-size:6"] { font-size: 36px !important; letter-spacing: -1px !important; }
  .aw-h2, h2[style*="font-size:3"],
  h2[style*="font-size:4"] { font-size: 28px !important; }

  /* ─ セクション padding ─ */
  section[style*="padding:120px"],
  section[style*="padding:100px"] {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  section[style*="padding:20px 52px"],
  section[style*="padding:28px 52px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* ─ Hero stats横並び→2列 ─ */
  .aw-hero-stats { gap: 16px !important; }

  /* ─ お問い合わせ 2カラム→1カラム ─ */
  .awc section > div > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* ─ フッター：モバイル ─ */
  .aw-footer-top { grid-template-columns: 1fr; gap: 32px; padding: 48px 20px 40px; }
  .aw-footer-nav { flex-direction: column; gap: 28px; }
  .aw-footer-cta { text-align: left; }
  .aw-footer-bottom { padding: 20px; }

  /* ─ ヘッダー（タブレット以下はすでに1024pxで切替済み） ─ */
  .aw-header-inner { padding: 0 16px; }

  /* ─ ボタン群 ─ */
  .aw2-hero-ctas,
  .aw-cta-group {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* ─ Masonry → 2列 ─ */
  .awa-masonry { columns: 2 !important; }

  /* ─ タブボタン ─ */
  #aws-tabs { gap: 8px !important; }
  .aws-tab-btn { font-size: 13px !important; padding: 8px 14px !important; }

  /* ─ シミュレーター ─ */
  .aw-sim-grid { grid-template-columns: 1fr !important; }
  .aw-sim-grid > div:first-child { border-right: none !important; border-bottom: 1px solid #E5E7EB !important; }

  /* ─ FAQ ─ */
  .aws-faq-q { font-size: 14px !important; }

  /* ─ 統計カード ─ */
  .aw-grid-4 > * { padding: 28px 20px !important; }

  /* ─ 企業情報ページ インライングリッド→1列 ─ */
  .awa section div[style*="grid-template-columns:1fr 1fr"],
  .awa section div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .awa section div[style*="grid-template-columns:repeat(3,1fr)"],
  .awa section div[style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* ─ 企業情報 会社概要テーブル ─ */
  .awa th[style*="white-space:nowrap"] {
    white-space: normal !important;
    width: auto !important;
    display: block;
  }
  .awa table[style*="width:100%"] th,
  .awa table[style*="width:100%"] td {
    padding: 14px 16px !important;
    font-size: 13px !important;
  }

  /* ─ 採用ページ カルーセル→フル幅 ─ */
  .awr-carousel-card { flex: 0 0 calc(100vw - 56px) !important; }

  /* ─ 採用ページ インライングリッド→1列 ─ */
  .awr-fade div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ─ 採用ページ フィルターボタン折返し ─ */
  #awr-filters { flex-wrap: wrap !important; }

  /* ─ 採用ページ 統計セル padding縮小 ─ */
  .awr-fade div[style*="inline-grid"] > div {
    padding: 20px 16px !important;
  }

  /* ─ 採用ページ padding:52px→20px ─ */
  div[style*="padding:0 52px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* ─ お問い合わせ gap縮小 ─ */
  .awc section > div > div[style*="grid-template-columns"] {
    gap: 24px !important;
  }

  /* ─ 導入事例 CTA 2カラム→1カラム ─ */
  div[style*="grid-template-columns:1fr auto"][style*="gap:80px"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center;
  }

  /* ─ 全ページ インラインpadding 52px→20px ─ */
  section[style*="padding"][style*="52px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ============================================
   レスポンシブ（小型モバイル：〜480px）
   ============================================ */
@media (max-width: 480px) {
  :root { --aw-section-pad: 48px 16px; }

  section[style*="padding:120px"],
  section[style*="padding:100px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  section[style*="padding"][style*="52px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .awa-masonry { columns: 1 !important; }

  /* CTA パネル */
  section div[style*="padding:80px"] {
    padding: 40px 24px !important;
  }

  /* ─ 企業情報 代表メッセージgap縮小 ─ */
  .aw-grid-story { gap: 32px !important; }

  /* ─ 採用ページ カルーセル ─ */
  .awr-carousel-card { flex: 0 0 calc(100vw - 40px) !important; }

  /* ─ 採用ページ タイムライン→1列 ─ */
  div[style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* ─ お問い合わせ見出しサイズ ─ */
  .awc h1[style*="font-size:44px"] {
    font-size: 28px !important;
  }

  /* ─ サンクスページ ─ */
  .awc-thanks-h1 { font-size: 24px !important; }
  .awc-thanks-body br { display: none; }
  .awc-thanks-note br { display: none; }
}
