@charset "UTF-8";

/* ==========================================================
   株式会社 小保方建鐵工業 TOPページ
   Figmaデザイン（node 2220-178）準拠
   ========================================================== */
:root {
  /* カラー */
  --color-main: #0C1647;        /* メインネイビー */
  --color-link: #0059FF;        /* SNSアカウント等のリンク色 */
  --color-gray: #B3B3B3;        /* 罫線 */
  --color-light-gray: #E2E2E2;  /* ボタン枠線 */
  --color-white: #FFFFFF;
  --color-text: #222222;

  /* グラデーション */
  --grad-blue: linear-gradient(215deg, #0080FF 10%, #002A5A 99%);
  --grad-chip: linear-gradient(120deg, #002A5A 0%, #004CA3 100%);
  --grad-silver: linear-gradient(135deg, #FFFFFF 0%, #EDEDED 48%, #ABABAB 100%);

  /* フォント */
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-en: "Montserrat", "Noto Sans JP", sans-serif;

  /* WORKS / NEWS のカット角ぶん、前のセクションへ食い込ませる量（白がのぞかないよう気持ち多め） */
  --overlap: clamp(70px, 9vw, 130px);
}

/* ==========================================================
   リセット・全体
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* 固定ヘッダーにアンカー先が隠れないようオフセット */
  scroll-padding-top: 96px;
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 72px;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #0080FF;
  outline-offset: 3px;
}

/* ==========================================================
   共通レイアウト・ユーティリティ
   ========================================================== */
.container {
  width: min(100% - 80px, 1312px);
  margin-inline: auto;
}

@media (max-width: 1023px) {
  .container {
    width: min(100% - 64px, 100%);
  }
}

@media (max-width: 767px) {
  .container {
    /* SPの左右余白は16pxずつ */
    width: min(100% - 32px, 100%);
  }
}

/* 青グラデーション文字 */
.u-grad {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* SPのときだけ効く改行（<br class="br-sp">） */
.br-sp {
  display: none;
}

@media (max-width: 767px) {
  .br-sp {
    display: inline;
  }
}

/* セクション見出し（SERVIS / WORKS / NEWS 共通） */
.section-head {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-gray);
  width: 100%;
}

.section-head__en {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(34px, 5.5vw, 80px);
  line-height: 1.15;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.section-head__ja {
  font-weight: 400;
  font-size: clamp(14px, 1.7vw, 24px);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.section-head--light {
  color: var(--color-white);
}

.section-head--dark {
  color: var(--color-main);
}

/* SPでは英字見出し＋日本語見出しが横に収まらず画面をはみ出すため、
   収まらない時だけ日本語見出しを下段に折り返す（横スクロール防止） */
@media (max-width: 767px) {
  .section-head {
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 12px;
    row-gap: 2px;
  }

  .section-head__ja {
    white-space: normal;
  }
}

/* View more ボタン（鉄骨フレーム風） */
.view-more {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  width: min(318px, 100%);
  min-height: 68px;
  margin-inline: auto;
  overflow: hidden;
  transition: 0.3s ease;
}

/* ホバーで斜めの光が「きらん」と流れる */
.view-more::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 3;
  transition: left 0.75s ease;
}

.view-more:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.view-more:hover::after {
  left: 150%;
}

.view-more__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.view-more__label {
  position: relative;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.view-more__arrow {
  position: relative;
  width: 58px;
  height: 6px;
}

.view-more--light .view-more__label {
  color: var(--color-white);
}

.view-more--dark .view-more__label {
  color: var(--color-main);
}

/* SPのボタンは共通で 240×56 に統一（.form-submit も同じ）。上に24pxの余白 */
@media (max-width: 767px) {
  .view-more {
    width: min(240px, 100%);
    min-height: 56px;
    margin-top: 24px;
  }
}

/* スライダー矢印ボタン（白い四角＋三角形） */
.slider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  transition: 0.3s ease;
}

.slider-arrow:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.slider-arrow img {
  width: 22px;
  height: 19px;
}

.slider-arrow--next img {
  transform: rotate(90deg);
}

.slider-arrow--prev img {
  transform: rotate(-90deg);
}

/* ふわっと表示 */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  /* 減速カーブ（ease-out系）で「すっと現れて静かに止まる」動きに */
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--fd, 0s); /* 連続要素のスタッガー用（インライン --fd で指定） */
  will-change: opacity, transform;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 軽いズームインで現れるバリエーション（カード等に） */
.fade-in {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--fd, 0s);
  will-change: opacity, transform;
}

.fade-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* タップ／クリック時に軽く沈む押し込みフィードバック（共通） */
.view-more:active,
.form-submit:active,
.footer__contact:active,
.footer__entry:active,
.header__cta:active,
.slider-arrow:active,
.cta__panel:active {
  transform: translateY(1px) scale(0.985);
  transition-duration: 0.08s;
}

/* 動きを減らす設定のユーザーにはアニメーションを出さない */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up,
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 左から右へ帯が通り、文字だけ残る表示 */
.passing-reveal {
  position: relative;
  display: inline-block;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

.passing-reveal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 0;
  height: 100%;
  background: var(--grad-blue);
  pointer-events: none;
}

.passing-reveal__text {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0, 0);
}

.is-visible .passing-reveal::before,
.passing-reveal.is-visible::before {
  animation: passing-reveal-bar 0.9s ease forwards;
}

.is-visible .passing-reveal__text,
.passing-reveal.is-visible .passing-reveal__text {
  animation: passing-reveal-text 0.01s ease 0.45s forwards;
}

@keyframes passing-reveal-bar {
  0% {
    left: 0;
    width: 0;
  }
  50% {
    left: 0;
    width: 100%;
  }
  51% {
    left: 0;
    width: 100%;
  }
  100% {
    left: 100%;
    width: 0;
  }
}

@keyframes passing-reveal-text {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee__track {
    animation: none !important;
  }

  .fv__scroll-line::before {
    animation: none !important;
    opacity: 0;
  }

  .about__copy span,
  .service-card__title {
    clip-path: none;
    transform: none;
    transition: none;
  }

  .passing-reveal {
    overflow: visible;
  }

  .passing-reveal::before {
    display: none;
  }

  .passing-reveal__text {
    opacity: 1;
  }
}

/* ==========================================================
   ヘッダー
   ========================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* 左右5%＝コンテンツ幅90% */
  padding: 36px 5% 20px;
  transition: background 0.3s ease;
}

/* 背景は常に透過。スクロールしても余白は変えず、ガタつかせない */

/* SPはヘッダー上の余白を20px、左右は .container と同じ16pxに */
@media (max-width: 767px) {
  .header {
    padding-top: 20px;
    padding-inline: 16px;
  }
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  width: clamp(180px, 18vw, 253px);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.header__menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 21px);
}

.header__menu a {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.header__menu a:hover {
  opacity: 0.7;
}

/* PCでは実メニューはレイアウト確保とクリック用に残しつつ透明化。
   見た目は body 直下の .nav-blend（差分合成）で描画する */
@media (min-width: 1024px) {
  .header__menu a {
    opacity: 0;
  }
}

/* 差分合成オーバーレイ：固定ヘッダーの外（body直下）に置くことで背後ページと合成が効く。
   白ベース → 暗い背景では明るく、明るい背景では暗く、ピクセル単位で自動反転する。 */
.nav-blend {
  position: fixed;
  z-index: 101;
  pointer-events: none;
  mix-blend-mode: difference;
}

.nav-blend ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 21px);
  height: 100%;
}

.nav-blend a {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .nav-blend {
    display: none;
  }
}

.header__sns {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__sns img {
  width: 36px;
  height: 36px;
  transition: 0.3s ease;
}

.header__sns a:hover img {
  opacity: 0.7;
}

.header__cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 150px;
  height: 42px;
  /* 右辺をスラントさせるぶん、中身を左へ寄せる */
  padding-right: 14px;
  background: var(--grad-silver);
  /* 銀メタリックの平行四辺形（右辺カット） */
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  color: var(--color-main);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  overflow: hidden;
  transition: 0.3s ease;
}

/* ホバーで斜めの光が「きらん」と流れる */
.header__cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.75s ease;
}

.header__cta img {
  width: 24px;
  height: 24px;
}

.header__cta:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.header__cta:hover::after {
  left: 150%;
}

/* ハンバーガー（SPのみ） */
.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: none;
}

.header__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  /* 通常時は透明。見た目は body 直下の .toggle-blend（差分合成）が描画する */
  background: transparent;
  transition: 0.3s ease;
}

/* メニューを開いている間は濃紺ドロワーの上に×を白で描く */
.header.is-menu-open .header__toggle span {
  background: var(--color-white);
}

/* SPハンバーガーの差分合成オーバーレイ（PCの .nav-blend と同じ考え方）。
   固定ヘッダーの外＝body直下に置き、mix-blend-mode で背景色に応じて
   白／黒へピクセル単位で自動反転させる。位置は main.js で実ボタンに同期。 */
.toggle-blend {
  display: none;
}

@media (max-width: 750px) {
  .toggle-blend {
    position: fixed;
    z-index: 101;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
    mix-blend-mode: difference;
    transition: opacity 0.3s ease;
  }

  .toggle-blend span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
  }

  /* メニュー展開中は実ボタン側の白×を使うのでオーバーレイは隠す */
  .header.is-menu-open ~ .toggle-blend,
  .rheader.is-menu-open ~ .toggle-blend {
    opacity: 0;
  }
}

@media (max-width: 750px) {
  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 28px;
    padding: 96px 28px 40px;
    background: var(--color-main);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 90;
    overflow-y: auto;
  }

  .header__nav.is-open {
    transform: translateX(0);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .header__menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .header__menu a {
    display: block;
    padding: 14px 4px;
    font-size: 20px;
    opacity: 1; /* SPは濃紺パネル内なので白文字をそのまま表示（PCの透明化を打ち消す） */
  }

  .header__toggle {
    position: relative;
    z-index: 95;
  }

  /* ハンバーガーメニュー内のCTAは高さ56pxのフルワイド */
  .header__cta {
    width: 100%;
    height: 56px;
  }

  .header.is-menu-open .header__toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .header.is-menu-open .header__toggle span:nth-child(2) {
    opacity: 0;
  }

  .header.is-menu-open .header__toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* ==========================================================
   FV（ファーストビュー）
   ========================================================== */
.fv {
  position: relative;
  width: 100%;
  /* FV自体は画面の高さに合わせる。画像はこの高さ内に収まるよう全体表示する。 */
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  background: url("../images/top/fv-metal-bg.webp") center / cover no-repeat, var(--color-white);
}

/* タイトル＆スクロール案内が出そろった後、FV全体を左→右へ
   一度だけ光が「きらん」と流れる（JSで .is-shine を付与） */
.fv::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-18deg) translateX(-200%);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.fv.is-shine::after {
  animation: fv-shine 0.9s ease-in-out forwards;
  /* 文字が出そろう途中で光を流す（気持ち早め） */
  animation-delay: 0.9s;
}

