/* ============================================
   宮建工業 — Corporate Site Design v2
   Trend-forward: Bento Grid, Kinetic Type,
   Scroll Animations, Grain Texture,
   Horizontal Scroll, Asymmetric Layout
   ============================================ */

:root {
  --c-navy: #0F2640;
  --c-navy-mid: #1B3A5C;
  --c-navy-light: #2A5A8A;
  --c-orange: #E8813B;
  --c-orange-soft: #F2A26B;
  --c-cream: #FAF7F2;
  --c-warm: #F5F0E8;
  --c-white: #FFFFFF;
  --c-black: #0A0A0A;
  --c-text: #2A2A2A;
  --c-text-mid: #5A5A5A;
  --c-text-mute: #9A9A9A;
  --c-border: #E5E0D8;

  --f-display: 'Cormorant Garamond', 'Georgia', serif;
  --f-sans: 'DM Sans', sans-serif;
  --f-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;

  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.33, 1, 0.68, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { font-family: var(--f-ja); color: var(--c-text); background: var(--c-cream); line-height: 1.8; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { font-family: inherit; }

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

/* --- Grain Overlay --- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-ja); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.08em; padding: 16px 44px;
  border: none; border-radius: 100px; cursor: pointer;
  transition: all 0.5s var(--ease);
  position: relative; overflow: hidden;
}
.btn--white {
  background: var(--c-white); color: var(--c-navy);
}
.btn--white:hover {
  background: var(--c-orange); color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232,129,59,0.3);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-sans); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--c-navy);
  transition: gap 0.4s var(--ease), color 0.3s;
}
.link-arrow span { transition: transform 0.4s var(--ease); }
.link-arrow:hover { gap: 20px; color: var(--c-orange); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow--mt { margin-top: 40px; }

/* --- Section Head --- */
.section { padding: 140px 0; position: relative; }

.section-head { margin-bottom: 48px; }
.section-head__label {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.section-head__num {
  font-family: var(--f-display); font-size: 0.875rem; font-weight: 400;
  color: var(--c-orange); letter-spacing: 0.05em;
}
.section-head__line {
  width: 40px; height: 1px; background: var(--c-orange); opacity: 0.4;
}
.section-head__en {
  font-family: var(--f-display); font-size: 0.875rem; font-weight: 400;
  color: var(--c-text-mute); letter-spacing: 0.1em; font-style: italic;
}

.section-head__title {
  font-size: 2.25rem; font-weight: 700; letter-spacing: 0.06em;
  line-height: 1.4; color: var(--c-navy);
}

.section-head--light .section-head__title { color: var(--c-white); }
.section-head--light .section-head__en { color: rgba(255,255,255,0.4); }

.section-lead {
  font-size: 1rem; color: var(--c-text-mid); line-height: 2;
  margin-bottom: 64px;
}

/* ========== HEADER ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  transition: all 0.5s var(--ease);
  mix-blend-mode: difference;
}
.header.is-solid {
  mix-blend-mode: normal;
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.header.is-solid .header__logo-sub,
.header.is-solid .header__logo-jp,
.header.is-solid .header__contact,
.header.is-solid .header__burger-line { color: var(--c-navy); }
.header.is-solid .header__burger-line { background: var(--c-navy); }

.header__inner {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.header__logo { display: flex; flex-direction: column; z-index: 302; }
.header__logo-jp {
  font-size: 1.25rem; font-weight: 900; letter-spacing: 0.12em;
  color: var(--c-white); line-height: 1.2;
}
.header__logo-sub {
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.1em; color: var(--c-white); opacity: 0.8;
  line-height: 1; margin-bottom: 2px;
}

.header__right { display: flex; align-items: center; gap: 24px; z-index: 302; }

.header__contact {
  font-family: var(--f-sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--c-white); padding: 10px 28px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px; transition: all 0.4s var(--ease);
}
.header.is-solid .header__contact {
  border-color: var(--c-navy);
}
.header__contact:hover {
  background: var(--c-orange); border-color: var(--c-orange); color: var(--c-white);
}

.header__burger {
  display: none; flex-direction: column; gap: 7px;
  width: 32px; height: 32px; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0;
}
.header__burger-line {
  width: 100%; height: 1.5px; background: var(--c-white);
  transition: all 0.5s var(--ease); transform-origin: center;
}

/* Mobile nav */
.header__nav {
  display: none;
  position: fixed; inset: 0;
  background: var(--c-navy);
  z-index: 300; padding: 120px 48px 48px;
  flex-direction: column; justify-content: space-between;
  isolation: isolate;
  mix-blend-mode: normal;
}
.header__nav.is-open { display: flex; }
.header.is-nav-open,
.header:has(.header__nav.is-open) {
  mix-blend-mode: normal !important;
  z-index: 301;
}

/* メニュー開放中: ヘッダー要素を白文字に強制（is-solid除去不要にする） */
.header.is-nav-open .header__logo-sub,
.header.is-nav-open .header__logo-jp { color: var(--c-white) !important; }
.header.is-nav-open .header__burger-line { background: var(--c-white) !important; }
.header__nav-list { display: flex; flex-direction: column; gap: 4px; }
.header__nav-link {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding-left 0.4s var(--ease);
}
.header__nav-link:hover { padding-left: 12px; }
.header__nav-en {
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 400;
  color: var(--c-white); letter-spacing: 0.04em; font-style: italic;
}
.header__nav-jp {
  font-size: 0.75rem; color: rgba(255,255,255,0.4); letter-spacing: 0.1em;
}
.header__nav-footer { margin-top: auto; }
.header__nav-contact {
  display: inline-block; margin-bottom: 24px;
  padding: 14px 40px; background: var(--c-orange);
  color: var(--c-white); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.08em; border-radius: 100px;
}
.header__nav-info {
  font-size: 0.8125rem; color: rgba(255,255,255,0.35); line-height: 1.8;
}

/* Desktop nav inline */
@media (min-width: 1025px) {
  .header__nav {
    display: flex; position: static; background: none;
    padding: 0; flex-direction: row; align-items: center;
  }
  .header__nav-list { flex-direction: row; gap: 0; }
  .header__nav-link {
    padding: 8px 18px; border: none; gap: 0; flex-direction: column; align-items: center;
  }
  .header__nav-link:hover { padding-left: 18px; }
  .header__nav-en {
    font-size: 0.75rem; color: var(--c-white);
  }
  .header.is-solid .header__nav-en { color: var(--c-text); }
  .header__nav-jp {
    font-size: 0.5625rem; color: rgba(255,255,255,0.35);
  }
  .header.is-solid .header__nav-jp { color: var(--c-text-mute); }
  .header__nav-link:hover .header__nav-en { color: var(--c-orange); }
  .header__nav-footer { display: none; }
}

/* ========== HERO ========== */
.hero {
  position: relative; height: 100vh; min-height: 720px;
  display: flex; align-items: flex-end;
  overflow: hidden; background: var(--c-black);
}

.hero__bg { position: absolute; inset: 0; }
.hero__bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__bg-image {
  position: absolute; inset: -10%; /* parallax room */
  background:
    linear-gradient(165deg,
      #080e18 0%, #0f2035 20%, #1a3d5c 40%,
      #1e4a3a 65%, #162e20 100%);
  transition: transform 0.1s linear;
}
.hero__bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 100%, rgba(232,129,59,0.15), transparent 60%),
    radial-gradient(ellipse at 80% 0%, rgba(42,90,138,0.2), transparent 50%),
    linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 40%);
}

.hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 0 48px 80px;
  display: flex; flex-direction: column; gap: 48px;
}

