@charset "UTF-8";
/* ============================================================
   B.C建設 | 株式会社ベストクラン
   White base × Blue accent / Responsive
============================================================ */
:root {
  --blue: #1e6fe0;
  --blue-dark: #0b3f8f;
  --blue-deep: #12325e;
  --blue-pale: #eef4fc;
  --blue-soft: #d8e6f9;
  --ink: #2b3648;
  --muted: #5a6b84;
  --line: #dde5ef;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(18, 50, 94, 0.10);
  --radius: 14px;
  --header-h: 84px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: 0.3s; }
ul, ol { list-style: none; }
main { display: block; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Full-bleed helper ---------- */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ============================================================
   Header / Global Navigation (transparent)
============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}
.site-header .header-inner {
  width: min(1240px, 94%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(18, 50, 94, 0.12);
  height: 70px;
}
/* While the mobile drawer is open, lift the whole header above the
   drawer (z-index 1200) so the close (×) button stays clickable,
   and keep it transparent with the white logo on the dark overlay. */
.site-header.nav-open,
.site-header.nav-open.scrolled {
  z-index: 1300;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.site-header.nav-open .logo-swap .logo-light { opacity: 1; }
.site-header.nav-open .logo-swap .logo-dark { opacity: 0; }
.brand { display: flex; align-items: center; gap: 12px; }
/* Logo: no background plate. White version blends into the hero photo,
   colour version fades in once the header turns solid. */
.logo-swap {
  position: relative;
  display: block;
  width: clamp(180px, 22vw, 240px);
  line-height: 0;
}
.logo-swap img {
  width: 100%;
  height: auto;
  transition: opacity 0.45s ease;
}
.logo-swap .logo-light {
  filter: drop-shadow(0 2px 8px rgba(8, 30, 62, 0.55));
}
.logo-swap .logo-dark {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.site-header.scrolled .logo-swap .logo-light { opacity: 0; }
.site-header.scrolled .logo-swap .logo-dark { opacity: 1; }

.gnav { display: flex; align-items: center; gap: 8px; }
.gnav a.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 13px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(10, 30, 60, 0.5);
  letter-spacing: 0.04em;
}
.gnav a.nav-link::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.gnav a.nav-link:hover::after,
.gnav a.nav-link.is-current::after { transform: scaleX(1); transform-origin: left; }
.site-header.scrolled .gnav a.nav-link { color: var(--blue-deep); text-shadow: none; }

.nav-tel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  line-height: 1.35;
  box-shadow: 0 6px 16px rgba(30, 111, 224, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-tel:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(30, 111, 224, 0.5); }
.nav-tel .tel-num { font-size: 17px; font-weight: 700; color: #fff; }
.nav-tel .tel-note { font-size: 11px; opacity: 0.9; }

/* Hamburger */
.hamburger {
  display: none;
  width: 48px; height: 48px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(18, 50, 94, 0.18);
  cursor: pointer;
  position: relative;
  z-index: 1201;
}
.hamburger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: 0.35s;
}
.hamburger span:nth-child(1) { top: 17px; }
.hamburger span:nth-child(2) { top: 23px; }
.hamburger span:nth-child(3) { top: 29px; }
.hamburger.active span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* Mobile drawer */
.sp-nav {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: linear-gradient(160deg, rgba(11, 63, 143, 0.97), rgba(18, 50, 94, 0.97));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.sp-nav.open { opacity: 1; visibility: visible; }
.sp-nav a {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 12px 30px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s, transform 0.4s;
}
.sp-nav.open a { opacity: 1; transform: none; }
.sp-nav.open a:nth-child(1) { transition-delay: 0.05s; }
.sp-nav.open a:nth-child(2) { transition-delay: 0.1s; }
.sp-nav.open a:nth-child(3) { transition-delay: 0.15s; }
.sp-nav.open a:nth-child(4) { transition-delay: 0.2s; }
.sp-nav.open a:nth-child(5) { transition-delay: 0.25s; }
.sp-nav.open a:nth-child(6) { transition-delay: 0.3s; }
.sp-nav.open a:nth-child(7) { transition-delay: 0.35s; }
.sp-nav .sp-tel {
  margin-top: 18px;
  background: #fff;
  color: var(--blue-dark);
  border-radius: 999px;
  font-size: 18px;
  padding: 12px 34px;
}

/* ============================================================
   Hero (Home)
============================================================ */
.hero {
  position: relative;
  height: min(100svh, 860px);
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero .hero-bg,
.hero .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero .hero-bg img { animation: heroZoom 16s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 35, 70, 0.35) 0%, rgba(10, 35, 70, 0.15) 45%, rgba(10, 35, 70, 0.45) 100%);
  z-index: -1;
}
.hero-content { text-align: center; color: #fff; padding: 110px 5% 60px; }
.hero-copy {
  font-size: clamp(30px, 5.4vw, 58px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-shadow: 0 4px 24px rgba(8, 30, 62, 0.55);
}
.hero-copy .copy-line { display: block; overflow: hidden; }
.hero-copy .copy-line span {
  display: inline-block;
  transform: translateY(110%);
  animation: riseUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-copy .copy-line:nth-child(2) span { animation-delay: 0.35s; }
@keyframes riseUp { to { transform: translateY(0); } }
.hero-lead {
  margin-top: 26px;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(8, 30, 62, 0.6);
  opacity: 0;
  animation: fadeIn 1.2s ease 0.9s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.hero-btns {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 1.2s ease 1.2s forwards;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding-bottom: 46px;
}
.hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 40px;
  background: #fff;
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   Sub page hero
============================================================ */
.page-hero {
  position: relative;
  height: clamp(280px, 38vh, 400px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero img.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 45, 92, 0.5), rgba(12, 45, 92, 0.25));
  z-index: -1;
}
.page-hero .page-title {
  text-align: center;
  color: #fff;
  padding-top: 40px;
  text-shadow: 0 3px 18px rgba(8, 30, 62, 0.55);
}
.page-hero .page-title h1 {
  font-size: clamp(26px, 4.4vw, 42px);
  font-weight: 900;
  letter-spacing: 0.12em;
}
.page-hero .page-title .en {
  display: block;
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 8px;
  color: #cfe2ff;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--blue-pale);
  font-size: 13px;
  padding: 10px 0;
  color: var(--muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #9db1cc; }

/* ============================================================
   Sections / headings
============================================================ */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.tint { background: var(--blue-pale); }

.sec-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head .en {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sec-head h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--blue-deep);
  line-height: 1.5;
}
.sec-head .bar {
  width: 54px;
  height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  border-radius: 2px;
}
.sec-head.left { text-align: left; }
.sec-head.left .bar { margin-left: 0; }

.lead-center { text-align: center; max-width: 820px; margin-inline: auto; }

/* ============================================================
   Buttons
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 250px;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}
.btn .arw { transition: transform 0.3s; }
.btn:hover .arw { transform: translateX(5px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 111, 224, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(30, 111, 224, 0.45); color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: #fff; color: var(--blue-dark); transform: translateY(-3px); }
.btn-outline {
  background: #fff;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(30, 111, 224, 0.3); }
.btn-center { text-align: center; margin-top: 40px; }

/* ============================================================
   Home: intro (one window)
============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.split .split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.split .split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.split .split-img:hover img { transform: scale(1.05); }
.split .split-img::before {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 56%;
  height: 56%;
  border: 3px solid var(--blue-soft);
  border-radius: var(--radius);
  z-index: -1;
}
.split h3 {
  font-size: clamp(21px, 2.6vw, 27px);
  color: var(--blue-deep);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 900;
}
.split p + p { margin-top: 1em; }
.em-blue {
  color: var(--blue-dark);
  font-weight: 700;
  background: linear-gradient(transparent 68%, var(--blue-soft) 68%);
}

/* ============================================================
   Home: services grid
============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.svc-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(18, 50, 94, 0.16); }
.svc-card .svc-img { overflow: hidden; aspect-ratio: 16 / 10; }
.svc-card .svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.svc-card:hover .svc-img img { transform: scale(1.08); }
.svc-card .svc-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 {
  font-size: 20px;
  color: var(--blue-deep);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}
.svc-card h3::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  flex: none;
}
.svc-card p { font-size: 15.5px; color: var(--muted); }
.svc-card .svc-more {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   Home: reasons (full bleed)
============================================================ */
.reasons {
  background:
    linear-gradient(rgba(18, 50, 94, 0.92), rgba(11, 63, 143, 0.92)),
    url("../assets/uploads/pixta_64112446_M.jpg") center / cover fixed no-repeat;
  color: #fff;
  padding: clamp(70px, 9vw, 120px) 0;
}
.reasons .sec-head h2 { color: #fff; }
.reasons .sec-head .en { color: #9cc4ff; }
.reason-list { display: grid; gap: 22px; max-width: 980px; margin-inline: auto; }
.reason-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 28px 30px;
  backdrop-filter: blur(3px);
  transition: background 0.4s, transform 0.4s;
}
.reason-item:hover { background: rgba(255, 255, 255, 0.13); transform: translateX(6px); }
.reason-item .num {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, #8fbcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  align-self: start;
  font-family: Georgia, "Times New Roman", serif;
}
.reason-item .num small { display: block; font-size: 11px; letter-spacing: 0.25em; color: #9cc4ff; margin-top: 6px; font-family: var(--font); }
.reason-item h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: 0.04em; }
.reason-item p { font-size: 15.5px; color: #dbe7f8; }

/* ============================================================
   Home: works teaser / area
============================================================ */
.works-teaser {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.works-teaser .imgs { position: relative; }
.works-teaser .imgs img { border-radius: var(--radius); box-shadow: var(--shadow); }
.works-teaser .imgs .img-sub {
  position: absolute;
  right: -8%;
  bottom: -14%;
  width: 52%;
  border: 5px solid #fff;
}

.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 900px; margin-inline: auto; }
.area-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.4s;
}
.area-card:hover { transform: translateY(-5px); }
.area-card h3 { color: var(--blue-deep); font-size: 20px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; font-weight: 900; }
.area-card h3 svg { flex: none; }
.area-note { text-align: center; margin-top: 26px; color: var(--muted); }

/* ============================================================
   CTA band (full bleed)
============================================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(70px, 9vw, 110px) 0;
  color: #fff;
  text-align: center;
}
.cta-band .cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 63, 143, 0.88), rgba(18, 50, 94, 0.82));
  z-index: -1;
}
.cta-band h2 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 900; letter-spacing: 0.06em; line-height: 1.6; }
.cta-band .cta-lead { margin-top: 14px; color: #dbe7f8; }
.cta-box {
  margin: 34px auto 0;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(4px);
}
.cta-tel {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.cta-tel:hover { color: #bcd8ff; }
.cta-tel .tel-label { font-size: 15px; font-weight: 700; color: #9cc4ff; }
.cta-box .cta-note { font-size: 14px; color: #cfe2ff; margin-top: 4px; }
.cta-box .btn { margin-top: 20px; }

/* ============================================================
   News
============================================================ */
.news-list { max-width: 820px; margin-inline: auto; }
.news-list li {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 20px 10px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.news-list time { color: var(--blue); font-weight: 700; font-size: 15px; flex: none; }

/* ============================================================
   Company
============================================================ */
.philosophy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 11vw, 140px) 0;
  color: #fff;
}
.philosophy .phil-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.philosophy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 45, 92, 0.82) 0%, rgba(12, 45, 92, 0.55) 60%, rgba(12, 45, 92, 0.35) 100%);
  z-index: -1;
}
.philosophy .phil-inner { max-width: 720px; }
.philosophy h2 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 900; line-height: 1.7; margin-bottom: 22px; }
.philosophy p + p { margin-top: 1em; }

/* No-filter variant: show the photo as-is and make the text itself
   carry the contrast (weight + layered shadows). */
.philosophy.no-filter::after { display: none; }
.philosophy.no-filter h2 {
  color: #fff;
  text-shadow:
    0 1px 3px rgba(8, 30, 62, 0.85),
    0 3px 10px rgba(8, 30, 62, 0.65),
    0 8px 30px rgba(8, 30, 62, 0.5);
}
.philosophy.no-filter p {
  color: #fff;
  font-weight: 700;
  text-shadow:
    0 1px 2px rgba(8, 30, 62, 0.9),
    0 2px 8px rgba(8, 30, 62, 0.7),
    0 6px 22px rgba(8, 30, 62, 0.55);
}
/* Place the text over the clearest (sky) area of each photo */
.philosophy.phil-right .phil-inner { margin-left: auto; }

/* Text-only greeting: a single readable column, centred on the page. */
.greeting {
  max-width: 880px;
  margin-inline: auto;
}
.greeting .greet-catch {
  font-size: clamp(21px, 2.6vw, 27px);
  color: var(--blue-deep);
  font-weight: 900;
  line-height: 1.7;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.greeting p + p { margin-top: 1em; }
.greet-sign { margin-top: 26px; text-align: right; }
.greet-sign .sign-co { font-size: 15px; color: var(--muted); }
.greet-sign .sign-name { font-size: 22px; font-weight: 900; color: var(--blue-deep); letter-spacing: 0.1em; }

.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: transform 0.4s;
}
.value-card:hover { transform: translateY(-6px); }
.value-card .v-num {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 900;
  color: var(--blue-soft);
  line-height: 1;
}
.value-card h3 { color: var(--blue-deep); font-size: 19px; margin: 10px 0 10px; font-weight: 900; }
.value-card p { font-size: 15.5px; color: var(--muted); }

.co-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.co-table th, .co-table td { padding: 20px 26px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.co-table tr:last-child th, .co-table tr:last-child td { border-bottom: none; }
.co-table th { width: 190px; background: var(--blue-pale); color: var(--blue-deep); font-weight: 700; white-space: nowrap; }

.partner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 56px); align-items: stretch; }
.partner .partner-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.partner .partner-img img { transition: transform 0.8s; width: 100%; height: 100%; object-fit: cover; }
.partner .partner-img:hover img { transform: scale(1.05); }
.check-box {
  background: var(--blue-pale);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-top: 22px;
}
.check-box h4 { color: var(--blue-deep); margin-bottom: 12px; font-size: 16px; }
.check-list li {
  position: relative;
  padding: 6px 0 6px 34px;
  font-size: 16px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 16px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.map-wrap { position: relative; }
.map-wrap iframe {
  width: 100%;
  height: clamp(340px, 45vw, 480px);
  border: 0;
  display: block;
  filter: saturate(0.9);
}
.map-addr {
  text-align: center;
  padding: 22px 5%;
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-weight: 700;
}

/* ============================================================
   Services page
============================================================ */
.consult-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; max-width: 940px; margin-inline: auto; }
.consult-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px 14px 48px;
  position: relative;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(18, 50, 94, 0.06);
  transition: transform 0.35s, border-color 0.35s;
}
.consult-grid li:hover { transform: translateX(4px); border-color: var(--blue-soft); }
.consult-grid li::before {
  content: "";
  position: absolute;
  left: 16px; top: 19px;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}
