/*
Theme Name: LaSB TEC
Theme URI: https://lasbtec.com/
Description: LaSB TEC株式会社 オリジナルテーマ。消防施設工事（スプリンクラー設備・屋内消火栓・連結送水管）。
Author: PEEES
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lasbtec
*/
/* =========================================================
   ブレイクポイント（新規に書き足す箇所で使う）
   ※モックから移植したCSSは可読性のため素の @media のまま
========================================================= */
/* =========================================================
   RESET / TOKENS
========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll; /* 読み込み前後で横幅がズレないよう常時表示 */
  scrollbar-gutter: stable;
}

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

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

ul, ol {
  list-style: none;
}

:root {
  --base:#F6F7F8;
  --navy:#16233C;
  --navy-lt:#2E3E5C;
  --gray:#7A8699;
  --accent:#C8102E;
  --sumi:#14181F;
  --rule:rgba(122,134,153,.2);
  --ease:cubic-bezier(.25,.46,.45,.94);
}

body {
  font-family: "Zen Kaku Gothic New", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 1.6rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--sumi);
  background: var(--base);
  overflow-x: hidden;
}

/* 改行制御（共通クラス） */
.br_monitor, .br_pc, .br_tab, .br_sp {
  display: none;
}

@media (min-width: 1441px) {
  .br_monitor {
    display: inline;
  }
}
@media (min-width: 1025px) {
  .br_pc {
    display: inline;
  }
}
@media (max-width: 1024px) {
  .br_tab {
    display: inline;
  }
}
@media (max-width: 768px) {
  .br_sp {
    display: inline;
  }
}
/* 電話リンクはスマホのみ発信可 */
a[href^="tel:"] {
  pointer-events: none;
}

@media (max-width: 768px) {
  a[href^="tel:"] {
    pointer-events: auto;
  }
}
.yl {
  color: var(--accent);
}

/* =========================================================
   COMMON PARTS
========================================================= */
.inner {
  width: min(100% - 8vw, 120rem);
  margin-inline: auto;
}

@media (max-width: 768px) {
  .inner {
    width: calc(100% - 4.8rem);
  }
}
.sec {
  padding-block: clamp(8rem, 10vw, 16rem);
}

.sec--wide {
  padding-block: clamp(12rem, 15vw, 24rem);
}

.sec--tight {
  padding-block: clamp(5.6rem, 7vw, 11.2rem);
}

.label {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-bottom: 1.6rem;
}

.label::before {
  content: "";
  display: inline-block;
  width: 2.4rem;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 1.2rem;
}

.ttl {
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.ttl--lg {
  font-size: clamp(3.2rem, 5vw, 5.6rem);
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.lead {
  margin-top: 2.4rem;
  color: #3A424F;
}

/* 見出しのマスク上げ */
.js-mask {
  clip-path: inset(0 0 100% 0);
}

.js-fade {
  opacity: 0;
}

/* ブロック単位のリビール：transformのみで動かす（合成処理だけで済む＝滑らか） */
.ln {
  display: block;
}

.js-slide {
  display: block;
  overflow: hidden;
  opacity: 0;
}

.js-slide.is-ready {
  opacity: 1;
}

.mline {
  display: block;
  will-change: transform;
  backface-visibility: hidden;
}

[data-reveal] .label {
  opacity: 0;
  transform: translate3d(0, 1.2rem, 0);
}

[data-reveal] .rv {
  opacity: 0;
  transform: translate3d(0, 1.6rem, 0);
}

/* 画像リビール：カーテンを跳ね上げる（transformのみ） */
.cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--base);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.about__fig .cover, .intro__fig .cover {
  background: var(--base);
}

/* ボタン */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 3.2rem;
  border: 1px solid var(--sumi);
  border-radius: 2px;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: 0;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn:hover {
  color: var(--base);
  border-color: var(--accent);
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn--light {
  border-color: rgba(246, 247, 248, 0.5);
  color: var(--base);
}

.btn--fill {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--base);
}

/* テキストリンク下線 */
.tlink {
  position: relative;
  display: inline-block;
}

.tlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.tlink:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* =========================================================
   WORD（各セクションに散らす透かし文字）
========================================================= */
/* 透かし文字（各セクションに散らす遊び） */
.word {
  position: absolute;
  z-index: 0;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.015em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  backface-visibility: hidden;
}

.word--light {
  color: rgba(22, 35, 60, 0.055);
} /* 白地に置く */
.word--dark {
  color: rgba(246, 247, 248, 0.06);
} /* 紺地に置く */
.intro__word {
  left: -1.5vw;
  bottom: 4%;
  font-size: clamp(8rem, 15vw, 21rem);
}

.service__word {
  left: -1.5vw;
  bottom: 5%;
  font-size: clamp(7rem, 13vw, 18rem);
}

/* 右端が写真の下にもぐらないよう、左へ寄せて逃がす */
.about__word {
  left: -11.5vw;
  bottom: -6%;
  font-size: clamp(7rem, 13vw, 18rem);
}

.recruit__word {
  right: -1.5vw;
  top: 6%;
  font-size: clamp(6rem, 11vw, 15rem);
}

@media (max-width: 1024px) {
  .intro__word {
    font-size: clamp(6rem, 17vw, 14rem);
    bottom: auto;
    top: -2%;
    left: -3vw;
  }
  .service__word {
    font-size: clamp(5rem, 15vw, 12rem);
    bottom: 2%;
  }
  .about__word {
    font-size: clamp(5rem, 15vw, 12rem);
    left: -3vw;
    bottom: auto;
    top: -4%;
  }
  .recruit__word {
    font-size: clamp(5rem, 14vw, 11rem);
    right: -4vw;
    top: auto;
    bottom: 4%;
  }
  .word--light {
    color: rgba(22, 35, 60, 0.05);
  }
  .word--dark {
    color: rgba(246, 247, 248, 0.055);
  }
}
/* =========================================================
   WordPress 個別対応
========================================================= */
/* 管理バー表示時に固定ヘッダーが潜らないように */
body.admin-bar .header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}
/* 固定ページ（汎用テンプレート）本文 */
.entry {
  max-width: 88rem;
}

