/* =============================================
   CSS Variables
   ============================================= */
:root {
  --color-primary: #e8960a;
  --color-text: #333333;
  --color-text-light: #555555;
  --color-bg: #f3f4f8;
  --color-white: #ffffff;
  --color-border: #cccccc;

  --font-main: 'Noto Sans JP', sans-serif;

  --max-width: 1200px;
  --header-height: 80px;

  --transition-base: 0.3s ease;
}

/* =============================================
   Base
   ============================================= */
html {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.7;
}

body {
  background-color: var(--color-white);
}

/* SP専用改行 */
.br-sp { display: none; }

/* スクロール時のアンカー位置補正（固定ヘッダー分） */
:target {
  scroll-margin-top: var(--header-height);
}

/* =============================================
   Header
   ============================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-bg);
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ */
.header-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--transition-base);
}

.header-logo a:hover {
  opacity: 0.8;
}

.header-logo img {
  height: 50px;
  width: auto;
}

/* グローバルナビ */
.header-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-list li {
  position: relative;
}

/* セパレーター */
.nav-list li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background-color: var(--color-border);
}

.nav-list a {
  display: block;
  padding: 8px 22px;
  font-size: 1rem; /* 16px */
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.05em;
  position: relative;
  transition: color var(--transition-base);
}

/* ホバー下線アニメーション */
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 22px;
  right: 22px;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-list a:hover::after {
  transform: scaleX(1);
}

/* =============================================
   ハンバーガーメニュー（SP）
   ============================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;         /* 中央揃えで×の交差点を正確に合わせる */
  gap: 6px;                    /* 線2px + gap6px → 隣の線まで8px */
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              width 0.35s ease;
  transform-origin: center center;
}

/* ハンバーガー OPEN 時（三本線 → ×） */
/* 線の高さ2px + gap6px = 8px ずらして重ねてから回転 */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* SPメニューオーバーレイ */
.sp-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 900;
  opacity: 0;
  pointer-events: none; /* 閉じた状態ではタッチ無効 */
  transition: opacity 0.3s ease;
}

.sp-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto; /* 開いた状態でタッチ有効 */
}

/* SPナビドロワー */
.sp-nav {
  position: fixed;
  top: var(--header-height); /* ヘッダーの下から開始 */
  right: -280px;
  width: 280px;
  height: calc(100% - var(--header-height));
  background: var(--color-white);
  z-index: 999; /* ヘッダー(1000)より下、オーバーレイ(900)より上 */
  padding: 8px 0 24px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 16px rgba(0,0,0,0.1);
}

.sp-nav.is-open {
  right: 0;
}

.sp-nav-list {
  display: flex;
  flex-direction: column;
}

.sp-nav-list li {
  border-bottom: 1px solid #ebebeb;
}

.sp-nav-list a {
  display: block;
  padding: 16px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.05em;
  transition: color var(--transition-base), background-color var(--transition-base);
}

.sp-nav-list a:hover {
  color: var(--color-primary);
  background-color: #fafafa;
}

/* =============================================
   Main Contents（ヘッダー分の余白）
   ============================================= */
#main {
  padding-top: var(--header-height);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header-nav {
    display: none; /* PCナビ非表示 */
  }

  .hamburger {
    display: flex;
  }

  .sp-nav-overlay {
    display: block;
  }

  .br-sp { display: inline; }
}

/* =============================================
   CTA（お問い合わせ）セクション
   ============================================= */
#contact {
  background-color: #eaedf2;
  padding: 110px 24px;
  text-align: center;
}

.cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* 大見出し */
.cta-title {
  font-size: 2.25rem; /* 36px */
  font-weight: 700;
  color: #102c53;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

/* 見出し下線：固定100px・中央 */
.cta-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background-color: #0f2d51;
  margin: 14px auto 0;
}

/* リード文 */
.cta-lead {
  font-size: 1.4375rem; /* 23px */
  color: var(--color-text);
  line-height: 2.2;
  margin-top: 36px;
  margin-bottom: 44px;
}

