@import url("https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@400;500;600;700&family=Noto+Sans+JP:wght@100;300;400;500;700&display=swap");

:root {
  --teal: #2b6f82;
  --teal-dark: #1d4f5e;
  --teal-deep: #163d49;
  --charcoal: #2a2a29;
  --gray-bg: #dcdad6;
  --gray-bg-2: #e8e6e3;
  --gray-mid: #8c8b88;
  --text: #2f2f2e;
  --text-soft: #5c5b58;
  --white: #ffffff;
  --serif: "Zen Old Mincho", serif;
  --sans: "Noto Sans JP", sans-serif;
  --header-h: 84px;
}

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

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.9;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  animation: pageFadeIn 0.6s ease forwards;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.page-leaving {
  animation: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

ul { list-style: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--gray-mid);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; }

.section { padding: 120px 0; }
.section--tight { padding: 90px 0 170px 0; }
.bg-gray { background: var(--gray-bg); }
.bg-white { background: var(--white); }
.bg-soft { background: rgba(238, 238, 238, 0.8); }
.bg-soft.flow-scroll { background: #eeeeee; }
.stance-section { background: rgba(255, 255, 255, 0.8); }
.fast-hero .bg-gray { background: rgba(220, 218, 214, 0.8); }
.stance-section .eyebrow { font-size: 23px; }

.services-intro-section { background: rgba(255, 255, 255, 0.8); }
.services-intro {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.services-intro-line-wrap {
  display: flex;
  align-items: flex-end;
}
.services-intro-line { height: 192px; width: auto; position: relative; top: 45px; }
.services-intro-heading {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.4;
  margin-left: 60px;
}
.philosophy-block {
  margin-left: 40px;
  text-align: left;
  max-width: 560px;
  padding-top: 4px;
  align-self: center;
}
.philosophy-block h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 40px;
}
.philosophy-block p { color: var(--text-soft); font-size: 14px; }

.services-intro-line-wrap,
.philosophy-block {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.services-intro.in-view .services-intro-line-wrap,
.services-intro.in-view .philosophy-block {
  opacity: 1;
}
.services-intro-line-wrap { transition-delay: 0s; }
.philosophy-block { transition-delay: 0.4s; }
.bg-charcoal { background: var(--charcoal); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 32px 28px 40px;
  transition: color 0.3s ease;
  color: var(--white);
  pointer-events: none;
}
.site-header a,
.site-header button {
  pointer-events: auto;
}

.site-header.on-light {
  color: var(--text);
}
.site-header.is-open {
  color: var(--white);
}

.site-header .logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  display: none;
}
.site-header .logo span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 2px;
}

.header-desktop {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
}

.main-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  margin-top: 42px;
}
.main-nav a {
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
  display: inline-block;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }
.main-nav .brand-link {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 8px;
}

.header-contact { display: flex; align-items: center; gap: 18px; }
.header-contact a { display: flex; align-items: center; gap: 7px; }
.header-contact .icon-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.9;
}
.header-contact .icon-btn svg, .header-contact .icon-btn .icon-mask { width: 25px; height: 25px; stroke: currentColor; fill: none; }
.header-contact .tel { font-size: 0.92rem; font-weight: 500; letter-spacing: 0.02em; }
.header-contact .tel svg, .header-contact .tel .icon-mask { width: 25px; height: 25px; fill: currentColor; }

.icon-mask {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.icon-mask.icon-insta { -webkit-mask-image: url('../img/header_insta.svg'); mask-image: url('../img/header_insta.svg'); }
.icon-mask.icon-mail { -webkit-mask-image: url('../img/header_mail.svg'); mask-image: url('../img/header_mail.svg'); }
.icon-mask.icon-tel { -webkit-mask-image: url('../img/header_tel.svg'); mask-image: url('../img/header_tel.svg'); }

.hamburger {
  display: none;
  width: 30px; height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 600;
  background: none;
  border: none;
}
.hamburger span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease, top 0.6s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.site-header.is-open .hamburger span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.site-header.is-open .hamburger span:nth-child(2) { opacity: 0; }
.site-header.is-open .hamburger span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: 0;
  background: #00758e;
  color: var(--white);
  z-index: 450;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 34px;
  padding-left: 40px;
  clip-path: circle(0 at calc(100% - 47px) 39px);
  transition: clip-path 1.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}
