/* =========================
   デザイントークン
   ========================= */
:root {
  --base: #f7f4ee;
  --white: #ffffff;
  --text: #1f2c36;
  --sub: #5f6a70;
  --navy: #123254;
  --navy-dark: #0d2640;
  --gold: #b9954c;
  --gold-dark: #8a6f35;
  --line: rgba(31, 44, 54, 0.12);
  --serif: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --english: "Cormorant Garamond", "Shippori Mincho B1", serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* 横スクロールを根本的に防ぐ */
  overflow-x: hidden;
  /* ページ全体の最大幅を viewport 内に固定 */
  max-width: 100%;
}
body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  /* 子要素の絶対配置等によるはみ出しを完全に遮断 */
  overflow-x: hidden;
  max-width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

/* =========================
   ヘッダー
   ========================= */
header.site-header,
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 76px;
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}
.header-inner {
  width: min(1240px, calc(100% - 48px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.logo {
  width: 230px;
  flex-shrink: 0;
}
.logo img {
  width: 220px;
  height: auto;
  /* 透過PNGなのでblend modeとfilterは不要 */
}

.global-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 13px;
  font-weight: 600;
}
.global-nav a {
  opacity: 0.9;
  position: relative;
  padding-block: 4px;
  transition: color 0.2s ease;
}
.global-nav a:hover { color: var(--navy); }

.header-btn {
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.header-btn:hover { background: var(--navy-dark); transform: translateY(-1px); }

/* ハンバーガーメニューボタン（モバイル時表示） */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  /* flex 内で右端に押し出す */
  margin-left: auto;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  display: block;
  position: absolute;
  left: 8px; right: 8px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }
.menu-toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* モバイルメニュー（ドロワー）
   ─ display: none ベースで管理し、画面に絶対に見切れないようにする
   ─ is-open で表示 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0; right: 0;
  background: rgba(247, 244, 238, 0.98);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  z-index: 49;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.mobile-menu .mobile-cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
  border-bottom: 0;
}

/* =========================
   ヒーロー（HTML/CSS 本来の実装）
   ─ レイヤー1: hero-bg     重機写真を右側ビジュアルとして配置
   ─ レイヤー2: hero::after 左→右 へ薄まる白〜生成りグラデで境目を溶かす
   ─ レイヤー3: hero-content 左に見出し・本文・本物のHTMLボタン
   ─ レイヤー4: vertical-copy 右端の縦書き補助コピー
   ─ CTA は完全な HTML 要素として実装（透明クリック領域や画像ベタ貼りはしない）
   ========================= */
.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: clamp(580px, 44vw, 660px);
  padding-top: 76px;
  /* hero 全体は生成り背景。画像は内側の hero-inner にだけ収める */
  background-color: var(--base);
  overflow: hidden;
  box-sizing: border-box;
}

