/* =========================================================
   phenix 下層ページ 共通スタイル
   B案「墨 × 真鍮」のデザイントークンを継承
   下層は読ませるコンテンツのため、本文は紙色の明るい面を主体とする
   モーション：面を動かさない。出現は opacity + blur の合焦型
   ========================================================= */
:root {
  --ink-950: #12100e;
  --ink-900: #171412;
  --ink-800: #1f1b18;
  --ink-700: #2a2521;
  --paper: #f2efe9;
  --paper-dim: #e7e2d9;
  --text-hi: #ece7de;
  --text-mid: #b5aca0;
  --text-low: #857c70;
  --text-ink: #262220;
  --text-ink-mid: #5b544e;
  --brass: #c0a468;
  --brass-soft: #a58c58;
  --line: rgba(236, 231, 222, 0.14);
  --line-strong: rgba(236, 231, 222, 0.28);
  --line-ink: rgba(38, 34, 32, 0.16);
  --font-en: 'Marcellus', serif;
  --font-min: 'Shippori Mincho', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --pad-x: clamp(20px, 5vw, 96px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-reveal: cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--text-ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--brass); color: var(--ink-950); }

/* 写真は彩度を落として墨×真鍮のトーンに寄せる（B案トップと同じ考え方） */
.about-media img,
.card figure img,
.equip figure img {
  filter: saturate(0.68) contrast(1.03);
}
.sect.on-dark .card figure img,
.equip figure img {
  filter: saturate(0.55) brightness(0.86) contrast(1.03);
}

/* =========================================================
   出現アニメーション
   参考サイトに合わせ、移動（translate）は使わない。
   ぼけた明るい状態から合焦させることで、動きを意識させない。
   ========================================================= */
/* 初期の非表示は .js-anim（head のインラインスクリプトで付与）配下だけに適用する。
   JSが動かない環境では何も隠さず、そのまま読める状態を保つ。 */
.reveal {
  transition: opacity 1s var(--ease-reveal), filter 1s var(--ease-reveal);
}
.js-anim .reveal:not(.is-visible) {
  opacity: 0;
  filter: blur(16px) brightness(1.25);
}

/* 画像はマスクで開く */
.reveal-img { position: relative; overflow: hidden; }
.js-anim .reveal-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--paper);
  transform-origin: right;
  transition: transform 1.1s var(--ease-reveal);
}
.js-anim .reveal-img.on-dark::after { background: var(--ink-900); }
.js-anim .reveal-img.is-visible::after { transform: scaleX(0); }

/* モーション低減設定の尊重
   確認用ページはモーション評価のため既定で再生する（?reduced=1 のときだけOS設定に従う）。
   本実装（納品版）では .force-motion の分岐を外し、常時尊重する形へ戻すこと。 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim body:not(.force-motion) .reveal:not(.is-visible) { opacity: 1; filter: none; }
  .js-anim body:not(.force-motion) .reveal { transition: none; }
  .js-anim body:not(.force-motion) .reveal-img::after { display: none; }
  body:not(.force-motion) .btn .arrow,
  body:not(.force-motion) .gnav .nav-item::after,
  body:not(.force-motion) .header { transition: none; }
}

/* =========================================================
   ヘッダー
   ========================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, padding 0.5s ease, border-color 0.5s ease, transform 0.5s var(--ease-out);
}
.header.is-hidden { transform: translateY(-100%); }
.header.is-scrolled {
  background: rgba(18, 16, 14, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px var(--pad-x);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
/* ベクター版はグリフ周囲の余白を含まないため、旧PNGで必要だった
   brightness(0) invert(1) と scale() によるトリミングは不要 */
.brand-mark img {
  width: 100%; height: auto;
  display: block;
  opacity: 0.92;
}
.brand-texts { display: flex; flex-direction: column; line-height: 1.2; }
.brand .wordmark {
  display: block;
  width: clamp(116px, 11.5vw, 152px);
  line-height: 0;
}
.brand .wordmark img {
  width: 100%; height: auto;
  display: block;
  opacity: 0.92;
}
/* ロゴ下の社名テキスト（.brand .corp）は 2026-08-06 に廃止。
   ワードマークが画像になり、同じ語が2行並ぶ状態になっていたため。 */
.gnav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.gnav .nav-item {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--text-hi);
  position: relative;
  padding: 8px 0;
}
.gnav .nav-item::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.gnav .nav-item:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-950);
  background: var(--brass);
  border: 1px solid var(--brass);
  padding: 11px 26px;
  transition: background 0.4s ease, color 0.4s ease;
}
.nav-cta:hover { background: transparent; color: var(--brass); }