.mobile-panel.is-open {
  clip-path: circle(150vmax at calc(100% - 47px) 39px);
  pointer-events: auto;
}
.mobile-panel a { font-family: var(--serif); font-size: 1.2rem; color: var(--white); }
.mobile-panel a,
.mobile-panel .header-contact {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.mobile-panel.is-open a,
.mobile-panel.is-open .header-contact {
  opacity: 1;
  transform: translateY(0);
}
.mobile-panel a:nth-of-type(1) { transition-delay: 0.25s; }
.mobile-panel a:nth-of-type(2) { transition-delay: 0.34s; }
.mobile-panel a:nth-of-type(3) { transition-delay: 0.43s; }
.mobile-panel a:nth-of-type(4) { transition-delay: 0.52s; }
.mobile-panel .header-contact { transition-delay: 0.6s; }
.mobile-panel .header-contact { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
@media (max-width: 980px) {
  .company-page .hero-fixed-bg { background-position: right; }
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(50, 50, 50, 0.42);
}
body:has(.hero-fixed-bg) .hero::before { display: none; }

.hero-fixed-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
}
.hero-fixed-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(50, 50, 50, 0.42);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero .container { padding-top: 60px; }
.hero-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.12em;
  font-size: 1.1rem;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 34px;
}
.hero-brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.hero-brand small { display: block; font-size: 0.95rem; font-weight: 400; margin-top: 4px; letter-spacing: 0.04em; }

.hero--sub .hero-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0; }

.scroll-cue {
  position: absolute;
  left: 44px; bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.85;
  z-index: 2;
}
.scroll-cue img { width: 14px; height: auto; display: block; }
.scroll-cue-line {
  display: block;
  width: 1px;
  height: 160px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollDown 1.4s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroFadeInCue {
  from { opacity: 0; }
  to { opacity: 0.85; }
}
.hero-eyebrow,
.hero-brand,
.hero-title {
  opacity: 0;
  animation: heroFadeIn 1.6s ease-out forwards;
}
.scroll-cue {
  opacity: 0;
  animation: heroFadeInCue 1.6s ease-out forwards;
}
.hero-title { animation-delay: 0.3s; }
.hero-eyebrow { animation-delay: 1.4s; }
.hero-brand { animation-delay: 2.5s; }
.scroll-cue { animation-delay: 3.6s; }
.fast-hero .hero-title { animation-delay: 0.8s; }
.fast-hero .scroll-cue { animation-delay: 1.4s; }

/* ---------- Stance / two-col ---------- */
.stance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.stance img { width: 100%; height: 620px; object-fit: cover; }
.stance h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.6; margin-bottom: 30px; }
.stance p { color: var(--text-soft); font-size: 0.96rem; margin-bottom: 4px; }