/* hero-inner：container 幅で画像とコンテンツを集約する内側ボックス */
.hero-inner {
  position: relative;
  width: min(1160px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

/* レイヤー1：hero-inner 全面に画像を1枚配置（画面端には到達しない） */
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* レイヤー2：（一旦無効化）
   画像素材自体に左白〜中央グラデが含まれているため、
   CSS 側のオーバーレイは外す。
   左コピーの可読性が不足する場合のみ、最小限のオーバーレイを再追加する */
.hero::after {
  content: none;
}

/* レイヤー3：左コンテンツ（見出し・本文・ボタン）
   hero-inner 内で絶対配置 → 左寄せ＆縦中央 */
.hero-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 24px;
}
/* テキストブロック幅を抑えて左ゾーンに収める */
.hero-content > * {
  max-width: 540px;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
}
.hero-lead {
  margin: 24px 0 32px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 2.05;
  letter-spacing: 0.03em;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  /* 透明クリック領域の上書きは廃止。.btn のスタイルがそのまま効く */
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: var(--navy);
  color: #fff;
}
.btn.primary:hover { background: var(--navy-dark); }
.btn.secondary {
  background: rgba(255, 255, 255, 0.5);
  color: var(--navy);
}
.btn.secondary:hover { background: var(--white); }

.vertical-copy {
  position: absolute;
  z-index: 4;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  letter-spacing: 0.26em;
  /* 背景の写真（空・住宅）に対してしっかり読めるよう、濃いめのチャコールに */
  color: rgba(31, 44, 54, 0.85);
  font-size: 14px;
  font-weight: 500;
  line-height: 2.05;
  /* 背景の明部・暗部のどちらでも読めるよう、ごく薄い白の縁取りを追加 */
  text-shadow:
    0 0 6px rgba(247, 244, 238, 0.8),
    0 0 12px rgba(247, 244, 238, 0.5);
  pointer-events: none;
}

/* =========================
   実績セクション（NUMBERS）
   ヒーロー直下、上品で控えめに
   ========================= */
/* NUMBERS：heroを補足する控えめなカード風セクション
   ─ 帯ではなく container 内の「上品なカードボックス」として配置
   ─ 4項目を横並び、各項目間は薄い縦線
   ─ 強い営業感を出さず、静かに信頼感を添える */
.numbers {
  background: var(--base);
  /* hero と CONCEPT の間にぴたっと挟まる帯。上下余白は極小に */
  padding: 4px 0 6px;
}
.numbers-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(31, 44, 54, 0.07);
  border-radius: 4px;
  /* カード内側余白を半分に抑えて、全体の高さをコンパクトに */
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.number-item {
  text-align: center;
  padding: 2px 24px;
  border-right: 1px solid rgba(31, 44, 54, 0.08);
}
.number-item:last-child {
  border-right: 0;
}
.number-label {
  /* 上下マージンを詰めて全体の高さを抑える */
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 400;
}
.number-value {
  margin: 0 0 4px;
  font-family: var(--serif);
  /* サイズも一段抑えて控えめに */
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--text);
}
.number-sub {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--sub);
  line-height: 1.5;
}

/* =========================
   セクション共通
   ========================= */
section {
  padding: 64px 0;
  /* すべてのセクションを viewport 内に閉じ込め、はみ出しを遮断 */
  max-width: 100%;
  overflow: hidden;
}
#concept { padding: 56px 0; }
.section-label {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--english);
  font-size: 12px;
  letter-spacing: 0.2em;
}
h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* =========================
   CONCEPT
   ========================= */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  align-items: center;
}
.concept-text h2 {
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.5;
  white-space: nowrap;
  margin-bottom: 16px;
}
.concept-text p {
  color: var(--sub);
  font-size: 14px;
  line-height: 2;
  margin: 0 0 14px;
}
.concept-text .text-link {
  margin-top: 4px;
}
.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  transition: opacity 0.2s ease;
}
.text-link::after { content: " →"; }
.text-link:hover { opacity: 0.7; }

.concept-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.concept-images figure {
  margin: 0;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.07);
  background: #fff;
}
.concept-images img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  display: block;
}

/* =========================
   SERVICE
   ========================= */
.services {
  background: rgba(255, 255, 255, 0.38);
}
.section-head {
  margin-bottom: 44px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}
.section-head p {
  max-width: 480px;
  color: var(--sub);
  font-size: 14px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(31, 44, 54, 0.07);
  overflow: hidden;
  display: block;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(31, 44, 54, 0.12);
}
.service-photo {
  height: 170px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.service-body {
  padding: 26px;
}
.service-body span.num {
  color: var(--gold);
  font-family: var(--english);
  font-size: 18px;
  letter-spacing: 0.1em;
}
.service-body h3 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.service-body p {
  color: var(--sub);
  font-size: 13px;
  margin: 0 0 16px;
}
.service-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(185, 149, 76, 0.45);
  border-radius: 50%;
  color: var(--gold);
  font-size: 14px;
}