.hero__catch {
  display: flex; flex-direction: column;
}
.hero__catch-line {
  overflow: hidden; display: block;
}
.hero__catch-inner {
  display: block;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--c-white);
  transform: translateY(110%);
  transition: transform 1.2s var(--ease);
}
.hero__catch-line.is-revealed .hero__catch-inner {
  transform: translateY(0);
}
[data-delay="1"] .hero__catch-inner { transition-delay: 0.2s; }

.hero__sub p {
  font-size: 1rem; line-height: 2.2;
  color: rgba(255,255,255,0.55); letter-spacing: 0.04em;
  max-width: 480px;
}

.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: auto; padding-top: 20px;
}
.hero__scroll {
  display: flex; align-items: center; gap: 16px;
}
.hero__scroll span {
  font-family: var(--f-sans); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.2em; color: rgba(255,255,255,0.35); text-transform: uppercase;
}
.hero__scroll-line {
  width: 60px; height: 1px; background: rgba(255,255,255,0.2);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: var(--c-orange);
  animation: scrollPulse 2.5s var(--ease-smooth) infinite;
}
@keyframes scrollPulse {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

.hero__permit {
  font-family: var(--f-sans); font-size: 0.6875rem;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.25);
}

.hero__deco {
  position: absolute; top: 50%; right: -5%; z-index: 1;
  transform: translateY(-50%) rotate(-90deg);
}
.hero__deco-text {
  font-family: var(--f-display); font-size: clamp(6rem, 14vw, 13rem);
  font-weight: 700; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.025);
  white-space: nowrap;
  user-select: none;
}

/* ========== MARQUEE ========== */
.marquee {
  background: var(--c-navy); padding: 18px 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.marquee__track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  font-family: var(--f-display); font-size: 0.875rem; font-weight: 400;
  letter-spacing: 0.25em; color: rgba(255,255,255,0.2);
  text-transform: uppercase;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== BUSINESS — Alternating Rows ========== */
.business {
  background: var(--c-cream); padding-bottom: 60px;
}

.business__list {
  display: flex; flex-direction: column;
  gap: 2px;
}

.biz-row {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 420px;
  background: var(--c-white);
  overflow: hidden;
  transition: box-shadow 0.5s var(--ease);
}
.biz-row:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

/* 反転: 画像を右に */
.biz-row--reverse { direction: rtl; }
.biz-row--reverse > * { direction: ltr; }

.biz-row__img {
  position: relative; overflow: hidden;
}
.biz-row__ph {
  width: 100%; height: 100%; min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg,
    hsl(var(--ph-hue), var(--ph-sat), 22%) 0%,
    hsl(var(--ph-hue), var(--ph-sat), 38%) 100%);
  transition: transform 0.8s var(--ease);
}
.biz-row:hover .biz-row__ph { transform: scale(1.05); }
.biz-row__ph svg {
  width: 72px; height: 72px; color: rgba(255,255,255,0.12);
}

.biz-row__idx {
  position: absolute; bottom: 20px; right: 24px;
  font-family: var(--f-display); font-size: 5rem; font-weight: 700;
  color: rgba(255,255,255,0.04); line-height: 1;
}

.biz-row__body {
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 64px;
}
.biz-row__en {
  display: block;
  font-family: var(--f-display); font-size: 0.8125rem;
  font-style: italic; color: var(--c-orange); letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.biz-row__title {
  font-size: 1.75rem; font-weight: 900;
  letter-spacing: 0.06em; color: var(--c-navy);
  margin-bottom: 20px; line-height: 1.4;
}
.biz-row__text {
  font-size: 0.9375rem; color: var(--c-text-mid);
  line-height: 2.2; margin-bottom: 32px;
}
.biz-row__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--c-navy); letter-spacing: 0.06em;
  transition: gap 0.4s var(--ease), color 0.3s;
}
.biz-row__link span {
  font-family: var(--f-sans); font-size: 1.125rem;
  transition: transform 0.4s var(--ease);
}
.biz-row:hover .biz-row__link { gap: 16px; color: var(--c-orange); }
.biz-row:hover .biz-row__link span { transform: translateX(4px); }

