/* ==================== ベース ==================== */
/* ============================================================
   有限会社忍興産 デモサイト — ベーススタイルシート
   和モダン × 重厚デザインシステム
   構成:
     1. モダンリセット
     2. :root デザイントークン
     3. 基本タイポグラフィ
     4. .container
     5. .section / .section--paper
     6. .sec-label（縦書きセクションラベル）
     7. .btn / .btn--crimson / .btn--ghost
     8. .reveal（スクロール出現の初期状態）
     9. .shinobi-watermark（「忍」透かし）
     10. .rule-gold（金茶罫線ユーティリティ）
     11. フォーカス可視スタイル
     12. prefers-reduced-motion 対応
   注意: セクション固有のスタイルはここに含めない。
         各セクション担当は独自スコープのクラスで拡張すること。
   ============================================================ */

/* ------------------------------------------------------------
   1. モダンリセット
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ------------------------------------------------------------
   2. :root デザイントークン
   ------------------------------------------------------------ */
:root {
  /* --- カラー（和モダン） --- */
  --ink: #101013;          /* 墨: 基調背景 */
  --ink-2: #1A1A1F;        /* 濃鼠: セクション交互背景・カード面 */
  --ink-3: #26262C;        /* 鉄黒: ボーダー・区切り・ホバー面 */
  --crimson: #A31620;      /* 深緋: アクセント主役 */
  --crimson-deep: #6E0F16; /* 濃紅: グラデーション終端・ホバー */
  --paper: #F4F1EA;        /* 生成り: 明転セクション背景 */
  --paper-dim: #B9B5AC;    /* 灰白: ダーク上の補助文字 */
  --gold: #B99B5E;         /* 金茶: 極少量の格上げ */

  /* --- 補助色（背景に応じて切替わる「補助文字色」トークン） ---
     ダーク面では --paper-dim、.section--paper 内では暗い補助色に
     上書きされる。セクション側は var(--muted) を参照すること。 */
  --muted: var(--paper-dim);

  /* --- フォント --- */
  --font-serif: 'Shippori Mincho', 'Yu Mincho', '游明朝', serif;
  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;

  /* --- スペーシング（8ptグリッド） --- */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;

  /* --- レイアウト --- */
  --container-max: 1200px;
  --header-height: 72px;

  /* --- モーション --- */
  --ease-reveal: cubic-bezier(.22, 1, .36, 1);
  --dur-reveal: .8s;
}

/* ------------------------------------------------------------
   3. 基本タイポグラフィ
   ------------------------------------------------------------ */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  font-weight: 400;
  color: var(--paper);
  background: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.4;
  color: inherit;
}

/* キャッチコピー相当（設計書§3.3のスケールをそのまま採用） */
h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.3;
  letter-spacing: .02em;
}

/* セクション見出し: PC 36px / SP 26px 相当 */
h2 {
  font-size: clamp(26px, 2vw + 18px, 36px);
  letter-spacing: .03em;
}

/* 小見出し: PC 22px / SP 19px 相当 */
h3 {
  font-size: clamp(19px, 1.5vw + 15px, 22px);
  letter-spacing: .02em;
}

p {
  line-height: inherit;
}

strong {
  font-weight: 700;
}

/* ------------------------------------------------------------
   4. .container
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ------------------------------------------------------------
   5. .section / .section--paper
   ------------------------------------------------------------ */
.section {
  position: relative;
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(72px, 9vw, 120px);
  background: var(--ink);
  color: var(--paper);
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
  /* 明転セクション内の補助文字色をダーク上用の --paper-dim から
     明るい面用の暗色トーンへ切替える */
  --muted: rgba(16, 16, 19, .62);
}

/* ------------------------------------------------------------
   6. .sec-label（縦書きセクションラベル）
   SP: 横書き・インライン配置 / PC(768px+): 縦書き・セクション左端配置
   ------------------------------------------------------------ */
.sec-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  color: inherit;
}

.sec-label__num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--crimson);
  letter-spacing: .1em;
  line-height: 1;
}

.sec-label__txt {
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: inherit;
  line-height: 1;
}