.stance img,
.stance .eyebrow,
.stance h2,
.stance p {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.stance.in-view img,
.stance.in-view .eyebrow,
.stance.in-view h2,
.stance.in-view p {
  opacity: 1;
}
@media (min-width: 981px) {
  .stance img { transition-delay: 0s; }
  .stance .eyebrow, .stance h2 { transition-delay: 0.4s; }
  .stance p { transition-delay: 0.8s; }
}
@media (max-width: 980px) {
  .stance .eyebrow, .stance h2 { transition-delay: 0s; }
  .stance p { transition-delay: 0.4s; }
  .stance img { transition-delay: 0.8s; }
}

/* ---------- Section heading with rule ---------- */
.rule-heading {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 20px;
}
.rule-heading .line { width: 60px; height: 1px; background: var(--text); }

.philosophy {
  text-align: right;
  max-width: 560px;
  margin-left: auto;
}
.philosophy .eyebrow { text-align: right; }
.philosophy p { color: var(--text-soft); font-size: 0.96rem; }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 730px;
}
.service-card {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 48px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(27,79,94,0.88), rgba(20,50,60,0.55));
}
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service-card.in-view:hover::after { opacity: 1; }
.service-card-body { position: relative; z-index: 2; font-family: var(--sans); }
.service-card h3 { font-family: var(--sans); font-weight: 100; font-size: 1.5rem; margin-bottom: 16px; }
.service-card p { font-size: 0.88rem; line-height: 1.85; opacity: 0.92; max-width: 380px; }
.service-card .more {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.7);
  padding-bottom: 2px;
}
.service-card-body {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.service-card.in-view .service-card-body { opacity: 1; }
.service-card:nth-child(2) .service-card-body { transition-delay: 0.4s; }

/* ---------- Precision / dark feature ---------- */
.feature-dark {
  position: relative;
  height: 690px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.feature-dark::before { content: ""; position: absolute; inset: 0; background: rgba(10,10,10,0.55); }
.feature-dark-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 30px;
  opacity: 0;
  transition: opacity 1s ease-out;
}
.feature-dark.in-view .feature-dark-inner { opacity: 1; }
.feature-dark h2 { font-weight: 100; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 70px; }
.feature-dark p { font-size: 0.92rem; line-height: 2; opacity: 0.92; }

/* ---------- Service area ---------- */
.area-wrap {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  column-gap: 126px;
  align-items: start;
}
.area-vertical {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 100;
  justify-self: start;
  align-self: start;
}
.area-map { max-width: 460px; }
.area-map img { width: 100%; height: auto; }
.area-note { margin-top: 26px; color: var(--text-soft); font-size: 0.92rem; max-width: 420px; text-align: left; }

.area-vertical,
.area-map,
.area-note {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.area-wrap.in-view .area-vertical,
.area-wrap.in-view .area-map,
.area-wrap.in-view .area-note {
  opacity: 1;
}
.area-vertical { transition-delay: 0s; }
.area-map { transition-delay: 0.4s; }
.area-note { transition-delay: 0.8s; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  color: var(--white);
  background-size: cover;
  background-position: center;
  padding: 100px 0 30px;
  height: 715px;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(27,79,94,0.86), rgba(19,44,52,0.82));
}
.footer-inner { position: absolute; left: 0; right: 0; bottom: 80px; z-index: 2; }
.footer-mobile-contact { display: none; }
.footer-contact-icons { display: flex; gap: 16px; align-items: center; }
.footer-contact-icons .icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.footer-contact-icons svg, .footer-contact-icons .icon-mask { width: 16px; height: 16px; stroke: #fff; fill: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 30px;
}
.footer-brand { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 8px; text-align: left; }
.footer-address { font-size: 0.82rem; opacity: 0.9; line-height: 1.8; text-align: left; }
.footer-copy { font-size: 0.72rem; opacity: 0.75; letter-spacing: 0.05em; }

.footer-mobile-contact > *,
.footer-bottom > div,
.footer-copy {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.site-footer.in-view .footer-mobile-contact > *,
.site-footer.in-view .footer-bottom > div,
.site-footer.in-view .footer-copy {
  opacity: 1;
}
.footer-mobile-contact > *:nth-child(1) { transition-delay: 0s; }
.footer-mobile-contact > *:nth-child(2) { transition-delay: 0.3s; }
.footer-mobile-contact > *:nth-child(3) { transition-delay: 0.6s; }
.footer-mobile-contact > *:nth-child(4) { transition-delay: 0.9s; }
.footer-bottom > div { transition-delay: 1.2s; }
.footer-copy { transition-delay: 1.5s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--text);
  padding: 16px 30px;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--text); color: var(--white); }