/* =========================
   STRENGTHS
   ========================= */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strength-item {
  text-align: center;
  padding: 34px 20px;
  border-right: 1px solid var(--line);
}
.strength-item:first-child { border-left: 1px solid var(--line); }
.icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 1px solid rgba(185, 149, 76, 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 22px;
}
.strength-item h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  /* どのカードも1行表示で同じ高さに揃える */
  min-height: 1.5em;
  letter-spacing: 0.04em;
}
.strength-item p {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
}

/* =========================
   FLOW
   ========================= */
.flow {
  background: rgba(255, 255, 255, 0.35);
}
.flow-head {
  margin-bottom: 24px;
}
.flow-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
  align-items: stretch;
}
.flow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}
.flow-item {
  padding: 26px 14px;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flow-item:nth-child(3n) { border-right: 0; }
.flow-item:nth-last-child(-n+3) { border-bottom: 0; }
.flow-num {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid rgba(185, 149, 76, 0.45);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--english);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.flow-item h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}
.flow-item p {
  margin: 0;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.7;
}
.flow-image {
  overflow: hidden;
  border-radius: 4px;
}
.flow-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   CONTACT 帯
   ========================= */
.contact {
  padding: 44px 0 56px;
}
.contact-box {
  /* PC：左に文章、右にボタンの2カラム構成（写真なしのシンプル版）
     ─ ボックス自体に max-width を設けて中央寄せにし、
        画面いっぱいに広がってスカスカになるのを防ぐ
     ─ テキストは 1fr で残り全幅、ボタンは本来幅（auto）、
        ボックスが小さいことでボタンが「右端に貼り付かず」
        テキスト直近に置かれた印象になる */
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}
.contact-text { display: flex; flex-direction: column; justify-content: center; }
.mail-btn { align-self: center; }
/* ボタンの文字は途中で折り返さない */
.contact-box .mail-btn span:first-child { white-space: nowrap; }
.contact-box h2 {
  font-family: var(--serif);
  font-size: 24px;
  /* テキストブロック全体を少し詰めて、ボタン中心と垂直で揃いやすく */
  margin: 0 0 8px;
  /* 文字間を自然に少しだけ詰める */
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}
.contact-box .contact-text p {
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}
.phone {
  text-align: center;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.phone span {
  display: block;
  color: var(--sub);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.phone strong {
  display: block;
  margin: 6px 0 4px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.phone small {
  font-size: 11px;
  color: var(--sub);
  letter-spacing: 0.05em;
}
.mail-btn {
  background: var(--navy);
  color: #fff;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 0 24px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mail-btn:hover { background: var(--navy-dark); transform: translateY(-1px); }

/* CTA帯内のボタンは少しコンパクトに（文章が主役、ボタンは補佐）
   ─ padding と font-weight を少し控えめにして、横幅も主張も和らげる */
.contact-box .mail-btn {
  height: 46px;
  font-size: 13.5px;
  padding: 0 18px;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* =========================
   フッター
   ========================= */
footer.site-footer,
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: #f2eee6;
}
.footer-inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  color: var(--sub);
  isolation: isolate;
}
.footer-logo-wrap {
  display: inline-flex;
}
.footer-logo {
  width: 190px;
  height: auto;
  /* 透過PNGなのでblend modeとfilterは不要 */
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a:hover { color: var(--navy); }

/* =========================
   問い合わせフォーム（contact.html / thanks.html）
   ========================= */
.page-contact,
.page-thanks { background: var(--base); }

.page-hero {
  padding: calc(76px + 80px) 0 60px;
  background: var(--base);
  text-align: center;
}
.page-hero .section-label {
  margin-bottom: 16px;
}
.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text);
}
.page-hero__lead {
  margin: 26px auto 0;
  max-width: 640px;
  color: var(--sub);
  font-size: 14.5px;
  line-height: 2;
}

.form-wrap {
  background: var(--base);
  padding: 30px 0 110px;
}
.form-container {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 56px 52px 48px;
  box-shadow: 0 22px 60px rgba(31, 44, 54, 0.06);
}

.form-row { margin-bottom: 28px; }
.form-row label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
}
.form-badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--sub);
  background: var(--base);
}
.form-badge--required {
  color: #a85050;
  border-color: rgba(168, 80, 80, 0.4);
  background: rgba(168, 80, 80, 0.06);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--base);
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--text);
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18, 50, 84, 0.08);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(95, 106, 112, 0.5); }
.form-row textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.85;
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
  font-size: 12px;
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