/* 電話CTAボタン
   平行四辺形：左上から右下へ右肩下がり（両端とも同じ向き）
   左端：左上(160px,0) → 左下(0,100%)
   右端：右上(100%,0) → 右下(calc(100%-160px),100%)
*/
.cta-tel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background-color: #d62e2e;
  color: var(--color-white);
  text-decoration: none;
  padding: 22px 180px;
  clip-path: polygon(0% 0%, calc(100% - 160px) 0%, 100% 100%, 160px 100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cta-tel:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.cta-tel-number {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 4rem; /* 64px */
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.cta-tel-number img {
  width: 44px;
  height: auto;
}

.cta-tel-caption {
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-top: 8px;
}

/* =============================================
   Footer
   ============================================= */
#footer {
  background-color: #0e2c50;
  padding: 10px 24px;
  text-align: center;
}

.footer-copyright {
  font-size: 1rem; /* 16px */
  color: #ffffff;
  letter-spacing: 0.06em;
}

/* =============================================
   CTA・Footer レスポンシブ
   ============================================= */
@media (max-width: 768px) {
  #contact {
    padding: 90px 20px;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-lead {
    font-size: 0.9375rem;
    text-align: center; /* センタリング */
  }

  .cta-tel {
    padding: 18px 40px;
    clip-path: polygon(0% 0%, calc(100% - 40px) 0%, 100% 100%, 40px 100%); /* 斜め横幅を半分に */
    width: 100%;
    max-width: 100%; /* 横幅100% */
  }

  .cta-tel-number {
    font-size: 2rem;
    gap: 10px;
  }

  .cta-tel-number img {
    width: 28px;
  }

  .cta-tel-caption {
    font-size: 0.9375rem;
  }
}

/* フッター SP */
@media (max-width: 768px) {
  .footer-copyright {
    font-size: 0.75rem; /* 12px・少し小さく */
  }
}
/* 電話リンク：PC時はクリック無効 */
@media (min-width: 769px) {
  .cta-tel {
    pointer-events: none;
    cursor: default;
  }
}

/* =============================================
   MV（メインビジュアル）
   ============================================= */
#mv {
  position: relative;
  height: 750px;
  background-image: url('../img/mv_pc.jpg');
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

/* テキストエリア */
.mv-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2% 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 100px; /* 赤帯の高さ分上げる */
}

/* サブテキスト（昇降設備・天井クレーン…） */
.mv-sub {
  font-size: 1.625rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.6);
}

/* キャッチコピー画像 */
.mv-catch {
  margin-bottom: 28px;
}

.mv-catch img {
  width: 687px;
  height: auto;
}

/* リード文1 */
.mv-lead {
  font-size: 1.375rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 20px;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.95), 0 0 20px rgba(0,0,0,0.9);
}

/* リード文2 */
.mv-lead2 {
  font-size: 1.375rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.8;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.95), 0 0 20px rgba(0,0,0,0.9);
}

/* =============================================
   MV 赤い電話帯（PC）
   左端〜中央まで、右端だけ斜めカット
   幅: 50vw + 斜め120px分を確保
   clip-path: 右上から右下への斜め（120px）
   ============================================= */
.mv-tel-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(45vw + 120px); /* 中央 + 斜め分 */
  height: 100px;
  background-color: #d62e2e;
  clip-path: polygon(0% 0%, calc(100% - 120px) 0%, 100% 100%, 0% 100%);
}

.mv-tel-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 130px 0 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 右寄せ */
}

.mv-tel-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #ffffff;
}

/* PC時はリンク無効 */
@media (min-width: 769px) {
  .mv-tel-link {
    pointer-events: none;
    cursor: default;
  }
}

/* 電話アイコン（左・大きめ） */
.mv-tel-icon {
  width: 52px;
  height: auto;
  flex-shrink: 0;
}