/* ========== WORKS — Featured + Staggered Grid ========== */
.works {
  background: var(--c-white);
  padding-bottom: 80px;
}

/* Featured large card */
.works-feat {
  margin: 0 48px 64px;
  max-width: 1400px;
  margin-left: auto; margin-right: auto;
  padding: 0 48px;
}
.works-feat__link {
  display: block; position: relative;
  border-radius: 16px; overflow: hidden;
  aspect-ratio: 21 / 9;
  min-height: 400px;
}
.works-feat__img {
  position: absolute; inset: 0;
}
.works-feat__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.works-feat__link:hover .works-feat__img img { transform: scale(1.04); }
.works-feat__img-label {
  position: absolute; bottom: 16px; right: 16px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 0.6875rem; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: 3px;
  z-index: 2; pointer-events: none;
}
.works-feat__ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg,
    hsl(var(--ph-hue), 22%, 18%) 0%,
    hsl(var(--ph-hue), 18%, 35%) 50%,
    hsl(var(--ph-hue), 15%, 25%) 100%);
  transition: transform 1s var(--ease);
}
.works-feat__link:hover .works-feat__ph { transform: scale(1.04); }
.works-feat__ph span {
  font-size: 1rem; color: rgba(255,255,255,0.1); letter-spacing: 0.2em;
}

.works-feat__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 56px 64px;
  background: linear-gradient(to top,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.3) 40%,
    transparent 70%);
  transition: padding-bottom 0.5s var(--ease);
}
.works-feat__link:hover .works-feat__overlay {
  padding-bottom: 64px;
}

.works-feat__cat {
  display: inline-block; width: fit-content;
  padding: 4px 16px; margin-bottom: 16px;
  background: var(--c-orange); color: var(--c-white);
  font-size: 0.6875rem; font-weight: 600;
  border-radius: 100px; letter-spacing: 0.06em;
}
.works-feat__title {
  font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 900;
  color: var(--c-white); letter-spacing: 0.04em;
  line-height: 1.3; margin-bottom: 12px;
}
.works-feat__info {
  font-family: var(--f-sans); font-size: 0.8125rem;
  color: rgba(255,255,255,0.5); letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.works-feat__desc {
  font-size: 0.9375rem; color: rgba(255,255,255,0.6);
  line-height: 1.9; max-width: 560px;
}

/* Staggered grid */
.works-stagger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.works-item {
  display: block; border-radius: 12px;
  overflow: hidden; background: var(--c-cream);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.works-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.08);
}

/* Stagger: odd items up, even items shifted down */
.works-item--up { margin-top: 0; }
.works-item--down { margin-top: 72px; }

.works-item__img {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
}
.works-item__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.works-item:hover .works-item__img img { transform: scale(1.06); }
.works-item__img-label {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 0.625rem; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 3px;
  z-index: 2; pointer-events: none;
}
.works-item__ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg,
    hsl(var(--ph-hue), 18%, 25%) 0%,
    hsl(var(--ph-hue), 14%, 42%) 100%);
  transition: transform 0.8s var(--ease);
}
.works-item:hover .works-item__ph { transform: scale(1.06); }
.works-item__ph span {
  font-size: 0.8125rem; color: rgba(255,255,255,0.12); letter-spacing: 0.15em;
}
.works-item__cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--c-orange); color: var(--c-white);
  font-size: 0.625rem; font-weight: 600;
  padding: 4px 14px; border-radius: 100px;
  letter-spacing: 0.04em;
}

.works-item__body {
  padding: 24px 28px 28px;
}
.works-item__body h3 {
  font-size: 1.0625rem; font-weight: 700;
  color: var(--c-navy); letter-spacing: 0.03em;
  margin-bottom: 10px; line-height: 1.5;
}
.works-item__info {
  font-family: var(--f-sans); font-size: 0.75rem;
  color: var(--c-text-mute); letter-spacing: 0.04em;
}

.works__footer {
  margin-top: 72px;
}

/* ========== FEATURES / BENTO ========== */
.features {
  background: var(--c-navy);
  position: relative; overflow: hidden;
}
.features::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(232,129,59,0.08), transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(42,90,138,0.15), transparent 50%);
}
.features .container { position: relative; z-index: 1; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 2px;
}

.bento__item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 44px 36px;
  transition: background 0.4s;
  position: relative; overflow: hidden;
}
.bento__item:hover {
  background: rgba(255,255,255,0.07);
}

.bento__item--wide { grid-column: span 2; }
.bento__item--accent {
  background: rgba(232,129,59,0.08);
  border-color: rgba(232,129,59,0.12);
}
.bento__item--accent:hover { background: rgba(232,129,59,0.12); }
.bento__item--permits { grid-column: span 2; }

.bento__label {
  display: inline-block; margin-bottom: 16px;
  font-family: var(--f-display); font-size: 0.8125rem;
  font-style: italic; color: var(--c-orange-soft); letter-spacing: 0.1em;
}

.bento__item h3 {
  font-size: 1.375rem; font-weight: 700; color: var(--c-white);
  letter-spacing: 0.04em; margin-bottom: 14px; line-height: 1.5;
}
.bento__item p {
  font-size: 0.875rem; color: rgba(255,255,255,0.5);
  line-height: 2;
}

.bento__tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.bento__tags span {
  padding: 5px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 0.75rem; color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  transition: all 0.3s;
}
.bento__tags span:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--c-white); background: rgba(255,255,255,0.06);
}

/* ========== NEWS ========== */
.news {
  background: var(--c-cream);
}

.news__layout {
  display: grid; grid-template-columns: 280px 1fr; gap: 80px;
  align-items: start;
}

.news__list {
  border-top: 1px solid var(--c-border);
}
.news__item a {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--c-border);
  transition: padding-left 0.4s var(--ease);
}
.news__item a:hover { padding-left: 8px; }