@keyframes fv-shine {
  0% {
    transform: skewX(-18deg) translateX(-200%);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: skewX(-18deg) translateX(320%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fv::after {
    animation: none !important;
    opacity: 0;
  }
}

/* 画像エリアは右寄せ。右から85%まで。残りは金属背景。 */
.fv__photos {
  position: absolute;
  top: 0;
  bottom: 0;
  left: auto;
  right: 0;
  width: 85%;
}

.fv__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* cover で枠を満たし画面の高さに合わせる。中身は左基準で表示。 */
  object-fit: cover;
  object-position: left center;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

/* 表示中の1枚 */
.fv__photo.is-active {
  opacity: 1;
}

/* SP専用ヒーロー画像スライドショー。PCでは使わない（SPのメディアクエリで表示） */
.fv__sp-photos {
  display: none;
}

.fv__sp-photo {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.fv__sp-photo.is-active {
  opacity: 1;
}

.fv__catch {
  position: absolute;
  top: 17%;
  left: clamp(20px, 4vw, 56px);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 1440px幅で 88/56/72px（Figma node 4825-5386 基準）。
   画面幅に比例して拡大・縮小する（88/1440=6.111vw, 56/1440=3.889vw, 72/1440=5vw）。 */
.fv__catch .lg {
  font-size: clamp(40px, 6.111vw, 132px);
}

.fv__catch .sm {
  font-size: clamp(26px, 3.889vw, 84px);
}

.fv__catch .md {
  font-size: clamp(33px, 5vw, 108px);
}

/* FVキャッチコピー：横から順に照らされるように1文字ずつ浮かび上がる
   （ぼかしが晴れながらフェードイン。--char-index で左から順に遅延）
   ※ filter/opacity を効かせるため、グラデーション塗りは親ではなく
     各文字（.char）自身に持たせる（親に持たせると透明になり消える） */
.fv__catch .char {
  display: inline-block;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  filter: blur(8px);
}

/* JSで .is-active が付いたら再生開始（ローディング後すぐに実行される） */
.fv__catch.is-active .char {
  animation: fv-catch-light 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  animation-delay: calc(0.06s * var(--char-index));
}

@keyframes fv-catch-light {
  0% {
    opacity: 0;
    filter: blur(8px);
  }
  45% {
    opacity: 1;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* 動きを抑える設定の場合はアニメーションなしで即表示 */
@media (prefers-reduced-motion: reduce) {
  .fv__catch .char {
    opacity: 1;
    filter: none;
    animation: none;
  }
}

.fv__sub {
  position: absolute;
  top: 67%;
  left: 29%;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(16px, 2.8vw, 40px);
  letter-spacing: 0.08em;
  color: var(--color-main);
  white-space: nowrap;
}

.fv__scroll {
  position: absolute;
  left: clamp(16px, 3.5vw, 52px);
  bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* タイトルが出揃うまでは隠しておく（上から下へふわっとフェードで登場） */
  opacity: 0;
  clip-path: inset(0 0 100% 0);
}

/* タイトル → 光が流れた後（約1.8秒）に、上から下へ柔らかくフェードイン */
.fv__catch.is-active ~ .fv__scroll {
  animation: fv-scroll-appear 0.8s ease forwards;
  animation-delay: 0.8s;
}

@keyframes fv-scroll-appear {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0); /* 上端だけ見えて下は隠れた状態 */
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 -16px 0); /* 下端の菱形が切れないよう少し下まで見せる */
  }
}

@media (prefers-reduced-motion: reduce) {
  .fv__scroll {
    opacity: 1;
    clip-path: none;
    animation: none;
  }
}

.fv__scroll-text {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--color-main);
  transform: rotate(180deg);
}

.fv__scroll-line {
  position: relative;
  width: 1px;
  height: clamp(100px, 14vh, 170px);
  background: linear-gradient(to bottom, rgba(12, 22, 71, 0), var(--color-main));
}

/* 上から下へ流れる光（ラインの高さ内に収める） */
.fv__scroll-line::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 30%;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(to bottom, rgba(77, 139, 255, 0), #4d8bff 65%, #cfe0ff);
  filter: blur(0.4px);
  animation: fv-scroll-flow 2.4s ease-in-out infinite;
}

/* top を 0%〜70%（=100%−光の高さ30%）で動かし、ライン上端〜下端の内側だけを流れる */
@keyframes fv-scroll-flow {
  0% {
    top: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 70%;
    opacity: 0;
  }
}

.fv__scroll-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: var(--color-main);
  transform: translateX(-50%) rotate(45deg);
}

@media (max-width: 767px) {
  /* SPは画面いっぱい（アドレスバー除外の svh）の縦型ヒーロー。
     金属テクスチャ背景の上に、右下へ合成画像（三角＋職人＋CRAFT焼き込み・透過PNG）を重ね、
     左上に日本語キャッチ、左に Scroll Down を置く（PC構成の縦画面版）。 */
  .fv {
    height: 100svh;
    min-height: 560px;
    background:
      url("../images/top/fv-metal-bg.webp") center / cover no-repeat,
      var(--color-white);
  }

  /* PC用スライドショーはSPでは隠す */
  .fv__photos {
    display: none;
  }

  /* 合成画像スライドショーを右下に全幅で重ねる。透過部分から金属背景が透ける */
  .fv__sp-photos {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
  }

  .fv__sp-photo {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
  }

  .fv__catch {
    /* 固定ヘッダーのロゴに重ならない位置まで下げる */
    top: 92px;
    left: 16px;
    z-index: 2;
  }

  /* キャッチを拡大。vwで画面幅に比例。1行目「鉄と向き合い、」が収まる最大サイズで上限を設定
     （2倍=80pxは横幅に収まらず見切れるため、収まる範囲の最大＝約1.5倍でクランプ） */
  .fv__catch .lg {
    font-size: clamp(52px, 15.2vw, 66px);
  }

  .fv__catch .sm {
    font-size: clamp(34px, 9.9vw, 43px);
  }

  .fv__catch .md {
    font-size: clamp(43px, 12.5vw, 54px);
  }

  /* CRAFT. SKILL. FORM. は合成画像に焼き込み済みなので live テキストは出さない */
  .fv__catch::after {
    display: none;
  }

  /* Scroll Down を左側に表示（キャッチと合成画像の間）。文字・ラインは現状の0.75倍 */
  .fv__scroll {
    display: flex;
    left: 20px;
    top: 44%;
    bottom: auto;
    z-index: 2;
    gap: 8px;
  }

  .fv__scroll-text {
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .fv__scroll-line {
    height: clamp(75px, 10.5vh, 128px);
  }

  .fv__scroll-line::after {
    width: 6px;
    height: 6px;
  }
}

/* ==========================================================
   私たちについて
   ========================================================== */
.about {
  position: relative;
  background: var(--color-main);
  padding-block: clamp(72px, 11vw, 168px) clamp(56px, 6vw, 84px);
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 紺（.about の background）の上に透過PNGを重ねる。スクロール追従（固定背景） */
  background: url("../images/about/bg-about.png") center center / cover no-repeat fixed;
  pointer-events: none;
}

.about::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12, 22, 71, 0) 72.78%, var(--color-main) 100%);
  pointer-events: none;
}

.about__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(72px, 9vw, 126px);
}

.about__visual {
  position: relative;
  flex: 1 1 0;
  max-width: 800px;
  /* 枠の比率（Figma 4383:4666） */
  aspect-ratio: 613 / 694;
  max-height: 906px;
}

.about__visual > img,
.about__visual > .about__video {
  /* 枠いっぱいではなく、左を 5.87% インセットして上下中央（やや下）に配置（Figma 4383:4637） */
  position: absolute;
  top: 52.2%;
  left: 5.87%;
  width: 94%;
  transform: translateY(-50%);
  height: 95.7%;
  object-fit: cover;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.25));
}

.about__video {
  display: block;
}

.about__copy {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about__copy span {
  writing-mode: vertical-rl;
  background: var(--color-white);
  color: var(--color-main);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 3.9vw, 56px);
  line-height: 1.2;
  padding: 10px 4px;
  letter-spacing: 0.04em;
  /* 初期は上端だけ見せて、下方向へ隠しておく */
  clip-path: inset(0 0 100% 0);
  transform: translateY(-12px);
  transition: clip-path 0.8s ease, transform 0.8s ease;
}

/* セクションが見えたら、右の列→左の列の順に上から流れて表示 */
.about__visual.is-visible .about__copy span {
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
}

/* DOM上 2番目（右側＝先に読む列）を先に、1番目（左側）を後に */
.about__visual.is-visible .about__copy span:nth-child(2) {
  transition-delay: 0.1s;
}

.about__visual.is-visible .about__copy span:nth-child(1) {
  transition-delay: 0.6s;
}

.about__copy em {
  font-style: normal;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: clamp(35px, 2.5vw, 48px);
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 1;
  padding-bottom: clamp(0px, 1.5vw, 21px);
}

.about__text p {
  color: var(--color-white);
  font-weight: 400;
  font-size: clamp(14px, 1.4vw, 20px);
  line-height: 2;
  letter-spacing: 0.16em;
  text-align: justify;
}

/* about__text は左から文字が流れ込むように、全文をゆっくり表示
   左にずれ＋ぼかした状態から、すーっと右の定位置へ */
.about__text.fade-up {
  opacity: 0;
  transform: translateX(-48px);
  filter: blur(5px);
  transition: none;
}

.about__text.fade-up.is-visible {
  animation: about-slide-in 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards;
}