.entry > * + * {
  margin-top: 2.4rem;
}

.entry h2 {
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin-top: 5.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}

.entry h3 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 4rem;
}

.entry p {
  font-size: 1.5rem;
  line-height: 2;
  color: #3A424F;
}

.entry ul, .entry ol {
  padding-left: 2rem;
}

.entry ul li {
  list-style: disc;
}

.entry ol li {
  list-style: decimal;
}

.entry a {
  text-decoration: underline;
}

.entry img {
  margin-inline: auto;
}

.entry .alignleft {
  float: left;
  margin: 0 2.4rem 2.4rem 0;
}

.entry .alignright {
  float: right;
  margin: 0 0 2.4rem 2.4rem;
}

.entry .aligncenter {
  margin-inline: auto;
}

.entry blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 2rem;
  color: #4A5462;
}

/* 404 */
.notfound {
  text-align: center;
  padding-block: clamp(10rem, 14vw, 18rem);
}

.notfound .ttl {
  margin-top: 1.6rem;
}

.notfound .btn {
  margin-top: 4rem;
}

/* =========================================================
   LOADER
========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: grid;
  place-items: center;
}

.loader__logo {
  opacity: 0;
  width: min(20rem, 42vw);
}

.loader__logo img {
  width: 100%;
}

/* =========================================================
   HEADER
========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.4rem clamp(2.4rem, 4vw, 4.8rem);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}

.header.is-scrolled {
  background: rgba(22, 35, 60, 0.95);
  padding-block: 1.6rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  line-height: 0;
}

/* 1024px以下は横幅が足りないのでロゴのみ */
.header__logo-jp {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: rgba(246, 247, 248, 0.85);
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .header__logo-jp {
    display: none;
  }
}
.header__logo img {
  width: clamp(14rem, 16vw, 18rem);
  transition: width 0.4s var(--ease);
}

.header.is-scrolled .header__logo img {
  width: clamp(12rem, 13vw, 15rem);
}

.gnav {
  display: flex;
  align-items: center;
  gap: 3.2rem;
}

.gnav a {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--base);
}

.gnav__tel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Barlow", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
  .gnav {
    display: none;
  }
}
.hamb {
  display: none;
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid rgba(246, 247, 248, 0.4);
  background: none;
  cursor: pointer;
  position: relative;
}

.hamb span {
  position: absolute;
  left: 1.2rem;
  width: 2rem;
  height: 1px;
  background: var(--base);
  transition: 0.3s;
}

.hamb span:nth-child(1) {
  top: 1.7rem;
}

.hamb span:nth-child(2) {
  top: 2.5rem;
}

@media (max-width: 1024px) {
  .hamb {
    display: block;
  }
}
/* ヘッダー下端：左端だけ赤く走らせる */
.header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0 10rem, rgba(246, 247, 248, 0.16) 10rem);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.header.is-scrolled::after {
  transform: scaleX(1);
}

/* =========================================================
   DRAWER（SPメニュー）
   ※モックにはボタンだけで中身が無かったため新規に用意
========================================================= */
/* 開いているあいだはドロワー内の閉じるボタンに役割を渡す */
.hamb {
  z-index: 110;
  transition: opacity 0.3s var(--ease);
}

.hamb.is-open {
  opacity: 0;
  pointer-events: none;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--navy);
  color: var(--base);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem clamp(2.4rem, 8vw, 6rem) 6rem;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -2rem, 0);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
  overflow-y: auto;
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

/* 閉じるボタン。ハンバーガーと同じ位置に、同じ大きさで置き換わる */
.drawer__close {
  position: fixed;
  z-index: 2;
  top: 2.4rem;
  right: clamp(2.4rem, 4vw, 4.8rem);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--base);
  cursor: pointer;
}

.drawer__close-txt {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  line-height: 1;
  color: rgba(246, 247, 248, 0.6);
  transition: color 0.3s var(--ease);
}

.drawer__close-icon {
  position: relative;
  display: block;
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid rgba(246, 247, 248, 0.4);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.drawer__close-icon::before,
.drawer__close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--base);
}

.drawer__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.drawer__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.drawer__close:hover .drawer__close-txt {
  color: var(--base);
}

.drawer__close:hover .drawer__close-icon {
  border-color: var(--accent);
  background: var(--accent);
}

.drawer__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.4rem;
}

.drawer__mark {
  position: absolute;
  right: -14vw;
  top: 50%;
  width: min(80vw, 52rem);
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
}

.drawer__mark img {
  width: 100%;
}

.drawer__nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.drawer__nav a {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
}