.news__item time {
  font-family: var(--f-sans); font-size: 0.8125rem;
  color: var(--c-text-mute); letter-spacing: 0.06em;
  flex-shrink: 0; width: 100px;
}
.news__tag {
  flex-shrink: 0; padding: 2px 12px;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.06em;
  border-radius: 100px;
  background: var(--c-navy); color: var(--c-white);
}
.news__tag--recruit { background: #3a7a5c; }
.news__tag--works { background: var(--c-orange); }

.news__title {
  font-size: 0.875rem; font-weight: 500; color: var(--c-text);
  line-height: 1.6;
}

/* ========== RECRUIT ========== */
.recruit {
  padding: 0; overflow: hidden;
}
.recruit__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.recruit__image {
  position: relative; overflow: hidden;
}
.recruit__image-ph {
  width: 100%; height: 100%; min-height: 500px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1a2f1e 0%, #253d2e 50%, #1e3a50 100%);
  color: rgba(255,255,255,0.15); font-size: 0.9375rem; letter-spacing: 0.15em;
}
.recruit__content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 72px;
  background: var(--c-navy);
}
.recruit__catch {
  font-size: 2.25rem; font-weight: 900;
  letter-spacing: 0.04em; line-height: 1.5;
  color: var(--c-white); margin: 24px 0;
}
.recruit__text {
  font-size: 0.9375rem; color: rgba(255,255,255,0.5);
  line-height: 2.2; margin-bottom: 40px;
}

/* ========== CONTACT ========== */
.contact {
  background: var(--c-cream); padding: 120px 0;
}
.contact__box {
  background: var(--c-white);
  border-radius: 20px;
  padding: 80px 88px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 72px;
  box-shadow: 0 2px 60px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative; overflow: hidden;
}
.contact__box::before {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,129,59,0.05), transparent 65%);
  border-radius: 50%;
}
.contact__box::after {
  content: ''; position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(27,58,92,0.04), transparent 65%);
  border-radius: 50%;
}

.contact__head { position: relative; z-index: 1; }
.contact__desc {
  font-size: 0.9375rem; color: var(--c-text-mid); line-height: 2; margin-top: 16px;
}

.contact__actions {
  display: flex; flex-direction: column; gap: 12px;
  flex-shrink: 0; position: relative; z-index: 1;
}
.contact__tel {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 48px;
  border: 1px solid var(--c-border); border-radius: 12px;
  transition: all 0.4s var(--ease);
}
.contact__tel:hover {
  border-color: var(--c-orange);
  box-shadow: 0 8px 32px rgba(232,129,59,0.08);
}
.contact__tel-label {
  font-family: var(--f-sans); font-size: 0.625rem;
  font-weight: 600; letter-spacing: 0.2em;
  color: var(--c-orange); margin-bottom: 6px;
}
.contact__tel-num {
  font-family: var(--f-display); font-size: 2rem;
  font-weight: 600; color: var(--c-navy); letter-spacing: 0.03em;
}
.contact__tel-hours {
  font-size: 0.6875rem; color: var(--c-text-mute); margin-top: 4px;
}

.contact__form-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--c-navy); color: var(--c-white);
  padding: 18px 48px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.06em;
  transition: all 0.4s var(--ease);
}
.contact__form-btn:hover {
  background: var(--c-orange);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232,129,59,0.25);
}
.contact__form-arrow {
  font-family: var(--f-sans);
  transition: transform 0.4s var(--ease);
}
.contact__form-btn:hover .contact__form-arrow { transform: translateX(6px); }

/* ========== FOOTER ========== */
.footer {
  background: var(--c-black); padding: 72px 0 0;
  color: rgba(255,255,255,0.4);
}

.footer__top {
  display: flex; justify-content: space-between; gap: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__brand { max-width: 360px; }
.footer__logo-sub {
  display: block; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.6);
  line-height: 1; margin-bottom: 4px;
}
.footer__logo-jp {
  display: block; font-size: 1.375rem; font-weight: 900;
  letter-spacing: 0.12em; color: var(--c-white); line-height: 1;
  margin-bottom: 24px;
}
.footer__address {
  font-size: 0.8125rem; line-height: 2; margin-bottom: 12px;
}
.footer__permit {
  font-size: 0.75rem; color: rgba(255,255,255,0.2);
}

.footer__nav ul {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
}
.footer__nav a {
  font-size: 0.8125rem; color: rgba(255,255,255,0.35);
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--c-orange-soft); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
}
.footer__bottom small {
  font-size: 0.6875rem; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.2);
}
.footer__totop {
  font-family: var(--f-sans); font-size: 0.75rem;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}
.footer__totop:hover { color: var(--c-orange-soft); }

/* ========== ANIMATIONS ========== */
[data-anim] {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-anim="fade"] { transform: none; }
[data-anim="slide-right"] { transform: translateX(-80px); }
[data-anim="slide-left"] { transform: translateX(80px); }
[data-anim].is-visible { opacity: 1; transform: translate(0, 0); }
[data-delay="1"] { transition-delay: 0.18s; }
[data-delay="2"] { transition-delay: 0.36s; }
[data-delay="3"] { transition-delay: 0.54s; }