/* 横並びナビの引っ込めとドロワーへの切り替えは nav.css が担当する（切り替え幅 767px）。
   ここにあった 860px での .nav-item 非表示は、代替導線がないまま項目が消えるため 2026-08-06 に廃止。 */

/* =========================================================
   ページヒーロー
   トップより高さを抑え、読み始めまでの距離を短くする
   ========================================================= */
.page-hero {
  position: relative;
  min-height: clamp(480px, 68vh, 680px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: var(--ink-950);
  /* 上部はヘッダーぶんを確保して重なりを防ぐ */
  padding: clamp(132px, 15vh, 190px) var(--pad-x) clamp(56px, 7vw, 96px);
}
.page-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.5) contrast(1.05);
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(18,16,14,0.96) 0%, rgba(18,16,14,0.55) 45%, rgba(18,16,14,0.35) 100%),
    linear-gradient(to right, rgba(18,16,14,0.7), transparent 65%);
}
.page-hero-inner { max-width: min(100%, 1180px); }
.page-hero .label {
  font-family: var(--font-en);
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.38em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.page-hero .label .ja {
  font-family: var(--font-sans);
  letter-spacing: 0.24em;
  color: var(--text-mid);
  margin-left: 1.4em;
}
.page-hero h1 {
  font-family: var(--font-min);
  font-weight: 500;
  font-size: clamp(26px, 3.8vw, 52px);
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--text-hi);
  margin-bottom: clamp(22px, 3vw, 36px);
}
.page-hero .lead {
  max-width: 40em;
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 2.2;
  color: var(--text-mid);
}

/* =========================================================
   セクション共通
   ========================================================= */
.sect { padding: clamp(72px, 10vw, 140px) var(--pad-x); }
.sect.on-dark { background: var(--ink-900); color: var(--text-hi); }
.sect.on-paper-dim { background: var(--paper-dim); }

.sect-head { margin-bottom: clamp(40px, 6vw, 76px); }
.sect-head.center { text-align: center; }
.sect-head .en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.35em;
  color: var(--brass-soft);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sect-head h2 {
  font-family: var(--font-min);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 40px);
  letter-spacing: 0.12em;
  line-height: 1.6;
}
.sect-head .rule {
  display: block;
  width: 48px; height: 1px;
  background: var(--brass-soft);
  margin-top: 22px;
}
.sect-head.center .rule { margin-inline: auto; }
.sect-head .head-lead {
  margin-top: 20px;
  font-size: clamp(13px, 1.1vw, 14.5px);
  color: var(--text-ink-mid);
  line-height: 2.1;
}
.sect.on-dark .sect-head .head-lead { color: var(--text-mid); }
.sect-head.center .head-lead { max-width: 46em; margin-inline: auto; }

/* ---------- 事業について（本文＋画像） ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
}
.about-body p {
  font-size: clamp(13.5px, 1.15vw, 15px);
  line-height: 2.3;
  color: var(--text-ink-mid);
}
.about-body p + p { margin-top: 1.9em; }
.about-media {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
}
.about-media .m1 { grid-row: 1 / 3; }
.about-media figure { position: relative; overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.about-media .m1 img { aspect-ratio: 3 / 4; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- 工程フロー（ワンストップ体制） ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(8px, 1vw, 18px);
}
.flow li { position: relative; text-align: center; }
.flow li::after {
  content: '';
  position: absolute;
  top: 27px;
  right: calc(-1 * clamp(8px, 1vw, 18px) / 2 - 4px);
  width: 8px; height: 8px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.flow li:last-child::after { display: none; }
.flow .num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-bottom: 16px;
}
.flow .txt {
  display: block;
  font-size: clamp(11px, 0.95vw, 13px);
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--text-hi);
}
@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .flow li::after { display: none; }
}

/* ---------- 番号付きカード（対応領域 / 投資領域 / サービス内容） ---------- */
.cards { display: grid; gap: clamp(16px, 2vw, 28px); }
.cards.col-5 { grid-template-columns: repeat(5, 1fr); }
.cards.col-4 { grid-template-columns: repeat(4, 1fr); }
.cards.col-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line-ink);
  display: flex;
  flex-direction: column;
}
.sect.on-dark .card {
  background: var(--ink-800);
  border-color: var(--line);
}
.card .card-num {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--brass);
  padding: 22px 22px 0;
}
.card h3 {
  font-family: var(--font-min);
  font-weight: 500;
  font-size: clamp(15px, 1.35vw, 18px);
  letter-spacing: 0.08em;
  line-height: 1.7;
  padding: 10px 22px 18px;
}
.card figure { overflow: hidden; }
.card figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card p {
  font-size: clamp(12px, 1vw, 13.5px);
  line-height: 2.1;
  color: var(--text-ink-mid);
  padding: 18px 22px 26px;
  flex: 1;
}
.sect.on-dark .card p { color: var(--text-mid); }