/* ファイル添付欄 */
.file-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.file-field input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.file-field__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1px dashed rgba(18, 50, 84, 0.4);
  border-radius: 4px;
  background: var(--base);
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.file-field__button:hover { background: #fff; border-color: var(--navy); }
.file-field__list {
  margin: 0;
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--sub);
  white-space: pre-line;
}
.file-field__list--filled { color: var(--navy); font-weight: 500; }

.form-note {
  margin: 18px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--sub);
  text-align: center;
}
.form-note--error { color: #a85050; }

.form-actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  padding: 0 36px;
  min-width: 280px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-button:hover { background: var(--navy-dark); transform: translateY(-1px); }
.contact-button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.form-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--sub);
}
.form-back:hover { color: var(--navy); }

/* 送信完了ページ */
.thanks-wrap {
  background: var(--base);
  padding: calc(76px + 100px) 0 140px;
}
.thanks-container {
  width: min(680px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}
.thanks-container h1 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text);
  line-height: 1.6;
}
.thanks-container .rule {
  width: 64px;
  height: 1px;
  background: var(--text);
  display: block;
  margin: 32px auto;
}
.thanks-body {
  margin: 0 0 48px;
  color: var(--sub);
  font-size: 14.5px;
  line-height: 2;
}

@media (max-width: 560px) {
  .contact-form { padding: 36px 24px 32px; border-radius: 6px; }
  .page-hero { padding: calc(64px + 60px) 0 48px; }
  .form-wrap { padding: 24px 0 80px; }
  .contact-button { min-width: 100%; }
}

/* =========================
   モバイル / タブレット
   ========================= */