@keyframes about-slide-in {
  0% {
    opacity: 0;
    transform: translateX(-48px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* テキストが決まったあと、ボタンが遅れてフワッと現れ、直後に「きらん」と光が走る */
.about__text .view-more {
  opacity: 0;
}

.about__text.fade-up.is-visible .view-more {
  animation: about-btn-appear 0.6s ease 0.9s forwards;
}

.about__text.fade-up.is-visible .view-more::after {
  animation: about-btn-shine 0.85s ease 1.7s;
}

@keyframes about-btn-appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes about-btn-shine {
  0% {
    left: -130%;
  }
  100% {
    left: 150%;
  }
}

/* SPは左スライドではなく、標準の下からフェードで表示する */
@media (max-width: 767px) {
  .about__text.fade-up {
    transform: translateY(24px);
    filter: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .about__text.fade-up.is-visible {
    animation: none;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about__text.fade-up {
    transform: none;
    filter: none;
    transition: none;
  }

  .about__text.fade-up.is-visible {
    animation: none;
  }

  .about__text .view-more,
  .about__text.fade-up.is-visible .view-more {
    opacity: 1;
    animation: none;
  }

  .about__text.fade-up.is-visible .view-more::after {
    animation: none;
  }
}

@media (max-width: 1023px) {
  .about__inner {
    flex-direction: column;
    align-items: center;
  }

  .about__visual {
    width: 100%;
  }

  .about__text p {
    letter-spacing: 0.08em;
  }
}

/* ==========================================================
   SNSセクション（金属プレート）
   ========================================================== */
.sns {
  position: relative;
  z-index: 1;
  padding: 10px;
  border-radius: 16px;
  background: url("../images/sns/bg-sns-outer.webp") center / cover no-repeat;
  overflow: hidden;
}

/* 左斜め上から右下へ向かって、ゆっくり斜めにフェードイン
   斜めのマスクを対角に動かして「左上→右下」の順に滲み出るように出現させ、
   仕上げに斜めの光沢が一閃して「キラン」と光る（スライド移動はしない） */
.sns.fade-up {
  opacity: 0;
}

.sns.fade-up.is-visible {
  -webkit-mask-image: linear-gradient(135deg, #000 0%, #000 50%, rgba(0, 0, 0, 0) 78%);
          mask-image: linear-gradient(135deg, #000 0%, #000 50%, rgba(0, 0, 0, 0) 78%);
  -webkit-mask-size: 300% 300%;
          mask-size: 300% 300%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  animation: sns-appear 1.4s ease forwards;
}

@keyframes sns-appear {
  0% {
    opacity: 0;
    -webkit-mask-position: 100% 100%;
            mask-position: 100% 100%;
  }
  100% {
    opacity: 1;
    -webkit-mask-position: 0% 0%;
            mask-position: 0% 0%;
  }
}

/* 斜めに走る光沢（キラン） */
.sns::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    transparent 42%,
    rgba(255, 255, 255, 0.1) 47%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.1) 53%,
    transparent 58%
  );
  transform: translate(-130%, -130%);
  opacity: 0;
}

.sns.fade-up.is-visible::after {
  animation: sns-shine 0.9s ease-out 1s forwards;
}

@keyframes sns-shine {
  0% {
    transform: translate(-130%, -130%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(130%, 130%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sns.fade-up {
    opacity: 1;
    transition: none;
  }

  .sns.fade-up.is-visible {
    animation: none;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .sns.fade-up.is-visible::after {
    animation: none;
  }
}

.sns__plate {
  position: relative;
  border-radius: 12px;
  background: url("../images/sns/bg-sns-plate.webp") center / cover no-repeat;
  box-shadow: 0 0 9px rgba(0, 0, 0, 0.35);
  padding: clamp(20px, 2.5vw, 32px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 42px);
}

.sns__bolts {
  display: flex;
  justify-content: space-between;
  padding-inline: 21px;
}

.sns__bolts img {
  width: 35px;
  height: 31px;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
}

.sns__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.5vw, 35px);
  padding-inline: clamp(20px, 4vw, 56px);
  text-align: center;
}

.sns__catch {
  font-weight: 600;
  font-size: clamp(20px, 2.8vw, 40px);
  line-height: 1.4;
  color: var(--color-main);
}

.sns__title {
  font-family: var(--font-serif);
  /* 600だとフォールバック明朝（ヒラギノ等）で細いウェイトに落ちる端末があるため700に */
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 80px);
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: var(--color-main);
  margin-top: clamp(-8px, -0.5vw, -4px);
}

.sns__badge {
  display: inline-block;
  border: 2px solid var(--color-main);
  padding: 7px 14px;
  font-weight: 400;
  font-size: clamp(14px, 1.4vw, 20px);
  color: var(--color-main);
}

.sns__row {
  display: grid;
  grid-template-areas:
    "head"
    "cards";
  row-gap: clamp(20px, 2.5vw, 35px);
  padding-inline: clamp(16px, 4vw, 56px);
}

.sns__rowhead {
  grid-area: head;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sns__cards {
  grid-area: cards;
}

/* PCではナビをヘッダー右下に重ねて従来の見た目を維持 */
.sns__row > .sns__nav {
  grid-area: head;
  justify-self: end;
  align-self: end;
}

.sns__rowtitle {
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1vw, 16px);
  flex-wrap: wrap;
}

.sns__rowtitle .text {
  font-weight: 700;
  font-size: clamp(18px, 2.8vw, 40px);
  line-height: 1.15;
  color: var(--color-main);
}

.sns__rowtitle .text .big {
  font-size: 1.2em;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sns__account {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: clamp(16px, 1.7vw, 24px);
  letter-spacing: 0.04em;
  color: var(--color-link);
  transition: 0.3s ease;
}

.sns__account:hover {
  opacity: 0.7;
}

.sns__account img {
  width: clamp(28px, 2.8vw, 40px);
  height: clamp(28px, 2.8vw, 40px);
}

.sns__nav {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
}

.sns__nav .slider-arrow {
  width: 40px;
  height: 40px;
  border: none;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.25));
}

.sns__nav .slider-arrow img {
  width: 16px;
  height: 14px;
}

.sns__cards {
  display: flex;
  gap: clamp(16px, 3vw, 42px);
  /* 4枚表示＋矢印で横送り。枚数が増えてもプレートから飛び出さない */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;            /* Firefox：スクロールバー非表示 */
  -webkit-overflow-scrolling: touch;
  padding-block: 6px;               /* カードの影が上下で切れないように */
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.25));
}

.sns__cards::-webkit-scrollbar {
  display: none;                    /* Chrome / Safari：スクロールバー非表示 */
}

.sns__cards a {
  flex: 0 0 calc((100% - 3 * clamp(16px, 3vw, 42px)) / 4);
  scroll-snap-align: start;
  transition: 0.3s ease;
}

/* ホバーでふわっと浮き上がる */
.sns__cards a:hover {
  transform: translateY(-8px);
}

.sns__cards img {
  width: 100%;
  aspect-ratio: 220 / 293;
  object-fit: cover;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease;
}

.sns__cards a:hover img {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

/* TikTokは縦型動画（9:16）。実画像比率に合わせて上下を切らない */
#slider-tiktok img {
  aspect-ratio: 9 / 16;
}

.sns__divider {
  width: 100%;
  padding-inline: 0;
}

.sns__divider img {
  width: 100%;
  height: 2px;
}

@media (max-width: 767px) {
  /* SPはプレートの余白を全周10pxに統一（内側要素の左右paddingは外す） */
  .sns__plate {
    padding: 10px;
  }

  .sns__bolts {
    padding-inline: 0;
  }

  /* SPは2枚並びで表示して横スクロール（カルーセル。スクロール挙動は基底で設定済み）
     右の余白はなくし、3枚目がのぞく＝スクロールできると分かる見た目に */
  .sns__row {
    padding-inline: 0;
  }

  .sns__cards a {
    flex: 0 0 43%;
  }

  /* SPではネジ（ボルト）装飾を約1/2サイズに */
  .sns__bolts img {
    width: 18px;
    height: 16px;
  }

  /* SPの見出しまわり：タイトルの上14px・下21px、バッジ下40pxをマージンで明示する */
  .sns__head {
    gap: 0;
    padding-inline: 0;
    /* バッジ下の余白：プレートのgap 28px + 12px = 40px */
    margin-bottom: 12px;
  }

  .sns__catch {
    font-size: 14px;
  }

  .sns__title {
    font-size: 2rem;
    margin-top: 14px;
    margin-bottom: 21px;
  }

  .sns__badge {
    padding: 4px 14px;
  }

  /* SPは矢印ボタンを消し、スワイプ案内をうっすら重ねる
     （1枚目がスワイプされたら main.js が .is-swiped を付けてフェードアウト） */
  .sns__row > .sns__nav {
    display: none;
  }

  .sns__row::after {
    content: "";
    grid-area: cards;
    justify-self: center;
    align-self: center;
    width: 72px;
    height: 72px;
    background: url("../images/common/swipe-icon.svg") center / contain no-repeat;
    /* 白い被写体に重なっても見えるよう影を二重にかける */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 12px rgba(0, 0, 0, 0.55));
    pointer-events: none;   /* カード本体のタップを妨げない */
    z-index: 2;
    opacity: 0.85;
    transition: opacity 0.4s ease;
    animation: sns-swipe-nudge 1.6s ease-in-out infinite;
  }

  .sns__row.is-swiped::after {
    opacity: 0;
    animation: none;
  }
}

/* スワイプ案内の「ちょんちょん」と横に揺れる動き（右→左へスワイプを促す） */
@keyframes sns-swipe-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-10px); }
}

/* ==========================================================
   マーキー（BUILT ON SKILL, DRIVEN BY PRIDE）
   ========================================================== */
