@charset "UTF-8";
/*!
 * =============================================================================
 *  MAEDA KOUGEI — Corporate Site  /  Stylesheet
 *  有限会社前田工芸  https://example.com/           <!-- TODO: 本番URLに変更 -->
 * -----------------------------------------------------------------------------
 *  Concept   街を歩くように読むサイト
 *            セクション見出し = 壁面サイン / 画面端の縦組み = 袖看板 /
 *            帯状の流れる文字 = 懸垂幕
 *
 *  Naming    BEM  .block / .block__element / .block--modifier
 *            状態は接頭辞で表す   .is-*   （JS が付け外しする一時的な状態）
 *                                .has-*  （環境の有無を示す永続的な状態）
 *
 *  Order     各ルール内の宣言は「表示 → 配置 → 大きさ → 文字 → 装飾 → 動き」
 *            の順に揃えています。
 *
 *  Contents
 *    01. Design tokens ........... 色・書体・余白などの共通変数
 *    02. Reset & base ............ 要素の初期化と基本設定
 *    03. Layout .................. コンテナとセクションの骨格
 *    04. Motion utilities ........ スクロール出現演出の共通クラス
 *    05. Components .............. 部品（ヘッダー / ナビ / ボタン 等）
 *    06. Sections ................ ページ各部（ヒーロー / 実績 / 会社概要 等）
 *    07. Stagger delays .......... 出現演出をずらす時間の割り当て
 *    08. Touch affordance ........ タップ端末向けの自己アピール演出
 *    09. Preferences ............. ユーザー設定（動きを減らす）への追従
 * =============================================================================
 */

/* =============================================================================
   01. Design tokens
   ========================================================================== */

:root {
  /* --- Color ------------------------------------------------------------- */
  --color-paper: #ffffff;               /* 基本の背景                        */
  --color-mist: #f4f7f9;                /* 一段沈めた背景                    */
  --color-ink: #14283f;                 /* 基本の文字                        */
  --color-navy: #0e2340;                /* 見出しパネル・ボタンの地色        */
  --color-navy-hover: #1b3a63;
  --color-navy-soft: #3d5a80;           /* 袖看板の現在地表示                */
  --color-ember: #f0a202;               /* 差し色（アクセント）              */
  --color-sea: #2e86c1;                 /* 補助色（英字ラベル・リンク）      */
  --color-ash: #6b7a88;                 /* 補足文字                          */
  --color-line: rgba(20, 40, 63, 0.12); /* 罫線                              */

  /* --- Typography -------------------------------------------------------- */
  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-cond: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;
  --font-display: "Anton", "Barlow Condensed", sans-serif;

  /* --- Metrics ----------------------------------------------------------- */
  --container: 1180px;                        /* 本文の最大幅               */
  --gutter: clamp(20px, 5vw, 72px);           /* 左右の余白                 */
  --section-space: clamp(80px, 12vw, 148px);  /* セクションの上下余白       */
  --header-offset: clamp(72px, 15vw, 100px);  /* 固定ヘッダー分の逃げ       */

  /* --- Elevation (z-index) ----------------------------------------------
     数値の重なり順をここに集約し、各所でのマジックナンバーを避けています。 */
  --z-rail: 20;
  --z-to-top: 30;
  --z-header: 40;
  --z-nav: 50;
  --z-burger: 60;
  --z-progress: 70;
  --z-grain: 80;
  --z-cursor: 90;
  --z-lightbox: 100;
  --z-loader: 110;

  /* --- Easing ------------------------------------------------------------ */
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Adjustable -------------------------------------------------------
     ヒーローとヘッダーの白ボックスの不透明度。
     1 に近いほど濃く、0 に近いほど透けます（0.7 = 透明度 30%）。       */
  --box-alpha: 0.7;
}

/* =============================================================================
   02. Reset & base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset); /* アンカー移動が見出しに隠れないように */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.9;
  letter-spacing: 0.02em;
}

/* メニューやライトボックスを開いている間、背面のスクロールを止める */
body.is-scroll-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--color-sea);
  outline-offset: 3px;
}

::selection {
  background: var(--color-ember);
  color: #fff;
}

/* キーボード利用者が本文へ直接飛べるようにする（普段は画面外に隠す） */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-loader);
  padding: 14px 22px;
  background: var(--color-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: translateY(-120%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* アイコンの定義置き場。描画はせず、<use> から呼び出すためだけに存在する */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* 紙の粒子感。全面に薄いノイズを重ねて印刷物のような質感を出す */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* =============================================================================
   03. Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

/* 一段沈めた背景のセクション */
.section--tint {
  background: var(--color-mist);
}

/* 写真を敷き、白いベールをかけて文字を読みやすくするセクション */
.section--photo {
  isolation: isolate;
  background: var(--color-paper);
}

/* 背景画像のパスは、この style.css（assets/css/）から見た相対指定です */
.section--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../../images/top005.webp") center / cover no-repeat;
}

.section--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.84) 42%,
    rgba(255, 255, 255, 0.96) 100%
  );
}

/* 固定背景はスマホで負荷が高いため、広い画面だけで有効にする */
@media (min-width: 901px) {
  .section--photo::before {
    background-attachment: fixed;
  }
}

