@charset "UTF-8";
:root {
  --bg: #0a0a0a;
  --fg: #ecf1f7;
  --fg-dim: #8a8780;
  --accent: #0072dc;
  --line: rgba(236, 241, 247, 0.14);
  --jp: Noto Sans JP, Hiragino Kaku Gothic ProN, sans-serif;
  --jp-serif: Noto Serif JP, Hiragino Mincho ProN, serif;
  --en: Archivo, Helvetica Neue, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--jp);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  font-size: 16px;
  line-height: 1.7;
}

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

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

::selection {
  background: var(--accent);
  color: var(--fg);
}

/* ========== CONTENT WRAP ========== */
/* 情報要素のコンテナ：左右10%マージン・最大1800px・中央寄せ */
.wrap {
  width: min(80%, 1800px);
  margin-inline: auto;
}
/* パララックスは画面幅100%でぶち抜き表示 */
.wrap > .about-banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* 白背景セクション：背景は画面幅100%、コンテンツは wrap 内（余白内）に戻す */
.wrap > .tech,
.wrap > .targets,
.wrap > .blog {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50% + 32px);
  padding-right: calc(50vw - 50% + 32px);
}

/* 写真背景セクション（About / Service）：背景は全幅、コンテンツは余白内、暗幕＋HEROと同じ黒の細グリッド */
.wrap > #about,
.wrap > #service {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* セクション自体は左右余白0・子要素が32pxを持つため repad は +0 */
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}
.wrap > #about {
  background: url("../assets/bg/forest.jpg") no-repeat center / cover;
}
.wrap > #service {
  background: url("../assets/bg/city.jpg") no-repeat center / cover;
}
/* Journal は full-bleed/repad を既存の .wrap > .blog から流用し、写真背景のみ追加 */
.wrap > #journal {
  background: url("../assets/bg/bridge.jpg") no-repeat center / cover;
}
/* Footer も Journal と同じ加工（full-bleed＋写真背景＋暗幕＋細グリッド） */
.wrap > footer {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50% + 32px);
  padding-right: calc(50vw - 50% + 32px);
  background: url("../assets/bg/kabe_2.jpg") no-repeat center / cover;
}
#about > *,
#service > *,
#journal > *,
footer > * {
  position: relative;
  z-index: 1;
}
/* 可読性のための暗幕 */
#about::before,
#service::before,
#journal::before,
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.79) 0%,
    rgba(10, 10, 10, 0.83) 50%,
    rgba(10, 10, 10, 0.91) 100%
  );
}
/* HERO と同じ黒の細グリッド（暗幕の前） */
#about::after,
#service::after,
#journal::after,
footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
  background-size: 4px 4px;
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.55),
    transparent 80%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.55),
    transparent 80%
  );
}