.marquee {
  background: var(--color-main);
  padding-block: clamp(40px, 6vw, 64px);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee__phrase {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding-right: 0.6em;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(64px, 10.4vw, 200px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* BUILT ON SKILL, … 金属テクスチャで塗りつぶし */
.marquee__fill {
  background: url("../images/common/bg-metal.webp") center / cover;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* DRIVEN BY PRIDE … ライン（袋文字）仕様：線を文字の外側に出す
   塗りを背景と同じネイビーにし、paint-order で塗りを線の上に重ねて
   内側半分を隠す → 外側のラインだけが残る */
.marquee__line {
  color: var(--color-main);
  -webkit-text-stroke: 3px rgba(226, 226, 226, 0.75);
  text-stroke: 3px rgba(226, 226, 226, 0.75);
  paint-order: stroke fill;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================
   事業・サービス（SERVIS）
   ========================================================== */
.service {
  position: relative;
  /* WORKS が重なるぶん、下の余白を広げてコンテンツとのクリアランスを確保 */
  padding-block: clamp(56px, 6vw, 84px) calc(clamp(96px, 12vw, 168px) + var(--overlap));
  overflow: hidden;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/service/bg-service.webp") center / cover no-repeat;
  z-index: -2;
}

.service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #0C1647 0%, rgba(12, 22, 71, 0.55) 100%);
  z-index: -1;
}

.service__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.service__intro {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.service__lead {
  font-weight: 400;
  font-size: clamp(20px, 2.8vw, 40px);
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--color-white);
}

.service__desc {
  color: var(--color-white);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  margin-top: -14px;
}

.service__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  width: 100%;
}

.service-card {
  position: relative;
  aspect-ratio: 283 / 456;
  /* 背景プレート（カードの形）。この上に画像素材を流し込む */
  background: rgba(12, 22, 71, 0.45);
}

.service-card__photo {
  position: absolute;
  inset: 4.4% 7%;
  overflow: hidden;
}

.service-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__note {
  position: absolute;
  right: calc(7% + 10px);
  bottom: calc(4.4% + 10px);
  color: var(--color-white);
  font-weight: 400;
  font-size: clamp(12px, 1.1vw, 16px);
  line-height: 2;
  text-align: right;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.service-card__title {
  position: absolute;
  top: 4.4%;
  left: 0;
  background: var(--color-white);
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 32px);
  line-height: 1.1;
  color: var(--color-main);
  padding: 8px 4px;
  letter-spacing: 0.04em;
  /* 長いタイトル（鉄骨及び建築金物製作工）も他と同じく縦1列に保つ */
  white-space: nowrap;
}

.service-card--center .service-card__title {
  top: 4.4%;
}

/* タイトルプレートを上から下へ流して表示（about__copy と同じ動き） */
.service-card__title {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s ease;
}

.service-card.is-visible .service-card__title {
  clip-path: inset(0 0 0 0);
}

/* 左の列から順に時間差で流す */
.service__cards .service-card:nth-child(1).is-visible .service-card__title {
  transition-delay: 0.1s;
}

.service__cards .service-card:nth-child(2).is-visible .service-card__title {
  transition-delay: 0.28s;
}

.service__cards .service-card:nth-child(3).is-visible .service-card__title {
  transition-delay: 0.46s;
}

.service__cards .service-card:nth-child(4).is-visible .service-card__title {
  transition-delay: 0.64s;
}

/* 右下のL字ライン */
.service-card::before {
  content: "";
  position: absolute;
  left: 71.7%;
  right: 0;
  bottom: 2.4%;
  height: 1px;
  background: var(--color-white);
}

.service-card::after {
  content: "";
  position: absolute;
  right: 4.2%;
  top: 82.5%;
  bottom: 0;
  width: 1px;
  background: var(--color-white);
}

@media (max-width: 1023px) {
  .service__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 640px;
    margin-inline: auto;
  }
}

/* ==========================================================
   事例・実績（WORKS）
   ========================================================== */
.works {
  position: relative;
  z-index: 1;
  /* カット角ぶん上にずらして SERVICE の下余白に食い込ませる。上パディングを同量足して内側の間隔は維持 */
  margin-top: calc(-1 * var(--overlap));
  /* NEWS が重なるぶん下余白も広げる。上は通常サイズ */
  padding-block: clamp(72px, 9vw, 126px) calc(clamp(96px, 12vw, 168px) + var(--overlap));
  /* 背景は持たせない（カット角を透明にして前のSERVICEが透ける）。影は .works__bg の drop-shadow で形に沿わせる */
}

/* 紙テクスチャを SVG（works-shape.svg＝左上カットの型）でマスクして敷く。影なし */
/* 影用ラッパー（マスクしない）。中の形に沿って drop-shadow が出る＝カットの斜めにも影がつく */
.works__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: drop-shadow(0 -5px 10px rgba(0, 0, 0, 0.32));
}

.works__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/works/bg-works.webp") top center / cover no-repeat, var(--color-white);
  -webkit-mask: url("../images/works/works-shape.svg") center / 100% 100% no-repeat;
  mask: url("../images/works/works-shape.svg") center / 100% 100% no-repeat;
}

/* SPは左上のカット角（窪み）を半分の深さにした型に差し替える */
@media (max-width: 767px) {
  .works__bg::before {
    -webkit-mask: url("../images/works/works-shape-sp.svg") center / 100% 100% no-repeat;
    mask: url("../images/works/works-shape-sp.svg") center / 100% 100% no-repeat;
  }

  /* SPは上下パディングを詰める（上=見出し上・下=NEWS重なり分を除いた余白） */
  .works {
    padding-block: 48px calc(72px + var(--overlap));
  }
}

.works__inner {
  position: relative;
  z-index: 1;
}

.works__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.works__intro {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: var(--color-main);
}

.works__desc {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  color: var(--color-main);
}

/* 写真のみのジャスティファイド型ギャラリー（Flickr方式）。
   各写真は元画像の縦横比（--ar＝PHPが実寸から出力）のまま、
   行の高さを揃えて幅を比率に応じて配分する。縦長は縦長のまま収まる。
   傾き（--tilt）とズレ（--shift）で「無造作に置いた」感は残す */
.works__gallery {
  --works-gap: clamp(14px, 1.8vw, 24px);
  --works-row-h: clamp(180px, 22vw, 300px); /* 行の高さの目安 */
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 上限まで育っても余る行は中央寄せ */
  gap: var(--works-gap);
  width: 100%;
  /* 上下のズレ（--shift）ぶんの逃げ。隣接要素へのはみ出しを防ぐ */
  padding-block: 16px;
}

.works-photo {
  display: block;
  aspect-ratio: var(--ar, 1.3333);
  /* 幅の配分：基準幅＝縦横比×行の高さ。行の余りは比率に応じて分け合う。
     max-widthの上限（基準の1.4倍）で、写真が少ない行だけ極端に育つのを防ぐ */
  flex-grow: calc(var(--ar, 1.3333));
  flex-basis: calc(var(--ar, 1.3333) * var(--works-row-h));
  max-width: calc(var(--ar, 1.3333) * var(--works-row-h) * 1.4);
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(var(--shift, 0)) rotate(var(--tilt, 0deg));
}

.works-photo:nth-child(6n + 1) {
  --tilt: -1.1deg;
  --shift: 10px;
}

.works-photo:nth-child(6n + 2) {
  --tilt: 1deg;
  --shift: -8px;
}

.works-photo:nth-child(6n + 3) {
  --tilt: -0.7deg;
  --shift: 14px;
}

.works-photo:nth-child(6n + 4) {
  --tilt: 1.4deg;
  --shift: -4px;
}

.works-photo:nth-child(6n + 5) {
  --tilt: 0.9deg;
  --shift: 10px;
}

.works-photo:nth-child(6n + 6) {
  --tilt: -1.2deg;
  --shift: -6px;
}

.works-photo__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* タブレット：行の高さをひと回り小さく */
@media (max-width: 1023px) {
  .works__gallery {
    --works-row-h: clamp(150px, 24vw, 220px);
  }
}

/* スマホ：1行あたり2枚程度になる行の高さにして写真を大きく見せる。
   傾き・ズレは画面が小さいぶん控えめにする */
@media (max-width: 767px) {
  .works__gallery {
    --works-gap: 12px;
    --works-row-h: clamp(110px, 32vw, 150px);
  }

  .works-photo:nth-child(6n + 1) { --shift: 6px; }
  .works-photo:nth-child(6n + 2) { --shift: -6px; }
  .works-photo:nth-child(6n + 3) { --shift: 8px; }
  .works-photo:nth-child(6n + 4) { --shift: -3px; }
  .works-photo:nth-child(6n + 5) { --shift: 6px; }
  .works-photo:nth-child(6n + 6) { --shift: -4px; }
}

/* ==========================================================
   お知らせ・コラム（NEWS）
   ========================================================== */
.news {
  position: relative;
  z-index: 2;
  /* カット角ぶん上にずらして WORKS の下余白に食い込ませる。上パディングを同量足して内側の間隔は維持 */
  margin-top: calc(-1 * var(--overlap));
  /* 上は通常サイズ */
  padding-block: clamp(72px, 9vw, 126px) clamp(96px, 12vw, 168px);
  /* 背景は持たせない（カット角を透明にして前のWORKSが透ける）。影は .news__bg の drop-shadow で形に沿わせる */
}

/* 背景画像を SVG（news-shape.svg＝右上カットの型）でマスクして敷く。不透明度70%・影なし */
/* 影用ラッパー（マスクしない）。中の形に沿って drop-shadow が出る＝カットの斜めにも影がつく */
.news__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: drop-shadow(0 -5px 10px rgba(0, 0, 0, 0.32));
}

.news__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 紺を約30%重ねて「溶接画像 不透明度70%」相当の暗さを焼き込む（下地ネイビーを外したぶん） */
  background:
    linear-gradient(rgba(12, 22, 71, 0.3), rgba(12, 22, 71, 0.3)),
    url("../images/news/bg-news.webp") center / cover no-repeat;
  -webkit-mask: url("../images/news/news-shape.svg") center / 100% 100% no-repeat;
  mask: url("../images/news/news-shape.svg") center / 100% 100% no-repeat;
}

/* SPは右上のカット角（窪み）を半分の深さにした型に差し替える（WORKSと同様） */
@media (max-width: 767px) {
  .news__bg::before {
    -webkit-mask: url("../images/news/news-shape-sp.svg") center / 100% 100% no-repeat;
    mask: url("../images/news/news-shape-sp.svg") center / 100% 100% no-repeat;
  }

  /* SPは上下パディングを詰める（WORKSと同様） */
  .news {
    padding-block: 48px 72px;
  }
}

.news__inner {
  position: relative;
  z-index: 1;
}