@media (min-width: 768px) {
  .sec-label {
    display: block;
    position: absolute;
    top: clamp(72px, 9vw, 120px);
    left: clamp(8px, 2vw, 24px);
    margin-bottom: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    z-index: 1;
  }

  .sec-label__num,
  .sec-label__txt {
    writing-mode: vertical-rl;
  }

  .sec-label__txt {
    margin-top: 12px;
  }
}

/* ------------------------------------------------------------
   7. ボタン
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 32px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  border-radius: 2px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, opacity .3s ease;
}

.btn--crimson {
  background: var(--crimson);
  border-color: var(--crimson);
  color: var(--paper);
}

.btn--crimson:hover:not(:disabled) {
  background: var(--crimson-deep);
  border-color: var(--crimson-deep);
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--ghost:hover:not(:disabled) {
  background: rgba(244, 241, 234, .08);
}

.section--paper .btn--ghost:hover:not(:disabled) {
  background: rgba(16, 16, 19, .06);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .5;
}

/* ------------------------------------------------------------
   8. .reveal（スクロール出現）
   ------------------------------------------------------------ */
/* JSが動かない環境ではコンテンツを隠さない: 初期非表示・transitionは.jsゲート配下のみに適用 */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-reveal) var(--ease-reveal),
              transform var(--dur-reveal) var(--ease-reveal);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   9. .shinobi-watermark（「忍」透かし）
   使用例: <div class="shinobi-watermark" aria-hidden="true">忍</div>
   ------------------------------------------------------------ */
.shinobi-watermark {
  position: absolute;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(240px, 40vw, 560px);
  line-height: 1;
  color: currentColor;
  opacity: .05;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   10. .rule-gold（金茶罫線ユーティリティ）
   ------------------------------------------------------------ */
.rule-gold {
  display: block;
  width: 100%;
  height: 1px;
  border: none;
  background: linear-gradient(to right, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  opacity: .6;
}

/* ------------------------------------------------------------
   11. フォーカス可視スタイル
   ------------------------------------------------------------ */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ------------------------------------------------------------
   12. prefers-reduced-motion 対応
   A1〜A6 すべてのアニメーション・トランジションを即時化する
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== ヘッダー/ドロワー/CTAバー ==================== */
/* ==========================================================================
   HEADER / DRAWER / CTABAR — 有限会社忍興産デモサイト
   接頭辞: header- / drawer- / ctabar-（BEM風）
   ========================================================================== */

/* ---- header ---- */
.header {
  --header-h: 88px;
  --header-h-scrolled: 64px;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: height .35s ease, background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.header.is-scrolled {
  height: var(--header-h-scrolled);
  background-color: rgba(16, 16, 19, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--ink-3);
  border-bottom-color: color-mix(in srgb, var(--gold) 45%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  flex-shrink: 1;
}

.header__mark {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}

.header__mark svg {
  display: block;
}

.header__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(13px, 3.4vw, 17px);
  color: var(--paper);
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- header: PC navigation ---- */
.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.header__nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: var(--crimson);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

.header__nav-link:hover,
.header__nav-link:focus-visible {
  color: var(--paper);
}

.header__nav-link:hover::after,
.header__nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---- header: actions (tel / cta / hamburger) ---- */
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__tel {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--crimson);
  text-decoration: none;
  color: var(--paper);
  transition: background-color .25s ease;
}

.header__tel:hover,
.header__tel:focus-visible {
  background-color: rgba(163, 22, 32, .14);
}

.header__tel-icon {
  color: var(--crimson);
  flex-shrink: 0;
}

.header__tel-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.header__tel-label {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--paper-dim);
}

.header__tel-number {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--paper);
  letter-spacing: .01em;
}

.header__cta {
  display: none;
}

/* ---- header: hamburger (SP/タブレット) ---- */
.header__hamburger {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.header__hamburger-line {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background-color: var(--paper);
  transform: translateX(-50%);
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}

.header__hamburger-line:nth-child(1) { top: 15px; }
.header__hamburger-line:nth-child(2) { top: 21px; }
.header__hamburger-line:nth-child(3) { top: 27px; }

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ---- body scroll lock (drawer open) ---- */
body.header-scroll-lock {
  overflow: hidden;
}

/* ---- drawer ---- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  overflow-y: auto;
  background-color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .4s ease, transform .4s ease, visibility 0s linear 0s;
}

.drawer__watermark {
  position: absolute;
  right: -.1em;
  bottom: -.12em;
  z-index: 0;
  font-family: var(--font-serif);
  font-size: clamp(220px, 55vw, 420px);
  line-height: 1;
  color: var(--crimson);
  opacity: .05;
  pointer-events: none;
  user-select: none;
}

.drawer__inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px 24px calc(32px + env(safe-area-inset-bottom, 0px));
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.drawer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.drawer__mark {
  display: block;
  line-height: 0;
}

.drawer__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--paper);
}

.drawer__close {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink-3);
  cursor: pointer;
  flex-shrink: 0;
}

.drawer__close-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background-color: var(--paper);
}

.drawer__close-line:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.drawer__close-line:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.drawer__nav {
  margin-top: 48px;
}

.drawer__nav-list {
  list-style: none;
}

.drawer__nav-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
  transition-delay: 0s;
}

.drawer.is-open .drawer__nav-item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--drawer-delay, 0s);
}

.drawer__nav-link {
  display: block;
  padding: 15px 2px;
  border-bottom: 1px solid var(--ink-3);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 6vw, 28px);
  color: var(--paper);
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .25s ease, transform .25s ease, padding-left .25s ease;
}

.drawer__nav-link:hover,
.drawer__nav-link:focus-visible {
  color: var(--crimson);
  padding-left: 10px;
}

.drawer__footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer__tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
}

.drawer__tel svg {
  color: var(--crimson);
}

.drawer__tel-number {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
}

.drawer__cta {
  align-self: flex-start;
}

/* ---- ctabar（SP専用） ---- */
.ctabar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  width: 100%;
  transform: translateY(100%);
  transition: transform .35s ease;
}

.ctabar.is-shown {
  transform: translateY(0);
}

.ctabar.is-hidden {
  transform: translateY(100%);
}

.ctabar__link {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--paper);
  text-decoration: none;
}

