@charset "UTF-8";

/* ============================================================
   株式会社ユウ建築工房 — Design System
   白基調 × ネイビーのアクセント（建築的）

   色は「面」ごとにトークンを切り替える方式。
   既定は明るい面（白／オフホワイト）。
   ヒーロー・バナー・CTA・フッター・ドロワーなど濃い面には
   .on-navy を付けると、その中だけ配色が反転する。
   ============================================================ */

:root {
  /* --- 濃色（アクセントとして使う面） --- */
  --ink:        #0B1729;
  --navy-950:   #12233C;
  --navy-900:   #1A2F4D;
  --navy-800:   #24405F;

  /* --- ブランド --- */
  --brand:      #1F63C8;   /* ボタンなど、白地に置く塗り */
  --brand-dim:  #17529E;   /* 白地に置く小さな文字 */
  --sky:        #8CB6F0;   /* 濃色面に置くアクセント */

  /* --- 面と文字（既定＝明るい面） --- */
  --surface:    #FFFFFF;
  --surface-2:  #F4F7FA;
  --fg:         #0F1B2E;
  --fg-mute:    #5A6878;
  --fg-faint:   #8E9AA9;
  --line:       #E3E8EF;
  --accent:     var(--brand-dim);

  /* 写真にかぶせる暗幕の色 */
  --scrim-rgb:  10, 22, 38;

  /* --- type --- */
  --f-en: "Outfit", "Noto Sans JP", sans-serif;
  --f-jp: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --f-mc: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;

  /* --- layout --- */
  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --header-h: 84px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 濃い面。この中だけ配色が反転する */
.on-navy {
  --surface:   var(--navy-950);
  --surface-2: var(--navy-900);
  --fg:        rgba(255, 255, 255, .95);
  --fg-mute:   rgba(255, 255, 255, .70);
  --fg-faint:  rgba(255, 255, 255, .46);
  --line:      rgba(255, 255, 255, .18);
  --accent:    var(--sky);
  color: var(--fg);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--fg);
  font-family: var(--f-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

/* ------------------------------------------------------------
   utilities
   ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.wrap-wide {
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--gut);
}

.en {
  font-family: var(--f-en);
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   scroll reveal
   ------------------------------------------------------------ */
[data-rv] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--rv-delay, 0ms);
}
[data-rv].is-in { opacity: 1; transform: none; }

/* NOTE: clip-path は必ず「子要素」に当てる。
   監視対象そのものをクリップすると交差判定が 0 になり、永久に表示されない。 */
[data-rv="mask"] { opacity: 1; transform: none; }
[data-rv="mask"] > img,
[data-rv="mask"] > iframe {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease);
  transition-delay: var(--rv-delay, 0ms);
}
[data-rv="mask"].is-in > img,
[data-rv="mask"].is-in > iframe { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-rv],
  [data-rv="mask"] > img,
  [data-rv="mask"] > iframe { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ============================================================
   header
   写真の上では白抜き、スクロールで白背景＋濃色文字に反転する
   ============================================================ */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  /* .drawer より上。.hdr 自身が重ね合わせ文脈を作るので、
     中のバーガーだけを上げても drawer は越えられない */
  z-index: 120;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, .95);
  --hdr-mute: rgba(255, 255, 255, .68);
  --hdr-line: rgba(255, 255, 255, .2);
  border-bottom: 1px solid transparent;
  transition: background .45s var(--ease), height .45s var(--ease),
              color .45s var(--ease), border-color .45s var(--ease);
}

.hdr.is-stuck,
body.is-locked .hdr {
  height: 68px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  color: var(--fg);
  --hdr-mute: var(--fg-mute);
  --hdr-line: var(--line);
}
body.is-locked .hdr { height: var(--header-h); }

.hdr__inner {
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  width: 38px; height: 38px;
  object-fit: contain;
  /* 写真の上では紺のロゴが沈むので明るく起こす。白背景では原色のまま */
  filter: brightness(1.85) saturate(1.15);
  transition: filter .45s var(--ease);
}
.hdr.is-stuck .brand__mark,
body.is-locked .hdr .brand__mark { filter: none; }