/* =============================================================================
   04. Motion utilities

   スクロールで要素を浮かび上がらせる共通クラス。
   .has-motion は IntersectionObserver が使える環境でのみ JS が付与するため、
   JS 無効・非対応の環境では最初からすべて表示され、内容が消えることはない。
   ========================================================================== */

.has-motion .reveal {
  opacity: 0;
  transform: translateY(30px);
}

.has-motion .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 1s var(--ease-out) var(--d, 0s),
    transform 1s var(--ease-out) var(--d, 0s);
}

/* 画像など、少し大きく動かしたい要素向け */
.has-motion .reveal--mask {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
}

.has-motion .reveal--mask.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 1.1s var(--ease-out) var(--d, 0s),
    transform 1.1s var(--ease-out) var(--d, 0s);
}

/* =============================================================================
   05. Components
   ========================================================================== */

/* -----------------------------------------------------------------------------
   5.1  Loader — 読み込み中の目隠し。下方向に開いて本編へ引き継ぐ
   -------------------------------------------------------------------------- */

.loader {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  place-items: center;
  background: #fff;
  clip-path: inset(0 0 0 0);
  transition:
    clip-path 1s var(--ease-out),
    visibility 1s;
}

.loader.is-done {
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}

.loader__inner {
  text-align: center;
}

.loader__logo {
  width: min(230px, 54vw);
  margin-inline: auto;
}

.loader__bar {
  width: min(220px, 52vw);
  height: 2px;
  margin: 18px auto 0;
  overflow: hidden;
  background: var(--color-line);
}

.loader__bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-ember);
  transform: scaleX(0);
  transform-origin: left;
  animation: loader-fill 1.1s var(--ease-out) forwards;
}

@keyframes loader-fill {
  to {
    transform: scaleX(1);
  }
}

.loader__note {
  display: block;
  margin-top: 14px;
  color: var(--color-ash);
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 0.36em;
}

/* -----------------------------------------------------------------------------
   5.2  Progress — 画面最上部でスクロール量を示す細い帯
   -------------------------------------------------------------------------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-progress);
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-ember), var(--color-sea));
  transform: scaleX(0);
  transform-origin: left;
}

/* -----------------------------------------------------------------------------
   5.3  Cursor — マウスのある環境だけに出す追従カーソル
   -------------------------------------------------------------------------- */

.cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-cursor);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-ember);
  translate: -50% -50%;
  pointer-events: none;
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease),
    background 0.35s var(--ease);
}

@media (pointer: fine) {
  .cursor {
    display: block;
  }
}

.cursor__label {
  display: grid;
  position: absolute;
  inset: 0;
  place-items: center;
  opacity: 0;
  color: #fff;
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 0.22em;
  transition: opacity 0.25s var(--ease);
}

/* 拡大できる写真の上では、大きな円に「VIEW」を表示する */
.cursor.is-view {
  width: 78px;
  height: 78px;
  background: var(--color-navy);
}

.cursor.is-view .cursor__label {
  opacity: 1;
}

/* -----------------------------------------------------------------------------
   5.4  Site header — 常に最上部に固定
   -------------------------------------------------------------------------- */

.site-header {
  display: flex;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  flex-wrap: nowrap;
  gap: clamp(10px, 1.8vw, 26px);
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  color: var(--color-ink);
  transition: padding 0.4s var(--ease);
}

/* 背景のぼかしは疑似要素に逃がし、中身の重なり順に影響させない */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, var(--box-alpha));
  box-shadow: 0 1px 0 var(--color-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
  transition:
    background 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

/* スクロール後は背を低くし、地色を濃くして視認性を上げる */
.site-header.is-stuck {
  padding-block: 10px;
}

.site-header.is-stuck::before {
  background: rgba(255, 255, 255, 0.92);
}

/* -----------------------------------------------------------------------------
   5.5  Logo

   幅が足りないときは縮む設定にしておく。縮まないとバーガーボタンを
   画面外へ押し出し、overflow-x: hidden で見えなくなってしまう。
   -------------------------------------------------------------------------- */

.logo {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  min-width: 0;
}

.logo__img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(24px, 3.6vw, 36px);
  transition: max-height 0.4s var(--ease);
}

.site-header.is-stuck .logo__img {
  max-height: clamp(22px, 3.2vw, 30px);
}

.logo__sub {
  overflow: hidden;
  max-width: 100%;
  color: var(--color-sea);
  font-family: var(--font-cond);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* -----------------------------------------------------------------------------
   5.6  Global navigation

   広い画面では 1 行の横並び。文字が 2 行に折り返さないよう改行を禁止し、
   代わりに文字サイズと余白を画面幅に合わせて可変にしている。
   -------------------------------------------------------------------------- */

.nav-global {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.6vw, 30px);
  align-items: center;
}