.ctabar__link--tel {
  background-color: var(--crimson);
}

.ctabar__link--mail {
  background-color: var(--ink-3);
}

.ctabar__icon {
  flex-shrink: 0;
}

/* ---- focus visibility（アクセシビリティ） ---- */
.header__brand:focus-visible,
.header__nav-link:focus-visible,
.header__tel:focus-visible,
.header__hamburger:focus-visible,
.drawer__brand:focus-visible,
.drawer__nav-link:focus-visible,
.drawer__close:focus-visible,
.drawer__tel:focus-visible,
.ctabar__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================================
   ブレークポイント（768px / 1080px の2つのみ）
   ========================================================================== */

@media (min-width: 1080px) {
  /* PCではヘッダーの電話・お問い合わせが常時表示されるためCTAバーを非表示にする。
     768〜1079px（タブレット）ではヘッダーCTAが出ないため、CTAバーを表示し続ける */
  .ctabar {
    display: none;
  }
}

@media (min-width: 1080px) {
  .header__nav {
    display: block;
  }

  .header__tel {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__hamburger {
    display: none;
  }
}

/* ==========================================================================
   reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .header,
  .header__hamburger-line,
  .header__nav-link::after,
  .drawer,
  .drawer__nav-item,
  .drawer__nav-link,
  .ctabar {
    transition-duration: .001ms !important;
  }

  .drawer__nav-item {
    transition-delay: 0s !important;
  }
}

/* ==================== FV ==================== */
/* ============================================
   FV（ファーストビュー） — 自スコープCSS
   接頭辞: fv- / BEMブロック: .fv
   共有クラス .shinobi-watermark は位置指定を含まない
   汎用ルールのみ（他セクションでの再利用を想定）
   ============================================ */

.fv {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper);
}

/* ---- 背景メディア ---- */
.fv__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.fv__picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.fv__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transform-origin: center;
  will-change: transform;
}

.fv.is-loaded .fv__img {
  animation: fv-bg-zoom 2.4s cubic-bezier(.16, .6, .35, 1) forwards;
}

@keyframes fv-bg-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

/* 墨の縦グラデーション（上40%→透明、かつ下端も再度暗転させ
   本文のコントラスト比4.5:1以上（§3.2 AA基準）を確保） */