.news__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.news__list {
  width: 100%;
  padding-block: clamp(16px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-item {
  border-bottom: 1px solid var(--color-gray);
}

.news-item a {
  display: flex;
  gap: clamp(16px, 2.5vw, 35px);
  padding-block: 14px;
  transition: 0.3s ease;
}

.news-item a:hover {
  opacity: 0.75;
}

.news-item__thumb {
  width: clamp(120px, 14vw, 200px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  flex-shrink: 0;
}

.news-item__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.news-item__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-item__date {
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--color-white);
}

.news-item__chip {
  border: 1px solid var(--color-white);
  color: var(--color-white);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.6;
  padding: 1px 7px;
}

.news-item__text {
  color: var(--color-white);
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* SPもPCと同じ横並び（サムネ左・テキスト右）。サムネは小さめ固定 */
@media (max-width: 767px) {
  .news-item a {
    gap: 14px;
    align-items: center;
  }

  .news-item__thumb {
    width: 120px;
  }

  .news-item__body {
    gap: 8px;
  }

  .news-item__chip {
    font-size: 0.75rem;
  }

  .news-item__text {
    line-height: 1.6;
  }
}

/* ==========================================================
   CONTACT / RECRUIT
   ========================================================== */
.cta {
  position: relative;
  display: flex;
  width: 100%;
  z-index: 1;
}

.cta__panel {
  position: relative;
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.5vw, 35px);
  padding: clamp(40px, 4vw, 56px) clamp(20px, 3vw, 40px);
  overflow: hidden;
  transition: 0.3s ease;
}

/* ホバーで斜めの光が「きらん」と流れる */
.cta__panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 75%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
  transition: left 0.75s ease;
}

.cta__panel:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.cta__panel:hover::after {
  left: 150%;
}

/* パネル内の中身を光の上に重ねる */
.cta__head,
.cta__body,
.cta__arrow {
  position: relative;
  z-index: 2;
}

.cta__panel--contact {
  background: url("../images/common/bg-metal.webp") center / cover no-repeat;
  color: var(--color-main);
}

.cta__panel--recruit {
  background-image: var(--grad-blue), url("../images/common/bg-metal.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: multiply;
  color: var(--color-white);
}

.cta__head {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 24px);
}

.cta__head img {
  width: clamp(44px, 5.5vw, 80px);
  height: clamp(44px, 5.5vw, 80px);
}

/* RECRUITの白アイコン（SVGは白塗り） */
.cta__head .cta__icon--invert {
  filter: none;
}

.cta__head span {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 64px);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.cta__body {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 14px);
}

.cta__body p {
  font-weight: 400;
  font-size: clamp(13px, 1.4vw, 20px);
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.02em;
}

.cta__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 3.6vw, 52px);
  height: clamp(40px, 3.6vw, 52px);
  flex-shrink: 0;
}

.cta__arrow img {
  width: 22px;
  height: 19px;
  transform: rotate(90deg);
}

.cta__arrow--navy {
  border: 2px solid var(--color-main);
}

.cta__arrow--white {
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
}

@media (max-width: 767px) {
  .cta {
    flex-direction: column;
  }

  /* SPは上下パディングを増やしてパネルに高さを持たせる */
  .cta__panel {
    padding-block: 56px;
  }
}

/* ==========================================================
   フッター
   ========================================================== */
.footer {
  background: var(--color-main);
  color: var(--color-white);
  padding: clamp(48px, 6vw, 84px) 0 28px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: clamp(32px, 4vw, 64px);
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 2.5vw, 35px);
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer__logo {
  width: min(468px, 100%);
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.25));
}

.footer__tagline {
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 2;
}

.footer__name {
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 20px);
  margin-top: 14px;
}

.footer__address {
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 2;
  display: flex;
  flex-direction: column;
}

.footer__address dt {
  font-weight: 400;
}

.footer__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(24px, 2.5vw, 35px);
}

.footer__nav {
  display: flex;
  gap: clamp(48px, 8vw, 126px);
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.footer__nav a {
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: 0.3s ease;
}

.footer__nav a:hover {
  opacity: 0.7;
}

.footer__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  background: url("../images/common/bg-metal.webp") center / cover no-repeat;
  color: var(--color-main);
  font-weight: 400;
  font-size: 20px;
  transition: 0.3s ease;
}

.footer__contact:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.footer__contact img {
  width: 32px;
  height: 32px;
}

/* 採用サイト用：ENTRY／CONTACT を横並び */
.footer__actions {
  display: flex;
  gap: clamp(16px, 1.6vw, 24px);
  width: 100%;
}

.footer__actions .footer__contact,
.footer__entry {
  flex: 1 1 0;
  min-width: 0;
  /* 採用フッターのENTRY/CONTACTは斜めカットなしの普通の四角にする */
  clip-path: none;
}

.footer__entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  background: #06c755;
  color: var(--color-white);
  font-weight: 400;
  font-size: 20px;
  transition: 0.3s ease;
}

.footer__entry:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.footer__entry img {
  width: 32px;
  height: 32px;
}

.footer__sns {
  display: flex;
  gap: 24px;
}

.footer__sns img {
  width: 40px;
  height: 40px;
  transition: 0.3s ease;
}

.footer__sns a:hover img {
  opacity: 0.7;
}

.footer__copy {
  text-align: center;
  font-size: clamp(12px, 1vw, 14px);
  color: var(--color-white);
}

@media (max-width: 1023px) {
  .footer__inner {
    flex-direction: column;
  }

  .footer__side {
    align-items: flex-start;
    width: 100%;
  }

  .footer__nav {
    gap: clamp(32px, 10vw, 80px);
  }
}

@media (max-width: 767px) {
  /* 各セクション（会社情報／ナビ／ボタン／SNS）の間をしっかり空ける */
  .footer__inner {
    gap: 40px;
    margin-bottom: 40px;
  }

  .footer__info {
    gap: 18px;
  }

  .footer__side {
    gap: 32px;
  }

  /* 採用フッターのENTRY／CONTACTはSPでも横並びのまま2つ均等に収める */
  .footer__actions {
    gap: 12px;
  }

  /* CONTACT／ENTRYボタンは他のボタンとサイズを統一（240×56・左寄せ） */
  .footer__contact,
  .footer__entry {
    width: 240px;
    min-height: 56px;
    margin-inline: 0;
    font-size: 14px;
  }

  .footer__actions .footer__contact,
  .footer__actions .footer__entry {
    width: auto;
    flex: 1 1 0;
  }

  .footer__contact img,
  .footer__entry img {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================
   ABOUTページ（私たちについて）
   Figmaデザイン（node 4223-537）準拠
   ========================================================== */

/* --- ページヒーロー（共通の下層ページ見出し） --- */
.page-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 584;
  min-height: 280px;
  max-height: 70vh;
  overflow: hidden;
  background: var(--color-white);
}

/* 写真：右下側を斜めに切り出して配置（白い三角を上部右に残す） */
.page-hero__photo,
.page-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(100% 22.6%, 100% 100%, 0 100%, 0 78.6%, 73.1% 37.7%);
  pointer-events: none;
}

.page-hero__photo {
  object-fit: cover;
}

/* 写真の上に重ねる暗いシェード（写真と同じ形に切り抜く） */
.page-hero__shade {
  background: rgba(12, 22, 71, 0.4);
}

/* 左側の青いシェブロン（写真の上に重ねる） */
.page-hero__panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #002a5a 0%, #00417f 100%);
  clip-path: polygon(0 0, 20% 0, 73.1% 37.7%, 0 78.6%);
  pointer-events: none;
}

.page-hero__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* SPは .container の左右余白（16px）に合わせる */
  padding-inline: clamp(16px, 4vw, 56px);
  padding-bottom: clamp(36px, 7vw, 96px);
  color: var(--color-white);
}