.btn--light { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--charcoal); }
.btn-row { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Contact CTA block ---------- */
.contact-cta {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-cta .circle {
  width: 220px; height: 220px;
  border: 1px solid var(--text);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  justify-self: center;
  position: relative;
}
.contact-cta .stem {
  position: absolute; left: 50%; top: -70px;
  width: 1px; height: 70px; background: var(--text-soft);
}
.contact-cta p { color: var(--text-soft); font-size: 0.94rem; margin-bottom: 6px; }

/* ---------- Company profile table ---------- */
.profile-container { font-family: var(--sans); color: var(--text-soft); }
.profile-container .eyebrow {
  font-family: var(--sans);
  font-style: normal;
  color: var(--text-soft);
}
.profile-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.profile-table th, .profile-table td {
  text-align: left;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  font-weight: 400;
  font-size: 0.92rem;
}
.profile-table th { width: 220px; color: var(--text-soft); letter-spacing: 0.03em; }
.profile-table td strong { font-weight: 400; }

.profile-table tr {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.profile-table.in-view tr { opacity: 1; }
.profile-table tr:nth-child(1) { transition-delay: 0s; }
.profile-table tr:nth-child(2) { transition-delay: 0.15s; }
.profile-table tr:nth-child(3) { transition-delay: 0.3s; }
.profile-table tr:nth-child(4) { transition-delay: 0.45s; }
.profile-table tr:nth-child(5) { transition-delay: 0.6s; }
.profile-table tr:nth-child(6) { transition-delay: 0.75s; }
.profile-table tr:nth-child(7) { transition-delay: 0.9s; }

/* ---------- Flow ---------- */
.flow-circle.flow-circle-mobile-only { display: none; }
.flow-wrap { display: grid; grid-template-columns: 0.4fr 1fr; gap: 40px; }
.flow-wrap--single { grid-template-columns: 1fr; }
.flow-wrap--single .flow-circle::before {
  content: "ご依頼の流れ　Flow";
  position: absolute;
  right: 100%;
  margin-right: 40px;
  top: 50%;
  transform: translateY(-50%);
  height: 170px;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--text);
  z-index: 2;
}
.flow-label {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  justify-self: center;
}
.flow-steps { display: flex; flex-direction: column; }
.flow-step { display: grid; grid-template-columns: 200px 1fr; gap: 200px; align-items: center; padding: 50px 0; position: relative; }
.flow-step:not(:last-child) { border-bottom: 1px dashed rgba(0,0,0,0.15); }
.flow-step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 100px;
  width: 1px;
  height: 100vh;
  background: var(--text);
  transform: translate(-50%, -50%);
  z-index: 0;
}
.flow-circle {
  width: 170px; height: 170px;
  border: 1px solid var(--text);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  padding: 10px;
  position: relative;
  z-index: 1;
  justify-self: center;
  background: #eeeeee;
}
.flow-step h4 { font-size: 1.05rem; margin-bottom: 10px; }
.flow-step p { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 8px; }

@media (min-width: 981px) {
  .flow-scroll { height: 300vh; padding: 80px 0 0; position: relative; }
  .flow-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
  .flow-scroll .flow-wrap { width: 1160px; max-width: calc(100% - 80px); }
  .flow-scroll .flow-steps { position: relative; height: 560px; display: block; }
  .flow-scroll .flow-step {
    position: absolute;
    inset: 0;
    grid-template-columns: 200px 1fr;
    align-content: center;
    border-bottom: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
  }
  .flow-scroll .flow-step.is-active { opacity: 1; pointer-events: auto; }
}

/* ---------- Icon feature grid (排水管特徴 3 icons) ---------- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--teal);
  color: var(--white);
  padding: 60px 40px;
  gap: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.icon-grid .item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.icon-grid svg,
.icon-grid img { width: 42px; height: 42px; stroke: #fff; fill: none; margin-bottom: 20px; }
.icon-grid p { font-size: 0.85rem; line-height: 1.7; }

.icon-grid .item {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.icon-grid.in-view .item { opacity: 1; }
.icon-grid .item:nth-child(1) { transition-delay: 0s; }
.icon-grid .item:nth-child(2) { transition-delay: 0.15s; }
.icon-grid .item:nth-child(3) { transition-delay: 0.3s; }
.icon-grid .item:nth-child(4) { transition-delay: 0.45s; }

/* ---------- Drainage page scroll fade-ins ---------- */
.drainage-emergency .rule-heading,
.drainage-emergency > p,
.drainage-emergency .feature-inline,
.drainage-feature .rule-heading,
.drainage-feature > p {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.drainage-emergency.in-view .rule-heading,
.drainage-emergency.in-view > p,
.drainage-emergency.in-view .feature-inline,
.drainage-feature.in-view .rule-heading,
.drainage-feature.in-view > p {
  opacity: 1;
}
.drainage-emergency .rule-heading,
.drainage-feature .rule-heading { transition-delay: 0s; }
.drainage-emergency > p:nth-of-type(1),
.drainage-feature > p:nth-of-type(1) { transition-delay: 0.2s; }
.drainage-emergency > p:nth-of-type(2),
.drainage-feature > p:nth-of-type(2) { transition-delay: 0.4s; }
.drainage-emergency .feature-inline { transition-delay: 0.6s; }

/* ---------- Water quality table ---------- */
.wq-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.wq-tables-sticky { display: contents; }
.flow-mobile-intro-page { display: none; }
.wq-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.wq-table th, .wq-table td { border: 1px solid rgba(0,0,0,0.12); padding: 14px 16px; text-align: left; }
.wq-table th { background: rgba(0,0,0,0.04); font-weight: 500; }

.feature-inline { display: grid; grid-template-columns: 1fr 1fr; }
.br-sp { display: none; }

/* ---------- Works / case study ---------- */
.works-list { display: flex; flex-direction: column; gap: 320px; }
.works-section { padding: 280px 0; }
.work-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.work-item:nth-child(even) .work-media { order: 2; }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
}
.work-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; font-size: 0.78rem; color: var(--text-soft); font-family: var(--serif); }
.work-item h3 { font-size: 1.2rem; margin-bottom: 16px; line-height: 1.6; }
.work-item p { color: var(--text-soft); font-size: 0.9rem; }