/* 番号＋テキストを縦2行に */
.mv-tel-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.mv-tel-number {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.mv-tel-caption {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* =============================================
   MV レスポンシブ（SP）
   ============================================= */
@media (max-width: 768px) {
  #mv {
    height: auto;
    min-height: 100svh;
    background-image: url('../img/mv_sp.jpg');
    background-position: center center;
  }

  .mv-inner {
    padding: 40px 5% 120px; /* 赤帯分の余白 */
    justify-content: flex-start;
    padding-top: calc(var(--header-height) + 40px);
  }

  .mv-sub {
    font-size: 1.0625rem;
    margin-bottom: 10px;
  }

  .mv-catch img {
    max-width: 100%;
  }

  .mv-lead {
    font-size: 0.9375rem;
    margin-bottom: 16px;
  }

  .mv-lead2 {
    font-size: 0.9375rem;
  }

  /* SP赤帯：幅90vw、右端だけ斜め60px */
  .mv-tel-bar {
    width: 90vw;
    height: 90px;
    clip-path: polygon(0% 0%, calc(100% - 60px) 0%, 100% 100%, 0% 100%);
  }

  .mv-tel-inner {
    padding: 0 65px 0 0; /* PC(130px)の半分 */
  }

  .mv-tel-number {
    font-size: 2rem;
    gap: 10px;
  }

  .mv-tel-icon {
    width: 36px;
  }

  .mv-tel-number img {
    width: 28px;
  }

  .mv-tel-caption {
    font-size: 0.8125rem;
  }
}
/* =============================================
   お困りごとセクション
   ============================================= */
#trouble {
  background-image: url('../img/bg_trouble.jpg');
  background-size: cover;
  background-position: center center;
  padding: 120px 24px;
  text-align: center;
}

.trouble-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* h2 */
.trouble-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.trouble-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #ffffff;
  margin: 16px auto 0;
}

/* ボックスリスト */
.trouble-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 52px;
  margin-bottom: 60px;
}

/* 各ボックス：平行四辺形（左右斜め） */
.trouble-item {
  background-color: rgba(0, 168, 228, 0.4);
  color: #ffffff;
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 14px 48px;
  /* 左右とも同じ向きの斜め（平行四辺形） */
  clip-path: polygon(16px 0%, 100% 0%, calc(100% - 16px) 100%, 0% 100%);
  white-space: nowrap;
}

/* 7番目の長いボックス */
.trouble-item--wide {
  white-space: nowrap;
}

/* ボトムテキスト */
.trouble-lead {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 2;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

/* =============================================
   お困りごとセクション レスポンシブ（SP）
   ============================================= */
@media (max-width: 768px) {
  #trouble {
    padding: 90px 20px;
  }

  .trouble-title {
    font-size: 1.375rem;
  }

  .trouble-list {
    gap: 12px;
    margin-top: 40px;
    margin-bottom: 48px;
  }

  .trouble-item {
    font-size: 0.9375rem;
    padding: 12px 36px;
    white-space: normal;
    text-align: center;
  }

  .trouble-item--wide {
    white-space: normal;
  }

  .trouble-lead {
    font-size: 1rem;
  }
}

/* =============================================
   経営理念セクション
   ============================================= */
#philosophy {
  background-image: url('../img/bg_philosophy.jpg');
  background-size: cover;
  background-position: center center;
  padding: 120px 24px;
  text-align: center;
}

.philosophy-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* h2 */
.philosophy-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #102c53;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.philosophy-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background-color: #102c53;
  margin: 12px auto 0;
}

/* キャッチコピー */
.philosophy-catch {
  font-size: 2.875rem;
  font-weight: 700;
  color: #222222;
  line-height: 1.6;
  letter-spacing: 0.06em;
  margin-top: 52px;
  margin-bottom: 48px;
}

/* 本文 */
.philosophy-lead {
  font-size: 1.375rem;
  font-weight: 400;
  color: #222222;
  line-height: 2.4;
  letter-spacing: 0.05em;
}

/* =============================================
   経営理念セクション レスポンシブ（SP）
   ============================================= */
@media (max-width: 768px) {
  #philosophy {
    padding: 90px 20px;
  }

  .philosophy-title {
    font-size: 1.5rem; /* CTAと同じ */
  }

  .philosophy-catch {
    font-size: 1.625rem;
    margin-top: 40px;
    margin-bottom: 36px;
  }

  .philosophy-lead {
    font-size: 0.9375rem;
    text-align: center;
  }
}

/* =============================================
   萬昇工業の強みセクション
   ============================================= */
#strength {
  position: relative;
  background-color: #2e6a8a;
  padding: 120px 24px 180px; /* 下部は電話帯100px＋余白 */
  overflow: hidden;
}

.strength-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* h2 */
.strength-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 16px;
}

.strength-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background-color: #ffffff;
  margin: 14px auto 0;
}