.nav-global__link {
  position: relative;
  flex: none;
  padding-block: 6px;
  font-size: clamp(11.5px, 1.15vw, 14px);
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* 下線は中央からではなく、進行方向に沿って引き direction を切り替える */
.nav-global__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-global__link:hover::after,
.nav-global__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-global__tel {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px clamp(11px, 1.5vw, 18px);
  border-radius: 999px;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-cond);
  font-size: clamp(14px, 1.45vw, 17px);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition:
    background 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.nav-global__tel:hover {
  background: var(--color-navy-hover);
  transform: translateY(-2px);
}

.nav-global__tel::after {
  display: none; /* 下線の演出はボタンには不要 */
}

/* 英字ラベルと補助リンクは、開閉メニューのときだけ見せる */
@media (min-width: 901px) {
  .nav-global__en,
  .nav-global__sub {
    display: none;
  }
}

/* ノート PC 〜 タブレット横。横幅に余裕がないため装飾を間引いて 1 行を守る */
@media (min-width: 901px) and (max-width: 1180px) {
  .logo__sub,
  .nav-global__tel svg {
    display: none;
  }
}

/* -----------------------------------------------------------------------------
   5.7  Global navigation (mobile) — 全画面の開閉メニュー
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  /* ボタンを大きくした分、ヘッダーの上下余白を詰めて高さを保つ */
  .site-header {
    padding-block: 12px;
  }

  /* バーガーの席を先に確保し、ロゴはその残り幅に収める */
  .logo {
    max-width: calc(100% - 76px);
  }

  .nav-global {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: var(--z-nav);
    flex-direction: column;
    gap: 0;
    justify-content: center;
    height: 100dvh;
    padding: 104px var(--gutter) 48px;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    background: #fff;
    clip-path: circle(0 at calc(100% - 43px) 42px); /* バーガーの中心から開く */
    pointer-events: none;
    transition:
      clip-path 0.7s var(--ease-out),
      opacity 0.35s var(--ease),
      visibility 0.7s;
  }

  /* 項目が画面より多いとき、上端が切れないようにする */
  @supports (justify-content: safe center) {
    .nav-global {
      justify-content: safe center;
    }
  }

  .nav-global.is-open {
    visibility: visible;
    opacity: 1;
    clip-path: circle(150% at calc(100% - 43px) 42px);
    pointer-events: auto;
  }

  .nav-global__link {
    flex: none;
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
    padding: 19px 4px;
    border-bottom: 1px solid var(--color-line);
    opacity: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.14em;
    transform: translateY(16px);
  }

  /* 開いたあと、上から順に間を置いて現れる（遅延は 07. で割り当て） */
  .nav-global.is-open .nav-global__link {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.5s var(--ease) var(--d, 0.15s),
      transform 0.5s var(--ease) var(--d, 0.15s);
  }

  .nav-global__en {
    display: block;
    color: var(--color-sea);
    font-family: var(--font-cond);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
  }

  .nav-global__tel {
    flex: none;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
    padding: 13px 26px;
    border-bottom: 0;
    font-size: 19px;
  }

  .nav-global__sub {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
    width: 100%;
    max-width: 430px;
    margin: 22px auto 0;
    opacity: 0;
    transform: translateY(16px);
  }

  .nav-global.is-open .nav-global__sub {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.5s var(--ease) 0.54s,
      transform 0.5s var(--ease) 0.54s;
  }

  .nav-global__sub-link {
    color: var(--color-ash);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
  }

  .nav-global__sub-link::before {
    content: "▸";
    margin-right: 5px;
    color: var(--color-ember);
    font-size: 10px;
  }
}

/* -----------------------------------------------------------------------------
   5.8  Burger — 三本線と ✕。指で確実に押せる 58px 角の領域を確保する
   -------------------------------------------------------------------------- */

.burger {
  display: none;
}

@media (max-width: 900px) {
  .burger {
    display: flex;
    position: relative;
    z-index: var(--z-burger);
    flex: 0 0 58px;
    flex-direction: column;
    gap: 9px;
    align-items: stretch;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-right: -6px; /* 見た目の位置は保ったまま当たり判定だけ広げる */
    margin-left: auto;
    padding: 0 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .burger__bar {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: var(--color-ink);
    transition:
      transform 0.45s var(--ease),
      opacity 0.3s var(--ease);
  }

  /* 上下の線を中央（12px = 線の太さ 3px + 間隔 9px）へ寄せて ✕ を組む */
  .burger.is-open .burger__bar:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
  }

  .burger.is-open .burger__bar:nth-child(2) {
    opacity: 0;
  }

  .burger.is-open .burger__bar:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
  }
}

/* -----------------------------------------------------------------------------
   5.9  Rail navigation — 画面右端の袖看板。広い画面でのみ掲出する
   -------------------------------------------------------------------------- */

.nav-rail {
  display: none;
}