@media (max-width: 900px) {
  .global-nav { display: none; }
  .menu-toggle { display: block; }
  /* .mobile-menu は is-open 時のみ表示（見切れ防止のため display:block 上書きを削除） */
  .header-inner { width: calc(100% - 28px); gap: 12px; }
  .logo { width: 200px; }
  .logo img { width: 190px; }
  .header-btn { display: none !important; }

  /* 実績セクション：2列に */
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number-item { padding: 18px 12px; }
  .number-item:nth-child(2n) { border-right: 0; }
  .number-item:nth-child(-n+2) { border-bottom: 1px solid rgba(31, 44, 54, 0.08); }

  /* CTA帯：縦並び（テキスト → ボタン）
     スマホでは max-width を解除して container 内いっぱいに広げる */
  .contact-box {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 24px;
    text-align: center;
    max-width: 100%;
  }
  .mail-btn {
    align-self: center;
    justify-self: center;
    min-width: 240px;
  }

  /* ヒーロー：タブレット幅では PC 寄りのレイアウトを維持 */
  .hero { min-height: 540px; align-items: end; }
  .hero-image {
    object-position: 60% center;
  }
  .vertical-copy { display: none; }

  .concept-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .strength-grid {
    grid-template-columns: 1fr 1fr;
    border-left: 0; border-right: 0;
  }
  .strength-item { border-bottom: 1px solid var(--line); }
  .strength-item:nth-child(2n) { border-right: 0; }

  .flow-layout { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: 1fr 1fr; }
  .flow-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .flow-item:nth-child(2n) { border-right: 0; }
  .flow-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .flow-item:nth-last-child(-n+2) { border-bottom: 0; }
  .flow-image { aspect-ratio: 16/10; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================================
   768px以下：スマホ最適化
   ─ hero を「画像 → テキスト → ボタン」の縦積みフロー構造に変更
   ─ position: absolute をやめて、レスポンシブで崩れない自然な縦並び
   ─ iPhone 13/14/15 系（CSS 390-393px）でも崩れない設計
   ============================================================= */
@media (max-width: 768px) {
  /* ── hero：画像 + 中段に見出し重ね + 画像下にボタン ── */
  .hero {
    height: auto;
    min-height: auto;
    padding-top: 0;
    display: block;
    background-color: var(--base);
  }
  .hero-inner {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    /* 画像 + ボタン分（NUMBERSを上に詰めるため最小に） */
    min-height: calc(100vw * 0.75 + 58px);
  }

  /* レイヤー1：画像（hero-inner の上部に表示） */
  .hero-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 35%;
    display: block;
  }

  /* レイヤー2：画像の上に薄いグラデで見出しの可読性を確保
     画像の範囲だけに被せる（ボタン位置は覆わない） */
  .hero::after {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100vw * 0.75);  /* 画像と同じ高さ */
    z-index: 2;
    pointer-events: none;
    background:
      linear-gradient(
        180deg,
        rgba(247, 244, 238, 0.45) 0%,
        rgba(247, 244, 238, 0.30) 40%,
        rgba(247, 244, 238, 0.55) 75%,
        rgba(247, 244, 238, 0.85) 100%
      );
  }

  /* レイヤー3：見出し+本文 を画像の中段に絶対配置 */
  .hero-content {
    position: absolute;
    top: calc(100vw * 0.32);
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    margin: 0;
    padding: 0 22px;
    z-index: 3;
    display: block;
  }
  .hero-content > * { max-width: none; }

  .hero h1 {
    font-size: 26px;
    letter-spacing: 0.04em;
    line-height: 1.5;
    margin: 0;
    color: var(--text);
  }
  .hero-lead {
    font-size: 13px;
    line-height: 1.85;
    letter-spacing: 0.02em;
    margin: 14px 0 0;
    color: var(--text);
  }
  /* 本文を2行に維持（指定通り） */
  .hero-lead br { display: inline; }

  /* hero-content 内の hero-buttons を hero-inner 基準で画像の下に絶対配置
     hero-content top + 親 padding をリセットしつつ、画像下端 + 余白の位置へ */
  .hero-content .hero-buttons {
    position: absolute;
    /* 親 hero-content top = 100vw*0.32 → 画像下端は 100vw*0.75 → 差 = 100vw*0.43 + 余白16 */
    top: calc(100vw * 0.43 + 16px);
    left: 0;
    right: 0;
    width: auto;
    padding: 0 22px;
    margin: 0;
    flex-direction: row;
    gap: 10px;
  }
  .hero-buttons .btn {
    flex: 1;
    min-width: 0;
    height: 44px;
    font-size: 13px;
    padding: 0 12px;
  }

  /* 縦書きコピーは非表示 */
  .vertical-copy { display: none; }

  /* ==== NUMBERS：少し上に詰めつつカードはゆとりあるサイズ ==== */
  .numbers { padding: 0 0 12px; }
  .numbers-card { padding: 14px 10px; border-radius: 4px; }
  .numbers-grid { grid-template-columns: repeat(4, 1fr); }
  .number-item { padding: 8px 6px; }
  .number-label {
    font-size: 13px;
    margin: 0 0 5px;
    letter-spacing: 0.05em;
    line-height: 1.25;
  }
  .number-value {
    font-size: 19px;
    margin: 0 0 4px;
    letter-spacing: 0.02em;
    line-height: 1.25;
  }
  .number-sub {
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.02em;
  }

  /* ==== CONCEPT：見出し・画像をコンパクトに ==== */
  #concept { padding: 36px 0; }
  .concept-grid { gap: 24px; }
  .concept-text h2 {
    font-size: 22px;
    line-height: 1.55;
    letter-spacing: 0.06em;
  }
  .concept-text p {
    font-size: 13.5px;
    line-height: 1.95;
  }
  .concept-text p br { display: none; }
  .concept-images {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .concept-images figure { aspect-ratio: 4/3; overflow: hidden; }
  .concept-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ==== SERVICE：1列・画面に3つ見えるコンパクトサイズ ==== */
  .services { padding: 32px 0; }
  .services .section-head h2 { font-size: 22px; }
  .services .section-head p { font-size: 13px; }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  /* 画像を細長く（21:9 程度）してカード1枚を小さく */
  .service-photo { aspect-ratio: 21/9; }
  .service-body {
    padding: 10px 14px 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
  }
  .service-body .num {
    grid-row: 1 / 3;
    grid-column: 1;
    font-size: 13px;
    align-self: center;
  }
  .service-body h3 {
    grid-row: 1;
    grid-column: 2;
    font-size: 14px;
    margin: 0;
  }
  .service-body p {
    grid-row: 2;
    grid-column: 2;
    font-size: 11px;
    line-height: 1.5;
    margin: 2px 0 0;
  }
  .service-arrow {
    grid-row: 1 / 3;
    grid-column: 3;
    width: 26px;
    height: 26px;
    font-size: 12px;
    align-self: center;
  }

  /* ==== STRENGTHS：5カードをコンパクトに ==== */
  #strengths { padding: 36px 0; }
  #strengths h2 { font-size: 22px; }
  .strength-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .strength-item { padding: 16px 10px; }
  .strength-item .icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    font-size: 14px;
  }
  .strength-item h3 {
    font-size: 13px;
    margin: 0 0 4px;
    line-height: 1.4;
    min-height: auto;
    letter-spacing: 0.02em;
  }
  .strength-item p { font-size: 11px; line-height: 1.55; }

  /* ==== FLOW：6ステップをコンパクトに ==== */
  .flow { padding: 36px 0; }
  .flow h2 { font-size: 22px; }
  .flow-list {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .flow-item { padding: 14px 10px; }
  .flow-num {
    width: 32px;
    height: 32px;
    font-size: 12px;
    margin: 0 auto 6px;
  }
  .flow-item h3 {
    font-size: 12.5px;
    margin: 0 0 4px;
    line-height: 1.4;
  }
  .flow-item p { font-size: 11px; line-height: 1.55; }
  .flow-image { aspect-ratio: 16/10; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 28px); }
  header, header.site-header { height: 64px; }
  .header-inner { height: 64px; }
  .logo { width: 170px; }
  .logo img { width: 165px; }
  .menu-toggle { width: 36px; height: 36px; }
  .mobile-menu { top: 64px; }

  /* 実績セクション：スマホは1列 */
  .numbers { padding: 24px 0 32px; }
  .numbers-card { padding: 24px 16px; }
  .numbers-grid { grid-template-columns: 1fr; }
  .number-item {
    border-right: 0;
    border-bottom: 1px solid rgba(31, 44, 54, 0.08);
    padding: 22px 12px;
  }
  .number-item:last-child { border-bottom: 0; }
  .number-item:nth-child(-n+2) { border-bottom: 1px solid rgba(31, 44, 54, 0.08); }

  /* iPhone SE 等 360-375px：見出し中段＋ボタン画像下の構造を維持 */
  .hero-image { aspect-ratio: 4 / 3; }
  .hero-content { top: calc(100vw * 0.30); padding: 0 18px; }
  .hero h1 { font-size: 22px; letter-spacing: 0.02em; line-height: 1.5; }
  .hero-lead { font-size: 12.5px; margin: 12px 0 0; line-height: 1.8; }
  .hero-content .hero-buttons {
    top: calc(100vw * 0.45 + 14px);
    padding: 0 18px;
    gap: 8px;
  }
  .hero-buttons .btn { height: 42px; font-size: 12.5px; padding: 0 8px; }

  section { padding: 64px 0; }

  /* CONCEPT 画像はスマホでも 2 列横並び維持 */
  .concept-images { grid-template-columns: 1fr 1fr; gap: 8px; }
  .service-grid { grid-template-columns: 1fr; }
  .strength-grid { grid-template-columns: 1fr; }
  .strength-item {
    border-right: 0 !important;
    /* PC default の :first-child の左罫線も消す */
    border-left: 0 !important;
  }
  .flow-list { grid-template-columns: 1fr; }
  /* 各項目の下に横線（05-06 間にも入る）。
     900px の :nth-last-child(-n+2) で border-bottom: 0 になっているのを
     !important で確実に上書き */
  .flow-item {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .flow-item:last-child { border-bottom: 0 !important; }

  .contact-box { padding: 24px; }
  .contact-box h2 { font-size: 20px; }
  .phone strong { font-size: 24px; }
}

/* =============================================================
   お問い合わせ補足文（個人・法人問わず／1件からでも対応 等）
   目立ちすぎないトーンで、CTA の上もしくは下に自然に配置
   ============================================================= */
.contact-note {
  max-width: 640px;
  margin: 28px auto 0;
  padding: 0 16px;
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 2.05;
  letter-spacing: 0.02em;
  color: var(--sub);
  text-align: center;
}
.contact-note strong {
  font-weight: 500;
  color: var(--text);
}
@media (max-width: 560px) {
  .contact-note {
    font-size: 12.5px;
    line-height: 2;
    margin-top: 22px;
  }
  .contact-note br { display: none; }
}

/* =============================================================
   会社案内ページ（company.html）専用スタイル
   既存LPの世界観（生成り背景・濃紺・ゴールド・明朝）に揃える
   ============================================================= */
.page-company { background: var(--base); }

.page-company .page-hero { padding: calc(76px + 92px) 0 64px; }
.page-company .page-hero h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.7;
  letter-spacing: 0.14em;
}
.page-company .page-hero__lead {
  margin-top: 28px;
  max-width: 720px;
  font-size: 15px;
  line-height: 2.1;
}