.drawer__en {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 9vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.drawer__jp {
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  color: rgba(246, 247, 248, 0.65);
}

.drawer__foot {
  position: relative;
  z-index: 1;
  margin-top: 5.6rem;
  padding-top: 3.2rem;
  border-top: 1px solid rgba(246, 247, 248, 0.16);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.drawer__tel {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 2.8rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.drawer__tel i {
  font-size: 1.8rem;
  color: var(--accent);
}

.drawer__note {
  font-size: 1.3rem;
  color: rgba(246, 247, 248, 0.6);
}

.drawer__sub {
  font-size: 1.3rem;
  color: rgba(246, 247, 248, 0.6);
}

@media (min-width: 1025px) {
  .drawer {
    display: none;
  }
}
body.is-locked {
  overflow: hidden;
}

/* 現在地のナビ */
.gnav a[aria-current=page] {
  color: var(--accent);
}

.drawer__nav a[aria-current=page] .drawer__en {
  color: var(--accent);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 60rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.hero__slide:first-of-type {
  opacity: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(22, 35, 60, 0.26) 0%, rgba(22, 35, 60, 0.34) 45%, rgba(22, 35, 60, 0.7) 100%);
}

.hero__mark {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(2.4rem, 6vw, 10rem);
  height: min(58vh, 52rem);
  aspect-ratio: 440/509; /* 幅をブラウザ任せにせず確定させる */
  transform: translate3d(0, -50%, 0);
  opacity: 0.09;
  pointer-events: none;
  will-change: transform;
  backface-visibility: hidden;
}

.hero__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .hero__mark {
    height: min(42vh, 36rem);
    right: -4vw;
    opacity: 0.085;
  }
}
@media (max-width: 768px) {
  .hero__mark {
    height: 30vh;
    right: -12vw;
    top: 34%;
    opacity: 0.075;
  }
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(2.4rem, 6vw, 10rem) clamp(10rem, 14vh, 16rem);
  color: var(--base);
}

.hero__title {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: clamp(5.6rem, 10vw, 12rem);
  line-height: 1;
  letter-spacing: 0.04em;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero__sub {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 1.6rem;
}

.hero__lead {
  margin-top: 3.2rem;
  font-size: 1.5rem;
  line-height: 2;
  color: rgba(246, 247, 248, 0.85);
  max-width: 52rem;
}

.hero__lead .ln {
  display: block;
  overflow: hidden;
}

.hero__head {
  display: flex;
  flex-direction: column;
}

/* スクロールインジケータ */
.hero__scroll {
  position: absolute;
  right: clamp(2.4rem, 4vw, 4.8rem);
  bottom: 0;
  z-index: 3;
  width: 1px;
  height: 8rem;
  background: rgba(246, 247, 248, 0.25);
}

.hero__scroll::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
}

/* ヒーロー：ピリオドだけ赤 */
.hero__title .dot {
  color: var(--accent);
}

/* スクロールインジケータのループ（CSSアニメで軽量に） */
/* スクロールインジケータのループ（CSSアニメで軽量に） */
.hero__scroll.is-run::after {
  animation: scrollLine 2.4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll.is-run::after {
    animation: none;
    transform: scaleY(1);
  }
}
/* =========================================================
   PAGE HERO（下層共通）
========================================================= */
.hero--sub {
  height: clamp(36rem, 52vh, 52rem);
  min-height: auto;
}

/* 下層は文字が少ないぶん写真を見せる */
.hero--sub .hero__overlay {
  background: linear-gradient(180deg, rgba(22, 35, 60, 0.2) 0%, rgba(22, 35, 60, 0.28) 45%, rgba(22, 35, 60, 0.62) 100%);
}

.hero--sub .hero__title {
  font-size: clamp(3.6rem, 6.5vw, 7.2rem);
}

.hero--sub .hero__inner {
  padding-bottom: clamp(6rem, 9vh, 9rem);
}

.crumb {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  padding: 2.4rem 0 0;
}

.crumb a {
  color: var(--gray);
}

.crumb span {
  margin-inline: 0.8rem;
  opacity: 0.5;
}

/* 汎用固定ページ：日本語タイトルをそのまま見出しに使う場合 */
.hero__title--jp {
  font-family: "Zen Kaku Gothic New", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  letter-spacing: 0.06em;
  line-height: 1.35;
}

/* =========================================================
   SERVICE（紺ベタの帯／点呼の縦組み）
========================================================= */
.service {
  position: relative;
  background: var(--navy);
  color: var(--base);
  overflow: hidden;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--band-bg, none) center/cover; /* 画像はPHPから --band-bg で差し込む */
  opacity: 0.06;
}

.service .inner {
  position: relative;
  z-index: 1;
}

.service .label {
  color: rgba(246, 247, 248, 0.55);
}

.service__grid {
  display: grid;
  grid-template-columns: minmax(22rem, 0.62fr) 1fr;
  gap: clamp(4rem, 6vw, 9rem);
  align-items: start;
  margin-top: 2.4rem;
}

.service__note {
  margin-top: 3.2rem;
  font-size: 1.5rem;
  line-height: 2;
  color: rgba(246, 247, 248, 0.72);
}

.roll {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(1.6rem, 2vw, 2.8rem);
}

.roll__col {
  display: flex;
  flex-direction: row-reverse;
  gap: 1.2rem;
}

.roll__line {
  width: 1px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  align-self: stretch;
}

.roll__body {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  min-width: 0;
}

.roll__no {
  writing-mode: vertical-rl;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  opacity: 0;
}

/* 設備名は項目ごとに字数が違う。高さを固定して説明文の開始位置を揃える
   （最長「スプリンクラー設備」9字 × 2.2rem × 1.14 = 22.6rem → 23rem）
   級数を clamp にすると画面幅で高さが変わるため、ここは固定値にする */
.roll__name {
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.6;
  height: 23rem;
  overflow: hidden;
  opacity: 0;
}

/* 設備名とキャッチをひと塊にし、キャッチは左下へずらす（列の縦の伸びを抑えるため） */
.roll__head {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 1.2rem;
}

/* 最長「安心を、かたちにするために。」14字 × 1.4rem × 1.12 = 22.0rem → 22.4rem */
.roll__catch {
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: rgba(246, 247, 248, 0.9);
  opacity: 0;
  margin-top: 3.2rem;
  height: 22.4rem;
}

/* 折り返し位置は <br> で明示する。高さ26rem＝1列あたり最大19字 */
.roll__desc {
  writing-mode: vertical-rl;
  font-size: 1.25rem;
  line-height: 2;
  letter-spacing: 0.06em;
  color: rgba(246, 247, 248, 0.62);
  height: 26rem;
  opacity: 0;
}

/* 縦組みは <br> のぶん横に広がるので、2カラムを維持できる幅を1200pxまで引き上げる */
@media (max-width: 1200px) {
  .service__grid {
    grid-template-columns: 1fr;
    gap: 5.6rem;
  }
}
@media (max-width: 768px) {
  .roll {
    flex-direction: column;
    gap: 3.2rem;
  }
  .roll__col {
    flex-direction: row;
    gap: 1.6rem;
  }
  .roll__line {
    min-height: 100%;
  }
  .roll__body {
    flex-direction: column;
    height: auto;
    gap: 0.8rem;
  }
  .roll__no {
    writing-mode: horizontal-tb;
  }
  .roll__name {
    writing-mode: horizontal-tb;
    font-size: 1.9rem;
    white-space: normal;
    height: auto;
  }
  .roll__head {
    flex-direction: column;
    gap: 0.4rem;
  }
  .roll__catch {
    writing-mode: horizontal-tb;
    white-space: normal;
    font-size: 1.5rem;
    margin-top: 0;
    height: auto;
  }
  .roll__desc {
    writing-mode: horizontal-tb;
    line-height: 1.9;
    font-size: 1.4rem;
    height: auto;
  }
  /* 横組みになると <br> が不自然に効く */
  .roll__desc br {
    display: none;
  }
}
/* =========================================================
   FIELD（全幅ビジュアル）
========================================================= */
.visual {
  position: relative;
  height: clamp(50rem, 80vh, 72rem);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.visual__bg {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
}

.visual__bg {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

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

.visual__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(22, 35, 60, 0.45) 0%, rgba(22, 35, 60, 0.88) 100%);
}

.visual__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  color: var(--base);
  padding: 0 clamp(2.4rem, 6vw, 10rem) clamp(6.4rem, 10vh, 10rem);
}