.work-media,
.work-meta,
.work-item h3,
.work-item p {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.work-item.in-view .work-media,
.work-item.in-view .work-meta,
.work-item.in-view h3,
.work-item.in-view p {
  opacity: 1;
}
.work-media { transition-delay: 0s; }
.work-meta { transition-delay: 0.3s; }
.work-item h3 { transition-delay: 0.6s; }
.work-item p { transition-delay: 0.9s; }

/* ---------- Breadcrumb-ish page top spacing helper ---------- */
.page-top-space { height: var(--header-h); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .header-desktop { display: none; }
  .site-header .logo { display: block; }
  .hamburger { display: block; }
  .stance, .area-wrap, .contact-cta, .flow-wrap, .work-item, .feature-inline { grid-template-columns: 1fr; }
  .feature-inline-body { text-align: center; padding: 15px !important; }
  .feature-inline-body p { text-align: left; }
  .feature-inline-img { padding: 15px !important; }
  .br-sp { display: inline; }
  .fast-hero .hero-title { text-align: center; }
  .fast-hero .scroll-cue { left: 50%; transform: translateX(-50%); }
  .top-page .stance { grid-template-columns: 1fr; padding: 0 20px; }
  .top-page .stance > div { margin-left: 0; padding: 0; order: 1; }
  .top-page .stance img { order: 2; width: 100%; height: 230px; }
  .stance--bleed { padding: 0 20px; }
  .stance--bleed > div { margin-left: 0; }
  .stance--bleed img { height: 235px; }
  .stance--bleed img { transition-delay: 0s; }
  .stance--bleed .eyebrow,
  .stance--bleed h2,
  .stance--bleed p { transition-delay: 0.4s; }
  .work-item { min-height: auto; }
  .work-item:nth-child(even) .work-media { order: 0; }
  .work-media img { height: 400px; }
  .work-body { padding: 40px 24px; }
  .works-list { gap: 120px; }
  .service-grid { grid-template-columns: 1fr; height: auto; }
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .area-vertical { writing-mode: horizontal-tb; justify-self: center; margin-bottom: 55px; }
  .area-wrap { justify-items: center; text-align: center; }
  .area-map { margin: 0 auto; }
  .area-note { text-align: left; margin-left: auto; margin-right: auto; }
  .area-section { padding: 90px 0 55px; }
  .feature-dark-inner { text-align: left; }
  .footer-mobile-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    margin-bottom: 40px;
  }
  .footer-mobile-brand { font-family: var(--serif); font-size: 1.8rem; }
  .footer-mobile-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 260px;
    max-width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.02em;
  }
  .footer-mobile-box .icon-mask { width: 18px; height: 18px; flex-shrink: 0; }
  .footer-mobile-insta {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 1px solid rgba(255, 255, 255, 0.6); */
    /* border-radius: 50%; */
    color: #fff;
  }
  .footer-mobile-insta .icon-mask { width: 18px; height: 18px; }
  .services-intro { flex-direction: column; align-items: center; }
  .services-intro-line-wrap { gap: 22px; margin-bottom: 20px; }
  .services-intro-line { height: 110px; top: 0; }
  .services-intro-heading { margin-left: 0; }
  .philosophy-block { margin-left: 0; max-width: none; }
  .philosophy-block h3 { margin-bottom: 15px; }
  .philosophy-block h3, .philosophy-block p { text-align: left; }
  .flow-label { writing-mode: horizontal-tb; margin-bottom: 10px; }
  .flow-scroll { height: 500vh; position: relative; }
  .flow-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .flow-step {
    grid-template-columns: 1fr;
    text-align: center;
    align-content: start;
    gap: 24px;
  }
  .flow-circle { margin: 0 auto; }
  .btn-row { justify-content: center; }
  .flow-step--workday > div:not(.flow-circle) { text-align: left; }
  .flow-step--inquiry > div:not(.flow-circle) > p { text-align: left; }
  .mobile-page > p { text-align: left; }
  .flow-step::before { display: none; }
  .flow-wrap--single .flow-circle::before { display: none; }
  .flow-circle-mobile-hide { display: none; }
  .flow-circle.flow-circle-mobile-only {
    display: flex;
    margin: 0 auto 24px;
  }
  .flow-step--split,
  .flow-step-content,
  .wq-tables,
  .wq-tables-sticky {
    display: contents;
  }
  .flow-step--split > .flow-circle { display: none; }
  .wq-intro-desktop { display: none; }
  .flow-mobile-intro-page { display: flex; flex-direction: column; }
  .wq-table-page { display: flex; flex-direction: column; justify-content: flex-start; }
  .mobile-page { display: flex; flex-direction: column; justify-content: flex-start; }
  .flow-mobile-page {
    position: absolute;
    inset: 0;
    padding: 100px 24px 40px;
    overflow-y: auto;
    border-bottom: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
  }
  .flow-mobile-page.is-active { opacity: 1; pointer-events: auto; }
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
  .profile-table, .profile-table tbody, .profile-table tr, .profile-table th, .profile-table td {
    display: block;
    width: 100%;
  }
  .profile-table th, .profile-table td { text-align: center; }
  .profile-table td { border-bottom: none; }
}