.consult-grid li::after {
  content: "";
  position: absolute;
  left: 20.5px; top: 22.5px;
  width: 8px; height: 4.5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
/* Odd item count: let the last item span the full row so the
   2-column grid never leaves an empty cell. */
.consult-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.work-sec { padding: clamp(56px, 8vw, 90px) 0; }
.work-sec:nth-of-type(even) { background: var(--blue-pale); }
.work-head { margin-bottom: 30px; }
.work-head .work-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  border-radius: 999px;
  padding: 6px 20px;
  margin-bottom: 14px;
}
.work-head h2 { font-size: clamp(21px, 3vw, 28px); color: var(--blue-deep); font-weight: 900; line-height: 1.6; }
.work-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 50px); align-items: start; }
/* The photo follows the reader while the longer text column scrolls,
   so the space under the photo never reads as a gap. */
.work-body .work-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 96px; }
.work-body .work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.work-body .work-img:hover img { transform: scale(1.05); }
/* その他専門工事: the text side is short, so centre the pair and
   trim the photo height to keep the section balanced. */
#special .work-body { align-items: center; }
#special .work-body .work-img { position: static; }
#special .work-body .work-img img { aspect-ratio: 16 / 7; }
.tag-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 20px; box-shadow: 0 4px 14px rgba(18,50,94,0.06); }
.work-sec:nth-of-type(even) .tag-box { background: #fff; }
.tag-box h4 { color: var(--blue-deep); font-size: 16px; margin-bottom: 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  padding: 5px 15px;
  transition: 0.3s;
}
.tag-list li:hover { background: var(--blue); color: #fff; }
.mini-note {
  margin-top: 20px;
  background: #fff;
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 4px 14px rgba(18, 50, 94, 0.06);
  padding: 20px 22px;
}
.mini-note h4 { color: var(--blue-deep); margin-bottom: 8px; font-size: 17px; }
.mini-note p { font-size: 15.5px; }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.spec-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  text-align: center;
  transition: transform 0.4s;
}
.spec-card:hover { transform: translateY(-6px); }
.spec-card .spec-ico {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--blue-pale);
  display: grid;
  place-items: center;
  color: var(--blue);
}
.spec-card h3 { color: var(--blue-deep); font-size: 19px; margin-bottom: 8px; font-weight: 900; }
.spec-card p { font-size: 15px; color: var(--muted); text-align: left; }