/* ========== RESPONSIVE — TABLET ========== */
@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .container { padding: 0 32px; }
  .section { padding: 100px 0; }

  /* --- モバイル: mix-blend-mode を完全に無効化 ---
     blend-mode は子要素（ナビ背景）にも影響し、
     背景透過の原因になるため、モバイルでは使わない。
     ヒーローページのヘッダー文字色はCSS側で白を直接指定する。 */
  .header {
    mix-blend-mode: normal;
  }
  .header__logo-sub,
  .header__logo-jp {
    color: var(--c-white);
  }
  .header__burger-line {
    background: var(--c-white);
  }
  /* is-solid 時（スクロール後 or 下層ページ）は濃紺に上書き */
  .header.is-solid .header__logo-sub,
  .header.is-solid .header__logo-jp {
    color: var(--c-navy);
  }
  .header.is-solid .header__burger-line {
    background: var(--c-navy);
  }

  /* モバイル: backdrop-filter を使わない（メニュー表示の干渉を防ぐ） */
  .header.is-solid {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(250,247,242,1);
  }
  .header__nav {
    display: none;
    background: var(--c-navy);
    z-index: 300;
  }
  .header__nav.is-open {
    display: flex;
  }
  .header.is-nav-open {
    background: transparent !important;
  }

  .header__burger { display: flex; z-index: 302; }

  .header__burger.is-open .header__burger-line:first-child {
    transform: translateY(4.25px) rotate(45deg);
  }
  .header__burger.is-open .header__burger-line:last-child {
    transform: translateY(-4.25px) rotate(-45deg);
  }

  .biz-row { grid-template-columns: 1fr 1fr; min-height: 360px; }
  .biz-row__body { padding: 40px 36px; }
  .biz-row__title { font-size: 1.5rem; }

  .works-feat { padding: 0 32px; }
  .works-feat__link { aspect-ratio: 16 / 9; min-height: 320px; }
  .works-feat__overlay { padding: 40px; }
  .works-stagger { gap: 24px; }
  .works-item--down { margin-top: 48px; }

  .bento { grid-template-columns: 1fr 1fr; }
  .bento__item--wide { grid-column: span 2; }
  .bento__item--permits { grid-column: span 2; }

  .news__layout { grid-template-columns: 1fr; gap: 40px; }
  .link-arrow--mt { margin-top: 20px; }

  .recruit__inner { grid-template-columns: 1fr; }
  .recruit__image-ph { min-height: 320px; }
  .recruit__content { padding: 56px 40px; }

  .contact__box { flex-direction: column; padding: 48px 40px; text-align: center; }
  .contact__actions { width: 100%; }

  .footer__top { flex-direction: column; gap: 40px; }
}

/* ========== SUBPAGE COMMON ========== */

/* Page Hero (下層ページ用ヒーロー) */
.page-hero {
  position: relative; padding: 180px 0 80px;
  background: var(--c-navy); overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(232,129,59,0.1), transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(42,90,138,0.15), transparent 50%);
}
.page-hero .container { position: relative; z-index: 1; }

.page-hero__en {
  font-family: var(--f-display); font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700; color: rgba(255,255,255,0.04);
  letter-spacing: 0.04em; line-height: 1;
  position: absolute; top: 50%; right: 48px;
  transform: translateY(-50%);
  white-space: nowrap; pointer-events: none;
}

.page-hero__breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 32px;
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
}
.page-hero__breadcrumb a {
  color: rgba(255,255,255,0.35); transition: color 0.3s;
}
.page-hero__breadcrumb a:hover { color: var(--c-orange-soft); }
.page-hero__breadcrumb span { margin: 0 4px; }

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  letter-spacing: 0.06em; color: var(--c-white); line-height: 1.3;
}
.page-hero__sub {
  font-size: 0.9375rem; color: rgba(255,255,255,0.45);
  margin-top: 16px; line-height: 1.9;
}

/* Subpage content area */
.page-content {
  padding: 100px 0;
  background: var(--c-cream);
}
.page-content--white {
  background: var(--c-white);
}
.page-content--navy {
  background: var(--c-navy);
}

/* Content section within page */
.content-section {
  margin-bottom: 100px;
}
.content-section:last-child { margin-bottom: 0; }

.content-section__head {
  margin-bottom: 48px;
}
.content-section__title {
  font-size: 1.625rem; font-weight: 900;
  letter-spacing: 0.06em; color: var(--c-navy);
  line-height: 1.4; position: relative;
  padding-bottom: 20px;
}
.content-section__title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 40px; height: 2px; background: var(--c-orange);
}
.content-section__title--center {
  text-align: center;
}
.content-section__title--center::after {
  left: 50%; transform: translateX(-50%);
}

/* Info table (会社情報等) */
.info-table {
  width: 100%; border-collapse: collapse;
}
.info-table th,
.info-table td {
  padding: 20px 24px; font-size: 0.9375rem;
  line-height: 1.9; border-bottom: 1px solid var(--c-border);
  text-align: left; vertical-align: top;
}
.info-table th {
  width: 180px; font-weight: 700; color: var(--c-navy);
  background: rgba(15,38,64,0.02);
  white-space: nowrap;
}
.info-table td {
  color: var(--c-text);
}