.fv__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--ink) 85%, transparent) 0%,
    color-mix(in srgb, var(--ink) 34%, transparent) 42%,
    color-mix(in srgb, var(--ink) 20%, transparent) 60%,
    color-mix(in srgb, var(--ink) 80%, transparent) 100%
  );
}

.fv__watermark {
  top: 50%;
  right: -4vw;
  z-index: 2;
  transform: translateY(-50%);
  font-size: clamp(220px, 42vw, 620px);
}

/* ---- コピー（左下） ---- */
.fv__frame {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(96px, 14vh, 160px);
  padding-bottom: clamp(96px, 16vh, 160px);
}

.fv__copy {
  max-width: min(560px, 80%);
}

.fv__catch {
  margin: 0 0 .9em;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.35;
  letter-spacing: .02em;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}

.fv__catch-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
}

.fv.is-loaded .fv__catch-line {
  animation: fv-line-in .8s cubic-bezier(.2, .7, .2, 1) forwards;
}
.fv.is-loaded .fv__catch-line:nth-child(1) { animation-delay: .3s; }
.fv.is-loaded .fv__catch-line:nth-child(2) { animation-delay: .45s; }

@keyframes fv-line-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fv__note {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--paper-dim);
  opacity: 0;
  transform: translateY(16px);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}

.fv.is-loaded .fv__note {
  animation: fv-fade-up .7s ease forwards;
  animation-delay: .75s;
}

@keyframes fv-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 縦書きサブ（右端） ---- */
.fv__side {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding-right: clamp(14px, 3vw, 40px);
}

.fv__vertical {
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-serif);
  font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: .22em;
  color: var(--paper);
  opacity: 0;
  transform: translateX(10px);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .4);
}

.fv.is-loaded .fv__vertical {
  animation: fv-side-in .8s ease forwards;
  animation-delay: .95s;
}

@keyframes fv-side-in {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- スクロールインジケータ（下端中央） ---- */
.fv__scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(20px, 4vh, 36px);
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  width: 1px;
  opacity: 0;
}

.fv.is-loaded .fv__scroll {
  animation: fv-fade-up .6s ease forwards;
  animation-delay: 1.3s;
}

.fv__scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--paper-dim), transparent);
  transform: scaleY(.35);
  transform-origin: top;
}

.fv.is-loaded .fv__scroll-line {
  animation: fv-scroll-pulse 2.2s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes fv-scroll-pulse {
  0%   { transform: scaleY(.35); opacity: .4; }
  50%  { transform: scaleY(1);   opacity: 1; }
  100% { transform: scaleY(.35); opacity: .4; }
}

/* ---- ブレークポイント ---- */
@media (min-width: 768px) {
  .fv__copy { max-width: 620px; }
}

@media (min-width: 1080px) {
  .fv__frame { padding-bottom: clamp(120px, 14vh, 176px); }
  .fv__vertical { font-size: 16px; }
}

/* ---- reduced-motion 縮退（A1〜A6共通ルール） ---- */
@media (prefers-reduced-motion: reduce) {
  .fv__img,
  .fv__catch-line,
  .fv__note,
  .fv__vertical,
  .fv__scroll,
  .fv__scroll-line {
    animation: none !important;
    transition: opacity .4s ease !important;
  }
  .fv__img { transform: scale(1) !important; }
  .fv__catch-line,
  .fv__note,
  .fv__vertical,
  .fv__scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==================== 実績数値・会社紹介 ==================== */
/* ==========================================================================
   stats（実績数値） / about（忍興産について）
   接頭辞: stats- / about- のみ使用。CSSカスタムプロパティは base:root を参照。
   ========================================================================== */

/* ----- stats ----- */
.stats {
  background: var(--ink);
  padding: 64px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats__item {
  text-align: center;
  padding: 24px 12px;
}

.stats__item:nth-child(2) {
  border-left: 1px solid var(--gold);
}
.stats__item:nth-child(3) {
  border-top: 1px solid var(--gold);
}
.stats__item:nth-child(4) {
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.stats__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stats__num {
  font-size: clamp(30px, 8vw, 40px);
  font-variant-numeric: tabular-nums;
}

.stats__suffix {
  font-size: clamp(15px, 3vw, 18px);
}

.stats__label {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--paper);
  line-height: 1.6;
}

.stats__label-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--paper-dim);
}

.stats__note {
  margin: 32px 0 0;
  font-size: 13px;
  color: var(--paper-dim);
  text-align: center;
}

@media (min-width: 768px) {
  .stats {
    padding: 96px 0;
  }
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .stats__item {
    padding: 8px 24px;
  }
  .stats__item:nth-child(2) {
    border-top: none;
  }
  .stats__item:nth-child(3) {
    border-top: none;
    border-left: 1px solid var(--gold);
  }
  .stats__item:nth-child(4) {
    border-top: none;
  }
  .stats__num {
    font-size: 42px;
  }
  .stats__note {
    margin-top: 40px;
  }
}

@media (min-width: 1080px) {
  .stats__num {
    font-size: 44px;
  }
}

/* ----- about ----- */
.about {
  background: var(--ink);
  padding: 64px 0;
}

.about__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about__col--text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__heading {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.5;
  color: var(--paper);
}

.about__text {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  color: var(--paper-dim);
}

.about__col--media {
  display: flex;
  justify-content: center;
}

.about__figure {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.about__figure::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  background: var(--crimson-deep);
  z-index: 0;
}

.about__img-wrap {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  /* 画像の読み込み前・失敗時に背後の深緋パネル（figure::before）ではなく中間色の下地を見せる */
  background: var(--ink-2);
}

.about__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .about {
    padding: 96px 0;
  }
  .about__container {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .about__heading {
    font-size: 36px;
  }
  .about__figure {
    max-width: 100%;
  }
}

@media (min-width: 1080px) {
  .about__container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
  }
}