/* ============================================================
   Works page
============================================================ */
.soon-panel {
  background: #fff;
  border: 2px dashed var(--blue-soft);
  border-radius: var(--radius);
  text-align: center;
  padding: clamp(50px, 8vw, 90px) 6%;
}
.soon-panel .soon-badge {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-dark);
  border-radius: 999px;
  font-weight: 700;
  padding: 8px 26px;
  margin-bottom: 18px;
  letter-spacing: 0.1em;
}
.soon-panel h3 { color: var(--blue-deep); font-size: clamp(20px, 2.6vw, 26px); margin-bottom: 12px; font-weight: 900; }
.soon-panel p { color: var(--muted); max-width: 640px; margin-inline: auto; }

.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.photo-strip figure { overflow: hidden; aspect-ratio: 4 / 3; margin: 0; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease, filter 0.8s; }
.photo-strip figure:hover img { transform: scale(1.07); filter: brightness(1.06); }

/* ============================================================
   Flow page
============================================================ */
/* Flex + centered wrapping: any card count (7, 5, ...) fills rows
   and the final partial row is centered — no orphan gap. */
.request-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.request-card {
  flex: 1 1 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  border-top: 4px solid var(--blue);
  transition: transform 0.4s;
}
.request-card:hover { transform: translateY(-6px); }
.request-card h3 { color: var(--blue-deep); font-size: 18px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; font-weight: 900; }
.request-card h3::before {
  content: "●";
  color: var(--blue);
  font-size: 11px;
}
.request-card p { font-size: 15.5px; color: var(--muted); }