/* Timeline (沿革) */
.timeline {
  position: relative; padding-left: 48px;
}
.timeline::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 16px;
  width: 2px; background: var(--c-border);
}
.timeline__item {
  position: relative; margin-bottom: 40px;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__item::before {
  content: ''; position: absolute; left: -40px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-white); border: 2px solid var(--c-orange);
}
.timeline__year {
  font-family: var(--f-sans); font-size: 0.8125rem;
  font-weight: 700; color: var(--c-orange); letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.timeline__text {
  font-size: 0.9375rem; color: var(--c-text); line-height: 1.9;
}

/* Card grid */
.card-grid {
  display: grid; gap: 24px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--c-white); border-radius: 12px;
  overflow: hidden; border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.07);
}
.card__img {
  aspect-ratio: 4 / 3; overflow: hidden; position: relative;
}
.card__img-label {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 0.6875rem; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: 3px;
  z-index: 1; pointer-events: none;
}
.card__ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg,
    hsl(var(--ph-hue, 210), var(--ph-sat, 20%), 25%) 0%,
    hsl(var(--ph-hue, 210), var(--ph-sat, 20%), 40%) 100%);
  color: rgba(255,255,255,0.1); font-size: 0.8125rem; letter-spacing: 0.15em;
  transition: transform 0.8s var(--ease);
}
.card:hover .card__ph { transform: scale(1.05); }
.card__body { padding: 28px; }
.card__cat {
  display: inline-block; padding: 3px 12px;
  font-size: 0.625rem; font-weight: 600;
  background: var(--c-orange); color: var(--c-white);
  border-radius: 100px; letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.card__title {
  font-size: 1.0625rem; font-weight: 700;
  color: var(--c-navy); line-height: 1.5;
  margin-bottom: 10px;
}
.card__text {
  font-size: 0.8125rem; color: var(--c-text-mid);
  line-height: 1.9;
}
.card__meta {
  font-family: var(--f-sans); font-size: 0.75rem;
  color: var(--c-text-mute); margin-top: 12px;
}

/* Filter tabs (施工実績・お知らせ) */
.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 48px;
}
.filter-tab {
  padding: 8px 24px; border-radius: 100px;
  font-size: 0.8125rem; font-weight: 500;
  border: 1px solid var(--c-border);
  background: var(--c-white); color: var(--c-text-mid);
  cursor: pointer; transition: all 0.3s;
}
.filter-tab:hover {
  border-color: var(--c-orange); color: var(--c-orange);
}
.filter-tab.is-active {
  background: var(--c-navy); color: var(--c-white);
  border-color: var(--c-navy);
}

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; margin-top: 64px;
}
.pagination__item {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-family: var(--f-sans);
  font-size: 0.875rem; font-weight: 500; color: var(--c-text-mid);
  transition: all 0.3s;
}
.pagination__item:hover { background: var(--c-white); color: var(--c-navy); }
.pagination__item.is-current {
  background: var(--c-navy); color: var(--c-white);
}
.pagination__item--arrow {
  font-size: 1rem;
}

/* Form styles */
.form-group {
  margin-bottom: 28px;
}
.form-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 700; color: var(--c-navy);
  margin-bottom: 10px;
}
.form-label__required {
  font-size: 0.625rem; font-weight: 600;
  padding: 2px 8px; border-radius: 3px;
  background: #E85A5A; color: var(--c-white);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%; padding: 14px 18px;
  font-family: var(--f-ja); font-size: 0.9375rem;
  border: 1px solid var(--c-border); border-radius: 8px;
  background: var(--c-white); color: var(--c-text);
  transition: border-color 0.3s;
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--c-navy);
  box-shadow: 0 0 0 3px rgba(15,38,64,0.06);
}
.form-textarea { min-height: 180px; resize: vertical; }
.form-select { cursor: pointer; }

.form-submit {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 56px; border: none; border-radius: 100px;
  background: var(--c-navy); color: var(--c-white);
  font-family: var(--f-ja); font-size: 0.9375rem; font-weight: 700;
  letter-spacing: 0.06em; cursor: pointer;
  transition: all 0.4s var(--ease);
}
.form-submit:hover {
  background: var(--c-orange);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232,129,59,0.25);
}

/* Form validation & success states */
.form-group.is-error .form-input,
.form-group.is-error .form-textarea,
.form-group.is-error .form-select {
  border-color: #E85A5A;
  background: #FFF8F8;
}
.form-error {
  display: block;
  font-size: 0.75rem;
  color: #E85A5A;
  margin-top: 6px;
  min-height: 0;
  line-height: 1.6;
}
.form-global-error {
  font-size: 0.875rem;
  color: #E85A5A;
  margin-bottom: 20px;
  line-height: 1.8;
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.form-success {
  text-align: center;
  padding: 80px 20px;
}
.form-success__icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--c-navy);
  color: var(--c-white);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.form-success__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 16px;
}
.form-success__text {
  font-size: 0.9375rem;
  color: var(--c-text-mid);
  line-height: 2;
}

/* Profile card (代表挨拶・先輩紹介) */
.profile {
  display: grid; grid-template-columns: 340px 1fr; gap: 64px;
  align-items: start;
}
.profile__img {
  border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4;
}
.profile__ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1a2f1e 0%, #253d2e 50%, #1e3a50 100%);
  color: rgba(255,255,255,0.15); font-size: 0.875rem; letter-spacing: 0.12em;
}
.profile__name {
  font-size: 1.375rem; font-weight: 900; color: var(--c-navy);
  margin-bottom: 4px;
}
.profile__role {
  font-size: 0.8125rem; color: var(--c-orange); margin-bottom: 24px;
}
.profile__text {
  font-size: 0.9375rem; color: var(--c-text); line-height: 2.4;
}
.profile__text p { margin-bottom: 20px; }
.profile__text p:last-child { margin-bottom: 0; }

/* SDGs badge row */
.sdgs-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 24px;
}
.sdgs-badge {
  width: 72px; height: 72px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.625rem; font-weight: 700; color: var(--c-white);
  text-align: center; line-height: 1.3;
}

/* Google Maps embed */
.map-embed {
  width: 100%; height: 400px; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--c-border);
}
.map-embed iframe {
  width: 100%; height: 100%; border: none;
}
.map-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, #d8dde3 0%, #c5cdd6 100%);
  color: rgba(0,0,0,0.15); font-size: 1rem; letter-spacing: 0.1em;
}