header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  /* .wrap と同じコンテンツ幅（最大1800px・左右10%）に揃える */
  padding: 22px max(10%, calc(50% - 900px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--fg);
  mix-blend-mode: difference;
}
/* HERO の上にいる間は反転をやめて白固定（薄くならないように） */
header.nav.nav--hero {
  mix-blend-mode: normal;
  --fg: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo .mark {
  width: 38px;
  height: 38px;
  background: currentColor;
  -webkit-mask: url("../assets/kakku-one.svg") no-repeat center/contain;
  mask: url("../assets/kakku-one.svg") no-repeat center/contain;
  color: var(--fg);
}
.logo small {
  font-family: var(--jp);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  opacity: 1;
  border-left: 1px solid currentColor;
  padding-left: 12px;
  color: var(--fg);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  font-family: var(--en);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
nav a {
  position: relative;
  padding: 6px 0;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
nav a:hover::after {
  transform: scaleX(1);
}

.nav-meta {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}
.loader.gone {
  pointer-events: none;
  animation: loadOut 1.2s var(--ease) forwards;
}
.loader .count {
  font-family: var(--en);
  font-weight: 900;
  font-size: 18vw;
  line-height: 0.85;
  letter-spacing: -0.04em;
  /* フォント読み込み完了まで数字を隠す（レイアウトは保持） */
  visibility: hidden;
}
.loader .count.is-ready {
  visibility: visible;
}
.loader .lbl {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.4em;
  opacity: 0.6;
}
.loader .mark-one {
  width: 64px;
  height: 64px;
  background: var(--fg);
  -webkit-mask: url("../assets/kakku-one.svg") no-repeat center/contain;
  mask: url("../assets/kakku-one.svg") no-repeat center/contain;
  animation: spinOne 6s linear infinite;
  opacity: 0.95;
}

@keyframes loadOut {
  to {
    clip-path: inset(0 0 100% 0);
  }
}
@keyframes spinOne {
  to {
    transform: rotate(360deg);
  }
}
.hero {
  position: relative;
  /* マーキーも含めて1画面（ウィンドウの高さ）に収める */
  height: 100vh;
  min-height: 560px;
  padding: 110px 32px 0;
  display: flex;
  flex-direction: column;
  /* 上：SCROLL / 下方：eyebrow+タイトル / 最下部：マーキー帯 */
  justify-content: flex-start;
  z-index: 5;
  color: #ecf1f7;
}
/* HERO背景スライドショー（top_IMG_1〜3 を4秒ごとにクロスフェード） */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* 少し明るく（明度アップ＋グレースケール控えめ） */
  filter: grayscale(0.15) contrast(1.02) brightness(1.18);
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero-bg-slide.is-active {
  opacity: 1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.62) 0%,
      rgba(10, 10, 10, 0.34) 40%,
      rgba(10, 10, 10, 0.5) 72%,
      rgba(10, 10, 10, 0.86) 100%
    ),
    radial-gradient(ellipse at 70% 40%, rgba(0, 114, 220, 0.1), transparent 60%);
}
/* 画像のノイズを抑える黒の細かいグリッド（画像・暗幕の前、テキストの後ろ） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
  background-size: 4px 4px;
}
/* HERO: 背景レイヤーのみ画面幅100%、コンテンツは wrap 内（余白内）に保つ */
.hero-bg,
.hero::after,
.hero::before {
  left: calc(50% - 50vw);
  right: auto;
  width: 100vw;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.22em;
  opacity: 0.55;
  text-transform: uppercase;
}
.hero-meta span:nth-child(2) {
  text-align: right;
}

.hero-stage {
  position: relative;
  padding: 30px 0;
  /* 上の余白を最大化してタイトルをマーキーの直上（下方）へ寄せる */
  margin-top: auto;
  margin-bottom: clamp(28px, 6vh, 72px);
}

.hero-eyebrow {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}
.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: #fff;
}

.hero-title {
  font-family: var(--en);
  font-weight: 900;
  font-size: clamp(64px, 16vw, 260px);
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-align: right;
}
.hero-title .row {
  display: block;
  overflow: hidden;
  position: relative;
}
.hero-title .row span {
  display: inline-block;
  transform: translateY(110%);
  animation: heroRise 1.15s var(--ease) forwards;
  animation-delay: 1.6s;
}
.hero-title .row:nth-child(2) span {
  animation-delay: 1.72s;
}
.hero-title .row:nth-child(3) span {
  animation-delay: 1.84s;
}
.hero-title .accent {
  color: var(--accent);
  font-style: italic;
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
}
.hero-title .small-jp {
  font-family: var(--jp);
  font-weight: 900;
  font-size: 0.45em;
  letter-spacing: 0.02em;
  vertical-align: 0.18em;
}

@keyframes heroRise {
  from {
    transform: translateY(110%);
  }
  to {
    transform: translateY(0);
  }
}
.hero-title--jp {
  font-family: var(--jp);
  font-weight: 900;
  font-size: clamp(34px, 7.7vw, 118px);
  line-height: 1.16;
  letter-spacing: 0;
}
.hero-title--jp .row-jp {
  font-size: clamp(34px, 7.7vw, 118px);
}
.hero-title--jp .accent {
  font-family: var(--jp);
  font-style: normal;
  font-weight: 900;
  color: var(--accent);
}
.hero-title--jp .accent--jp {
  font-family: "Noto Sans JP", sans-serif;
}
.hero-title--jp .num-en {
  font-family: var(--en);
  font-weight: 900;
  font-style: normal;
  font-size: 1.18em;
  letter-spacing: -0.02em;
  margin-right: 0.06em;
  vertical-align: -0.04em;
}
.hero-title--jp .num-en--lg {
  font-size: clamp(41px, 9.1vw, 140px);
  /* 大きな「30」が行の高さを広げないよう行ボックスを抑え、行間を均一化 */
  line-height: 0.9;
}
.hero-title--jp .small-en {
  font-family: var(--en);
  font-weight: 900;
  font-size: 0.34em;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  vertical-align: 0.42em;
  margin: 0 0.12em;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding-top: 48px;
}