.steps { max-width: 860px; margin-inline: auto; position: relative; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 26px;
  padding-bottom: 42px;
}
.step::before {
  content: "";
  position: absolute;
  left: 45px;
  top: 90px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-soft), var(--blue));
}
.step:last-child::before { display: none; }
.step .step-num {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(30, 111, 224, 0.35);
  flex: none;
}
.step .step-num .s-label { font-size: 10px; letter-spacing: 0.2em; display: block; }
.step .step-num .s-no { font-size: 30px; font-weight: 900; font-family: Georgia, serif; display: block; }
.step .step-body {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 30px;
}
.step .step-body h3 { color: var(--blue-deep); font-size: 20px; margin-bottom: 8px; font-weight: 900; }
.step .step-body ul { margin-top: 10px; }
.step .step-body ul li { position: relative; padding-left: 20px; font-size: 15.5px; color: var(--muted); }
.step .step-body ul li::before { content: "・"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.step .step-tel { margin-top: 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.step .step-tel .tel-big { font-size: 24px; font-weight: 900; color: var(--blue-dark); }

/* FAQ */
.faq-list { max-width: 900px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(18, 50, 94, 0.06);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 58px 20px 22px;
  font-weight: 700;
  color: var(--blue-deep);
  position: relative;
  transition: background 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--blue-pale); }
.faq-item summary .q-mark {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
}
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 30px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.35s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq-item .faq-a {
  display: flex;
  gap: 14px;
  padding: 4px 24px 22px 22px;
  color: var(--ink);
}
.faq-item .faq-a .a-mark {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--blue-pale);
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
}
.faq-item .faq-a p { font-size: 16px; }