/* セクション共通の見出し（.company-h2 / .rule） */
.company-h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(26px, 2.9vw, 34px);
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--text);
}
.page-company .rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--text);
  margin: 18px 0 30px;
  border: 0;
}

/* 私たちについて
   ----------------------------------------------------------- */
.company-intro {
  background: var(--base);
  padding: 96px 0 84px;
}
.company-intro-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.company-intro-inner .rule { margin-left: auto; margin-right: auto; }
.company-intro-inner p {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 15px;
  line-height: 2.15;
  letter-spacing: 0.04em;
}
.company-intro-inner p:last-child { margin-bottom: 0; }
.company-intro-inner strong {
  font-weight: 600;
  color: var(--navy);
}

/* 代表メッセージ（主役セクション）
   ----------------------------------------------------------- */
.company-message {
  background: #fff;
  padding: 110px 0 100px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.company-message-inner {
  max-width: 780px;
  margin: 0 auto;
}
.company-message-body {
  margin-top: 8px;
  /* 本文ブロックは読みやすい幅に絞る */
  max-width: 640px;
}
.company-message-body p {
  margin: 0 0 22px;
  color: var(--text);
  font-family: var(--serif);
  /* 読みやすさ重視：上品さは保ちつつ、文字間・行間は控えめに */
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.015em;
}
.company-message-body p:last-child { margin-bottom: 0; }

.company-message-sign {
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  text-align: right;
  font-family: var(--serif);
  color: var(--text);
}
.company-sign-company {
  display: block;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: var(--sub);
  margin-bottom: 6px;
}
.company-sign-name {
  display: block;
  font-size: 17px;
  letter-spacing: 0.14em;
  font-weight: 500;
}

/* 会社概要（dl テーブル）
   ----------------------------------------------------------- */
.company-profile {
  background: var(--base);
  padding: 100px 0 90px;
}
.company-profile-head {
  text-align: center;
  margin-bottom: 48px;
}
.company-profile-head .rule { margin-left: auto; margin-right: auto; }

.company-table {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.company-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.company-row:last-child { border-bottom: 0; }
.company-row dt {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--navy);
  font-weight: 500;
  min-width: 0;
}
.company-row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  letter-spacing: 0.04em;
  min-width: 0;
  overflow-wrap: anywhere;
}
.company-biz-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.company-biz-list li {
  position: relative;
  padding-right: 18px;
}
.company-biz-list li:not(:last-child)::after {
  content: "/";
  position: absolute;
  right: 0;
  color: var(--line);
}