.hero-lede {
  font-family: var(--jp-serif);
  font-weight: 700;
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.9;
  max-width: 380px;
  opacity: 0.8;
}

.hero-cta {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 18px 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: 0.4s var(--ease);
}
.hero-cta:hover {
  background: #ecf1f7;
  color: #0a0a0a;
}
.hero-cta .arr {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.hero-cta:hover .arr {
  transform: translateX(6px);
}

.hero-coords {
  text-align: right;
  font-family: var(--en);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.12em;
  opacity: 0.55;
}

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
  background: transparent; /* HEROの背景画像が透ける */
  position: relative;
  z-index: 5;
}
/* HERO内に配置：背景画像の上に全幅で重ね、下端に密着 */
.hero .marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  flex: none; /* 高さを縮めない（下端の帯として固定） */
  border-top: 0; /* 写真の上に出る白い罫線を消す */
}

.marquee-track {
  display: flex;
  gap: 56px;
  animation: scroll 38s linear infinite;
  width: max-content;
  font-family: var(--en);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-track span::after {
  content: "●";
  color: var(--accent);
  font-size: 0.5em;
}
.marquee-track span.jp {
  font-size: 0.81em;
  font-weight: 900;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}
section {
  position: relative;
  z-index: 5;
}

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  padding: 120px 32px 50px;
  align-items: start;
}

.sec-num {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: 0.3em;
  opacity: 0.55;
}

.sec-title {
  font-family: var(--en);
  font-weight: 900;
  font-size: clamp(40px, 8vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.sec-title .jp {
  display: block;
  font-family: var(--jp);
  font-weight: 900;
  font-size: 0.22em;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  margin-top: 18px;
}

/* 見出し下の和文サブタイトル（h2 から独立した要素。上の大コピーと重ならないよう余白を確保） */
.sec-subtitle {
  grid-column: 2;
  font-family: var(--jp);
  font-weight: 900;
  font-size: clamp(18px, 2.4vw, 38px);
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin-top: -0.3em;
}
.sec-title .corp {
  font-family: var(--jp);
  font-weight: 900;
  letter-spacing: 0.01em;
}
.sec-title .brand {
  font-family: var(--en);
  font-weight: 900;
  font-size: 1.22em;
  letter-spacing: -0.02em;
  margin-left: 0.06em;
  vertical-align: -0.02em;
}

.tech-em {
  font-family: "Noto Serif JP", serif;
  font-style: italic;
  color: var(--accent);
}

.sec-title--about {
  max-width: 100%;
}
.sec-title--about .corp {
  font-size: clamp(40px, 7.5vw, 87px);
}
.sec-title--about .brand {
  font-size: clamp(48px, 9vw, 106px);
  line-height: 1;
  letter-spacing: 2px;
}
.sec-title--about .jp {
  color: var(--accent);
}

/* About 全幅パララックスバナー（kabe_02）。窓は固定高さ、画像をスクロールで縦移動 */
.about-banner {
  position: relative;
  width: 100%;
  height: clamp(110px, 12vw, 200px); /* 旧バナー(約15vw)の0.8倍に縮小 */
  overflow: hidden;
}
.about-banner img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto; /* 自然な縦横比＝画像全体。窓より高いぶんをスクロールでパン */
  will-change: transform;
}

.statement {
  padding: 60px 32px 160px;
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 80px;
  align-items: start;
}

.statement-body p {
  font-family: var(--jp-serif);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 36px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-wrap: pretty;
}
.statement-body p .hl {
  color: var(--accent);
}
.statement-body p + p {
  margin-top: 22px;
}
.statement-logo {
  display: block;
  width: min(225px, 44%);
  height: auto;
  margin-bottom: clamp(28px, 3.5vw, 48px);
  opacity: 0.9;
}

.statement-side {
  font-family: var(--jp);
  font-size: 13px;
  line-height: 2;
  opacity: 0.7;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.statement-side h4 {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.3em;
  margin-bottom: 14px;
  color: var(--accent);
}

/* 会社概要（ステートメント右カラム） */
/* 左カラム：会社概要 */
.company-profile {
  padding-right: 8px;
}
.company-profile h4 {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

/* 右カラム：代表者挨拶 */
.president {
  border-left: 1px solid var(--line);
  padding-left: clamp(32px, 4vw, 56px);
}
.president h4 {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.president-lead {
  font-family: var(--jp-serif);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.president-body p {
  font-family: var(--jp);
  font-size: 14px;
  line-height: 1.95;
  /* opacity: 0.82; */
}
.president-body p + p {
  margin-top: 16px;
}
.president-sign {
  margin-top: 30px;
  font-family: var(--jp);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--fg);
}
.president-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--fg);
}
.profile {
  display: flex;
  flex-direction: column;
}
.profile-row {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.profile-row:last-child {
  border-bottom: 1px solid var(--line);
}
.profile dt {
  font-family: var(--jp);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}
.profile dd {
  font-family: var(--jp);
  font-weight: 500;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
}
.profile-note {
  color: var(--fg-dim);
  font-size: 0.82em;
  margin-left: 0.2em;
}

.about-cycle {
  position: absolute;
  top: 18px;
  right: 5%;
  width: min(832px, 65vw);
  aspect-ratio: 1;
  z-index: -1;
  pointer-events: none;
}
.about-cycle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.3;
}
.about-cycle .cycle-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--jp);
  font-weight: 900;
  font-size: clamp(30px, 3.6vw, 60px);
  letter-spacing: 0.06em;
  line-height: 1;
}