@media (max-width: 1100px) {
  .cards.col-5 { grid-template-columns: repeat(3, 1fr); }
  .cards.col-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .cards.col-5, .cards.col-4, .cards.col-3 { grid-template-columns: 1fr; }
}

/* ---------- アイコンカード（サービス内容・写真なし） ---------- */
.icards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.icard {
  background: #fff;
  border: 1px solid var(--line-ink);
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.2vw, 30px);
  text-align: center;
}
.icard .ico {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-ink);
  border-radius: 50%;
}
.icard .ico svg { width: 24px; height: 24px; stroke: var(--brass-soft); fill: none; stroke-width: 1.2; }
.icard h3 {
  font-family: var(--font-min);
  font-weight: 500;
  font-size: clamp(15px, 1.3vw, 17px);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.icard p {
  font-size: clamp(12px, 1vw, 13.5px);
  line-height: 2.1;
  color: var(--text-ink-mid);
}
@media (max-width: 900px) { .icards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .icards { grid-template-columns: 1fr; } }

/* ---------- 設備リスト（対応設備） ---------- */
.equip { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px); }
.equip li { text-align: left; }
.equip .ico {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.equip .ico svg { width: 30px; height: 30px; stroke: var(--brass); fill: none; stroke-width: 1.2; }
.equip h3 {
  font-family: var(--font-min);
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 16.5px);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--text-hi);
}
.equip figure { overflow: hidden; margin-bottom: 16px; }
.equip figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.equip p {
  font-size: clamp(12px, 1vw, 13.5px);
  line-height: 2.1;
  color: var(--text-mid);
}
@media (max-width: 1100px) { .equip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .equip { grid-template-columns: 1fr; } }

/* ---------- 強み（テキストのみ） ---------- */
.merits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 56px); }
.merit { border-top: 1px solid var(--line-ink); padding-top: 28px; }
.merit .no {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--brass);
  display: block;
  margin-bottom: 14px;
}
.merit h3 {
  font-family: var(--font-min);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 21px);
  letter-spacing: 0.08em;
  line-height: 1.7;
  margin-bottom: 14px;
}
.merit p {
  font-size: clamp(12.5px, 1vw, 14px);
  line-height: 2.2;
  color: var(--text-ink-mid);
}
@media (max-width: 800px) { .merits { grid-template-columns: 1fr; } }

/* =========================================================
   お問い合わせ
   ========================================================= */
.contact {
  background: var(--ink-950);
  color: var(--text-hi);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.contact-body { padding: clamp(56px, 7vw, 110px) var(--pad-x); align-self: center; }
.contact-body .en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.35em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.contact-body h2 {
  font-family: var(--font-min);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 34px);
  letter-spacing: 0.12em;
  line-height: 1.6;
  margin-bottom: 26px;
}
.contact-body p {
  font-size: clamp(13px, 1.1vw, 14.5px);
  line-height: 2.3;
  color: var(--text-mid);
  margin-bottom: 40px;
  max-width: 34em;
}
.contact-media { position: relative; overflow: hidden; min-height: 320px; }
.contact-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.55) brightness(0.78) contrast(1.03);
}
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact-media { min-height: 240px; order: -1; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(12.5px, 1.05vw, 14px);
  letter-spacing: 0.14em;
  padding: 16px 34px;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--ink-950);
  transition: background 0.4s ease, color 0.4s ease;
}
.btn .arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover { background: transparent; color: var(--brass); }
.btn:hover .arrow { transform: translateX(6px); }

/* =========================================================
   フッター
   ========================================================= */
.footer {
  background: var(--ink-950);
  color: var(--text-hi);
  padding: clamp(48px, 6vw, 80px) var(--pad-x) 36px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer .brand .wordmark { width: 132px; }
.footer-nav { display: flex; gap: clamp(18px, 2.4vw, 36px); flex-wrap: wrap; }
.footer-nav a {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--text-mid);
  transition: color 0.4s ease;
}
.footer-nav a:hover { color: var(--brass); }
.copyright {
  margin-top: 28px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-low);
}