.page-hero__en {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 100px);
  line-height: 1.4;
  letter-spacing: 0.04em;
  /* 読み込み時にふわっと立ち上がる */
  animation: page-hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.page-hero__ja {
  margin-top: 14px;
  font-weight: 400;
  font-size: clamp(14px, 1.6vw, 20px);
  line-height: 1.6;
  letter-spacing: 0.02em;
  animation: page-hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

@keyframes page-hero-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__en,
  .page-hero__ja {
    animation: none;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 767px) {
  /* ヘッダーとヒーローテキストが被らないよう、気持ち高めに */
  .page-hero {
    aspect-ratio: 7 / 5;
    min-height: 250px;
  }

  /* 写真側もシンプルな一直線の斜め切りに（折れ点なし） */
  .page-hero__photo,
  .page-hero__shade {
    clip-path: polygon(100% 26%, 100% 100%, 0 100%, 0 80%);
    /* 青パネルより写真を上のレイヤーに（青が写真の下に潜る） */
    z-index: 1;
  }

  .page-hero__panel {
    clip-path: polygon(0 0, 28% 0, 78% 44%, 0 80%);
  }

  .page-hero__inner {
    /* ヘッダーの高さぶんテキストを下げる */
    padding-top: 56px;
    padding-bottom: clamp(28px, 9vw, 56px);
  }
}

/* --- ABOUT用セクション見出し（EN＋JA 縦並び・青グラデ） --- */
.about-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.about-head__en {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.4;
  letter-spacing: 0.08em;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-head__en.passing-reveal {
  background: none;
}

.about-head__en.passing-reveal .passing-reveal__text {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* advantage__lead：青帯を左→右にワイプ表示し、最後に帯が残る
   （初期は表示状態。is-visible のときだけワイプ再生するので帯は消えない） */
.advantage__lead.fade-up {
  opacity: 1;
  transform: none;
}

/* 通過バーは使わない／テキストは帯と一緒に出す */
.advantage__lead.passing-reveal::before {
  content: none;
}

.advantage__lead.passing-reveal .passing-reveal__text {
  opacity: 1;
  animation: none;
}

.advantage__lead.passing-reveal.is-visible {
  animation: advantage-lead-wipe 0.85s ease;
}

@keyframes advantage-lead-wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .advantage__lead.passing-reveal.is-visible {
    animation: none;
  }
}

.about-head__en--navy {
  background: none;
  -webkit-text-fill-color: var(--color-main);
  color: var(--color-main);
}

/* 暗い背景セクション用：EN・JA とも白文字に */
.about-head--white .about-head__en,
.about-head--white .about-head__ja {
  background: none;
  -webkit-text-fill-color: var(--color-white);
  color: var(--color-white);
}

.about-head--white .about-head__en.passing-reveal .passing-reveal__text {
  background: none;
  -webkit-text-fill-color: var(--color-white);
  color: var(--color-white);
}

.about-head__ja {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- MESSAGE 代表メッセージ --- */
.message {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px);
  overflow: hidden;
}

/* 四角ドット装飾：右上（ヒーロー直下に密着）と、左下の反転版 */
.message__squares {
  position: absolute;
  top: 0;
  right: 0;
  width: 50vw;
  aspect-ratio: 803 / 563;
  background: url("../images/about/about-squares.webp") right top / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 767px) {
  /* SPは50vwだと小さく寂しいので拡大 */
  .message__squares {
    width: 80vw;
  }
}

.message__inner {
  position: relative;
  z-index: 1;
}

.message__body {
  display: flex;
  gap: clamp(32px, 5vw, 56px);
  align-items: stretch;
  margin-top: clamp(28px, 3vw, 40px);
}

.message__text {
  flex: 1 1 0;
  min-width: 0;
}

.message__text p {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(15px, 1.1vw, 16px);
  line-height: 1.8;
  color: #2a2c2d;
  text-align: justify;
}

.message__text p + p {
  margin-top: 1.2em;
}

.message__person {
  flex: 0 0 clamp(280px, 30vw, 417px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* 写真は左テキストの高さに合わせて伸縮。枠の縦横比を 383:458 にロックして比率を固定（潰れない）／名前は下端へ */
.message__portrait {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  width: auto;
  max-width: 100%;
  aspect-ratio: 383 / 458;
  object-fit: contain;
  margin-inline: auto;
}

.message__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--color-main);
  text-align: center;
}

.message__name-en {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(16px, 1.7vw, 24px);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--color-gray);
  text-align: center;
}

@media (max-width: 767px) {
  .message__body {
    flex-direction: column;
  }

  .message__person {
    flex-basis: auto;
    width: 100%;
    order: -1;
  }

  /* SPは縦積みなので写真は固定比率に戻す（幅は70%に抑える） */
  .message__portrait {
    flex: 0 0 auto;
    width: min(70%, 383px);
    aspect-ratio: 383 / 458;
    height: auto;
  }
}

/* --- PHILOSOPHY 企業理念 --- */
.philosophy {
  padding-block: clamp(48px, 7vw, 84px) clamp(56px, 8vw, 84px);
}

.philosophy__banners {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: clamp(24px, 3vw, 42px);
}

.philosophy-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(200px, 27vw, 400px);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.philosophy-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.philosophy-banner--left::before {
  background: linear-gradient(90deg, rgba(12, 22, 71, 0.82) 8%, rgba(12, 22, 71, 0.06) 78%);
}

.philosophy-banner--right::before {
  background: linear-gradient(90deg, rgba(5, 6, 12, 0.04) 22%, rgba(5, 6, 12, 0.85) 82%);
}

.philosophy-banner__text {
  position: relative;
  z-index: 2;
  width: min(100% - 80px, 1312px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 28px);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 3.4vw, 40px);
  /* 行間はbr改行前提で少しゆったりめに */
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.philosophy-banner--left .philosophy-banner__text {
  align-items: flex-start;
  text-align: left;
}

.philosophy-banner--right .philosophy-banner__text {
  align-items: flex-end;
  text-align: right;
}

.philosophy-banner__text span {
  display: block;
  transform: skewX(-7deg);
}

@media (max-width: 1023px) {
  .philosophy-banner__text {
    width: min(100% - 64px, 100%);
  }
}

@media (max-width: 767px) {
  .philosophy-banner__text {
    /* .container のSP左右余白（16px）に合わせる */
    width: min(100% - 32px, 100%);
  }
}

/* --- COMPANY 会社概要 --- */
.company {
  padding-block: clamp(56px, 8vw, 84px);
  background: linear-gradient(94deg, #002a5a 0%, #004ca3 100%);
}

.company__inner {
  background: var(--color-white);
  padding: clamp(36px, 6vw, 84px) clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
}

.company__contents {
  display: flex;
  gap: clamp(32px, 6vw, 84px);
  align-items: stretch;
}

.company__table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100%, 645px);
  flex-shrink: 0;
}

/* 項目名（上）→ 内容（下）の縦積み。PC/SP共通 */
.company__row {
  display: flex;
  flex-direction: column;
  padding-block: 10px;
  border-bottom: 1px solid var(--color-gray);
}

.company__row dt {
  font-weight: 600;
  line-height: 2;
  color: var(--color-main);
}

.company__row dd {
  flex: 1 1 0;
  min-width: 0;
  line-height: 2;
  color: #2a2c2d;
}

.company__sub {
  display: block;
}

.company__list li {
  line-height: 2;
}

.company__note {
  color: var(--color-muted, #666);
}

.company__maps {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
}

/* 2つの地図で左の会社情報の高さを分け合う */
.company-map {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.company-map iframe {
  width: 100%;
  flex: 1 1 0;
  min-height: 180px;
  display: block;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

.company-map figcaption {
  margin-top: 8px;
  text-align: left;
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 2;
  color: #2a2c2d;
}

.company-map figcaption strong {
  font-weight: 400;
}

@media (max-width: 1023px) {
  .company__contents {
    flex-direction: column;
  }

  .company__table {
    width: 100%;
  }

  .company__maps {
    width: 100%;
  }

  /* 縦積み時は高さの基準がないので地図に比率を持たせる */
  .company-map {
    flex: initial;
  }

  .company-map iframe {
    flex: initial;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

/* --- SNSセクション（白背景ラッパー） --- */
.sns-section {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  padding-block: clamp(56px, 9vw, 168px);
}

/* 四角ドット装飾：左下（右上の反転版） */
.sns-squares {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50vw;
  aspect-ratio: 803 / 563;
  background: url("../images/about/about-squares.webp") right top / contain no-repeat;
  transform: scaleX(-1) scaleY(-1);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 767px) {
  /* SPは50vwだと小さく寂しいので拡大（message__squares と同じ扱い） */
  .sns-squares {
    width: 80vw;
  }
}

.sns-section > .container {
  position: relative;
  z-index: 1;
}

/* ==========================================================
   公式SNS（ABOUTバリアント）：TikTok／Instagram を横並び・最新2投稿
   ========================================================== */
/* aboutは下の余白を2倍に（セクション下パディングと同値を追加） */
.sns--about {
  margin-bottom: clamp(56px, 8vw, 84px);
}

.sns--about .sns__plate {
  gap: clamp(24px, 3vw, 35px);
}

/* 見出し：＼ SNSでは 私たちのリアル を発信中！／ */
.sns__head--about {
  gap: clamp(18px, 2.2vw, 35px);
}

.sns__headline {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(6px, 1vw, 14px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--color-main);
}

.sns__headline-side {
  font-size: clamp(22px, 3.4vw, 40px);
}

/* 「私たちのリアル」＋「を」をひとまとまりにする（改行時に離れない） */
.sns__headline-group {
  display: inline-flex;
  align-items: flex-end;
}

.sns__headline-main {
  position: relative;
  font-size: clamp(26px, 4.2vw, 48px);
  padding-top: clamp(8px, 1vw, 16px); /* ドット装飾の表示余白 */
}

.sns__headline-deco {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: clamp(6px, 0.8vw, 10px);
}

/* SPはスラッシュ（＼／）を消し、上の「SNSでは」をドット装飾にぴったり寄せる */
@media (max-width: 767px) {
  .sns__headline-slash {
    display: none;
  }

  /* SPは「SNSでは／私たちのリアルを／発信中！」の3行固定 */
  .sns__headline {
    flex-direction: column;
    align-items: center;
    row-gap: 8px; /* 3行の行間 */
  }

  .sns__headline-main {
    font-size: 30px;
    padding-top: 4px; /* 点と文字を近づける */
  }

  .sns__headline-deco {
    /* 末尾の letter-spacing ぶんを除いた「文字の見た目幅」に合わせて中央配置 */
    width: calc(100% - 0.08em);
    left: calc(50% - 0.04em);
  }
}

/* 横2カラム（TikTok｜Instagram） */
.sns__cols {
  position: relative;
  display: flex;
  gap: clamp(18px, 2.5vw, 35px);
  margin-inline: clamp(16px, 4vw, 56px);
  padding: clamp(18px, 2.5vw, 35px);
  border-radius: 7px;
}

/* Figma の bg-black × mix-blend-overlay 相当（プレートを少し沈ませる） */
.sns__cols::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 7px;
  background: #000;
  mix-blend-mode: overlay;
  opacity: 0.4;
  pointer-events: none;
}

.sns__col {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
}

/* ABOUTは2カラムのため見出し・アカウントを少し小さめに */
.sns--about .sns__rowtitle .text {
  font-size: clamp(15px, 1.7vw, 24px);
}

.sns--about .sns__rowtitle .text .big {
  font-size: 1.33em;
}

.sns--about .sns__account {
  font-size: clamp(13px, 1.3vw, 16px);
}

.sns--about .sns__account img {
  width: clamp(22px, 2vw, 28px);
  height: clamp(22px, 2vw, 28px);
}

/* カードは2枚・スクロールなしで均等並び */
.sns__cards--about {
  overflow: visible;
  gap: clamp(14px, 2vw, 35px);
}

.sns__cards--about a {
  flex: 1 1 0;
  min-width: 0;
}

/* about：左右カードの高さをそろえる（TikTok側の 9/16 比率を上書き） */
#slider-tiktok.sns__cards--about img {
  aspect-ratio: 220 / 293;
}

/* 縦罫線（SVGの divider と同系のネイビーグラデーション） */
.sns__vdivider {
  position: relative;
  z-index: 1;
  flex: 0 0 2px;
  align-self: stretch;
  background: linear-gradient(180deg, #002A5A, #004CA3);
}

@media (max-width: 767px) {
  /* SPは縦積み・罫線は横向きに。パディングは外す */
  .sns__cols {
    flex-direction: column;
    padding: 0;
  }

  .sns__vdivider {
    background: linear-gradient(90deg, #002A5A, #004CA3);
  }
}

/* ==========================================================
   SERVICEページ｜OUR ADVANTAGE（わたしたちの強み）
   ========================================================== */
.advantage {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  padding-block: clamp(56px, 9vw, 126px);
}

.advantage > .container {
  position: relative;
  z-index: 1;
}

/* 装飾の四角（ABOUTの message__squares と同じ素材）
   下層ページ共通：ヒーロー直下のセクション右上と、CTA直前の左下に敷く */
.page-squares {
  position: absolute;
  width: 50vw;
  aspect-ratio: 803 / 563;
  background: url("../images/about/about-squares.webp") right top / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 767px) {
  /* SPは50vwだと小さく寂しいので拡大（message__squares と同じ扱い） */
  .page-squares {
    width: 80vw;
  }
}

.page-squares--top {
  top: 0;
  right: 0;
}

.page-squares--bottom {
  bottom: 0;
  left: 0;
  transform: scaleX(-1) scaleY(-1);
}

.cta-squares {
  position: relative;
  height: 0;
  z-index: 0;
}

.cta-squares .page-squares--bottom {
  bottom: 0;
}

/* 装飾を敷くセクションは相対配置＋はみ出しクリップにし、本文は装飾より前面に出す
   （お問い合わせページはフォーム本文と被るため装飾なし） */
.works-archive,
.news-archive,
.thanks {
  position: relative;
  overflow: hidden;
}

.works-archive > .container,
.news-archive > .container,
.thanks > .container {
  position: relative;
  z-index: 1;
}

/* 「早く、きれい、最適な提案を」：青グラデ帯＋白文字（明朝） */
.advantage__lead {
  display: inline-block;
  margin-bottom: clamp(32px, 5vw, 96px);
  padding: 8px clamp(8px, 1vw, 10.5px);
  background: var(--grad-blue);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: 0.04em;
}

.advantage__list {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 84px);
}

.advantage-row {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
}

.advantage-row--reverse {
  flex-direction: row-reverse;
}

/* 写真：白枠＋ネイビーのオフセット影で“浮かせる” */
.advantage-row__photo {
  flex: 0 0 clamp(240px, 36vw, 500px);
  aspect-ratio: 1 / 1;
  border-bottom: 6px solid var(--color-white);
  border-left: 6px solid var(--color-white);
  box-shadow: -24px 24px 0 0 var(--color-main);
}

.advantage-row--reverse .advantage-row__photo {
  border-left: none;
  border-right: 6px solid var(--color-white);
  box-shadow: 24px 24px 0 0 var(--color-main);
}

.advantage-row__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.advantage-row__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 40px);
}

.advantage-row__head {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 14px);
}

.advantage-row__title {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 48px);
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: #000;
  transform: skewX(-7deg);
}