@media (min-width: 1280px) {
  .nav-rail {
    display: flex;
    position: fixed;
    top: 50%;
    right: 0;
    z-index: var(--z-rail);
    flex-direction: column;
    gap: 9px;
    opacity: 0;
    translate: 0 -50%;
    transform: translateX(14px);
    pointer-events: none;
    transition:
      opacity 0.6s var(--ease),
      transform 0.6s var(--ease);
  }

  /* ヒーローを抜けたあたりで、右から差し込むように現れる */
  .nav-rail.is-shown {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-rail__link {
    padding: 20px 10px;
    border: 1px solid var(--color-line);
    border-right: 0;
    border-radius: 3px 0 0 3px;
    background: #fff;
    color: var(--color-ash);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.26em;
    writing-mode: vertical-rl;
    text-orientation: upright;
    box-shadow: 0 10px 22px -18px rgba(20, 40, 63, 0.9);
    transition:
      padding 0.4s var(--ease),
      background 0.4s var(--ease),
      border-color 0.4s var(--ease),
      color 0.4s var(--ease);
  }

  .nav-rail__link:hover {
    padding-left: 18px;
    color: var(--color-ink);
  }

  .nav-rail__link.is-active {
    padding-left: 20px;
    border-color: var(--color-navy-soft);
    background: var(--color-navy-soft);
    color: #fff;
  }
}

/* -----------------------------------------------------------------------------
   5.10  Section head — 壁面サインに見立てた見出しパネル
   -------------------------------------------------------------------------- */

.section-head {
  margin: 0 0 clamp(34px, 5vw, 58px);
}

/* 英字ラベルはパネルの外へ出し、パネル自体は高さを詰めてシャープに見せる */
.section-head__label {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--color-navy);
  font-family: var(--font-cond);
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.section-head__label::before {
  content: "";
  flex: none;
  width: 30px;
  height: 2px;
  background: var(--color-ember);
}

.section-head__panel {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(15px, 2.2vw, 22px) clamp(20px, 3.4vw, 34px);
  border-radius: 2px;
  background: var(--color-navy);
  color: #fff;
  box-shadow: 0 22px 38px -30px rgba(20, 40, 63, 0.95);
}

/* 左端の差し色の帯 */
.section-head__panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--color-ember);
}

/* 右に薄く沈む通し番号（data-no 属性から描画） */
.section-head__panel::after {
  content: attr(data-no);
  position: absolute;
  top: 50%;
  right: 10px;
  color: rgba(255, 255, 255, 0.13);
  font-family: var(--font-display);
  font-size: clamp(44px, 7.6vw, 92px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  transform: translateY(-50%);
  pointer-events: none;
}

/* 出現演出は JS が使える環境だけの上乗せ。既定では常に表示される */
.has-motion .section-head__panel {
  opacity: 0;
  transform: translateY(26px);
}

.has-motion .section-head__panel.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
}

.section-head__title {
  position: relative;
  margin: 0;
  font-size: clamp(23px, 4.2vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.section-head__sub {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-cond);
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 400;
  letter-spacing: 0.18em;
}

/* -----------------------------------------------------------------------------
   5.11  Buttons

   共通の作りは .btn に集約し、地色と余白だけを修飾子で変える。
   いずれも「下から色が立ち上がる」動きで、看板が点灯する感じを狙っている。
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  position: relative;
  gap: 18px;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: transform 0.4s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover::before {
  transform: translateY(0);
}

/* Google マップを開く（紺 → 青） */
.btn--map {
  align-self: flex-start;
  justify-content: space-between;
  padding: 15px 24px;
  background: var(--color-navy);
  color: #fff;
  font-size: 14px;
}

.btn--map::before {
  background: var(--color-sea);
}

/* 電話をかける（差し色。最も押してほしい導線なので一段大きく） */
.btn--phone {
  gap: 13px;
  margin-top: 6px;
  padding: 17px 30px;
  background: var(--color-ember);
  color: var(--color-navy);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 20px 40px -20px rgba(240, 162, 2, 0.9);
  transition:
    transform 0.4s var(--ease),
    filter 0.4s var(--ease);
}

.btn--phone:hover {
  filter: brightness(1.07);
  transform: translateY(-3px);
}

.btn--phone::before {
  content: none; /* 立ち上がりの演出は使わない */
}

/* -----------------------------------------------------------------------------
   5.12  Gallery — 制作実績の写真。クリックで拡大表示に繋がる
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.8vw, 26px);
}

/* 広い画面では偶数番を下げ、施工写真が単調に並ばないようにする */
@media (min-width: 900px) {
  .gallery {
    padding-bottom: 46px;
  }

  .gallery__item:nth-child(even) {
    transform: translateY(46px);
  }
}

.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  background: #edf2f6;
  cursor: pointer;
  box-shadow: 0 22px 38px -32px rgba(20, 40, 63, 0.9);
}

/* 拡大時に画像がはみ出さないよう、内側でもう一度切り抜く */
.gallery__mask {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1s var(--ease-out),
    filter 0.6s var(--ease);
}

.gallery__item:hover .gallery__image,
.gallery__item:focus-visible .gallery__image {
  filter: brightness(1.04) saturate(1.05);
  transform: scale(1.07);
}

/* 内側の枠線。ホバーで差し色に変わり、押せることを知らせる */
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(20, 40, 63, 0.08);
  pointer-events: none;
  transition: box-shadow 0.5s var(--ease);
}

.gallery__item:hover::after {
  box-shadow: inset 0 0 0 2px var(--color-ember);
}

.gallery__no {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 7px 12px 6px;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: background 0.4s var(--ease);
}

.gallery__item:hover .gallery__no {
  background: var(--color-ember);
}