.field__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(2.4rem, 4vw, 4.8rem);
  margin-top: 4rem;
}

.field__item {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-block: 1.2rem;
}

.field__line {
  width: 1px;
  height: 2.4rem;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
}

.field__item span {
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}

.field__area {
  margin-top: 3.2rem;
  font-size: 1.5rem;
  color: rgba(246, 247, 248, 0.8);
  max-width: 48rem;
}

/* =========================================================
   ABOUT / HISTORY
========================================================= */
.about {
  position: relative;
  overflow: hidden;
}

.about .inner {
  position: relative;
  z-index: 1;
}

.about__top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.76fr;
  gap: clamp(4rem, 7vw, 10rem);
  align-items: center;
}

.about__mind {
  position: relative;
  z-index: 1;
  max-width: 60rem;
}

.about__fig {
  z-index: 1;
}

.about__fig {
  position: relative;
}

.about__fig-in {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  contain: paint;
}

.about__fig-in img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__fig-in::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(22, 35, 60, 0.08) 0%, rgba(22, 35, 60, 0.45) 100%);
}

.about__card {
  position: absolute;
  left: clamp(-4rem, -3vw, -2rem);
  bottom: clamp(-3.2rem, -3vw, -2rem);
  background: var(--navy);
  color: var(--base);
  padding: 2.4rem clamp(2.4rem, 3vw, 3.6rem) 2.8rem;
  min-width: min(30rem, 86%);
}

.about__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8rem;
  height: 2px;
  background: var(--accent);
}

.about__card-nums {
  display: flex;
  gap: clamp(2.4rem, 3vw, 4rem);
}

.num__cap {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  color: rgba(246, 247, 248, 0.55);
}

.num__val {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: clamp(3.6rem, 4.4vw, 5.2rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.num__val small {
  font-family: "Zen Kaku Gothic New";
  font-size: 1.4rem;
  font-weight: 400;
  margin-left: 0.4rem;
}

.history {
  position: relative;
  margin-top: clamp(10rem, 14vw, 18rem);
  display: grid;
  grid-template-columns: minmax(22rem, 0.52fr) 1fr;
  gap: clamp(3.2rem, 5vw, 8rem);
  align-items: stretch;
}

.history__head, .history__body {
  position: relative;
  z-index: 1;
}

.history__head {
  display: flex;
  flex-direction: column;
}

.history__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.history__fig {
  position: relative;
  flex: 1;
  min-height: 20rem;
  margin-top: clamp(3.2rem, 4vw, 4.8rem);
  overflow: hidden;
  contain: paint;
}

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

.history__fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(22, 35, 60, 0.06) 0%, rgba(22, 35, 60, 0.42) 100%);
}

@media (max-width: 1024px) {
  .history__fig {
    max-width: 38rem;
    aspect-ratio: 16/11;
    flex: none;
    min-height: 0;
    margin-top: 4rem;
  }
}
/* 年号は「2008 → 2010 → …」という流れとして見せる
   折り返すと最後の年だけ次の行に落ちるので、折り返さず矢印を伸縮させて幅を吸収する */
