/* 株式会社瀬尾工務店 — 共通スタイル（Top / 法人ページ） */

:root {
  --navy: #0f1b2e;
  --navy-2: #132339;
  --navy-deep: #0b1421;
  --ink: #1c2b45;
  --body: #4a566b;
  --muted: #8b96a8;
  --pale: #8ea3c4;
  --pale-2: #a9b7cb;
  --light: #c9d3e2;
  --bg: #f4f4f2;
  --line: #e4e6ea;
  --gold: #c8992f;
  --line-green: #06C755;
  --mincho: 'Shippori Mincho', serif;
  --pad-x: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  overflow-x: hidden;
}
a { color: var(--navy); text-decoration: none; }
a:hover { opacity: .78; }
img { max-width: none; }
.mincho { font-family: var(--mincho); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--navy); color: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark {
  width: 36px; height: 36px; flex: none;
  border: 1.5px solid rgba(255,255,255,.55);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mincho); font-size: 17px;
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-family: var(--mincho); font-size: clamp(15px, 2.4vw, 19px); letter-spacing: .08em; }
.brand-sub { font-size: 9.5px; letter-spacing: .2em; color: var(--pale); }
.brand-sub--gold { letter-spacing: .16em; color: var(--gold); }

.gnav {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 30px);
  font-size: 13px; font-weight: 500;
}
.gnav a { color: #fff; }
.gnav a.gnav-muted { color: var(--pale); }
.gnav a.gnav-cta { padding: 11px 20px; background: var(--gold); color: var(--navy); font-weight: 700; }
.header-cta-sp { display: none; padding: 12px 18px; background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 700; }

.menu-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 12px;
  background: transparent; border: 1px solid rgba(255,255,255,.32); cursor: pointer;
}
.menu-btn i { display: block; width: 20px; height: 1.5px; background: #fff; transition: transform .25s ease, opacity .2s ease; }
.menu-open .menu-btn i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.sp-menu {
  position: fixed; left: 0; right: 0; top: 0; z-index: 55;
  display: flex; flex-direction: column;
  padding: 96px 24px 32px; background: var(--navy);
  transition: transform .34s cubic-bezier(.4,0,.2,1), opacity .24s ease;
  transform: translateY(-102%); opacity: 0; pointer-events: none;
  visibility: hidden;
}
.sp-menu a { padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 17px; }
.sp-menu a.sp-menu-cta {
  margin-top: 20px; padding: 18px; border-bottom: 0;
  background: var(--gold); color: var(--navy); font-weight: 700; text-align: center; font-size: 16px;
}

/* ---------- common section parts ---------- */
.section { padding: clamp(56px, 8vw, 104px) var(--pad-x); }
.section--biz { padding: clamp(52px, 7vw, 100px) var(--pad-x); }
.bg-white { background: #fff; }
.bg-paper { background: var(--bg); }
.bg-navy { background: var(--navy); color: #fff; }
.wrap { max-width: 1240px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; }
.sec-head { display: flex; flex-direction: column; gap: 12px; }
.eyebrow { font-size: 11px; letter-spacing: .24em; color: var(--gold); }
.eyebrow--biz { letter-spacing: .22em; }
.h2 { margin: 0; font-family: var(--mincho); font-size: clamp(26px, 4vw, 40px); font-weight: 700; }
.h2--biz { font-size: clamp(24px, 3.6vw, 38px); }
.lead { margin: 0; max-width: 680px; font-size: 14.5px; line-height: 2; color: var(--body); text-wrap: pretty; }
.note { margin: 0; font-size: 12.5px; color: var(--muted); }
.img-label {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 9px;
  background: rgba(15,27,46,.78); color: #fff; font-size: 10px; letter-spacing: .1em;
}
.stripe-light { background: repeating-linear-gradient(135deg, #dcd9d3 0 16px, #d5d2cb 16px 32px); }

/* section fade-in (JS adds .reveal-init) */
.fade-sec.reveal-init { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.4,0,.2,1); }
.fade-sec.reveal-init.is-in { opacity: 1; transform: none; }

/* ---------- hero (shared) ---------- */
.hero { position: relative; background: var(--navy); }
.hero-photos { position: absolute; inset: 0; overflow: hidden; z-index: 0; isolation: isolate; }
.hero-inner {
  position: relative; max-width: 1400px; margin: 0 auto;
  display: flex; flex-direction: column; color: #fff;
}
.hero-kicker { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .18em; color: var(--gold); }
.hero-kicker::before { content: ''; width: 34px; height: 1px; background: var(--gold); }
.hero-lead { margin: 0; font-size: clamp(14px, 1.6vw, 16px); line-height: 2.05; color: #d7dfeb; text-wrap: pretty; }

.stats {
  display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 44px);
  padding: 20px 0; width: fit-content;
  border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--mincho); font-size: clamp(26px, 3.4vw, 34px); color: var(--gold); }
.stat-unit { font-size: 15px; color: #fff; margin-left: 4px; }
.stat-label { font-size: 11px; letter-spacing: .12em; color: var(--pale-2); }

.switcher {
  display: flex; flex-wrap: wrap; gap: 1px; width: fit-content; max-width: 100%;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.2);
}
.switcher > * { display: flex; padding: 14px 22px; }
.switcher-current { flex-direction: column; gap: 3px; background: rgba(255,255,255,.1); }
.switcher-link { align-items: center; gap: 14px; background: rgba(8,15,26,.4); color: #fff; }
.switcher-col { display: flex; flex-direction: column; gap: 3px; }
.switcher-small { font-size: 10px; letter-spacing: .14em; color: var(--pale); }
.switcher-small--gold { color: var(--gold); }
.switcher-main { font-size: 14.5px; font-weight: 700; color: #fff; }
.switcher-arrow { font-size: 16px; color: var(--gold); }

.line-badge {
  flex: none; border-radius: 8px; background: #fff; color: var(--line-green);
  font-weight: 900; display: flex; align-items: center; justify-content: center;
}

/* ===================================================== */
/* TOP PAGE                                              */
/* ===================================================== */
@keyframes kenA { 0% { transform: scale(1.04) translate3d(0,0,0); } 100% { transform: scale(1.16) translate3d(-1.6%,-1.2%,0); } }
@keyframes kenB { 0% { transform: scale(1.16) translate3d(1.4%,1%,0); } 100% { transform: scale(1.04) translate3d(0,0,0); } }
@keyframes charIn { from { opacity: 0; transform: translateY(.34em); } to { opacity: 1; transform: none; } }

.hero--top { min-height: min(84vh, 760px); }
.hero--top .hero-layer {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
  clip-path: polygon(0 0, 0 0, -22% 100%, -22% 100%); will-change: clip-path;
}
.hero--top .hero-layer.is-first { z-index: 1; clip-path: polygon(0 0, 122% 0, 100% 100%, 0 100%); }
.hero--top .hero-img {
  position: absolute; inset: -4%; width: 108%; height: 108%;
  object-fit: cover; display: block; will-change: transform;
  animation: kenA 14s ease-in-out infinite alternate;
}
.hero--top .hero-img.ken-b { animation-name: kenB; }
.hero--top .hero-bd { display: none; }
.hero-overlay--top {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,15,26,.94) 0%, rgba(8,15,26,.8) 44%, rgba(8,15,26,.3) 100%);
}
.hero-spacer { display: none; position: relative; height: 52vw; }
.hero--top .hero-inner {
  justify-content: center; gap: clamp(20px, 3vw, 32px);
  padding: clamp(56px, 8vw, 96px) var(--pad-x);
}
.hero--top .hero-lead { max-width: 560px; }

.hero-title {
  margin: 0; display: flex; flex-direction: column; gap: 14px;
  font-family: var(--mincho); font-weight: 700; letter-spacing: .03em;
}
.hero-title .t1 { display: block; font-size: clamp(30px, 5.2vw, 56px); line-height: 1.34; }
.hero-title .t2 { display: block; font-size: clamp(19px, 2.6vw, 28px); line-height: 1.6; color: #e6ebf3; text-wrap: balance; }
.js .hero-title:not(.is-split) .t1, .js .hero-title:not(.is-split) .t2 { visibility: hidden; }
.hero-title .ch { display: inline-block; opacity: 0; animation: charIn .5s ease forwards; }
.hero-title .nw { white-space: nowrap; }

.hero-ctas { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.btn-line-hero {
  display: flex; align-items: center; gap: 14px; padding: 22px 40px;
  background: var(--line-green); color: #fff;
  font-size: clamp(18px, 2.4vw, 22px); font-weight: 900;
  box-shadow: 0 10px 30px rgba(6,199,85,.32);
}
.btn-line-hero .line-badge { width: 30px; height: 30px; font-size: 15px; }
.btn-line-hero .arrow { font-size: 15px; }
.tel-block { display: flex; flex-direction: column; gap: 6px; }
.btn-tel-hero { display: flex; flex-direction: column; gap: 2px; padding: 12px 22px; background: #fff; color: var(--navy); }
.btn-tel-hero .small { font-size: 10px; letter-spacing: .14em; color: #5b6b85; }
.btn-tel-hero .num { font-size: clamp(18px, 2.4vw, 21px); font-weight: 900; letter-spacing: .02em; }
.tel-note { font-size: 11.5px; line-height: 1.7; color: var(--pale-2); }
.btn-outline-hero {
  display: flex; align-items: center; padding: 12px 22px;
  border: 1px solid rgba(255,255,255,.5); color: #fff; font-size: 14.5px; font-weight: 700;
}

/* before / after */
.works-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.works-head .h2 { line-height: 1.5; }
.btn-ghost { padding: 14px 26px; border: 1px solid var(--ink); font-size: 13.5px; font-weight: 700; }
.ba-list { gap: clamp(32px, 4vw, 56px); }
.ba-item { display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; }
.ba-item--wide { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.ba-item--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ba-frame { position: relative; overflow: hidden; justify-self: center; width: 100%; }
.ba-frame--43 { aspect-ratio: 4 / 3; }
.ba-frame--34 { aspect-ratio: 3 / 4; width: min(100%, 60vh); }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .16em; color: #6f6c65;
}
.ba-tag-before {
  position: absolute; right: 16px; top: 16px; padding: 7px 13px;
  background: rgba(15,27,46,.86); color: #fff; font-size: 10.5px; letter-spacing: .14em;
}
.ba-mask {
  position: absolute; inset: 0; z-index: 2;
  clip-path: polygon(0 0, 0 0, -20% 100%, -20% 100%); will-change: clip-path;
  background: repeating-linear-gradient(135deg, #2b3a52 0 16px, #25334a 16px 32px);
}
.ba-tag-after {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 7px 13px;
  background: var(--gold); color: var(--navy); font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
}
.ba-text { display: flex; flex-direction: column; gap: 16px; }
.chip { width: fit-content; padding: 6px 13px; background: #eef1f6; font-size: 11.5px; letter-spacing: .1em; color: #3f556f; }
.ba-text h3 { margin: 0; font-family: var(--mincho); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.6; font-weight: 700; }
.ba-text p { margin: 0; font-size: 14.5px; line-height: 2.05; color: var(--body); }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; font-size: 13px; line-height: 1.8; color: var(--body); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.btn-navy-sm { width: fit-content; padding: 12px 22px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; }

/* problems (services) */
.cards { display: grid; gap: 20px; }
.cards--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cards--280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.svc-card { display: flex; flex-direction: column; background: #fff; }
.svc-photo {
  position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden;
  background: repeating-linear-gradient(135deg, #dcd9d3 0 14px, #d5d2cb 14px 28px);
}
.svc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.svc-en { font-size: 10px; letter-spacing: .2em; color: var(--gold); }
.svc-name { font-family: var(--mincho); font-size: 21px; font-weight: 700; }
.svc-desc { font-size: 13.5px; line-height: 1.95; color: var(--body); }

/* about */
.about { max-width: 820px; margin: 0 auto; gap: 22px; }
.about .h2 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.6; }
.about p { margin: 0; font-size: 14.5px; line-height: 2.2; color: var(--light); text-wrap: pretty; }
.license-badge {
  width: fit-content; padding: 10px 16px; border: 1px solid rgba(200,153,47,.6);
  font-size: 12.5px; letter-spacing: .06em; color: #e9d6a8;
}

/* flow */
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--line); margin: 0; padding: 0; list-style: none; }
.flow-step { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 32px; background: #fff; }
.flow-no { font-family: var(--mincho); font-size: 34px; color: var(--gold); line-height: 1; }
.flow-name { font-size: 17px; font-weight: 700; }
.flow-desc { font-size: 13px; line-height: 1.95; color: var(--body); }

/* voice */
.voice { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 32px 28px; background: #fff; border-top: 3px solid var(--gold); }
.voice-title { margin: 0; font-family: var(--mincho); font-size: 18px; line-height: 1.85; font-weight: 700; }
.voice-body { margin: 0; font-size: 13.5px; line-height: 2; color: var(--body); }
.voice-who { font-size: 12px; color: var(--muted); }

/* recruit */
.recruit { position: relative; background: repeating-linear-gradient(135deg, #26364f 0 16px, #22314a 16px 32px); color: #fff; }
.recruit::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,27,46,.94), rgba(15,27,46,.7)); }
.recruit-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.recruit-text { display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.recruit-text .h2 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.6; }
.recruit-text p { margin: 0; font-size: 14.5px; line-height: 2.1; color: var(--light); text-wrap: pretty; }
.recruit-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-gold { padding: 16px 26px; background: var(--gold); color: var(--navy); font-size: 15px; font-weight: 700; }
.btn-line { display: flex; align-items: center; gap: 10px; padding: 16px 26px; background: var(--line-green); color: #fff; font-size: 15px; font-weight: 700; }
.btn-line .line-badge { width: 20px; height: 20px; border-radius: 6px; font-size: 10px; }

/* contact */
.contact { padding-bottom: clamp(96px, 10vw, 120px); }
.contact-note { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--ink); }
.cta-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cta-grid--240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cta-grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cta-card { display: flex; padding: 28px; }
.cta-card--row { align-items: center; justify-content: space-between; gap: 14px; }
.cta-card--col { flex-direction: column; gap: 6px; }
.cta-card--split { flex-direction: column; justify-content: space-between; gap: 18px; }
.cta-card .col { display: flex; flex-direction: column; gap: 6px; }
.cta-card .col8 { display: flex; flex-direction: column; gap: 8px; }
.cta-line { background: var(--line-green); color: #fff; }
.cta-white { background: #fff; color: var(--navy); }
.cta-navy { background: var(--navy); color: #fff; }
.cta-line .line-badge { width: 34px; height: 34px; border-radius: 9px; font-size: 16px; }

/* footer */
.site-footer { padding: clamp(40px, 5vw, 64px) var(--pad-x) 110px; background: var(--navy-deep); color: var(--pale); font-size: 12.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-co { display: flex; flex-direction: column; gap: 10px; }
.footer-name { font-family: var(--mincho); font-size: 19px; color: #fff; letter-spacing: .08em; }
.footer-addr { line-height: 1.9; font-style: normal; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, auto)); gap: 10px 32px; }
.footer-nav a { color: var(--pale); }

/* mobile fixed CTA bar */
.sp-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  grid-template-columns: 1.5fr 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,.16); box-shadow: 0 -8px 24px rgba(11,20,33,.24);
  padding-bottom: env(safe-area-inset-bottom);
}
.sp-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 72px; }
.sp-bar .b-line { gap: 3px; background: var(--line-green); color: #fff; }
.sp-bar .b-tel { background: #fff; color: var(--navy); }
.sp-bar .b-form { background: var(--gold); color: var(--navy); }

/* ===================================================== */
/* BUSINESS PAGE                                         */
/* ===================================================== */
.hero--biz { background: repeating-linear-gradient(135deg, #26364f 0 14px, #22314a 14px 28px); }
.hero--biz .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; opacity: 0; transition: opacity 2s ease;
}
.hero--biz .hero-img.is-on { opacity: 1; }
.hero-overlay--biz {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,15,26,.95) 0%, rgba(8,15,26,.84) 46%, rgba(8,15,26,.4) 100%);
}
.hero--biz .hero-inner { gap: clamp(20px, 3vw, 30px); padding: clamp(52px, 7vw, 96px) var(--pad-x); }
.hero--biz .hero-kicker { letter-spacing: .16em; }
.hero--biz h1 {
  margin: 0; font-family: var(--mincho); font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.42; font-weight: 700; letter-spacing: .03em; text-wrap: balance;
}
.hero--biz .hero-lead { max-width: 620px; }
.hero--biz .stat-num { font-size: clamp(26px, 3.2vw, 34px); }
.hero--biz .stat-label { letter-spacing: .1em; }
.biz-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.biz-ctas > a { display: flex; align-items: center; padding: 17px 30px; font-size: 16px; font-weight: 700; }
.biz-ctas .b-gold { background: var(--gold); color: var(--navy); }
.biz-ctas .b-outline { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.biz-ctas .b-line { gap: 10px; padding: 17px 26px; background: var(--line-green); color: #fff; }
.biz-ctas .b-tel {
  flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 26px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff;
}
.b-tel .small { font-size: 10px; letter-spacing: .12em; color: var(--pale); font-weight: 400; }
.b-tel .num { font-size: clamp(19px, 2.4vw, 23px); font-weight: 900; letter-spacing: .02em; }

.cell-grid { display: grid; gap: 1px; background: #fff; margin: 0; padding: 0; list-style: none; }
.cell-grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cell-grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.problem { display: flex; align-items: flex-start; gap: 16px; padding: 24px 24px 26px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.problem-check {
  flex: none; width: 22px; height: 22px; margin-top: 3px; border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 13px; font-weight: 900;
}
.problem-text { font-size: 15px; line-height: 1.85; font-weight: 500; color: var(--ink); }

.scope { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 32px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.scope-en { font-size: 10px; letter-spacing: .18em; color: var(--gold); }
.scope-name { font-family: var(--mincho); font-size: 20px; font-weight: 700; }
.scope-desc { font-size: 13.5px; line-height: 1.95; color: var(--body); }
.scope-scale { margin-top: 4px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }

.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.case { display: flex; flex-direction: column; background: var(--bg); }
.case-photo { position: relative; display: block; aspect-ratio: 4 / 3; }
.case-photo button { position: absolute; inset: 0; padding: 0; border: 0; background: #fff; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.case-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
.case-photo img.contain { object-fit: contain; }
.case-zoom {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 10px;
  background: rgba(255,255,255,.92); color: var(--navy); font-size: 10.5px; letter-spacing: .1em; pointer-events: none;
}
.case-photo .img-label { right: 12px; bottom: 12px; padding: 4px 10px; font-size: 10.5px; letter-spacing: .12em; pointer-events: none; }
.case-tag { position: absolute; left: 14px; top: 14px; padding: 6px 12px; background: var(--navy); color: #fff; font-size: 10.5px; letter-spacing: .12em; pointer-events: none; }
.case-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.case-title { margin: 0; font-family: var(--mincho); font-size: 19px; line-height: 1.6; font-weight: 700; }
.case-text { margin: 0; font-size: 13.5px; line-height: 1.95; color: var(--body); }
.case-spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--body); }
.case-spec dt { color: var(--muted); }
.case-spec dd { margin: 0; }

.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 3vw, 40px); }
.reason { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 2px solid var(--gold); }
.reason-title { margin: 0; font-family: var(--mincho); font-size: 21px; font-weight: 700; }
.reason-body { margin: 0; font-size: 13.5px; line-height: 2.05; color: var(--light); }
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.cred { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--navy-2); }
.cred-label { font-size: 11px; letter-spacing: .18em; color: var(--gold); }
.cred-text { font-size: 15px; line-height: 1.9; }

.area { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.area p { margin: 0; font-size: 14.5px; line-height: 2.05; color: var(--body); text-wrap: pretty; }
.area-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.area-tags li { padding: 9px 16px; background: #fff; border: 1px solid #e0e3e8; font-size: 13px; }
.area-box { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border-left: 2px solid var(--gold); }
.area-box .label { font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.area-box .text { font-size: 15px; line-height: 1.9; }

.bform { padding: clamp(52px, 7vw, 100px) var(--pad-x) clamp(64px, 8vw, 104px); }
.bform .wrap { max-width: 1000px; }
.cta-small { font-size: 10.5px; letter-spacing: .14em; }
.cta-title { font-size: 20px; font-weight: 700; line-height: 1.5; }
.cta-desc { font-size: 13px; line-height: 1.9; }
.cta-go { font-size: 14px; font-weight: 700; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 48px); background: rgba(8,15,26,.94); cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lightbox-close {
  position: absolute; top: 14px; right: 14px; width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,.4); background: rgba(15,27,46,.8);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.site-footer--biz { padding: clamp(36px, 5vw, 60px) var(--pad-x); }
.site-footer--biz .wrap { gap: 28px; }
.site-footer--biz .footer-nav { grid-template-columns: repeat(auto-fit, minmax(140px, auto)); }

/* ===================================================== */
/* < 900px                                               */
/* ===================================================== */
@media (max-width: 899px) {
  .gnav { display: none; }
  .menu-btn { display: flex; }
  .header-cta-sp { display: inline-block; }
  .menu-open .sp-menu { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
  .sp-menu { visibility: visible; }
  .sp-bar { display: grid; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .site-footer--biz { padding-bottom: clamp(36px, 5vw, 60px); }

  /* Top hero: 写真は上部に全体表示、文字部分にはぼかした同じ写真を敷く */
  .hero--top { min-height: 0; }
  .hero--top .hero-bd {
    display: block; position: absolute; inset: -24px;
    width: calc(100% + 48px); height: calc(100% + 48px);
    object-fit: cover; filter: blur(14px) brightness(.75);
  }
  .hero--top .hero-img {
    inset: auto; top: 0; left: 0; width: 100%; height: auto; aspect-ratio: 4 / 3;
    object-position: 50% 50% !important; animation: none;
  }
  .hero-overlay--top {
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8,15,26,0) 0, rgba(8,15,26,.05) 42vw, rgba(8,15,26,.7) 72vw, rgba(8,15,26,.8) 100%);
  }
  .hero-spacer { display: block; }

  .ba-item--wide, .ba-item--auto { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero--top .hero-img { animation: none; }
  .hero-title .ch { animation-duration: .01s; animation-delay: 0s !important; }
  .fade-sec.reveal-init { transition: none; }
}