.gallery__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 34px 14px 13px;
  opacity: 0;
  background: linear-gradient(transparent, rgba(14, 35, 64, 0.8));
  color: #fff;
  font-family: var(--font-cond);
  font-size: 12px;
  letter-spacing: 0.24em;
  transform: translateY(10px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.gallery__item:hover .gallery__caption {
  opacity: 1;
  transform: none;
}

/* -----------------------------------------------------------------------------
   5.13  Lightbox — 実績写真の拡大表示
   -------------------------------------------------------------------------- */

.lightbox {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  place-items: center;
  padding: 70px 16px;
  visibility: hidden;
  opacity: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    opacity 0.4s var(--ease),
    visibility 0.4s;
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.lightbox__image {
  max-width: min(1140px, 92vw);
  max-height: 80svh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 50px 80px -40px rgba(20, 40, 63, 0.8);
}

.lightbox__caption {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  color: var(--color-ash);
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: 0.26em;
  text-align: center;
}

.lightbox__btn {
  display: grid;
  position: absolute;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: #fff;
  color: var(--color-ink);
  cursor: pointer;
  box-shadow: 0 12px 26px -18px rgba(20, 40, 63, 0.9);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.lightbox__btn:hover {
  border-color: var(--color-ember);
  background: var(--color-ember);
  color: #fff;
}

.lightbox__btn--prev {
  top: 50%;
  left: clamp(8px, 3vw, 36px);
  translate: 0 -50%;
}

.lightbox__btn--next {
  top: 50%;
  right: clamp(8px, 3vw, 36px);
  translate: 0 -50%;
}

.lightbox__btn--close {
  top: 20px;
  right: 20px;
}

/* -----------------------------------------------------------------------------
   5.14  Back to top
   -------------------------------------------------------------------------- */

.to-top {
  display: grid;
  position: fixed;
  right: clamp(14px, 2.4vw, 30px);
  bottom: clamp(14px, 2.4vw, 30px);
  z-index: var(--z-to-top);
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  visibility: hidden;
  opacity: 0;
  background: var(--color-navy);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 18px 32px -14px rgba(14, 35, 64, 0.7);
  transform: translateY(16px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    visibility 0.45s,
    background 0.3s;
}

.to-top.is-shown {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.to-top:hover {
  background: var(--color-navy-hover);
}

.to-top svg {
  transition: transform 0.35s var(--ease);
}

.to-top:hover svg {
  transform: translateY(-3px);
}

/* 右端に袖看板が出る幅では、重ならないよう内側へ寄せる */
@media (min-width: 1280px) {
  .to-top {
    right: clamp(54px, 5.4vw, 76px);
  }
}

/* =============================================================================
   06. Sections
   ========================================================================== */

/* -----------------------------------------------------------------------------
   6.1  Hero — 4 枚の写真を重ねてクロスフェードさせる大扉
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  position: relative;
  align-items: flex-end;
  min-height: 100svh;
  overflow: hidden;
  padding: 120px 0 0;
  background: #dcebf6;
}

/* 親はスクロール追従（パララックス）用。写真は子要素が受け持つ */
.hero__bg {
  position: absolute;
  inset: -6% 0;
  will-change: transform;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-repeat: no-repeat;
  background-position: center 52%;
  background-size: cover;
  transition: opacity 1.6s var(--ease);
}

.hero__slide.is-on {
  opacity: 1;
}

/* 写真の上に白いベールを重ね、文字の可読性を確保する */
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.66) 0%,
      rgba(255, 255, 255, 0.12) 22%,
      rgba(255, 255, 255, 0.1) 44%,
      rgba(255, 255, 255, 0.92) 88%,
      #fff 100%
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.06) 46%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(96px, 13vw, 150px);
}

.hero__panel {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: clamp(22px, 3.6vw, 38px) clamp(20px, 3.6vw, 44px);
  border-radius: 3px;
  background: rgba(255, 255, 255, var(--box-alpha));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero__since {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--color-ink);
  font-family: var(--font-cond);
  font-size: clamp(12px, 1.6vw, 15px);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.hero__since::before {
  content: "";
  flex: none;
  width: clamp(30px, 6vw, 72px);
  height: 2px;
  background: var(--color-ember);
  transform-origin: left;
}

.hero__title {
  margin: 0;
}

.hero__logo {
  width: min(520px, 84%);
  height: auto;
}

.hero__lead {
  max-width: 34em;
  margin: 24px 0 0;
  color: #28394d;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 42px);
}

.hero__scroll {
  display: none;
  position: absolute;
  right: var(--gutter);
  bottom: clamp(96px, 13vw, 150px);
  z-index: 2;
  gap: 14px;
  align-items: center;
  color: #3e5468;
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 0.34em;
  writing-mode: vertical-rl;
}

@media (min-width: 901px) {
  .hero__scroll {
    display: flex;
  }
}

.hero__scroll span {
  width: 1px;
  height: 64px;
  background: linear-gradient(var(--color-ember), transparent);
  animation: scroll-cue 2.6s var(--ease) infinite;
}

/* 上から下へ伸びて、下から消える。降りていく動きを示す */
@keyframes scroll-cue {
  0% {
    transform: scaleY(0.15);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0.05);
    transform-origin: bottom;
  }
}

/* -----------------------------------------------------------------------------
   6.2  Hero CTA — 実績へ誘導する 2 つのボタン
   -------------------------------------------------------------------------- */

.cta {
  display: flex;
  position: relative;
  gap: 20px;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  min-width: 236px;
  padding: 16px 18px 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 40px -28px rgba(20, 40, 63, 0.9);
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    color 0.4s var(--ease);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-navy);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}

.cta:hover {
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 30px 46px -26px rgba(20, 40, 63, 0.95);
}

.cta:hover::before {
  transform: translateY(0);
}

.cta__text {
  flex: 1;
}

.cta__label {
  display: block;
  color: var(--color-sea);
  font-family: var(--font-cond);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.4s var(--ease);
}

.cta:hover .cta__label {
  color: var(--color-ember);
}

.cta__arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(20, 40, 63, 0.2);
  border-radius: 50%;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.cta:hover .cta__arrow {
  border-color: var(--color-ember);
  background: var(--color-ember);
  color: #fff;
}

/* -----------------------------------------------------------------------------
   6.3  Ticker — 懸垂幕に見立てた取扱い品目の流れる帯
   -------------------------------------------------------------------------- */

.ticker {
  position: relative;
  overflow: hidden;
  padding: 15px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--color-navy);
  color: #fff;
}