.history__flow {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
}

.history__step {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.history__step:last-child {
  flex: 0 0 auto;
}

.history__year {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--navy);
  flex: none;
  white-space: nowrap;
}

/* 最後の年（設立）だけ赤で締める */
.history__step:last-child .history__year {
  color: var(--accent);
}

/* 年と年をつなぐ矢印。余った幅はここが受け持つ */
.history__arrow {
  position: relative;
  flex: 1 1 auto;
  min-width: 1.2rem;
  height: 1px;
  margin-inline: clamp(0.8rem, 1.4vw, 1.6rem);
  background: var(--rule);
  transform: scaleX(0);
  transform-origin: left;
}

.history__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

/* 年表の下に続く語り。原稿の空行は段落の間隔になる */
.history__story {
  margin-top: clamp(3.2rem, 4.5vw, 5.6rem);
}

.history__story .lead {
  margin-top: 0;
  max-width: 64rem;
  font-size: 1.5rem;
  line-height: 2.1;
  letter-spacing: 0.02em;
  word-break: auto-phrase; /* 対応ブラウザでは文節で折り返す */
}

/* 段落の切れ目は行間よりはっきり空ける */
.history__story .lead + .lead {
  margin-top: clamp(2.8rem, 3.4vw, 4rem);
}

/* 結びの一文だけ大きくして、長い文章に終わりの合図をつくる */
.history__story .lead:last-child {
  font-size: clamp(1.6rem, 1.9vw, 1.9rem);
  line-height: 1.9;
  color: var(--navy);
  padding-left: clamp(1.6rem, 2vw, 2.4rem);
  border-left: 1px solid var(--accent);
}

@media (max-width: 1024px) {
  .about__top {
    grid-template-columns: 1fr;
    gap: 6.4rem;
  }
  .about__fig {
    max-width: 42rem;
  }
  .history {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}
@media (max-width: 768px) {
  .about__card {
    left: -1.2rem;
    bottom: -2rem;
    padding: 2rem 2.4rem;
  }
  /* SPも1行のまま。年号5つなら幅は足りる（縦積みにすると間延びして箇条書きに見える） */
  .history__year {
    font-size: 1.6rem;
    letter-spacing: 0.02em;
  }
  .history__arrow {
    min-width: 0.8rem;
    margin-inline: 0.6rem;
  }
  .history__arrow::after {
    width: 0.5rem;
    height: 0.5rem;
  }
}
/* =========================================================
   CONTENTS（下部の分割リンク）
========================================================= */
.contents__item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(28rem, 36vw, 40rem);
  overflow: hidden;
}

.contents__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.contents__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.contents__ov {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(22, 35, 60, 0.6);
  transition: background 0.6s var(--ease);
}

.contents__item:hover .contents__bg img {
  transform: scale(1.03);
}

.contents__item:hover .contents__ov {
  background: rgba(22, 35, 60, 0.48);
}

.contents__rule {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.contents__item:hover .contents__rule {
  transform: scaleX(1);
}

.contents__body {
  position: relative;
  z-index: 2;
  color: var(--base);
  width: 50%;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.contents__item:nth-child(even) .contents__body {
  margin-left: auto;
}

.contents__en {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.contents__jp {
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  margin-top: 0.8rem;
  color: rgba(246, 247, 248, 0.8);
}

.contents__body .btn {
  margin-top: 2.4rem;
}

@media (max-width: 768px) {
  .contents__body {
    width: 100%;
  }
  .contents__item:nth-child(even) .contents__body {
    margin-left: 0;
  }
}
/* =========================================================
   CTA
========================================================= */
.cta {
  position: relative;
  overflow: hidden;
  color: var(--base);
  text-align: left;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.cta__ov {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(22, 35, 60, 0.8);
}

.cta .inner {
  z-index: 3;
}

.cta .inner {
  position: relative;
  z-index: 2;
}

.cta .lead {
  color: rgba(246, 247, 248, 0.85);
}

.cta__btns {
  display: flex;
  gap: 1.6rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.cta__btns .btn {
  min-width: 26rem;
  justify-content: center;
}

/* 数字の基準日（年齢は時間が経つと合わなくなるため） */
.about__card-asof {
  display: block;
  margin-top: 1.6rem;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: rgba(246, 247, 248, 0.45);
}

/* 改訂 v1：追記された一文 */
.field__note {
  margin-top: 1.6rem;
  font-size: 1.4rem;
  line-height: 2;
  color: rgba(246, 247, 248, 0.72);
  max-width: 56rem;
}

/* =========================================================
   INTRO
========================================================= */
.intro {
  position: relative;
  overflow: hidden;
}

.intro__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(4rem, 6vw, 10rem);
  align-items: start;
}

.intro__txt {
  max-width: 60rem;
}

.intro__fig {
  position: relative;
}

.intro__fig-in {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  contain: paint;
}

.intro__fig-in img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro__fig-in::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(22, 35, 60, 0.1) 0%, rgba(22, 35, 60, 0.5) 100%);
}

@media (max-width: 1024px) {
  .intro__grid {
    grid-template-columns: 1fr;
    gap: 5.6rem;
  }
  .intro__fig {
    max-width: 44rem;
  }
}
/* =========================================================
   RECRUIT
========================================================= */
.recruit {
  position: relative;
  color: var(--base);
  overflow: hidden;
}

.recruit__word {
  z-index: 1;
}

.recruit__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--navy);
  will-change: transform;
}