.advantage-row__title .nobr {
  white-space: nowrap;
}

.advantage-row__num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(78px, 11vw, 150px);
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(to bottom, #003a7c 0%, #00499d 47%, #003775 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: skewX(-7deg);
}

.advantage-row__text {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 2;
  letter-spacing: 0.02em;
  color: #000;
}

.advantage-row__text p + p {
  margin-top: 0.4em;
}

@media (max-width: 767px) {
  .advantage-row,
  .advantage-row--reverse {
    flex-direction: column;
  }

  .advantage-row__photo {
    flex-basis: auto;
    width: min(100%, 360px);
    margin-inline: auto;
    box-shadow: -16px 16px 0 0 var(--color-main);
  }

  .advantage-row--reverse .advantage-row__photo {
    box-shadow: 16px 16px 0 0 var(--color-main);
  }
}

/* ==========================================================
   SERVICEページ｜SERVSERVICE（サービス一覧／暗い背景）
   ========================================================== */
.service-list {
  position: relative;
  z-index: 1;
  padding-block: clamp(64px, 9vw, 126px);
}

/* 背景は斜めにカットした型をCSSで作り、画像とネイビーのオーバーレイを重ねる */
.service-list__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
  -webkit-clip-path: polygon(0 0, 78% 3.8%, 100% 0, 100% 100%, 78% 96.2%, 0 100%);
  clip-path: polygon(0 0, 78% 3.8%, 100% 0, 100% 100%, 78% 96.2%, 0 100%);
}

/* SPはセクションが縦に長く%指定だとV字が深くなりすぎるため、固定値（28px）に抑える */
@media (max-width: 767px) {
  .service-list__bg {
    -webkit-clip-path: polygon(0 0, 78% 28px, 100% 0, 100% 100%, 78% calc(100% - 28px), 0 100%);
    clip-path: polygon(0 0, 78% 28px, 100% 0, 100% 100%, 78% calc(100% - 28px), 0 100%);
  }
}

.service-list__bg::before,
.service-list__bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

.service-list__bg::before {
  background: url("../images/service/bg-service-list.webp") center / cover no-repeat;
}

.service-list__bg::after {
  background: rgba(0, 16, 97, 0.6);
}

.service-list__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 84px);
  color: var(--color-white);
}

/* 見出しは共通 .about-head 形式。暗い背景では白文字に（.about-head--white） */
.service-list__inner .about-head {
  margin-bottom: 0;
}

.service-list__lead {
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
  letter-spacing: 0.02em;
  /* 見出し（about-head--white）とセット。
     余白の実体は親 .service-list__inner の gap。
     その半分を負マージンで打ち消し、見出し↔リードの余白を半分にする */
  margin-top: calc(clamp(40px, 6vw, 84px) / -2);
}

.service-list__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(42px, 5vw, 64px) clamp(34px, 5vw, 84px);
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.2vw, 24px);
}

.service-item__figure {
  position: relative;
  padding-left: clamp(22px, 3vw, 42px);
}

.service-item__figure img {
  width: 100%;
  aspect-ratio: 608 / 350;
  object-fit: cover;
  display: block;
}

/* 工事名の縦書き白タブ（写真左上に重ねる） */
.service-item__labels {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 0;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.25));
}

.service-item__label {
  writing-mode: vertical-rl;
  background: var(--color-white);
  color: var(--color-main);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.35vw, 34px);
  line-height: 1.2;
  letter-spacing: 0.08em;
  padding: clamp(5px, 0.55vw, 8px) clamp(2.5px, 0.3vw, 4px);
}

.service-item__text {
  padding-left: clamp(22px, 3vw, 42px);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 2;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .service-list__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   お知らせ・ブログ 一覧ページ（NEWS・COLUMN）
   Figmaデザイン（node 4223-1178）準拠
   ========================================================== */
/* NEWSページのみヒーロー見出し（NEWS・COLUMN）を最大80pxに抑える */
.page-news .page-hero__en {
  font-size: clamp(44px, 7vw, 80px);
}

.news-archive {
  padding-block: clamp(64px, 9vw, 120px);
  background: var(--color-white);
  /* 絞り込み・ページ送りで #news-archive へ着地したとき固定ヘッダーに隠れないようにする */
  scroll-margin-top: clamp(76px, 11vw, 104px);
}

.news-archive__layout {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 3vw, 42px);
}

/* --- 絞り込み（サイドバー） --- */
.news-filter {
  flex-shrink: 0;
  width: clamp(76px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 21px);
}

.news-filter__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid var(--color-main);
  color: var(--color-main);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.02em;
  text-align: center;
  transition: 0.3s ease;
}

.news-filter__item:hover {
  background: var(--color-main);
  color: var(--color-white);
}

.news-filter__item.is-active {
  background: var(--color-main);
  color: var(--color-white);
}

/* --- 記事リスト --- */
.news-archive__main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.news-list2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-row {
  border-bottom: 1px solid var(--color-gray);
}

.news-row__link {
  display: flex;
  gap: clamp(16px, 2.5vw, 35px);
  padding-bottom: 16px;
  transition: 0.3s ease;
}

.news-row__link:hover {
  opacity: 0.72;
}

.news-row__thumb {
  flex-shrink: 0;
  width: clamp(130px, 16vw, 200px);
  aspect-ratio: 16 / 9;
}

.news-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-row__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-row__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-row__date {
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  color: var(--color-text);
}

.news-row__chip {
  border: 1px solid var(--color-text);
  color: var(--color-text);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.6;
  padding: 1px 7px;
}

.news-row__title {
  color: var(--color-text);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-archive__empty {
  width: 100%;
  padding-block: 48px;
  text-align: center;
  color: var(--color-text);
}

/* --- ページャー --- */
.news-pager .page-numbers {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.news-pager .page-numbers li {
  display: flex;
}

.news-pager a.page-numbers,
.news-pager span.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 5vw, 52px);
  height: clamp(44px, 5vw, 52px);
  border: 1px solid #002a5a;
  color: var(--color-main);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
  letter-spacing: 0.04em;
  transition: 0.3s ease;
}

.news-pager a.page-numbers:hover {
  background: var(--color-main);
  color: var(--color-white);
}

.news-pager span.page-numbers.current {
  background: var(--grad-chip);
  border-color: var(--color-main);
  color: var(--color-white);
}

.news-pager span.page-numbers.dots {
  border: 0;
  color: var(--color-main);
}

/* 前へ／次へ（枠なし・塗り三角） */
.news-pager .page-numbers.prev,
.news-pager .page-numbers.next {
  border: 0;
}

.news-pager .page-numbers.prev:hover,
.news-pager .page-numbers.next:hover {
  background: transparent;
  opacity: 0.6;
}

.news-pager__tri {
  width: 0;
  height: 0;
  border-block: 10px solid transparent;
}

.news-pager__tri--prev {
  border-right: 14px solid var(--color-main);
}

.news-pager__tri--next {
  border-left: 14px solid var(--color-main);
}

/* ==========================================================
   お知らせ・ブログ 詳細（single.php）：画像（大）→ タイトル → 本文
   ========================================================== */
.news-single {
  position: relative;
  /* 固定ヘッダーに隠れないぶん上を空ける */
  padding-block: clamp(112px, 16vw, 180px) clamp(64px, 9vw, 120px);
  background: var(--color-white);
}

/* 記事は読みやすい幅に絞る */
.news-single__inner {
  max-width: 880px;
}

.news-single__eyecatch {
  margin: 0;
}

.news-single__eyecatch img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-single__head {
  margin-top: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vw, 16px);
}

.news-single__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-single__date {
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  color: var(--color-text);
}

.news-single__chip {
  border: 1px solid var(--color-text);
  color: var(--color-text);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.6;
  padding: 1px 7px;
}

.news-single__title {
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--color-main);
}

/* 本文（the_content の出力を整える） */
.news-single__body {
  margin-top: clamp(28px, 4vw, 48px);
  font-size: clamp(15px, 1.2vw, 16px);
  line-height: 1.9;
  color: var(--color-text);
}

.news-single__body p {
  margin-bottom: 1.5em;
}

.news-single__body h2 {
  margin: 2em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-main);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.5;
  color: var(--color-main);
}

.news-single__body h3 {
  margin: 1.8em 0 0.7em;
  padding-left: 12px;
  border-left: 4px solid var(--color-main);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--color-main);
}

.news-single__body ul,
.news-single__body ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

.news-single__body li {
  margin-bottom: 0.4em;
}

.news-single__body a {
  color: var(--color-main);
  text-decoration: underline;
}

.news-single__body img {
  max-width: 100%;
  height: auto;
  margin-block: 8px;
}