/* リスト */
.strength-list {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-top: 60px;
}

/* 各アイテム：数字とボックスをflexで横並び、数字がボックスに食い込む */
.strength-item {
  display: flex;
  align-items: flex-start; /* 上揃え */
}

/* 番号：固定幅・ボックスに食い込むよう負のmargin */
.strength-num {
  font-family: 'Anton', sans-serif;
  font-size: 10rem;
  font-weight: 400; /* Antonはウェイト1種類だが太い */
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  width: 180px;
  text-align: right; /* 右寄せでボックスへの食い込みを最大化 */
  padding-right: 0;
  position: relative;
  z-index: 2;
  margin-right: -150px; /* より深く食い込む */
  margin-top: 10px;
}

/* ボックス */
.strength-box {
  flex: 1;
  background-color: #0e2c50;
  color: #ffffff;
  padding: 90px 150px 90px 200px; /* 左paddingは数字の重なり分を含む */
  clip-path: polygon(130px 0%, 100% 0%, calc(100% - 130px) 100%, 0% 100%);
  position: relative;
  z-index: 1;
}

.strength-box-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.strength-box-text {
  font-size: 1.25rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 2;
}

.strength-box-note {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  margin-top: 18px;
}

/* =============================================
   強み 電話帯（MVと同仕様）
   ============================================= */
.strength-tel-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(45vw + 120px);
  height: 100px;
  background-color: #d62e2e;
  clip-path: polygon(0% 0%, calc(100% - 120px) 0%, 100% 100%, 0% 100%);
}

/* MVと完全同仕様：bar内でmax-width・右寄せ */
.strength-tel-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 130px 0 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.strength-tel-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #ffffff;
}

/* PC時はリンク無効 */
@media (min-width: 769px) {
  .strength-tel-link {
    pointer-events: none;
    cursor: default;
  }
}

/* =============================================
   強みセクション レスポンシブ（SP）
   ============================================= */
@media (max-width: 768px) {
  #strength {
    padding: 90px 20px 110px;
  }

  .strength-title {
    font-size: 1.5rem;
  }

  .strength-list {
    gap: 32px;
    margin-top: 44px;
  }

  .strength-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .strength-num {
    font-size: 5rem;
    width: auto;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: -20px; /* ボックスに少し食い込む */
    padding-left: 16px;
    z-index: 2;
  }

  .strength-box {
    width: 100%;
    padding: 50px 40px 50px 40px;
    clip-path: polygon(16px 0%, 100% 0%, calc(100% - 16px) 100%, 0% 100%);
  }

  .strength-box-title {
    font-size: 1.125rem;
  }

  .strength-box-text {
    font-size: 0.9375rem;
  }

  .strength-box-note {
    font-size: 0.75rem;
  }

  /* SP電話帯 */
  .strength-tel-bar {
    width: 90vw;
    height: 90px;
    clip-path: polygon(0% 0%, calc(100% - 60px) 0%, 100% 100%, 0% 100%);
  }

  .strength-tel-inner {
    padding: 0 65px 0 0;
  }

  .strength-tel-link .mv-tel-number {
    font-size: 2rem;
  }

  .strength-tel-link .mv-tel-icon {
    width: 36px;
  }

  .strength-tel-link .mv-tel-caption {
    font-size: 0.8125rem;
  }
}

/* =============================================
   主な業務内容セクション
   ============================================= */
#service {
  background-color: var(--color-bg);
  padding: 120px 24px;
}

.service-inner {
  max-width: 1060px;
  margin: 0 auto;
}

/* h2 */
.service-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #102c53;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 16px;
}

.service-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background-color: #102c53;
  margin: 14px auto 0;
}

/* リスト */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 70px;
  margin-top: 60px;
  margin-bottom: 70px;
}

/* 各アイテム：画像＋テキスト横並び */
.service-item {
  display: flex;
  align-items: center; /* 縦中央寄せ */
  gap: 60px;
}

/* 逆順（テキスト左・画像右） */
.service-item--reverse .service-text {
  text-align: right;
}

/* 画像 */
.service-img {
  flex-shrink: 0;
  width: 44%;
}

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

/* テキスト */
.service-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-item-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #102c53;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.service-item-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  margin-top: 14px;
  margin-bottom: 4px;
}