/* ============================================================
   Contact page
============================================================ */
.contact-intro { max-width: 800px; margin-inline: auto; text-align: center; }
.contact-form {
  max-width: 820px;
  margin: 46px auto 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 50px);
}
.form-row { margin-bottom: 26px; }
.form-row label.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 8px;
  font-size: 16px;
}
.req, .opt {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 5px;
  padding: 2px 9px;
  letter-spacing: 0.08em;
}
.req { background: #e0544d; }
.opt { background: #9db1cc; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 111, 224, 0.12);
  background: #fff;
}
textarea { min-height: 190px; resize: vertical; }
.agree-row { text-align: center; margin: 30px 0 10px; font-size: 15px; }
.agree-row input { width: 18px; height: 18px; accent-color: var(--blue); vertical-align: -3px; margin-right: 8px; }
.form-submit { text-align: center; margin-top: 18px; }
.form-note { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 16px; }

.privacy-box {
  max-width: 900px;
  margin-inline: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 48px);
}
.privacy-box h3 {
  color: var(--blue-deep);
  font-size: 18px;
  margin: 28px 0 10px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
  font-weight: 900;
}
.privacy-box h3:first-of-type { margin-top: 0; }
.privacy-box p { font-size: 15.5px; }
.privacy-box ol { list-style: decimal; padding-left: 24px; font-size: 15.5px; }
.privacy-box ol li { margin: 4px 0; }