.news-single__back {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex;
  justify-content: center;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .news-archive__layout {
    flex-direction: column;
    gap: clamp(20px, 6vw, 32px);
  }

  /* 絞り込みは横並びチップに */
  .news-filter {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  .news-filter__item {
    min-width: 72px;
  }

  .news-row__link {
    flex-direction: column;
    gap: 12px;
  }

  .news-row__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================
   実績一覧（WORKS アーカイブ）
   ========================================================== */
.works-archive {
  padding-block: clamp(64px, 9vw, 120px);
  background: var(--color-white);
  /* 絞り込み・ページ送りで #works-archive へ着地したとき固定ヘッダーに隠れないようにする */
  scroll-margin-top: clamp(76px, 11vw, 104px);
}

.works-archive > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
}

/* --- 絞り込みタブ --- */
.works-tabs {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.6vw, 21px);
}

.works-tabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid var(--color-main);
  color: var(--color-main);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  letter-spacing: 0.02em;
  text-align: center;
  transition: 0.3s ease;
}

.works-tabs__item:hover {
  background: var(--color-main);
  color: var(--color-white);
}

.works-tabs__item.is-active {
  background: var(--grad-chip);
  border-color: var(--color-main);
  color: var(--color-white);
}

/* --- カードグリッド --- */
.works-grid {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 5vw, 72px) clamp(28px, 3.5vw, 48px);
}

/* 段違い配置：PC3列では中央カラムを一段下げてリズムを出す
   （fade-in が transform を使うため、オフセットは margin で付ける） */
.works-grid .work-card:nth-child(3n + 2) {
  margin-top: clamp(28px, 3.5vw, 48px);
}

/* カード枠は持たせず、画像＋タイトルのみのシンプルな一覧にする */
.work-card__link {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 18px);
  height: 100%;
}

.work-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.work-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* タイトル：青グラデのマーカー（折り返した各行が別々の箱として少し間隔をあけて重なる）
   2行まで表示。超過分は「…」。高さはカードのストレッチで揃えるため min-height は持たせない（上詰め）。 */
.work-card__title {
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 2.1;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.work-card__title-mark {
  background-image: var(--grad-chip);
  color: var(--color-white);
  padding: 3px 7px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.works-archive__empty {
  width: 100%;
  padding-block: 48px;
  text-align: center;
  color: var(--color-text);
}

/* --- ページャー（NEWSと共通デザイン） --- */
.works-pager .page-numbers {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.works-pager .page-numbers li {
  display: flex;
}

.works-pager a.page-numbers,
.works-pager span.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 5vw, 52px);
  height: clamp(44px, 5vw, 52px);
  border: 1px solid #002a5a;
  color: var(--color-main);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
  letter-spacing: 0.04em;
  transition: 0.3s ease;
}

.works-pager a.page-numbers:hover {
  background: var(--color-main);
  color: var(--color-white);
}

.works-pager span.page-numbers.current {
  background: var(--grad-chip);
  border-color: var(--color-main);
  color: var(--color-white);
}

.works-pager span.page-numbers.dots {
  border: 0;
  color: var(--color-main);
}

.works-pager .page-numbers.prev,
.works-pager .page-numbers.next {
  border: 0;
}

.works-pager .page-numbers.prev:hover,
.works-pager .page-numbers.next:hover {
  background: transparent;
  opacity: 0.6;
}

.works-pager__tri {
  width: 0;
  height: 0;
  border-block: 10px solid transparent;
}

.works-pager__tri--prev {
  border-right: 14px solid var(--color-main);
}

.works-pager__tri--next {
  border-left: 14px solid var(--color-main);
}

@media (max-width: 1023px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 2列では偶数番目（右カラム）を一段下げる */
  .works-grid .work-card:nth-child(3n + 2) {
    margin-top: 0;
  }

  .works-grid .work-card:nth-child(2n) {
    margin-top: clamp(24px, 4vw, 40px);
  }
}

@media (max-width: 767px) {
  .works-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* 1列では段違いをリセット */
  .works-grid .work-card:nth-child(2n) {
    margin-top: 0;
  }
}

/* ==========================================================
   お問い合わせフォーム（CONTACT）
   ========================================================== */
.contact {
  padding-block: clamp(48px, 8vw, 84px);
  background: var(--color-white);
}

.contact__lead {
  max-width: 1080px;
  margin-inline: auto;
  margin-bottom: clamp(32px, 5vw, 56px);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  text-align: center;
  color: var(--color-text);
}

.contact__alert {
  max-width: 1080px;
  margin-inline: auto;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid #e0b4b0;
  border-radius: 4px;
  background: #fdf3f2;
  color: #c81302;
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 16px);
}

.contact-form {
  max-width: 1080px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 56px);
}

/* ハニーポット：画面外に隠す（人間には見えない） */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 入力フィールド */
.contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-form .form-field + .form-field {
  margin-top: 14px;
}

.form-field__label {
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.form-field__req {
  margin-left: 2px;
  color: #c81302;
}

.form-field__input {
  width: 100%;
  min-height: 52px;
  padding: 14px;
  border: 1px solid #a0a0a0;
  border-radius: 4px;
  background: var(--color-white);
  font-family: inherit;
  font-size: 16px; /* SPでズームしないよう16px固定 */
  line-height: 2;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field__input::placeholder {
  color: #b3b3b3;
}

.form-field__input:focus {
  outline: none;
  border-color: var(--color-main);
  box-shadow: 0 0 0 3px rgba(12, 22, 71, 0.12);
}

.form-field__textarea {
  min-height: 222px;
  resize: vertical;
}

.form-field__error {
  margin-top: 2px;
  font-size: clamp(13px, 1.1vw, 14px);
  color: #c81302;
}

/* 同意チェック */
.contact-form__agree {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  color: var(--color-text);
}

.form-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-check__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #a0a0a0;
  border-radius: 3px;
  background: var(--color-white);
  position: relative;
  transition: 0.2s ease;
}

.form-check input:checked + .form-check__box {
  background: var(--color-main);
  border-color: var(--color-main);
}

.form-check input:checked + .form-check__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-check input:focus-visible + .form-check__box {
  outline: 3px solid var(--color-accent, #4d8bff);
  outline-offset: 2px;
}

.form-check__text a {
  color: var(--color-link);
  text-decoration: underline;
}

/* 送信ボタン（View moreと同じネイビー枠＋矢印） */
.form-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  width: min(318px, 100%);
  min-height: 68px;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: 0.3s ease;
}

/* ホバーで斜めの光が「きらん」と流れる（view-more等と統一） */
.form-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 3;
  transition: left 0.75s ease;
}

.form-submit:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.form-submit:hover::after {
  left: 150%;
}

.form-submit__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.form-submit__label {
  position: relative;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-main);
}

.form-submit__arrow {
  position: relative;
  width: 58px;
  height: 6px;
}

.form-submit:focus-visible {
  outline: 3px solid var(--color-accent, #4d8bff);
  outline-offset: 3px;
}

/* SPのボタンは共通で 240×56 に統一（.view-more と同じ）。上に24pxの余白 */
@media (max-width: 767px) {
  .form-submit {
    width: min(240px, 100%);
    min-height: 56px;
    margin-top: 24px;
  }
}

/* ==========================================================
   お問い合わせ完了（THANKS）
   ========================================================== */
.thanks {
  padding-block: clamp(56px, 9vw, 120px);
  background: var(--color-white);
}

.thanks__inner {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.thanks__title {
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.thanks__text {
  margin-top: clamp(24px, 4vw, 40px);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2.1;
  color: var(--color-text);
}

.thanks__text + .thanks__text {
  margin-top: 1.8em;
}

.thanks__back {
  margin-top: clamp(40px, 6vw, 64px);
}

/* ==========================================================
   SPタイポグラフィ統一スケール
   14px（基本・1rem） / 18 / 21 / 24 / 28 / 32px
   既存ルールのSP実効値をスケールへスナップする上書きレイヤー。
   SPの文字サイズを変えたいときは、まずこのブロックを調整する。
   （ヒーロー等の特大ディスプレイ文字と11px以下の極小ラベルは対象外）
   ========================================================== */
@media (max-width: 767px) {
  html {
    font-size: 14px; /* 1rem = 14px */
  }

  .news-item__chip {
    font-size: 14px;
  }

  .section-head__en {
    font-size: 32px;
  }

  .view-more__label {
    font-size: 14px;
  }

  .header__cta {
    font-size: 14px;
  }

  .header__menu a {
    font-size: 20px; /* ハンバーガーメニューの項目（採用サイトと同じサイズ） */
  }

  .fv__sub {
    font-size: 18px;
  }

  .sns__account {
    font-size: 18px;
  }

  .service__lead {
    font-size: 21px;
  }

  .service-card__note {
    font-size: 14px;
  }

  .news-item__text {
    font-size: 14px;
  }

  .cta__body p {
    font-size: 14px;
  }

  .footer__tagline {
    font-size: 14px;
  }

  .footer__name {
    font-size: 18px;
  }

  .footer__address {
    font-size: 14px;
  }

  .footer__contact {
    font-size: 21px;
  }

  .footer__entry {
    font-size: 21px;
  }

  .footer__copy {
    font-size: 14px;
  }

  .footer__contact,
  .footer__entry {
    font-size: 18px;
  }

  .about-head__ja {
    font-size: 18px;
  }

  .message__text p {
    font-size: 14px;
  }

  .message__name {
    font-size: 32px;
  }

  .message__name-en {
    font-size: 18px;
  }

  .philosophy-banner__text {
    font-size: 21px;
  }

  .company-map figcaption {
    font-size: 14px;
  }

  .sns__headline-side {
    font-size: 21px;
  }

  .sns__headline-main {
    font-size: 32px;
  }

  .sns--about .sns__rowtitle .text {
    font-size: 14px;
  }

  .sns--about .sns__account {
    font-size: 14px;
  }

  .advantage__lead {
    font-size: 21px;
  }

  .service-item__label {
    font-size: 21px;
  }

  .news-filter__item {
    font-size: 18px;
  }

  .news-row__chip {
    font-size: 14px;
  }

  .work-card__title {
    font-size: 18px;
  }

  .form-field__input {
    font-size: 18px;
  }

  .form-field__error {
    font-size: 14px;
  }

  .form-submit__label {
    font-size: 14px;
  }

  .thanks__title {
    font-size: 21px;
  }
}