.recruit__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--band-bg, none) center/cover; /* 既定はネイビーのベタ塗り（申し送りに従う） */
  opacity: 0.2;
}

.recruit .inner {
  position: relative;
  z-index: 1;
}

.recruit .lead {
  color: rgba(246, 247, 248, 0.85);
}

.recruit .label {
  color: rgba(246, 247, 248, 0.6);
}

.recruit__grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(4rem, 6vw, 9rem);
  align-items: start;
}

.recruit__spec {
  border-top: 1px solid rgba(246, 247, 248, 0.16);
}

.recruit__row {
  display: flex;
  gap: clamp(1.6rem, 2.4vw, 3.2rem);
  padding-block: 1.8rem;
  border-bottom: 1px solid rgba(246, 247, 248, 0.16);
}

.recruit__row dt {
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: rgba(246, 247, 248, 0.5);
  min-width: 8rem;
  padding-top: 0.3rem;
}

.recruit__row dd {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  flex: 1;
}

@media (max-width: 1024px) {
  .recruit__grid {
    grid-template-columns: 1fr;
    gap: 5.6rem;
  }
}
@media (max-width: 768px) {
  .recruit__row {
    flex-direction: column;
    gap: 0.4rem;
    padding-block: 1.6rem;
  }
  .recruit__row dt {
    min-width: 0;
  }
}
/* =========================================================
   SERVICE PAGE
========================================================= */
/* 事業内容 */
.svc {
  border-top: 1px solid var(--rule);
}

.svc__row {
  display: grid;
  grid-template-columns: 8rem 1fr 0.8fr;
  gap: clamp(2.4rem, 4vw, 5.6rem);
  align-items: start;
  padding-block: clamp(5.6rem, 7vw, 9rem);
  border-bottom: 1px solid var(--rule);
}

.svc__no {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding-top: 0.8rem;
}

.svc__name {
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.svc__desc {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: #3A424F;
}

.svc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.4rem;
}

.svc__tags li {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--gray);
  border: 1px solid var(--rule);
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
}

.svc__fig {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

.svc__fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 35, 60, 0.22);
}

@media (max-width: 1024px) {
  .svc__row {
    grid-template-columns: 6rem 1fr;
    gap: 2.4rem 3.2rem;
  }
  .svc__fig {
    grid-column: 1/-1;
    max-width: 48rem;
  }
}
@media (max-width: 768px) {
  .svc__row {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .svc__no {
    padding-top: 0;
  }
}
/* 工程 */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  margin-top: 5.6rem;
}

.flow__item {
  background: var(--base);
  padding: clamp(2.4rem, 3vw, 3.6rem) clamp(2rem, 2.4vw, 2.8rem);
}

.flow__no {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* 紺帯（.service）の中にある明るいカード。色を指定しないと帯の文字色を継承して背景と同化する */
.flow__ttl {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 1.2rem;
  color: var(--sumi);
}

.flow__txt {
  font-size: 1.35rem;
  line-height: 1.9;
  color: #4A5462;
  margin-top: 1.2rem;
}

@media (max-width: 1024px) {
  .flow {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .flow {
    grid-template-columns: 1fr;
  }
}
/* 工程カードの小見出し（番号とステップ名のあいだ） */
.flow__catch {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--accent);
  margin-top: 0.8rem;
}

/* 改訂 v2-4：02の素材だけ縦長（1440×1920）で、4:3の枠に入れると
   消火栓ボックスが上下に切れる。素材を差し替えるまでの暫定で、
   切り取り位置をボックスの中心へ寄せる。横長素材ではY座標は効かないので
   差し替え後もこの指定が悪さをすることはない */
.svc__row--02 .svc__fig img {
  object-position: center 57%;
}

/* 改訂 v2-5：FLOWは工程カードが下端まで伸びるので、
   透かしをセクション下の余白に収まる大きさまで落として下げる。
   TOPの事業内容セクションは重なっていないので触らない */
.service--flow .service__word {
  bottom: 0;
  font-size: clamp(5rem, 7.5vw, 11rem);
}

/* =========================================================
   COMPANY PAGE
========================================================= */
/* 会社概要テーブル */
.table {
  border-top: 1px solid var(--rule);
  margin-top: 4.8rem;
}

.table__row {
  display: flex;
  gap: clamp(2.4rem, 4vw, 6.4rem);
  padding-block: 2.4rem;
  border-bottom: 1px solid var(--rule);
}

.table__th {
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--gray);
  min-width: 14rem;
  padding-top: 0.3rem;
}

.table__td {
  font-size: 1.5rem;
  flex: 1;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .table__row {
    flex-direction: column;
    gap: 0.6rem;
  }
  .table__th {
    min-width: 0;
  }
}
/* アクセス */
.access {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(3.2rem, 5vw, 6.4rem);
  align-items: center;
  margin-top: clamp(6.4rem, 8vw, 10rem);
}

.access__map {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--navy);
  overflow: hidden;
}

.access__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.access__pin {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--base);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  text-align: center;
}