/* 同じ並びを 2 組置き、半分ずらして途切れなく繋げる */
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-flow 46s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

@keyframes ticker-flow {
  to {
    transform: translateX(-50%);
  }
}

.ticker__item {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  padding-inline: 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.ticker__item::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--color-ember);
}

/* -----------------------------------------------------------------------------
   6.4  Greeting — ご挨拶
   -------------------------------------------------------------------------- */

.greeting {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4.6vw, 64px);
  align-items: start;
}

@media (min-width: 900px) {
  .greeting {
    grid-template-columns: 0.86fr 1.14fr;
  }
}

.greeting__body p {
  margin: 0 0 1.7em;
  font-family: var(--font-mincho);
  font-size: clamp(15px, 1.9vw, 17.5px);
  font-weight: 500;
  line-height: 2.4;
  letter-spacing: 0.05em;
}

.greeting__body p:last-of-type {
  margin-bottom: 0;
}

.greeting__sign {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.greeting__sign b {
  font-size: clamp(19px, 2.8vw, 24px);
  font-weight: 900;
  letter-spacing: 0.16em;
}

.greeting__sign small {
  color: var(--color-ash);
  font-size: 12px;
  letter-spacing: 0.2em;
}

/* 信条を掲げた札。左端の差し色でパネルの向きを揃える */
.creed {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--color-line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 34px 56px -44px rgba(20, 40, 63, 0.95);
}

.creed::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--color-ember);
}

.creed__title {
  margin: 0 0 20px;
  font-size: clamp(20px, 2.9vw, 26px);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: 0.08em;
}

.creed__title em {
  color: var(--color-sea);
  font-style: normal;
}

.creed__lead {
  margin: 0;
  color: #3e5468;
  font-size: 14px;
  line-height: 2.1;
}

.creed__list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.creed__row {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.creed__term {
  min-width: 76px;
  color: var(--color-sea);
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.creed__desc {
  margin: 0;
  color: #33485c;
  font-size: 13.5px;
  line-height: 1.8;
}

/* -----------------------------------------------------------------------------
   6.5  Spec — 会社概要の一覧
   -------------------------------------------------------------------------- */

.spec {
  margin: 0;
  border-top: 1px solid var(--color-line);
}

.spec__row {
  display: grid;
  position: relative;
  grid-template-columns: 1fr;
  gap: 2px 28px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--color-line);
  transition: padding-left 0.45s var(--ease);
}

@media (min-width: 620px) {
  .spec__row {
    grid-template-columns: 190px 1fr;
    align-items: baseline;
    padding-block: 22px;
  }
}

/* ホバーで左から差し色の帯が伸び、行を一段引き寄せる */
.spec__row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: var(--color-ember);
  transition: width 0.45s var(--ease);
}

.spec__row:hover {
  padding-left: 20px;
}

.spec__row:hover::before {
  width: 4px;
}

.spec__term {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.spec__term::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--color-ember);
}

.spec__desc {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.spec__desc a {
  padding-bottom: 1px;
  border-bottom: 1px solid var(--color-ember);
}

.spec__note {
  display: block;
  color: var(--color-ash);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

/* -----------------------------------------------------------------------------
   6.6  Taglist — 取扱い品目。リンクではないのでボタン風の装飾は与えない
   -------------------------------------------------------------------------- */

.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
  align-items: center;
  margin: 0 0 clamp(30px, 4vw, 44px);
  padding-left: 14px;
  border-left: 3px solid var(--color-ember);
  list-style: none;
}

.taglist__item {
  color: var(--color-ash);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.taglist__item:not(:last-child)::after {
  content: "／";
  margin-left: 5px;
  color: rgba(20, 40, 63, 0.22);
}

/* -----------------------------------------------------------------------------
   6.7  Access — 所在地と地図
   -------------------------------------------------------------------------- */

.access {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.4vw, 44px);
}

@media (min-width: 900px) {
  .access {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
  }
}

.access__info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
  font-style: normal; /* <address> の既定の斜体を打ち消す */
}

.access__brand {
  margin: 0;
  line-height: 1;
}

.access__logo {
  width: min(300px, 72%);
  height: auto;
}

.access__address {
  margin: 0;
  font-size: 15px;
  line-height: 2;
}