/* ==================== 事業内容・流れ ==================== */
/* ============================================================
   ④ 事業内容 (.biz)
   ============================================================ */
.biz {
  position: relative;
  padding: 64px 0;
}
@media (min-width: 768px) {
  .biz { padding: 88px 0; }
}
@media (min-width: 1080px) {
  .biz { padding: 120px 0; }
}

.biz__sr-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.biz__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}
@media (min-width: 768px) {
  .biz__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 56px;
  }
}
@media (min-width: 1080px) {
  .biz__grid { gap: 40px; }
}

.biz__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  transition: box-shadow .4s ease;
}
.biz__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color .4s ease;
}
.biz__card:hover,
.biz__card:focus-within {
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .7);
}
.biz__card:hover::after,
.biz__card:focus-within::after {
  border-color: var(--crimson);
}

.biz__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.biz__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16, .84, .44, 1);
}
.biz__card:hover .biz__photo img,
.biz__card:focus-within .biz__photo img {
  transform: scale(1.08);
}

.biz__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px 32px;
}
@media (min-width: 1080px) {
  .biz__body { padding: 32px 32px 36px; }
}

.biz__title {
  position: relative;
  padding-bottom: 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--paper);
  letter-spacing: .02em;
}
@media (min-width: 1080px) {
  .biz__title { font-size: 24px; }
}
.biz__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--crimson);
}

.biz__text {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  color: var(--paper-dim);
}

.biz__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.biz__chip {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1;
  color: var(--paper-dim);
  background: transparent;
  border: 1px solid var(--ink-3);
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
}

/* ============================================================
   ⑤ 解体工事の流れ (.flow) — 明転セクション(.section--paperはベース提供)
   ============================================================ */
.flow {
  position: relative;
  padding: 64px 0;
}
@media (min-width: 768px) {
  .flow { padding: 88px 0; }
}
@media (min-width: 1080px) {
  .flow { padding: 120px 0; }
}

.flow__sr-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flow__timeline {
  position: relative;
  margin-top: 48px;
}
@media (min-width: 768px) {
  .flow__timeline { margin-top: 64px; }
}

/* モバイル: 縦線（scaleY） */
.flow__line {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 21px;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1.1s cubic-bezier(.16, .84, .44, 1);
}
.flow__line.is-active {
  transform: scaleY(1);
}
/* 768px以上: 横線（scaleX）に切り替え。5列グリッドの中心(10/30/50/70/90%)の
   両端(10%〜90%)を結ぶ位置に配置 */