.access__pin i {
  display: block;
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

@media (max-width: 1024px) {
  .access {
    grid-template-columns: 1fr;
  }
}
/* 紺ベタ帯の上に置くテーブル */
.table--dark {
  border-top-color: rgba(246, 247, 248, 0.16);
}

.table--dark .table__row {
  border-bottom-color: rgba(246, 247, 248, 0.16);
}

.table--dark .table__th {
  color: rgba(246, 247, 248, 0.5);
}

/* Googleマップ埋め込み */
.access__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================================================
   CONTACT PAGE
========================================================= */
/* フォーム */
.form {
  margin-top: 4.8rem;
  border-top: 1px solid var(--rule);
}

.form__row {
  display: flex;
  gap: clamp(2.4rem, 4vw, 5.6rem);
  padding-block: 2.8rem;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}

.form__th {
  min-width: 16rem;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  padding-top: 1.2rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.form__req {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--base);
  background: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.form__td {
  flex: 1;
}

.form__td input[type=text],
.form__td input[type=email],
.form__td input[type=tel],
.form__td textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.5rem;
  color: var(--sumi);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1.4rem 1.6rem;
  transition: border-color 0.25s var(--ease);
}

.form__td input:focus, .form__td textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form__td textarea {
  min-height: 18rem;
  resize: vertical;
  line-height: 1.9;
}

.form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  padding-top: 1.2rem;
}

.form__radios label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.form__note {
  font-size: 1.35rem;
  color: var(--gray);
  margin-top: 1.2rem;
  line-height: 1.9;
}

.form__agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 4rem;
  font-size: 1.45rem;
}

.form__submit {
  display: flex;
  justify-content: center;
  margin-top: 3.2rem;
}

.form__submit .btn {
  min-width: 32rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .form__row {
    flex-direction: column;
    gap: 1.2rem;
  }
  .form__th {
    min-width: 0;
    padding-top: 0;
  }
  .form__submit .btn {
    min-width: 100%;
  }
}
/* 電話の直通ブロック */
.direct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  margin-top: 4.8rem;
  border: 1px solid var(--rule);
}

.direct__item {
  background: var(--base);
  padding: clamp(3.2rem, 4vw, 4.8rem);
}

.direct__cap {
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--gray);
}

.direct__val {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 3.6vw, 4rem);
  letter-spacing: 0.02em;
  color: var(--navy);
  margin-top: 1.2rem;
  line-height: 1.2;
  display: block;
}

.direct__sub {
  font-size: 1.35rem;
  color: var(--gray);
  margin-top: 1.2rem;
}

@media (max-width: 768px) {
  .direct {
    grid-template-columns: 1fr;
  }
}
/* メールアドレスは桁数が多いので少し小さく */
.direct__val--mail {
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  word-break: break-all;
}

/* =========================================================
   Contact Form 7（multistep）
   ショートコード側は <label> で1項目ずつ包む書き方。
     <label> 氏名<span class="red">必須</span>
       [text* your-name ...]
     </label>
   ラベル文字と入力欄が同じ要素の中にあるため、
   ラベル側に小さい文字を当て、入力欄側で文字サイズを戻している。
========================================================= */
.form--cf7 {
  margin-top: 4.8rem;
  border-top: 1px solid var(--rule);
}
.form--cf7 .wpcf7-form > p {
  margin: 0;
}
.form--cf7 {
  /* 1項目 */
}
.form--cf7 label {
  display: block;
  padding-block: 2.8rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  line-height: 1.8;
}
.form--cf7 {
  /* 必須・任意のバッジ */
}
.form--cf7 .red, .form--cf7 .blue {
  display: inline-block;
  margin-left: 1.2rem;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  color: var(--base);
  vertical-align: middle;
}
.form--cf7 .red {
  background: var(--accent);
}
.form--cf7 .blue {
  background: var(--gray);
}
.form--cf7 {
  /* 入力欄 */
}
.form--cf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 1.2rem;
}
.form--cf7 input[type=text], .form--cf7 input[type=email], .form--cf7 input[type=tel], .form--cf7 input[type=url],
.form--cf7 input[type=date], .form--cf7 input[type=number], .form--cf7 select, .form--cf7 textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--sumi);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1.4rem 1.6rem;
  transition: border-color 0.25s var(--ease);
}
.form--cf7 input:focus, .form--cf7 select:focus, .form--cf7 textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form--cf7 textarea {
  min-height: 18rem;
  resize: vertical;
  line-height: 1.9;
}
.form--cf7 ::placeholder {
  color: #A7AEBA;
}
.form--cf7 {
  /* ラジオ・チェックボックスの選択肢
     内側の <label> は1項目ずつの「行」ではないので、行の装飾を打ち消す */
}
.form--cf7 .wpcf7-radio,
.form--cf7 .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.8rem;
}
.form--cf7 .wpcf7-list-item {
  margin: 0;
}
.form--cf7 .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  padding-block: 0;
  border-bottom: 0;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}
.form--cf7 input[type=radio], .form--cf7 input[type=checkbox] {
  width: auto;
  accent-color: var(--navy);
}
.form--cf7 {
  /* プライバシーポリシー同意 */
}
.form--cf7 label.policy {
  border-bottom: 0;
  text-align: center;
  padding-block: 4rem 0;
}
.form--cf7 label.policy .wpcf7-form-control-wrap {
  margin-top: 0;
}
.form--cf7 label.policy .wpcf7-list-item {
  margin: 0;
}
.form--cf7 label.policy label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0;
  border-bottom: 0;
  font-size: 1.45rem;
}
.form--cf7 label.policy input[type=checkbox] {
  width: auto;
  accent-color: var(--navy);
}
.form--cf7 {
  /* ボタン（送信・戻る） */
}
.form--cf7 .wpcf7-form > p:last-of-type {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 3.2rem;
}
.form--cf7 input[type=submit], .form--cf7 input[type=button], .form--cf7 button[type=submit], .form--cf7 .wpcf7-previous {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26rem;
  padding: 1.6rem 3.2rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 2px;
  color: var(--base);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.form--cf7 input[type=submit]:hover, .form--cf7 button[type=submit]:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.form--cf7 {
  /* 「戻る」は控えめに */
}
.form--cf7 .wpcf7-previous, .form--cf7 input[type=button] {
  background: transparent;
  border-color: var(--sumi);
  color: var(--sumi);
}
.form--cf7 .wpcf7-previous:hover, .form--cf7 input[type=button]:hover {
  background: var(--sumi);
  color: var(--base);
}
.form--cf7 .wpcf7-spinner {
  margin: 0 0 0 1.2rem;
}
@media (max-width: 768px) {
  .form--cf7 input[type=submit], .form--cf7 input[type=button], .form--cf7 button[type=submit], .form--cf7 .wpcf7-previous {
    min-width: 100%;
  }
}

/* 確認画面：[multiform] は値がテキストで出るので、入力欄と同じ余白で見せる */
.form--confirm .wpcf7-form-control-wrap,
.form--confirm label > span:not(.red):not(.blue):not(.wpcf7-form-control-wrap) {
  display: block;
  margin-top: 1.2rem;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--sumi);
  line-height: 1.9;
}