.reveal-line {
  display: block;
  overflow: hidden;
}
.reveal-line > * {
  display: inline-block;
  transform: translateY(101%);
  transition: transform 1.1s var(--ease);
}

.in-view .reveal-line > * {
  transform: translateY(0);
}
.in-view .reveal-line:nth-child(2) > * {
  transition-delay: 0.08s;
}
.in-view .reveal-line:nth-child(3) > * {
  transition-delay: 0.16s;
}
.in-view .reveal-line:nth-child(4) > * {
  transition-delay: 0.24s;
}

.tech {
  padding: 60px 32px 160px;
  background-color: var(--fg);
  /* 黒背景セクションと同じ120pxグリッドを薄いグレーで重ねる。
     視点固定にしてグローバルの .grid-bg と格子位置を揃える */
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.06) 1px, transparent 1px);
  background-size: 120px 120px;
  background-attachment: fixed;
  color: var(--bg);
}
.tech .sec-num,
.tech .sec-title .jp {
  color: #555;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  margin-top: 30px;
  align-items: center;
}
/* 左右反転（DOM順: テキスト→画像）。画像側を広い 1.2fr のまま右へ */
.tech-grid--reverse {
  grid-template-columns: 1fr 1.2fr;
}
/* 連続して積むときの行間 */
.tech-grid + .tech-grid {
  margin-top: clamp(60px, 8vw, 120px);
}

.tech-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Tech セクション下部のブログ誘導ボタン（白基調に合わせたダーク枠→ホバーでブルー反転） */
.tech-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(56px, 7vw, 100px);
}
.tech-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--jp);
  font-weight: 700;
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: 0.06em;
  color: var(--bg);
  border: 1px solid var(--bg);
  padding: 18px 32px;
  transition: 0.4s var(--ease);
}
.tech-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--fg);
}
.tech-cta .arr {
  font-family: var(--en);
  transition: transform 0.4s var(--ease);
}
.tech-cta:hover .arr {
  transform: translate(3px, -3px);
}