/* Recruit: benefit items */
.benefit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.benefit-item {
  background: var(--c-white); border-radius: 12px;
  padding: 36px 28px; text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.05);
}
.benefit-item__icon {
  width: 56px; height: 56px; margin: 0 auto 20px;
  border-radius: 50%; background: rgba(232,129,59,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.benefit-item__title {
  font-size: 1rem; font-weight: 700; color: var(--c-navy);
  margin-bottom: 10px;
}
.benefit-item__text {
  font-size: 0.8125rem; color: var(--c-text-mid); line-height: 1.9;
}

/* Contact info bar */
.contact-info-bar {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 64px;
}
.contact-info-item {
  background: var(--c-cream); border-radius: 12px;
  padding: 36px; text-align: center;
}
.contact-info-item__label {
  font-size: 0.75rem; font-weight: 600;
  color: var(--c-orange); letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.contact-info-item__value {
  font-family: var(--f-display); font-size: 1.75rem;
  font-weight: 600; color: var(--c-navy);
}
.contact-info-item__note {
  font-size: 0.75rem; color: var(--c-text-mute); margin-top: 6px;
}

/* CTA band (下層ページ共通の問い合わせ誘導) */
.cta-band {
  background: var(--c-navy); padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(232,129,59,0.1), transparent 50%);
}
.cta-band .container {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px;
}
.cta-band__text {
  font-size: 1.5rem; font-weight: 900; color: var(--c-white);
  letter-spacing: 0.04em; line-height: 1.6;
}
.cta-band__text small {
  display: block; font-size: 0.875rem; font-weight: 400;
  color: rgba(255,255,255,0.45); margin-top: 8px;
}
.cta-band__actions {
  display: flex; gap: 16px; flex-shrink: 0;
}
.cta-band__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 40px; border-radius: 100px;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em;
  transition: all 0.4s var(--ease);
}
.cta-band__btn--primary {
  background: var(--c-orange); color: var(--c-white);
}
.cta-band__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232,129,59,0.3);
}
.cta-band__btn--outline {
  background: transparent; color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.25);
}
.cta-band__btn--outline:hover {
  border-color: var(--c-white); background: rgba(255,255,255,0.06);
}

/* ========== SUBPAGE RESPONSIVE — TABLET ========== */
@media (max-width: 1024px) {
  .page-hero { padding: 140px 0 60px; }
  .page-hero__en { display: none; }
  .profile { grid-template-columns: 260px 1fr; gap: 40px; }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band .container { flex-direction: column; text-align: center; }
  .cta-band__actions { justify-content: center; }
  .contact-info-bar { grid-template-columns: 1fr; }
}

/* ========== SUBPAGE RESPONSIVE — SMARTPHONE ========== */
@media (max-width: 767px) {
  .page-hero { padding: 120px 0 48px; }
  .page-hero__title { font-size: 1.75rem; }
  .profile { grid-template-columns: 1fr; gap: 32px; }
  .profile__img { max-width: 280px; }
  .info-table th { width: 120px; padding: 14px 16px; font-size: 0.8125rem; }
  .info-table td { padding: 14px 16px; font-size: 0.8125rem; }
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 36px; }
  .timeline__item::before { left: -28px; }
  .cta-band { padding: 56px 0; }
  .cta-band__text { font-size: 1.25rem; }
  .cta-band__actions { flex-direction: column; width: 100%; }
  .cta-band__btn { justify-content: center; }
  .map-embed { height: 280px; }
  .content-section { margin-bottom: 72px; }
  .page-content { padding: 72px 0; }
}

/* ========== RESPONSIVE — SMARTPHONE ========== */
@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-head__title { font-size: 1.625rem; }
  .section-lead { margin-bottom: 40px; }

  .hero { align-items: flex-end; }
  .hero__content { padding: 0 24px 56px; }
  .hero__catch-inner { font-size: 2.25rem; }
  .hero__sub p { font-size: 0.875rem; }
  .hero__bottom { flex-direction: column; gap: 20px; align-items: flex-start; }
  .hero__deco { display: none; }

  .marquee__track { font-size: 0.75rem; gap: 32px; }

  .biz-row,
  .works-row { grid-template-columns: 1fr; min-height: auto; }
  .biz-row--reverse,
  .works-row--reverse { direction: ltr; }
  .biz-row__ph { min-height: 220px; }
  .biz-row__body { padding: 32px 24px; }
  .biz-row__title { font-size: 1.375rem; }
  .biz-row__text { font-size: 0.875rem; margin-bottom: 24px; }

  .works-feat { padding: 0 20px; margin-bottom: 40px; }
  .works-feat__link { aspect-ratio: 3 / 2; min-height: 260px; }
  .works-feat__overlay { padding: 28px; }
  .works-feat__desc { display: none; }
  .works-stagger { grid-template-columns: 1fr; gap: 20px; }
  .works-item--down { margin-top: 0; }
  .works-item__body { padding: 20px; }

  [data-anim="slide-right"] { transform: translateX(-40px); }
  [data-anim="slide-left"] { transform: translateX(40px); }

  .bento { grid-template-columns: 1fr; }
  .bento__item--wide,
  .bento__item--permits { grid-column: span 1; }
  .bento__item { padding: 32px 24px; }

  .recruit__catch { font-size: 1.625rem; }
  .recruit__content { padding: 48px 24px; }

  .contact { padding: 72px 0; }
  .contact__box { padding: 36px 24px; border-radius: 16px; }
  .contact__tel { padding: 24px 20px; }
  .contact__tel-num { font-size: 1.5rem; }

  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================
   Real Image Styles
   ============================================ */
.biz-row__img img {
  width: 100%; height: 100%; min-height: 380px;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.biz-row:hover .biz-row__img img { transform: scale(1.05); }

.card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card:hover .card__img img { transform: scale(1.05); }

.content-section__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .biz-row__img img { min-height: 220px; }
  .pc-only { display: none; }
}

/* Images — prevent overflow on mobile */
.card__img img,
.works-feat__img img,
.biz-row__img img { max-width: 100%; }

/* ============================================
   MOBILE FIX — Android表示崩れ修正
   ============================================ */