.service-item-body {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.9;
}

/* バナー */
.service-banner {
  width: 100%;
}

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

/* =============================================
   業務内容セクション レスポンシブ（SP）
   ============================================= */
@media (max-width: 768px) {
  #service {
    padding: 90px 20px;
  }

  .service-title {
    font-size: 1.5rem;
  }

  .service-list {
    gap: 50px;
    margin-top: 44px;
    margin-bottom: 50px;
  }

  .service-item {
    flex-direction: column;
    align-items: stretch; /* 横幅を100%に統一 */
    gap: 20px;
  }

  /* SP時は縦積み・画像が上になるようcolumn-reverse */
  .service-item--reverse {
    flex-direction: column-reverse;
    gap: 20px; /* 通常アイテムと同じgapに統一 */
  }

  .service-item--reverse .service-text {
    text-align: left;
  }

  .service-img {
    width: 100%;
  }

  .service-item-title {
    font-size: 1.25rem;
  }

  .service-item-body {
    font-size: 0.9375rem;
  }
}

/* =============================================
   ご相談の流れセクション
   ============================================= */
#flow {
  background-image: url('../img/bg_flow.jpg');
  background-size: cover;
  background-position: center center;
  padding: 120px 24px;
  text-align: center;
}

.flow-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* h2 */
.flow-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.flow-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background-color: #ffffff;
  margin: 14px auto 0;
}

/* リスト */
.flow-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}

/* 各ボックス */
.flow-item {
  list-style: none;
}

.flow-box {
  display: flex;
  align-items: center;
  gap: 0;
  background-color: rgba(9, 122, 174, 0.7);
  /* 左右両方斜めカット（平行四辺形） */
  clip-path: polygon(40px 0%, 100% 0%, calc(100% - 40px) 100%, 0% 100%);
  padding: 28px 100px 28px 80px;
  min-height: 100px;
}

/* 数字 */
.flow-num {
  font-family: 'Anton', sans-serif;
  font-size: 4.5rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  flex-shrink: 0;
  width: 70px;
  text-align: center;
}

/* 縦線 */
.flow-divider {
  display: block;
  width: 1px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  margin: 0 32px;
}

/* テキスト */
.flow-text {
  flex: 1;
}

.flow-item-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.flow-item-body {
  font-size: 1.0625rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

/* =============================================
   ご相談の流れ レスポンシブ（SP）
   ============================================= */
@media (max-width: 768px) {
  #flow {
    padding: 90px 20px;
  }

  .flow-title {
    font-size: 1.5rem;
  }

  .flow-list {
    gap: 16px;
    margin-top: 44px;
  }

  .flow-box {
    padding: 20px 56px 20px 20px;
    clip-path: polygon(28px 0%, 100% 0%, calc(100% - 28px) 100%, 0% 100%);
    min-height: 76px;
  }

  .flow-num {
    font-size: 2.5rem;
    width: 44px;
  }

  .flow-divider {
    height: 40px;
    margin: 0 18px;
  }

  .flow-item-title {
    font-size: 1.0625rem;
  }

  .flow-item-body {
    font-size: 0.875rem;
  }
}

/* =============================================
   会社概要セクション
   ============================================= */
#company {
  background-color: #f5f6f8;
  padding: 120px 24px;
}

.company-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* h2 */
.company-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #102c53;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 16px;
}

.company-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background-color: #102c53;
  margin: 14px auto 0;
}

/* テーブル */
.company-table {
  margin-top: 56px;
}

.company-row {
  display: flex;
  align-items: baseline;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid #d0d4db;
}



.company-th {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
  width: 140px;
  letter-spacing: 0.05em;
}

.company-td {
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.7;
  letter-spacing: 0.03em;
}

/* =============================================
   会社概要 レスポンシブ（SP）
   ============================================= */
@media (max-width: 768px) {
  #company {
    padding: 90px 20px;
  }

  .company-title {
    font-size: 1.5rem;
  }

  .company-row {
    flex-direction: column;
    gap: 6px;
    padding: 20px 0;
  }

  .company-th {
    width: auto;
    font-size: 0.9375rem;
  }

  .company-td {
    font-size: 0.9375rem;
  }
}