.tech-body {
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.95;
}
.tech-body h3 {
  font-family: var(--jp);
  font-weight: 900;
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.tech-body p {
  margin-bottom: 20px;
}
/* 本文中の強調（ブルー＋太字）。任意の箇所で使える汎用クラス */
.accent-bold {
  color: var(--accent);
  font-weight: 700;
}

.tech-list {
  margin-top: 48px;
  border-top: 1px solid #222;
  list-style: none;
}
.tech-list .row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid #222;
  align-items: baseline;
  cursor: pointer;
  transition: 0.4s var(--ease);
}
.tech-list .row:hover {
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.04), transparent);
}
.tech-list .n {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: 0.2em;
}
.tech-list .t {
  font-family: var(--jp);
  font-weight: 900;
  font-size: clamp(20px, 2vw, 28px);
}
.tech-list .t em {
  font-family: var(--en);
  font-weight: 900;
  font-style: normal;
  color: var(--accent);
  margin-right: 14px;
  font-size: 0.75em;
  letter-spacing: 0.1em;
}
.tech-list .a {
  font-family: var(--en);
  font-size: 18px;
}

.service {
  padding: 60px 0 160px;
}
.service .sec-head {
  padding-left: 32px;
  padding-right: 32px;
}

/* キャッチコピー */
.service-catch {
  padding: 20px 32px 0;
  font-family: var(--jp-serif);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 44px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-wrap: pretty;
}

/* サービス図 */
.service-figure {
  padding: 0 32px;
  margin: clamp(40px, 5vw, 76px) 0;
}
.service-figure img {
  display: block;
  width: 80%;
  max-width: 1600px;
  height: auto;
  margin-inline: auto;
}

/* サービス一覧 */
.service-list {
  padding: 0 32px;
  border-top: 1px solid var(--line);
}
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(36px, 4.5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: 0.4s var(--ease);
}
.service-item:hover {
  background: linear-gradient(
    90deg,
    rgba(236, 241, 247, 0.03),
    transparent 70%
  );
}
.service-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-num {
  font-family: var(--en);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.service-en {
  font-family: var(--en);
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.service-jp {
  font-family: var(--jp);
  font-weight: 900;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.4;
  margin-top: 4px;
}
.service-note {
  font-family: var(--jp);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}
.service-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}
.service-points li {
  position: relative;
  padding-left: 26px;
  font-family: var(--jp);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
}
.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

/* その他のサービス（小セクション・カード） */
.service-others {
  padding: clamp(64px, 7vw, 110px) 32px 0;
}
.others-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.others-en {
  font-family: var(--en);
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.others-jp {
  font-family: var(--jp);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
}
.others-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.others-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid var(--line);
  transition: 0.4s var(--ease);
}
.others-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.others-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
}
.others-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.others-title {
  font-family: var(--jp);
  font-weight: 900;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.4;
}
.others-note {
  font-family: var(--jp);
  font-size: 13px;
  line-height: 1.75;
  color: var(--fg-dim);
}

/* ===== TARGETS（実績のある検査対象物・白基調） ===== */
.targets {
  padding: 60px 32px 160px;
  /* TECH と同じ白基調＋薄いグリッド */
  background-color: var(--fg);
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.06) 1px, transparent 1px);
  background-size: 120px 120px;
  background-attachment: fixed;
  color: var(--bg);
  /* 明地用の罫線色 */
  --line: rgba(10, 10, 10, 0.14);
}
.targets .sec-num {
  color: #555;
}
.targets-grid {
  margin-top: clamp(30px, 4vw, 50px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
.target-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.target-thumb {
  position: relative;
  /* モデル画像のため縦を浅く（旧 4/3 の約半分の高さ） */
  aspect-ratio: 8/3;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(10, 10, 10, 0.05) 0 12px,
      transparent 12px 24px
    ),
    #e6eaf0;
}
.target-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.target-card:hover .target-thumb img {
  transform: scale(1.05);
}
.target-title {
  font-family: var(--jp);
  font-weight: 900;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.4;
  margin-top: 14px;
}
.target-text {
  font-family: var(--jp);
  font-size: 12.5px;
  line-height: 1.7;
  color: #555;
  margin-top: 6px;
}
/* ラベル（テキスト下に小さく：●可視光 ●サーマル） */
.target-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
}
.target-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--jp);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #555;
}
.target-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.dot--vis {
  background: var(--accent);
}
.dot--thermal {
  background: #7c3aed;
}