@media (max-width: 767px) {

  /* --- 1. ヘッダーContactボタン非表示（ハンバーガーメニュー内にあるので不要） --- */
  .header__contact {
    display: none;
  }

  /* --- 2. インラインの2カラムgridを1カラムに（事業内容・会社概要ページ） --- */
  .page-content [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* --- 3. 採用ページ求人カードの余白縮小 --- */
  .page-content [style*="padding:48px"] {
    padding: 24px !important;
    border-radius: 12px !important;
  }

  /* --- 4. お知らせリストの折り返し対応 --- */
  .news__item a {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .news__item time {
    width: auto;
    flex-shrink: 0;
  }
  .news__title {
    width: 100%;
    flex-basis: 100%;
  }

  /* --- 5. 会社情報テーブルを縦積みに --- */
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
  .info-table th {
    padding: 14px 16px 4px;
    border-bottom: none;
    background: transparent;
    font-size: 0.75rem;
    color: var(--c-orange);
  }
  .info-table td {
    padding: 4px 16px 14px;
  }
  .info-table tr {
    border-bottom: 1px solid var(--c-border);
  }

  /* --- 6. ヘッダー内の余白調整（狭い画面でのはみ出し防止） --- */
  .header__inner {
    padding: 0 16px;
  }

  /* --- 7. 採用ページ中央寄せテキストの余白 --- */
  .page-content [style*="max-width:720px"] {
    padding: 0 4px;
  }

  /* --- 8. 応募ボタン群を縦並びに --- */
  .page-content [style*="justify-content:center"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .page-content .cta-band__btn {
    justify-content: center;
    text-align: center;
  }
}

/* ============================================
   GALAXY / Samsung Internet 表示崩れ修正
   ============================================ */

/* --- G1. mix-blend-mode 対策 ---
   モバイル・タブレットでは、タブレット用メディアクエリ内で
   mix-blend-mode: normal に変更済み。
   ハンバーガーメニューの背景透過問題を根本解消。 */

/* --- G2. 100vh のアドレスバー問題修正 ---
   Samsung Internet では 100vh にアドレスバー高さが含まれ
   下部コンテンツが隠れる。dvh（動的ビューポート単位）を使用。 */
.hero {
  min-height: 100dvh;
}
@supports not (min-height: 100dvh) {
  .hero {
    min-height: calc(100vh - 56px);
  }
}

/* --- G3. テキストはみ出し防止（全体） --- */
body {
  overflow-wrap: break-word;
  word-break: break-word;
}
.info-table td,
.card__text,
.card__title,
.biz-row__text,
.works-feat__desc,
.works-feat__title,
.profile__text,
.news__title,
.footer__address {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --- G4. aspect-ratio 未対応端末のフォールバック ---
   Android 10以前の Galaxy で画像が潰れるのを防ぐ。 */
@supports not (aspect-ratio: 1) {
  .card__img {
    height: 0;
    padding-bottom: 75%; /* 4:3 */
    position: relative;
  }
  .card__img img,
  .card__img .card__ph {
    position: absolute;
    inset: 0;
  }
  .works-feat__link {
    height: 0;
    padding-bottom: 42.86%; /* 21:9 */
    position: relative;
  }
  .works-item__img {
    height: 0;
    padding-bottom: 75%;
    position: relative;
  }
  .works-item__img img,
  .works-item__img .works-item__ph {
    position: absolute;
    inset: 0;
  }
  .profile__img {
    height: 0;
    padding-bottom: 133.33%; /* 3:4 */
    position: relative;
  }
  .profile__img .profile__ph {
    position: absolute;
    inset: 0;
  }
}

/* --- G5. grain テクスチャのタップ干渉防止 ---
   Samsung Internet の一部バージョンで pointer-events:none が
   効かないケースへの対策。 */
.grain {
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}
@media (max-width: 1024px) {
  .grain {
    display: none;
  }
}

/* --- G6. Galaxy 小画面（360px以下）向け追加調整 --- */
@media (max-width: 374px) {
  .container { padding: 0 16px; }
  .hero__content { padding: 0 16px 40px; }
  .hero__catch-inner { font-size: 2rem; }
  .section { padding: 56px 0; }
  .section-head__title { font-size: 1.375rem; }

  .header__inner { padding: 0 12px; }
  .header__logo-jp { font-size: 1.1rem; }

  .biz-row__body { padding: 24px 16px; }
  .biz-row__title { font-size: 1.25rem; }

  .contact__box { padding: 28px 16px; }
  .contact__tel-num { font-size: 1.375rem; }

  .page-hero { padding: 100px 0 40px; }
  .page-hero__title { font-size: 1.5rem; }

  .works-feat__overlay { padding: 20px; }
  .works-feat__title { font-size: 1.25rem; }

  .footer__logo-jp { font-size: 1.2rem; }
  .footer__nav a { font-size: 0.75rem; }

  .cta-band__text { font-size: 1.125rem; }
  .cta-band__btn { padding: 14px 28px; font-size: 0.8125rem; }

  .recruit__catch { font-size: 1.375rem; }
  .recruit__content { padding: 36px 16px; }

  .benefit-item { padding: 28px 20px; }

  .form-input,
  .form-textarea,
  .form-select { padding: 12px 14px; font-size: 0.875rem; }
  .form-submit { padding: 16px 40px; font-size: 0.875rem; }
}

/* --- G7. Samsung Internet のスクロール安定化 --- */
html {
  -webkit-overflow-scrolling: touch;
}

/* --- G8. 画像のはみ出し防止（全体強化） --- */
img {
  max-width: 100%;
  height: auto;
}
.biz-row__img,
.card__img,
.works-feat__img,
.works-item__img,
.recruit__image,
.profile__img {
  overflow: hidden;
}

/* --- G9. インラインスタイルの gap:48px を強制的に縮小（Galaxy対応） --- */
@media (max-width: 767px) {
  [style*="gap:48px"],
  [style*="gap: 48px"] {
    gap: 20px !important;
  }
  [style*="gap:24px"],
  [style*="gap: 24px"] {
    gap: 16px !important;
  }
  /* 建設業許可バッジの余白を縮小 */
  [style*="padding:10px 24px"] {
    padding: 8px 16px !important;
    font-size: 0.8125rem !important;
  }
}