/* エラー・応答メッセージ */
.wpcf7-not-valid-tip {
  color: var(--accent);
  font-size: 1.3rem;
  margin-top: 0.8rem;
}

.wpcf7 form .wpcf7-response-output {
  margin: 2.4rem 0 0;
  padding: 1.6rem 2rem;
  border-width: 1px;
  border-color: var(--rule);
  font-size: 1.4rem;
  line-height: 1.9;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: var(--accent);
}

/* 同意欄にプライバシーポリシーへのリンクを置く場合 */
.form--cf7 label.policy a {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.form--cf7 .policy-note {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 1.3rem;
  color: var(--gray);
}

/* =========================================================
   PRIVACY PAGE
========================================================= */
/* 規約本文 */
.legal {
  max-width: 88rem;
}

.legal__block {
  margin-top: clamp(4rem, 5vw, 6.4rem);
}

.legal__ttl {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}

.legal__txt {
  font-size: 1.5rem;
  line-height: 2;
  margin-top: 1.6rem;
  color: #3A424F;
}

.legal__list {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.legal__list li {
  font-size: 1.5rem;
  line-height: 1.9;
  padding-left: 1.8rem;
  position: relative;
  color: #3A424F;
}

.legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 0.8rem;
  height: 1px;
  background: var(--accent);
}

.legal__date {
  margin-top: clamp(4.8rem, 6vw, 8rem);
  font-size: 1.35rem;
  color: var(--gray);
  text-align: right;
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  position: relative;
  background: var(--navy);
  color: rgba(246, 247, 248, 0.7);
  padding-block: 6.4rem 3.2rem;
}

.footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0 14rem, rgba(246, 247, 248, 0.12) 14rem);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(246, 247, 248, 0.12);
}

.footer__logo {
  line-height: 0;
}

.footer__logo img {
  width: 18rem;
}

.footer__info {
  font-size: 1.4rem;
  line-height: 2;
  margin-top: 1.6rem;
}

/* align-items を既定の stretch のままにすると、隣のロゴ＋住所ブロックの高さに
   合わせて各リンクが縦に伸び、下線（.tlink::after）が文字から大きく離れる */
.footer__nav {
  display: flex;
  align-items: flex-start;
  gap: 2.4rem;
  flex-wrap: wrap;
  font-size: 1.4rem;
}

.footer__copy {
  font-family: "Barlow", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 3.2rem;
  color: rgba(246, 247, 248, 0.45);
}

.footer__nav a[aria-current=page] {
  color: var(--base);
}

/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js-mask, .roll__name {
    clip-path: none !important;
    opacity: 1 !important;
  }
  .mline {
    transform: none !important;
  }
  .js-slide {
    opacity: 1 !important;
  }
  [data-reveal] .label, [data-reveal] .rv {
    opacity: 1 !important;
    transform: none !important;
  }
  .cover {
    display: none !important;
  }
  .js-fade, .roll__desc, .roll__no {
    opacity: 1 !important;
  }
  .roll__line, .field__line {
    transform: scaleY(1) !important;
  }
  .history__arrow {
    transform: none !important;
  }
  .recruit__bg {
    transform: none !important;
  }
}
/* =========================================================
   画像未設置時のフォールバック地
   （/img/ に写真を置くまでネイビーの面として成立させる）
========================================================= */
.hero__bg, .visual__bg, .cta__bg, .contents__bg,
.intro__fig-in, .about__fig-in, .history__fig, .svc__fig, .access__map {
  background: linear-gradient(160deg, #1B2A46 0%, #0F1728 100%);
}

/* =========================================================
   JSが使えないときの退避
   （初期状態でCSS側が隠している要素を元に戻す）
========================================================= */
.no-anim .loader {
  display: none !important;
}
.no-anim .js-mask {
  clip-path: none !important;
}
.no-anim .js-slide {
  opacity: 1 !important;
}
.no-anim .mline {
  transform: none !important;
}
.no-anim .js-fade {
  opacity: 1 !important;
}
.no-anim .cover {
  display: none !important;
}
.no-anim .roll__no, .no-anim .roll__name, .no-anim .roll__desc {
  opacity: 1 !important;
}
.no-anim .roll__line, .no-anim .field__line, .no-anim .js-line {
  transform: scaleY(1) !important;
}
.no-anim .history__arrow {
  transform: none !important;
}
.no-anim [data-reveal] .label, .no-anim [data-reveal] .rv {
  opacity: 1 !important;
  transform: none !important;
}