.numbers {
  padding: 120px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.num-block .k {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.28em;
  opacity: 0.55;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.num-block .v {
  font-family: var(--en);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 108px);
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.num-block .v sup {
  font-family: var(--jp);
  font-weight: 700;
  font-size: 0.22em;
  vertical-align: 0.8em;
  margin-left: 6px;
  opacity: 0.7;
  letter-spacing: 0;
}
.num-block .d {
  font-family: var(--jp);
  font-size: 13px;
  opacity: 0.6;
  margin-top: 12px;
}

.blog {
  padding: 60px 32px 140px;
}

/* 記事リスト下の「View all」 */
.blog-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}
.blog .more {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 4px;
  transition: 0.3s;
}
.blog .more:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Coming Soon（工事中プレースホルダー） */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  text-align: center;
  margin-top: clamp(30px, 4vw, 50px);
  padding: clamp(56px, 11vw, 130px) 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--en);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: csPulse 1.5s ease-in-out infinite;
}
@keyframes csPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(0.65);
  }
}
.cs-title {
  font-family: var(--en);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  opacity: 0.85;
}
.cs-note {
  font-family: var(--jp);
  font-weight: 700;
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 0.18em;
  color: var(--fg-dim);
}

.blog-list {
  list-style: none;
  margin-top: clamp(30px, 4vw, 50px);
  border-top: 1px solid var(--line);
}
.blog-empty {
  padding: 48px 0;
  font-family: var(--jp);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
}

.blog-item {
  display: grid;
  grid-template-columns: 120px 130px 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: 0.4s var(--ease);
}
.blog-item:hover {
  padding-left: 24px;
}
.blog-item .d {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: 0.18em;
  opacity: 0.6;
}
.blog-item .cat {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 10px;
  display: inline-block;
  justify-self: start;
}
.blog-item .t {
  font-family: var(--jp);
  font-weight: 700;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.45;
  transition: 0.3s;
}
.blog-item:hover .t {
  color: var(--accent);
}
.blog-item .arr {
  font-family: var(--en);
  font-size: 20px;
  opacity: 0.5;
  transition: 0.4s var(--ease);
}
.blog-item:hover .arr {
  opacity: 1;
  transform: translateX(8px);
  color: var(--accent);
}
.blog-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: 0.6s var(--ease);
}
.blog-item:hover::before {
  width: 100%;
}

/* LOG：タイトルのみ・リンクなし（ホバー演出を無効化） */
.blog-item--log {
  cursor: default;
}
.blog-item--log .cat {
  color: var(--fg-dim);
  border-color: var(--line);
}
.blog-item--log:hover {
  padding-left: 0;
}
.blog-item--log:hover .t {
  color: inherit;
}
.blog-item--log::before {
  display: none;
}

/* ===== CONTACT（白背景・SERVICEと同じ見出しテンプレート＋問い合わせフォーム） ===== */
.wrap > .contact {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* セクション自体は左右余白0・子要素が32pxを持つため repad は +0 */
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  background-color: var(--fg);
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.06) 1px, transparent 1px);
  background-size: 120px 120px;
  background-attachment: fixed;
}
.contact {
  padding-top: 60px;
  padding-bottom: 160px;
  color: var(--bg);
  --line: rgba(10, 10, 10, 0.14);
}
.contact .sec-num {
  color: #555;
}

/* 問い合わせフォーム */
.contact-form {
  padding: clamp(20px, 4vw, 44px) 32px 0;
  max-width: 940px;
  margin-inline: auto;
}
/* ハニーポット（スパム対策・非表示） */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-row {
  margin-bottom: 26px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.form-row label {
  display: block;
  font-family: var(--jp);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.req,
.opt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: 1px;
}
.req {
  color: var(--fg);
  background: var(--accent);
}
.opt {
  color: #555;
  border: 1px solid rgba(10, 10, 10, 0.2);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  font-family: var(--jp);
  font-size: 16px;
  color: var(--bg);
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.18);
  border-radius: 2px;
  padding: 14px 16px;
  transition: border-color 0.25s var(--ease);
}
.form-row textarea {
  resize: vertical;
  line-height: 1.7;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row input[type="file"] {
  font-family: var(--jp);
  font-size: 13px;
  color: #333;
}
.form-note {
  display: block;
  margin-top: 8px;
  font-family: var(--jp);
  font-size: 12px;
  line-height: 1.6;
  color: #666;
}
.form-recaptcha-note {
  font-family: var(--jp);
  font-size: 11px;
  line-height: 1.7;
  color: #777;
  margin: 4px 0 28px;
}
.form-recaptcha-note a {
  color: var(--accent);
  text-decoration: underline;
}
.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--bg);
  padding: 18px 40px;
  cursor: pointer;
  transition: 0.4s var(--ease);
}
.contact-submit:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.contact-submit .arr {
  transition: transform 0.4s var(--ease);
}
.contact-submit:hover .arr {
  transform: translateX(5px);
}
.contact-submit[disabled] {
  opacity: 0.5;
  cursor: default;
}
.form-status {
  margin-top: 22px;
  font-family: var(--jp);
  font-size: 14px;
  line-height: 1.7;
  min-height: 1.2em;
}
.form-status.is-error {
  color: #c0392b;
}
.form-status.is-success {
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--line);
  padding: 60px 32px 32px;
  font-family: var(--jp);
  position: relative;
  z-index: 5;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  align-items: start;
}