@media (min-width: 768px) {
  .flow__line {
    top: 27px;
    right: 10%;
    bottom: auto;
    left: 10%;
    width: auto;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left center;
  }
  .flow__line.is-active {
    transform: scaleX(1);
  }
}

.flow__steps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .flow__steps {
    flex-direction: row;
    gap: 0;
  }
}

.flow__step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.flow__step.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 768px) {
  .flow__step {
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
    text-align: center;
  }
}

.flow__num {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--crimson);
}
@media (min-width: 768px) {
  .flow__num {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    font-size: 24px;
  }
}

.flow__content {
  min-width: 0;
}

.flow__title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.flow__text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  opacity: .75;
}

/* ==================== 安全・会社概要 ==================== */
/* ===== safety（肆｜安全と近隣への配慮） ===== */
.safety {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--ink);
  padding-block: 88px;
}

.safety__bg {
  position: absolute;
  top: -8%;
  left: 0;
  right: 0;
  height: 116%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.safety__bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
}

.safety__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(16, 16, 19, .85);
  pointer-events: none;
}

.safety__inner {
  position: relative;
  z-index: 2;
}

.safety__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.safety__card {
  background: var(--ink-2);
  border-top: 1px solid var(--crimson);
  padding: 32px 28px;
}

.safety__card-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  color: var(--paper);
}

.safety__card-text {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  color: var(--paper-dim);
}

/* ===== company（伍｜会社概要） ===== */
.company {
  padding-block: 88px;
}

.company__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}

.company__table {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(16, 16, 19, .12);
}

.company__row {
  margin: 0;
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 6px 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(16, 16, 19, .12);
}

.company__term {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-3);
}

.company__desc {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  word-break: break-word;
}

.company__tel,
.company__mail {
  display: inline-block;
  margin: -10px -8px;
  padding: 10px 8px;
  color: var(--crimson);
  font-weight: 700;
  text-decoration: none;
}

.company__tel:hover,
.company__mail:hover,
.company__tel:focus-visible,
.company__mail:focus-visible {
  text-decoration: underline;
}

.company__map {
  background: var(--ink);
  padding: 10px;
  border-radius: 0;
}

.company__map-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 0;
}

@media (min-width: 768px) {
  .safety {
    padding-block: 120px;
  }

  .safety__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
  }

  .safety__card-title {
    font-size: 22px;
  }

  .company {
    padding-block: 120px;
  }

  .company__layout {
    margin-top: 56px;
  }

  .company__map {
    padding: 14px;
  }

  .company__map-frame {
    aspect-ratio: 3 / 2;
  }
}

@media (min-width: 1080px) {
  .safety {
    padding-block: 160px;
  }

  .company {
    padding-block: 160px;
  }

  .company__layout {
    grid-template-columns: minmax(320px, 460px) 1fr;
    gap: 64px;
  }

  .company__map-frame {
    aspect-ratio: 4 / 3;
    min-height: 420px;
  }
}

/* ==================== お問い合わせ・フッター ==================== */
/* ============================================
   Section 8: お問い合わせ (contact-)
   ============================================ */

.contact {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0;
}

.contact__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(280px, 45vw, 640px);
  line-height: 1;
  color: var(--paper);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.contact__inner {
  position: relative;
  z-index: 1;
}

.contact__top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
}

.contact__heading {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 4.5vw, 36px);
  line-height: 1.5;
}

.contact__phone-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  border-radius: 2px;
}

.contact__phone-label {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--paper);
}

.contact__phone-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 0.02em;
  color: var(--paper);
  text-decoration: none;
  line-height: 1.2;
}

.contact__phone-link:hover {
  text-decoration: underline;
}

.contact__phone-link:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

.contact__phone-note {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--paper);
  opacity: 0.85;
}

.contact__form {
  margin-top: 56px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--paper-dim);
}

.contact__badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--paper);
  background: var(--crimson);
  border-radius: 2px;
}

.contact__input,
.contact__select,
.contact__textarea {
  width: 100%;
  min-height: 44px;
  padding: 14px 12px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--paper);
  background: var(--ink-2);
  border: none;
  border-bottom: 1px solid var(--ink-3);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact__textarea {
  min-height: 140px;
  line-height: 1.9;
  resize: vertical;
}