/* ============================================================
   Footer
============================================================ */
.site-footer {
  background: linear-gradient(160deg, var(--blue-deep), #0a2547);
  color: #cfe2ff;
  padding: clamp(56px, 7vw, 80px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  padding-bottom: 46px;
}
.footer-brand img { width: 230px; }
.footer-brand .f-addr { margin-top: 18px; font-size: 15px; line-height: 1.9; }
.footer-brand .f-tel { margin-top: 10px; font-size: 24px; font-weight: 900; color: #fff; letter-spacing: 0.04em; }
.footer-brand .f-tel a { color: #fff; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; align-content: start; }
.footer-nav a {
  color: #cfe2ff;
  font-size: 15px;
  padding: 8px 0 8px 18px;
  position: relative;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-nav a::before {
  content: "";
  position: absolute;
  left: 2px; top: 50%;
  width: 7px; height: 7px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: translateY(-50%) rotate(45deg);
  transition: left 0.3s;
}
.footer-nav a:hover { color: #fff; }
.footer-nav a:hover::before { left: 7px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 20px 5%;
  font-size: 13px;
  color: #9db6dd;
}

/* ============================================================
   Back to top
============================================================ */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(30, 111, 224, 0.4);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: 0.4s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   Reveal animations
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.fade-left { transform: translateX(-40px); }
.reveal.fade-right { transform: translateX(40px); }
.reveal.zoom { transform: scale(0.94); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 1024px) {
  .gnav a.nav-link { display: none; }
  .hamburger { display: block; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .request-card { flex-basis: calc((100% - 24px) / 2); max-width: calc((100% - 24px) / 2); }
  .reasons { background-attachment: scroll; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .split, .works-teaser, .partner, .work-body { grid-template-columns: 1fr; }
  /* SERVICE 01-05: on phones the columns stack, so the following
     photo would scroll over the text. Pin it back into the flow. */
  .work-body .work-img { position: static; top: auto; }
  .work-body .work-img img { aspect-ratio: 16 / 10; }
  .value-grid, .area-grid, .consult-grid { grid-template-columns: 1fr; }
  .reason-item { grid-template-columns: 1fr; gap: 8px; padding: 24px 22px; }
  .reason-item .num { font-size: 36px; display: flex; align-items: baseline; gap: 10px; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 64px 1fr; gap: 16px; }
  .step .step-num { width: 64px; height: 64px; }
  .step .step-num .s-no { font-size: 20px; }
  .step .step-num .s-label { font-size: 8px; }
  .step::before { left: 31px; top: 66px; }
  .co-table th { width: 120px; padding: 16px 14px; font-size: 14px; }
  .co-table td { padding: 16px 16px; font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .works-teaser .imgs .img-sub { right: 2%; }
  .nav-tel { display: none; }
  .logo-swap { width: 180px; }
}

@media (max-width: 480px) {
  .svc-grid, .spec-grid { grid-template-columns: 1fr; }
  .request-card { flex-basis: 100%; max-width: 100%; }
  .btn { width: 100%; min-width: 0; }
  .hero-btns { flex-direction: column; align-items: stretch; padding-inline: 6%; }
  .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}