.foot-logo {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.foot-logo .mark-full {
  display: block;
  width: min(360px, 100%);
  aspect-ratio: 2149/548;
  background: var(--fg);
  -webkit-mask: url("../assets/kakku-full.svg") no-repeat left top/100% 100%;
  mask: url("../assets/kakku-full.svg") no-repeat left top/100% 100%;
}
.foot-logo .jp {
  font-family: var(--jp);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.22em;
  opacity: 0.6;
}

.foot-col h5 {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.3em;
  opacity: 0.5;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.foot-col a:hover {
  color: var(--accent);
}
.foot-col p {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.7;
}

.foot-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.22em;
  opacity: 0.6;
  text-transform: uppercase;
}

/*! css/style.css は scss/ からの自動生成物です。直接編集せず scss/ を編集してください。 */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
/* GSAP 制御時は CSS トランジションを無効化（GSAP が表示を司る） */
.gsap-on .reveal {
  transition: none;
}

@media (max-width: 900px) {
  /* === スマホ：左右マージンを小さく（全幅化＋ガター16pxに統一） === */
  .wrap {
    width: 100%;
  }
  nav ul {
    display: none;
  }
  header.nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* full-bleed セクション：背景は全幅のまま、コンテンツは16pxガター */
  .wrap > #about,
  .wrap > #service,
  .wrap > #journal,
  .wrap > .tech,
  .wrap > .targets,
  .wrap > .blog,
  .wrap > .contact,
  .wrap > footer {
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
  /* 内側要素の左右パディングは0に（ガターの二重インデントを防ぐ） */
  .sec-head,
  .statement,
  .service-catch,
  .service-list,
  .service-others,
  .service-figure,
  .contact-form {
    padding-left: 0;
    padding-right: 0;
  }
  .sec-head {
    padding-top: 72px;
    padding-bottom: 28px;
    /* 番号・タイトル・サブタイトルを縦積みに */
    grid-template-columns: 1fr;
    gap: 12px;
  }
  /* グリッド列指定を解除して通常フロー（縦積み）に */
  .sec-subtitle {
    grid-column: auto;
  }
  .service-figure img {
    width: 100%;
  }

  /* 1カラム化 */
  .statement,
  .tech-grid,
  .service-item,
  .others-grid,
  .blog-item,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .statement,
  .tech-grid {
    gap: 32px;
  }
  .service-item {
    gap: 18px;
  }

  /* TECHNOLOGY：スマホでは常に「画像 → 文章」の順（reverse でも画像を先頭へ） */
  .tech-visual {
    order: -1;
  }

  /* 会社概要 / メッセージ */
  .company-profile {
    padding-right: 0;
  }
  .president {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 32px;
  }

  /* Numbers */
  .numbers {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 64px 16px;
  }

  /* Targets（スマホは2列） */
  .targets-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
  }

  /* Blog */
  .blog-item {
    gap: 10px;
  }
  .blog-item .cat {
    order: -1;
  }
  .blog-item .arr {
    display: none;
  }

  /* Footer */
  .foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* About のサイクル図（存在する場合） */
  .about-cycle {
    position: static;
    width: min(380px, 78vw);
    margin: 24px auto 0;
    right: auto;
  }

  /* Hero */
  .hero {
    padding: 90px 16px 0;
  }
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-coords {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-title .row span {
    transform: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