.brand__txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand__ja { font-size: 15px; font-weight: 500; letter-spacing: .08em; white-space: nowrap; }
.brand__en {
  font-family: var(--f-en);
  font-size: 9px; font-weight: 300; letter-spacing: .3em;
  color: var(--hdr-mute);
  text-transform: uppercase;
  white-space: nowrap;
}

.gnav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.gnav a {
  position: relative;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .1em;
  padding-block: 6px;
  white-space: nowrap;
  transition: color .3s;
}
.gnav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.gnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr.is-stuck .gnav a:hover { color: var(--brand-dim); }

.hdr__cta { display: flex; align-items: center; gap: 14px; }

.tel-mini { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.tel-mini__num { font-family: var(--f-en); font-size: 19px; font-weight: 400; letter-spacing: .04em; white-space: nowrap; }
.tel-mini__lbl { font-size: 9.5px; letter-spacing: .14em; color: var(--hdr-mute); white-space: nowrap; }

/* button */
.btn {
  --bg: var(--brand);
  --fg-btn: #fff;
  --hover-bg: var(--navy-950);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 30px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--fg-btn);
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  text-shadow: none;
  transition: color .4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--hover-bg);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
  z-index: -1;
}
.btn:hover { color: #fff; }
.btn:hover::before { transform: translateY(0); }
.btn__arrow { width: 18px; height: 1px; background: currentColor; position: relative; flex: none; }
.btn__arrow::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn.-sm { padding: 12px 22px; font-size: 12.5px; }

/* 白抜きの枠線ボタン（写真の上で使う） */
.btn.-ghost {
  --bg: transparent;
  --fg-btn: #fff;
  --hover-bg: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.btn.-ghost:hover { color: var(--navy-950); }

/* 明るい面に置く枠線ボタン */
.btn.-outline {
  --bg: transparent;
  --fg-btn: var(--fg);
  --hover-bg: var(--navy-950);
  box-shadow: inset 0 0 0 1px var(--line);
}
.on-navy .btn.-outline { --fg-btn: #fff; --hover-bg: #fff; }
.on-navy .btn.-outline:hover { color: var(--navy-950); }

.hdr__cta .btn { display: none; }

/* burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  flex: none;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 22px; height: 1px;
  background: currentColor;
  transition: transform .45s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(36deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-36deg); }

/* drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--surface);
  padding: calc(var(--header-h) + 18px) var(--gut) 36px;
  /* 中央寄せ flex は溢れたとき上が切れて触れなくなるので block で流す */
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: .08em;
}
.drawer__nav .num { font-family: var(--f-en); font-size: 10px; letter-spacing: .2em; color: var(--accent); }
.drawer__foot { margin-top: 26px; display: grid; gap: 12px; }
.drawer__tel {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.drawer__tel .n { font-family: var(--f-en); font-size: 27px; letter-spacing: .04em; }
.drawer__tel .l { font-size: 10.5px; letter-spacing: .16em; color: var(--fg-mute); }

/* ============================================================
   hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-950);
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 58%;
  animation: heroZoom 16s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--scrim-rgb),.62) 0%, rgba(var(--scrim-rgb),.14) 38%, rgba(var(--scrim-rgb),.42) 74%, rgba(var(--scrim-rgb),.82) 100%),
    linear-gradient(90deg, rgba(var(--scrim-rgb),.6) 0%, rgba(var(--scrim-rgb),.04) 62%);
}

/* 建築的な薄い縦罫 */
.grid-lines {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.grid-lines span { border-left: 1px solid rgba(255,255,255,.1); }
.grid-lines span:last-child { border-right: 1px solid rgba(255,255,255,.1); }

.hero__inner {
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding: 0 var(--gut) clamp(64px, 11vh, 128px);
  /* 幕を薄くして写真を明るく見せているぶん、文字側で可読性を担保する */
  text-shadow: 0 1px 28px rgba(var(--scrim-rgb), .8), 0 1px 4px rgba(var(--scrim-rgb), .5);
}

.hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-en);
  font-size: 11px; font-weight: 300; letter-spacing: .32em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero__eyebrow::before { content: ""; width: 44px; height: 1px; background: currentColor; }

.hero__copy {
  font-family: var(--f-mc);
  font-weight: 400;
  font-size: clamp(38px, 7.4vw, 104px);
  line-height: 1.28;
  letter-spacing: .04em;
  color: #fff;
  margin-bottom: 30px;
}
.hero__copy .l { display: block; overflow: hidden; }
.hero__copy .l > i {
  display: block;
  font-style: normal;
  transform: translateY(105%);
  animation: heroLine 1.25s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes heroLine { to { transform: none; } }
.hero__copy em { font-style: normal; color: #A8CBF7; }

.hero__lead {
  max-width: 34em;
  font-size: clamp(13.5px, 1.15vw, 15.5px);
  line-height: 2.15;
  color: rgba(255, 255, 255, .88);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 1s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.hero__foot {
  margin-top: clamp(36px, 6vh, 60px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 1.25s forwards;
}

.hero__scroll {
  position: absolute;
  right: var(--gut);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--f-en);
  font-size: 9.5px;
  letter-spacing: .26em;
  color: rgba(255, 255, 255, .6);
  writing-mode: vertical-rl;
  text-transform: uppercase;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 78px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.35); opacity: .4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* ============================================================
   section frame
   ============================================================ */
.sec {
  position: relative;
  padding-block: clamp(88px, 13vw, 176px);
  background: var(--surface);
  color: var(--fg);
}
.sec.-dim  { background: var(--surface-2); }
.sec.-slim { padding-block: clamp(44px, 6vw, 76px); }

.sec-head { margin-bottom: clamp(44px, 6vw, 76px); }
.sec-head__no {
  display: flex; align-items: center; gap: 13px;
  font-family: var(--f-en);
  font-size: 11px; font-weight: 300; letter-spacing: .3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sec-head__no::before { content: ""; width: 34px; height: 1px; background: currentColor; }

.sec-head__ttl {
  font-family: var(--f-mc);
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: .05em;
}
.sec-head__lead {
  margin-top: 22px;
  max-width: 40em;
  font-size: 14.5px;
  line-height: 2.15;
  color: var(--fg-mute);
}

/* ============================================================
   philosophy
   ============================================================ */
.philo { overflow: hidden; }
.philo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.philo__fig { position: relative; }
/* z-index は 0/1 で重ねる。-1 にすると .sec の背景の裏に回って枠線が消える */
.philo__fig img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.philo__fig::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--line);
  z-index: 0;
}
/* 色味が浮く写真をパレットに寄せる。実写真に替えたら外してよい */
.philo__fig.-cool img { filter: grayscale(.55) saturate(.72) contrast(1.03); }
/* 人物写真は縦長に寄せて、顔が中心に来るよう上寄せで抜く */
.philo__fig.-portrait img { aspect-ratio: 4 / 5; object-position: center 16%; }

.philo__ttl {
  font-family: var(--f-mc);
  font-size: clamp(23px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .05em;
  margin-bottom: 28px;
}
.philo__body p { font-size: 14.5px; line-height: 2.3; color: var(--fg-mute); }
.philo__body p + p { margin-top: 1.6em; }

.philo__stats {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.philo__stats div {
  padding: 22px 4px 0;
  border-right: 1px solid var(--line);
}
.philo__stats div:last-child { border-right: 0; }
.philo__stats dt { font-size: 10.5px; letter-spacing: .14em; color: var(--fg-faint); margin-bottom: 4px; }
.philo__stats dd {
  font-family: var(--f-en);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 300;
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--brand-dim);
}
.philo__stats dd small { font-size: .42em; letter-spacing: .1em; margin-left: 4px; color: var(--fg-mute); }

/* ============================================================
   services
   ============================================================ */
.svc { display: grid; gap: 1px; background: var(--line); }
.svc__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  overflow: hidden;
}

.svc__media { position: relative; overflow: hidden; }
.svc__media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease), filter 1.2s var(--ease);
}
.svc__item:hover .svc__media img { transform: scale(1.08); }

.svc__media.-cool img { filter: grayscale(.5) saturate(.75) contrast(1.03); }
.svc__item:hover .svc__media.-cool img { filter: grayscale(.2) saturate(.9); }

.svc__body {
  padding: clamp(30px, 4.2vw, 62px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.svc__no {
  font-family: var(--f-en);
  font-size: 11px; font-weight: 300; letter-spacing: .26em;
  color: var(--accent);
  margin-bottom: 16px;
}
.svc__ttl {
  font-family: var(--f-mc);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400;
  letter-spacing: .07em;
  line-height: 1.5;
  margin-bottom: 8px;
}
.svc__en {
  font-family: var(--f-en);
  font-size: 10.5px; font-weight: 300; letter-spacing: .24em;
  color: var(--fg-faint);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.svc__txt { font-size: 14px; line-height: 2.2; color: var(--fg-mute); }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.svc__tags li {
  font-size: 11px;
  letter-spacing: .08em;
  padding: 5px 12px;
  border: 1px solid var(--line);
  color: var(--fg-mute);
}

/* ============================================================
   works （施工事例）
   ============================================================ */
.works {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 2.6vw, 38px);
}

.work { display: block; }

.work__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.work__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.3s var(--ease), filter 1s var(--ease);
}
.work:hover .work__media img { transform: scale(1.08); }
.work__media.-cool img { filter: grayscale(.62) saturate(.7) contrast(1.03); }
.work:hover .work__media.-cool img { filter: grayscale(.28) saturate(.88); }

.work__cat {
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
  font-size: 10.5px;
  letter-spacing: .14em;
  padding: 7px 15px;
  background: rgba(255, 255, 255, .94);
  color: var(--brand-dim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.work__body {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  position: relative;
}
.work__body::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.work:hover .work__body::before { transform: scaleX(1); }

.work__ttl {
  font-family: var(--f-mc);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.6;
  margin-bottom: 8px;
}
.work__txt { font-size: 13px; line-height: 2.05; color: var(--fg-mute); }

.works-note {
  margin-top: clamp(32px, 4vw, 52px);
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px;
  line-height: 2;
  color: var(--fg-mute);
  text-align: center;
}

/* ============================================================
   message （代表メッセージ）
   ============================================================ */
.msg__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4.5vw, 68px);
  align-items: start;
}
.msg__grid > * { min-width: 0; }

.msg__quote {
  font-family: var(--f-mc);
  font-size: clamp(23px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: .04em;
}
.msg__quote em { font-style: normal; color: var(--brand-dim); }

.msg__body p { font-size: 14.5px; line-height: 2.3; color: var(--fg-mute); }
.msg__body p + p { margin-top: 1.6em; }

.msg__main .msg__quote { margin-bottom: clamp(24px, 2.6vw, 40px); }

.msg__sign {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.msg__role { font-size: 11.5px; letter-spacing: .16em; color: var(--fg-mute); }
.msg__name { font-family: var(--f-mc); font-size: 20px; letter-spacing: .16em; }

/* 代表の顔写真 */
.msg__portrait { position: relative; }
.msg__portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
}
.msg__portrait figcaption {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--fg-mute);
}

/* ============================================================
   trust （許可・資格の明示）
   ============================================================ */
.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.trust > div {
  background: var(--surface);
  padding: 22px 20px;
}
.trust dt {
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 7px;
}
.trust dd { font-size: 13.5px; line-height: 1.75; letter-spacing: .02em; }
.trust dd small { display: block; font-size: 11.5px; color: var(--fg-mute); margin-top: 3px; }

/* ============================================================
   reasons
   ============================================================ */
.reasons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.reason {
  position: relative;
  background: var(--surface);
  padding: clamp(32px, 3.6vw, 52px) clamp(24px, 2.6vw, 40px);
  overflow: hidden;
  transition: background .6s var(--ease);
}
.reason::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.reason:hover::before { transform: scaleX(1); }

.reason__no {
  font-family: var(--f-en);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 200;
  line-height: 1;
  color: var(--line);
  margin-bottom: 22px;
  transition: color .6s var(--ease);
}
.reason:hover .reason__no { color: var(--brand); }
.reason__ttl {
  font-family: var(--f-mc);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.reason__txt { font-size: 13.5px; line-height: 2.1; color: var(--fg-mute); }

/* ============================================================
   band （写真の上の相談バナー）
   ============================================================ */
.band {
  position: relative;
  padding-block: clamp(92px, 14vw, 190px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: var(--navy-950);
}
.band__media { position: absolute; inset: -12% 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(var(--scrim-rgb),.76), rgba(var(--scrim-rgb),.66));
}
.band .wrap { text-shadow: 0 1px 24px rgba(var(--scrim-rgb), .7); }
.band__ttl {
  font-family: var(--f-mc);
  font-size: clamp(24px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .06em;
}
.band__txt {
  margin-top: 22px;
  font-size: 14px;
  line-height: 2.2;
  color: var(--fg-mute);
}

/* ============================================================
   voice
   ============================================================ */
.voices {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2vw, 28px);
}
.voice {
  position: relative;
  padding: clamp(28px, 3vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .7s var(--ease), border-color .5s, box-shadow .5s;
}
.voice:hover {
  transform: translateY(-6px);
  border-color: #C6D8F0;
  box-shadow: 0 18px 40px -24px rgba(15, 27, 46, .3);
}
.voice__mark {
  font-family: var(--f-en);
  font-size: 52px;
  font-weight: 300;
  line-height: .8;
  color: #D3E1F4;
  margin-bottom: 14px;
}
.voice__ttl {
  font-family: var(--f-mc);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .06em;
  margin-bottom: 16px;
  color: var(--brand-dim);
}
.voice__txt { font-size: 13.5px; line-height: 2.15; color: var(--fg-mute); }
.voice__who {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--fg-faint);
}

/* ============================================================
   news
   ============================================================ */
.news { border-top: 1px solid var(--line); }
.news li { border-bottom: 1px solid var(--line); }
.news a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 30px;
  padding: 24px 0;
  transition: opacity .4s, padding .5s var(--ease);
}
.news a:hover { opacity: .62; padding-inline: 8px; }
.news__date { font-family: var(--f-en); font-size: 12px; letter-spacing: .12em; color: var(--fg-faint); }
.news__cat {
  display: inline-block;
  font-size: 10.5px; letter-spacing: .12em;
  padding: 3px 12px;
  border: 1px solid currentColor;
  color: var(--accent);
}
.news__ttl { font-size: 14.5px; letter-spacing: .04em; }

/* ============================================================
   contact cta
   ============================================================ */
.cta { position: relative; overflow: hidden; background: var(--navy-950); }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, #1B4E96 0%, var(--navy-900) 72%);
}
.cta > * { position: relative; }
.cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}
.cta__grid > * { min-width: 0; }
.cta__ttl {
  font-family: var(--f-mc);
  font-size: clamp(26px, 3.8vw, 46px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .06em;
}
.cta__lead { margin-top: 20px; font-size: 14px; line-height: 2.2; color: var(--fg-mute); }

.cta__acts { display: grid; gap: 14px; }
.cta__tel {
  display: block;
  padding: 26px 30px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.26);
  text-align: center;
  transition: background .5s var(--ease);
}
.cta__tel:hover { background: rgba(255,255,255,.14); }
.cta__tel .l,
.cta__tel .n,
.cta__tel .h { display: block; }
.cta__tel .l { font-size: 11px; letter-spacing: .18em; color: rgba(255,255,255,.68); }
.cta__tel .n {
  font-family: var(--f-en);
  font-size: clamp(26px, 2.9vw, 38px);
  font-weight: 300;
  letter-spacing: .02em;
  line-height: 1.35;
  white-space: nowrap;
}
.cta__tel .h { font-size: 11.5px; letter-spacing: .1em; color: rgba(255,255,255,.68); }
.cta__acts .btn {
  --bg: #fff;
  --fg-btn: var(--navy-950);
  --hover-bg: var(--navy-950);
  padding-block: 22px;
  white-space: normal;
  text-align: center;
}
.cta__acts .btn:hover { color: #fff; }

/* ============================================================
   footer
   ============================================================ */
.ftr { background: var(--ink); padding-block: clamp(56px, 7vw, 88px) 0; }
.ftr__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: clamp(44px, 6vw, 68px);
  border-bottom: 1px solid var(--line);
}
.ftr__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.ftr__brand img { width: 46px; filter: brightness(1.85) saturate(1.15); }
.ftr__name { font-size: 17px; font-weight: 500; letter-spacing: .08em; }
.ftr__en { font-family: var(--f-en); font-size: 9px; letter-spacing: .3em; color: var(--fg-mute); text-transform: uppercase; }
.ftr__addr { font-size: 13px; line-height: 2.1; color: var(--fg-mute); font-style: normal; }
.ftr__addr a:hover { color: var(--sky); }

.ftr__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.ftr__nav a {
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--fg-mute);
  transition: color .35s, padding-left .4s var(--ease);
}
.ftr__nav a:hover { color: var(--fg); padding-left: 6px; }

.ftr__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  padding-block: 24px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--fg-faint);
}
.ftr__bottom .en { font-size: 10px; }