.access__tel {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(34px, 5.6vw, 52px);
  line-height: 1;
  letter-spacing: 0.01em;
}

.access__tel svg {
  flex: none;
  color: var(--color-ember);
}

.access__map {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--color-line);
  border-radius: 2px;
  background: #edf2f6;
  box-shadow: 0 30px 54px -42px rgba(20, 40, 63, 0.95);
}

.access__map iframe {
  display: block;
  width: 100%;
  min-height: 340px;
  height: 100%;
  border: 0;
}

/* -----------------------------------------------------------------------------
   6.8  Inquiry — お問い合わせ
   -------------------------------------------------------------------------- */

.inquiry {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  color: #fff;
}

/* 対角に差し色の光をふわりと置き、紺一色の単調さを和らげる */
.inquiry::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 82% 12%, rgba(240, 162, 2, 0.22), transparent 62%),
    radial-gradient(60% 60% at 8% 90%, rgba(46, 134, 193, 0.28), transparent 64%);
  pointer-events: none;
}

.inquiry .container {
  position: relative;
}

.inquiry__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.6vw, 50px);
  align-items: center;
}

@media (min-width: 900px) {
  .inquiry__card {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.inquiry__text {
  margin: 0 0 20px;
  color: #c6d3df;
  font-size: 15px;
  line-height: 2.1;
}

.inquiry__image {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 40px 70px -40px #000;
  transition:
    transform 0.55s var(--ease),
    box-shadow 0.55s var(--ease);
}

.inquiry__image:hover {
  box-shadow: 0 46px 76px -36px #000;
  transform: translateY(-6px) rotate(-0.6deg);
}

/* -----------------------------------------------------------------------------
   6.9  Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 46px var(--gutter);
  border-top: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-ash);
}

.site-footer a {
  color: var(--color-ink);
}

.site-footer a:hover {
  color: var(--color-sea);
}

/* 規約類は本文の見出しと階層を分け、小さく控えめに置く */
.policy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px 44px;
  max-width: var(--container);
  margin: 0 auto 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-line);
}

@media (min-width: 820px) {
  .policy {
    grid-template-columns: 1fr 1fr;
  }
}