@media (max-width: 560px) {
  .icon-grid { grid-template-columns: 1fr 1fr; padding: 40px 24px; }
  .hero-title { line-height: 1.5; }
  .profile-table th { font-size: 0.78rem; }
  .profile-table td { font-size: 0.85rem; }
  .works-list { gap: 60px; }
  .work-media img { height: 290px; }
}

/* ---------- TOP page (PC) ---------- */
.top-page .container {
  text-align: center;
}
.top-page .area-wrap { justify-items: center; }

@media (min-width: 981px) {
  .stance .eyebrow { font-size: 23px; }
  .top-page .stance {
    grid-template-columns: 0.48fr 0.52fr;
    padding-right: max(40px, calc((100vw - 1240px) / 2 + 40px));
  }
  .top-page .stance > div {
    text-align: left;
    margin-left: 60px;
  }
  .top-page .stance img {
    height: 500px;
  }
  .stance--bleed {
    grid-template-columns: 50vw 1fr;
    padding-right: max(40px, calc((100vw - 1240px) / 2 + 40px));
    align-items: start;
  }
  .stance--bleed > div { margin-left: 0; }
  .feature-inline { padding: 35px; }
  .flow-section { height: 100vh; overflow: hidden; }
}

.top-page .hero-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: inline-block;
  height: 280px;
  line-height: 1.6;
  margin: 0 auto 34px;
  font-size: 30px;
  font-weight: 100;
}
.top-page .hero-title-shift {
  display: inline-block;
  transform: translateY(60px);
}