/* ============================================================
   fixed mobile cta
   ============================================================ */
.mcta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  transform: translateY(100%);
  transition: transform .6s var(--ease);
}
.mcta.is-show { transform: none; }
.mcta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
}
.mcta__tel { background: var(--navy-900); color: #fff; }
.mcta__form { background: var(--brand); color: #fff; }

/* ============================================================
   page header (lower pages)
   ============================================================ */
.phead {
  position: relative;
  min-height: 46svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-950);
}
.phead__media { position: absolute; inset: 0; z-index: -2; }
.phead__media img { width: 100%; height: 100%; object-fit: cover; }
.phead::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  /* 見出しが乗る下半分だけ強めに落として、写真の上半分は明るいまま残す */
  background: linear-gradient(180deg,
    rgba(var(--scrim-rgb),.4) 0%,
    rgba(var(--scrim-rgb),.36) 32%,
    rgba(var(--scrim-rgb),.78) 78%,
    rgba(var(--scrim-rgb),.9) 100%);
}
.phead .wrap { text-shadow: 0 1px 24px rgba(var(--scrim-rgb), .8); }
.phead__en {
  font-family: var(--f-en);
  font-size: clamp(38px, 7vw, 82px);
  font-weight: 200;
  letter-spacing: .06em;
  line-height: 1.05;
  text-transform: uppercase;
}
.phead__ja {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: .22em;
  color: #A8CBF7;
}

.crumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 11px; letter-spacing: .08em;
  color: rgba(255, 255, 255, .66);
  margin-bottom: 22px;
}
.crumbs a:hover { color: #fff; }
.crumbs span::before { content: "/"; margin-right: 8px; }

/* ============================================================
   info table
   ============================================================ */
.tbl { width: 100%; border-top: 1px solid var(--line); }
.tbl > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 40px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.tbl dt {
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 400;
}
.tbl dd { font-size: 14.5px; line-height: 2; }
.tbl dd small { display: block; font-size: 12px; color: var(--fg-mute); margin-top: 2px; }

/* ============================================================
   map
   ============================================================ */
.map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(1.04);
  transition: filter .6s var(--ease);
}
.map:hover { filter: grayscale(.2) contrast(1); }

/* ============================================================
   form
   ============================================================ */
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 10px; }
.field > label,
.field__label {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .12em;
}
.field fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }

.req {
  font-size: 10px; letter-spacing: .1em;
  padding: 2px 8px;
  background: var(--brand);
  color: #fff;
}
.opt {
  font-size: 10px; letter-spacing: .1em;
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: var(--fg-mute);
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color .35s, box-shadow .35s;
  appearance: none;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.9; }
.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 99, 200, .14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-mute) 50%), linear-gradient(135deg, var(--fg-mute) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.radios label:hover { border-color: var(--brand); }
.radios label:has(input:checked) { border-color: var(--brand); background: #EDF3FC; }
.radios input {
  width: 15px; height: 15px;
  margin: 0;
  flex: none;
  accent-color: var(--brand);
}
.radios input:checked + span { color: var(--brand-dim); }

.form__note {
  font-size: 12.5px;
  line-height: 2;
  color: var(--fg-mute);
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.form__submit { display: flex; justify-content: center; }
.form__submit .btn { min-width: 300px; padding-block: 21px; }

.form-alt {
  margin-top: 20px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.form-alt .l { font-size: 12px; letter-spacing: .14em; color: var(--fg-mute); }
.form-alt .n { font-family: var(--f-en); font-size: 34px; font-weight: 300; letter-spacing: .03em; color: var(--brand-dim); }

/* ============================================================
   flow
   ============================================================ */
.flow { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.flow li { background: var(--surface); padding: 26px 24px; }
.flow .n { font-family: var(--f-en); font-size: 11px; letter-spacing: .24em; color: var(--accent); margin-bottom: 10px; }
.flow .t { font-family: var(--f-mc); font-size: 17px; letter-spacing: .05em; margin-bottom: 8px; }
.flow .d { font-size: 12.5px; line-height: 2; color: var(--fg-mute); }

/* ============================================================
   entry — WordPress のエディタ本文（お知らせ・施工事例・固定ページ）
   ============================================================ */
.entry > * + * { margin-top: 1.6em; }
.entry p { font-size: 14.5px; line-height: 2.3; color: var(--fg-mute); }
.entry h2,
.entry h3,
.entry h4 {
  font-family: var(--f-mc);
  font-weight: 400;
  letter-spacing: .05em;
  line-height: 1.6;
  color: var(--fg);
  margin-top: 2.2em;
}
.entry h2 { font-size: clamp(21px, 2.2vw, 27px); padding-bottom: .5em; border-bottom: 1px solid var(--line); }
.entry h3 { font-size: clamp(18px, 1.8vw, 21px); }
.entry h4 { font-size: 16px; }
.entry a { color: var(--brand-dim); border-bottom: 1px solid currentColor; }
.entry a:hover { opacity: .7; }
.entry ul,
.entry ol { padding-left: 1.4em; color: var(--fg-mute); font-size: 14.5px; line-height: 2.2; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li + li { margin-top: .4em; }
.entry img { width: 100%; height: auto; }
.entry figure { margin-block: 2em; }
.entry figcaption { margin-top: 10px; font-size: 12px; letter-spacing: .08em; color: var(--fg-faint); }
.entry blockquote {
  padding: 20px 24px;
  background: var(--surface-2);
  border-left: 2px solid var(--brand);
}
.entry blockquote p { margin: 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry th,
.entry td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.entry th { background: var(--surface-2); font-weight: 500; }
.entry hr { height: 1px; border: 0; background: var(--line); margin-block: 2.4em; }

/* ============================================================
   pagination（WordPress）
   ============================================================ */
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 12px;
  font-family: var(--f-en);
  font-size: 13px;
  letter-spacing: .08em;
  border: 1px solid var(--line);
  transition: border-color .3s, background .3s, color .3s;
}
.navigation.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand-dim); }
.navigation.pagination .page-numbers.current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.navigation.pagination .screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   responsive
   ============================================================ */
@media (min-width: 700px) {
  .voices { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .news a { grid-template-columns: 110px 120px 1fr; align-items: center; }
  .tbl > div { grid-template-columns: 220px 1fr; }
  .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .cta__acts { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .philo__grid { grid-template-columns: 1.05fr 1fr; }
  .philo__grid.-rev .philo__fig { order: 2; }
  .svc__item { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .svc__item:nth-child(even) .svc__media { order: 2; }
  .reasons { grid-template-columns: repeat(4, 1fr); }
  .works { grid-template-columns: repeat(3, 1fr); }
  .msg__grid { grid-template-columns: 1fr 1.15fr; }
  .msg__grid.-with-portrait { grid-template-columns: .62fr 1fr; }
  .cta__grid { grid-template-columns: 1fr .82fr; }
  .cta__acts { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .hdr__cta .btn { display: inline-flex; }
}

/* brand + gnav + tel + button が折り返さずに並びきる幅から上でのみ横並び */
@media (max-width: 1139px) {
  .gnav { display: none; }
  .burger { display: block; }
  .tel-mini { display: none; }
}

@media (max-width: 699px) {
  :root { --header-h: 68px; }
  body { font-size: 15px; }
  .grid-lines { grid-template-columns: repeat(2, 1fr); }
  /* narrow screens put copy right over the brightest part of the photo */
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(var(--scrim-rgb),.7) 0%, rgba(var(--scrim-rgb),.24) 26%, rgba(var(--scrim-rgb),.6) 62%, rgba(var(--scrim-rgb),.86) 100%);
  }
  .mcta { display: flex; }
  .ftr { padding-bottom: 56px; }
  .hero__scroll { display: none; }
  .form__submit .btn { min-width: 100%; }
}