.policy__title {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0 0 10px;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.policy__title::before {
  content: "▸";
  color: var(--color-ember);
  font-size: 11px;
}

.policy__text {
  margin: 0 0 7px;
  color: var(--color-ash);
  font-size: 11.5px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.policy__text:last-child {
  margin-bottom: 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin-inline: auto;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.site-footer__copy {
  margin: 0;
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* -----------------------------------------------------------------------------
   6.10  Narrow screens — ボタンと短い文は中央に揃える
   -------------------------------------------------------------------------- */

@media (max-width: 700px) {
  .hero__panel {
    width: 100%;
    text-align: center;
  }

  .hero__since {
    justify-content: center;
  }

  .hero__logo,
  .hero__lead {
    margin-inline: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .cta {
    width: 100%;
    max-width: 340px;
  }

  .taglist {
    justify-content: center;
    padding-top: 14px;
    padding-left: 0;
    border-top: 3px solid var(--color-ember);
    border-left: 0;
  }

  .greeting__sign {
    justify-content: center;
  }

  .access__info {
    align-items: center;
    text-align: center;
  }

  .access__logo {
    margin-inline: auto;
  }

  .access__tel {
    justify-content: center;
  }

  .btn--map {
    align-self: center;
  }

  .inquiry__body {
    text-align: center;
  }

  .inquiry__text {
    text-align: left; /* 長い説明文は左揃えのほうが読みやすい */
  }

  .site-footer__inner,
  .site-footer__nav {
    justify-content: center;
    text-align: center;
  }
}

/* =============================================================================
   07. Stagger delays

   出現演出をずらす時間 --d の割り当て。
   HTML 側に style="--d:.12s" を書き並べる代わりにここへ集約している。
   順番を入れ替えたいときは HTML ではなくこの表を直すだけで済む。
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */
.hero__panel  { --d: 0.10s; }
.hero__since  { --d: 0.15s; }
.hero__title  { --d: 0.25s; }
.hero__lead   { --d: 0.45s; }
.hero__cta .cta:nth-child(1) { --d: 0.60s; }
.hero__cta .cta:nth-child(2) { --d: 0.72s; }

/* --- Global navigation（開閉メニューが上から順に現れる） ------------------ */
.nav-global > :nth-child(1) { --d: 0.12s; }
.nav-global > :nth-child(2) { --d: 0.18s; }
.nav-global > :nth-child(3) { --d: 0.24s; }
.nav-global > :nth-child(4) { --d: 0.30s; }
.nav-global > :nth-child(5) { --d: 0.36s; }
.nav-global > :nth-child(6) { --d: 0.42s; }
.nav-global > :nth-child(7) { --d: 0.48s; }

/* --- Sections ------------------------------------------------------------ */
.creed             { --d: 0.10s; }
.greeting__body    { --d: 0.18s; }
.access__map       { --d: 0.14s; }
.inquiry__image    { --d: 0.14s; }

/* --- Spec rows（1 行ずつ 0.04 秒ずつ遅らせる） --------------------------- */
.spec__row:nth-child(2) { --d: 0.04s; }
.spec__row:nth-child(3) { --d: 0.08s; }
.spec__row:nth-child(4) { --d: 0.12s; }
.spec__row:nth-child(5) { --d: 0.16s; }
.spec__row:nth-child(6) { --d: 0.20s; }
.spec__row:nth-child(7) { --d: 0.24s; }
.spec__row:nth-child(8) { --d: 0.28s; }
.spec__row:nth-child(9) { --d: 0.32s; }

/* --- Gallery（左右 2 列。右の列だけ半歩遅らせて交互に立ち上げる） --------- */
.gallery__item:nth-child(even) { --d: 0.06s; }

/* =============================================================================
   08. Touch affordance

   マウスのない端末ではホバーが存在しないため、押せることが伝わりにくい。
   画面に入った瞬間だけ、ホバー時と同じ表情を一度見せて元へ戻す。
   ========================================================================== */

@media (hover: none) {
  /* 下から色が立ち上がり、通り抜けて消える */
  @keyframes self-fill {
    0% {
      transform: translateY(101%);
    }
    38%,
    58% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-101%);
    }
  }

  @keyframes self-lift {
    0%,
    20% {
      transform: translateY(0);
    }
    38%,
    58% {
      transform: translateY(-5px);
    }
    82%,
    100% {
      transform: translateY(0);
    }
  }

  @keyframes self-text {
    0%,
    26% {
      color: var(--color-ink);
    }
    38%,
    58% {
      color: #fff;
    }
    78%,
    100% {
      color: var(--color-ink);
    }
  }

  @keyframes self-label {
    0%,
    26% {
      color: var(--color-sea);
    }
    38%,
    58% {
      color: var(--color-ember);
    }
    78%,
    100% {
      color: var(--color-sea);
    }
  }

  @keyframes self-arrow {
    0%,
    26% {
      border-color: rgba(20, 40, 63, 0.2);
      background: rgba(240, 162, 2, 0);
      color: var(--color-ink);
    }
    38%,
    58% {
      border-color: var(--color-ember);
      background: var(--color-ember);
      color: #fff;
    }
    78%,
    100% {
      border-color: rgba(20, 40, 63, 0.2);
      background: rgba(240, 162, 2, 0);
      color: var(--color-ink);
    }
  }

  @keyframes self-shine {
    0% {
      transform: translateX(-140%);
    }
    100% {
      transform: translateX(140%);
    }
  }

  @keyframes self-frame {
    0%,
    20% {
      box-shadow: inset 0 0 0 1px rgba(20, 40, 63, 0.08);
    }
    42%,
    60% {
      box-shadow: inset 0 0 0 2px var(--color-ember);
    }
    82%,
    100% {
      box-shadow: inset 0 0 0 1px rgba(20, 40, 63, 0.08);
    }
  }

  @keyframes self-badge {
    0%,
    20% {
      background: var(--color-navy);
    }
    42%,
    60% {
      background: var(--color-ember);
    }
    82%,
    100% {
      background: var(--color-navy);
    }
  }

  /* --dd は同時に画面へ入った要素をずらすため JS が設定する */

  /* トップの実績ボタン */
  .cta.is-demo {
    animation:
      self-lift 1.7s var(--ease-out) var(--dd, 0s) both,
      self-text 1.7s var(--ease-out) var(--dd, 0s) both;
  }

  .cta.is-demo::before {
    animation: self-fill 1.7s var(--ease-out) var(--dd, 0s) both;
  }

  .cta.is-demo .cta__label {
    animation: self-label 1.7s var(--ease-out) var(--dd, 0s) both;
  }

  .cta.is-demo .cta__arrow {
    animation: self-arrow 1.7s var(--ease-out) var(--dd, 0s) both;
  }

  /* Google マップボタン */
  .btn--map.is-demo {
    animation: self-lift 1.7s var(--ease-out) var(--dd, 0s) both;
  }

  .btn--map.is-demo::before {
    animation: self-fill 1.7s var(--ease-out) var(--dd, 0s) both;
  }

  /* 電話ボタン：光が斜めに横切る */
  .btn--phone::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
      104deg,
      transparent 34%,
      rgba(255, 255, 255, 0.75) 50%,
      transparent 66%
    );
    transform: translateX(-140%);
  }

  .btn--phone.is-demo {
    animation: self-lift 1.7s var(--ease-out) var(--dd, 0s) both;
  }

  .btn--phone.is-demo::after {
    animation: self-shine 1.3s var(--ease-out) calc(var(--dd, 0s) + 0.25s) both;
  }

  /* 実績写真：一度だけ枠と番号が光り、拡大できることを知らせる */
  .gallery__item.is-demo::after {
    animation: self-frame 1.6s var(--ease-out) var(--dd, 0s) both;
  }

  .gallery__item.is-demo .gallery__no {
    animation: self-badge 1.6s var(--ease-out) var(--dd, 0s) both;
  }
}

/* =============================================================================
   09. Preferences

   OS 側で「視差効果を減らす／アニメーションを減らす」が有効な場合は、
   動きを止めたうえで、隠れている要素を必ず表示状態へ戻す。
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .reveal--mask,
  .section-head__panel {
    opacity: 1 !important;
    transform: none !important;
  }

  .gallery__item:nth-child(even) {
    transform: none;
  }
}