.contact__select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--paper-dim) 50%),
    linear-gradient(135deg, var(--paper-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: var(--paper-dim);
}

.contact__input:focus,
.contact__select:focus,
.contact__textarea:focus {
  border-bottom-color: var(--crimson);
  box-shadow: 0 1px 0 0 var(--crimson);
}

.contact__input:focus-visible,
.contact__select:focus-visible,
.contact__textarea:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}

.contact__field.is-error .contact__input,
.contact__field.is-error .contact__select,
.contact__field.is-error .contact__textarea {
  border-bottom-color: var(--crimson);
  box-shadow: 0 1px 0 0 var(--crimson);
}

.contact__error-msg {
  display: none;
  min-height: 1em;
  padding-left: 10px;
  border-left: 2px solid var(--crimson);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--paper);
}

.contact__field.is-error .contact__error-msg {
  display: block;
}

.contact__actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.contact__submit {
  padding: 18px 40px;
  min-height: 44px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--paper-dim);
  background: var(--ink-3);
  border: 1px solid var(--ink-3);
  cursor: not-allowed;
}

.contact__submit:focus-visible {
  outline: 2px solid var(--paper-dim);
  outline-offset: 2px;
}

.contact__demo-note {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--paper-dim);
}

@media (min-width: 768px) {
  .contact__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }

  .contact__lead {
    flex: 1;
  }

  .contact__phone-block {
    flex: 0 0 380px;
  }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }

  .contact__field--full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1080px) {
  .contact {
    padding: 128px 0;
  }

  .contact__phone-block {
    flex: 0 0 420px;
  }
}

/* ============================================
   Footer (footer-)
   ============================================ */

.footer {
  background: var(--ink-2);
  color: var(--paper-dim);
  padding: 64px 0 32px;
  border-top: 1px solid var(--ink-3);
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__seal {
  flex-shrink: 0;
}

.footer__company-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--paper);
}

.footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--paper-dim);
  text-decoration: none;
}

.footer__nav-link:hover {
  color: var(--paper);
}

.footer__nav-link:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
}

.footer__info-line {
  color: var(--paper-dim);
}

.footer__tel-link {
  color: var(--paper-dim);
  text-decoration: none;
}

.footer__tel-link:hover {
  color: var(--paper);
  text-decoration: underline;
}

.footer__tel-link:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}

.footer__divider {
  margin: 32px 0 24px;
  border: none;
  border-top: 1px solid var(--ink-3);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--paper-dim);
}

.footer__copyright {
  color: var(--paper-dim);
}

.footer__demo-note {
  color: var(--paper-dim);
}

@media (min-width: 768px) {
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer__info {
    text-align: right;
  }
}


/* ==================== 統合調整（オーケストレーター） ==================== */
/* sec-label（絶対配置）の基準となる position を、.section クラスを持たない
   セクションにも付与する（ラベルが body 基準で配置されるのを防ぐ） */
.stats,
.about,
.company {
  position: relative;
}


/* ==================== 統合調整2（検品反映） ==================== */
/* sr-only 見出し（⑥安全・⑦会社概要の見出し階層補完） */
.safety__sr-heading,
.company__sr-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 縦書き sec-label の重なり解消:
   768〜1365px ではコンテナ左にラベル用ガターを確保し、
   ラベルが外側マージンに収まる 1366px 以上で通常の余白へ戻す */
@media (min-width: 768px) {
  .container:has(.sec-label),
  section:has(> .sec-label) .container {
    padding-left: 76px;
  }
}
@media (min-width: 1366px) {
  .container:has(.sec-label),
  section:has(> .sec-label) .container {
    padding-left: 24px;
  }
}

/* フォーカス可視性: 背景色ごとにアウトライン色を出し分け（WCAG 1.4.11） */
.section--paper :focus-visible,
.company :focus-visible,
.flow :focus-visible {
  outline-color: var(--crimson-deep);
}
.contact__input:focus-visible,
.contact__select:focus-visible,
.contact__textarea:focus-visible,
.footer__nav-link:focus-visible,
.footer__tel-link:focus-visible {
  outline-color: var(--gold);
}

/* フッター電話リンクのタッチターゲット確保（44px以上） */
.footer__tel-link {
  display: inline-block;
  padding: 12px 6px;
  margin: -12px -6px;
}