/* 対応エリア
   ----------------------------------------------------------- */
.company-area {
  background: #fff;
  padding: 100px 0 90px;
  border-top: 1px solid var(--line);
}
.company-area-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.company-area-inner .rule { margin-left: auto; margin-right: auto; }
.company-area-inner p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.04em;
}
.company-area-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
}
.company-area-list li {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--navy);
  background: var(--base);
}

/* お問い合わせ CTA
   ----------------------------------------------------------- */
.company-cta {
  background: var(--base);
  /* 上下余白を詰めて、見出し・本文・ボタンが1ブロックに見えるように */
  padding: 80px 0 88px;
  border-top: 1px solid var(--line);
}
.company-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.company-cta-inner .rule { margin-left: auto; margin-right: auto; margin-bottom: 24px; }
.company-cta-inner .company-h2 {
  /* 短い見出しに変わったので、サイズ・余白・字間を整える */
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.company-cta-inner p {
  margin: 0 0 28px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}
.company-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.company-cta-actions .btn { min-width: 220px; }

/* レスポンシブ：タブレット / モバイル
   ----------------------------------------------------------- */
@media (max-width: 900px) {
  .page-company .page-hero { padding: calc(64px + 72px) 0 48px; }
  .page-company .page-hero h1 { letter-spacing: 0.1em; }

  .company-intro { padding: 72px 0 64px; }
  .company-message { padding: 84px 0 80px; }
  .company-message-body p { font-size: 15.5px; line-height: 1.95; }
  .company-profile { padding: 76px 0 72px; }
  .company-area { padding: 76px 0 72px; }
  .company-cta { padding: 64px 0 72px; }

  .company-row {
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 20px 24px;
  }
}

@media (max-width: 560px) {
  /* 念のための保険：はみ出しを完全に抑制 */
  .page-company main {
    overflow-x: hidden;
  }
  .page-company .page-hero,
  .page-company .company-intro,
  .page-company .company-message,
  .page-company .company-profile,
  .page-company .company-area,
  .page-company .company-cta {
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: strict;
  }

  .page-company .page-hero { padding: calc(56px + 56px) 0 40px; }
  .page-company .page-hero h1 {
    font-size: 22px;
    letter-spacing: 0.06em;
    line-height: 1.7;
  }
  .page-company .page-hero__lead {
    font-size: 14px;
    line-height: 2;
  }
  /* hero lead の <br> はスマホでも残して、原文の改行に従う */

  .company-intro,
  .company-area,
  .company-cta { padding: 56px 0 56px; }
  .company-message { padding: 64px 0 60px; }

  .company-h2 {
    font-size: 21px;
    letter-spacing: 0.08em;
  }

  .company-intro-inner p,
  .company-area-inner p,
  .company-cta-inner p {
    font-size: 14px;
    line-height: 2.05;
  }

  .company-message-body {
    max-width: none;
  }
  .company-message-body p {
    font-size: 15px;
    line-height: 1.95;
    letter-spacing: 0.01em;
    margin-bottom: 18px;
  }
  .company-message-sign { text-align: left; }
  .company-sign-name { font-size: 16px; }

  /* 会社概要：縦積み */
  .company-table { margin: 0 14px; }
  .company-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 20px;
  }
  .company-row dt {
    font-size: 12.5px;
    color: var(--gold);
    letter-spacing: 0.16em;
  }
  .company-row dd {
    font-size: 14.5px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .company-area-list {
    gap: 8px 10px;
  }
  .company-area-list li {
    font-size: 13px;
    padding: 8px 16px;
  }

  .company-cta-actions { flex-direction: column; }
  .company-cta-actions .btn { width: 100%; min-width: 0; }
}
