/* ========================================
   T・ファイブ電気建設 - Website Styles
   Design: Chic Black & White
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white:      #ffffff;
  --off-white:  #f7f7f7;
  --light-gray: #e8e8e8;
  --mid-gray:   #999999;
  --dark-gray:  #444444;
  --near-black: #1a1a1a;
  --black:      #000000;
  --accent:     #F2B800;

  --font-jp:    'Noto Sans JP', sans-serif;
  --font-en:    'Inter', sans-serif;

  --nav-h:      72px;
  --max-w:      1200px;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-jp);
  color: var(--near-black);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Utilities ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 120px 0;
}

.section--gray {
  background: var(--off-white);
}

.section--black {
  background: var(--near-black);
  color: var(--white);
}

.label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-header {
  margin-bottom: 80px;
}

.section-header .label {
  display: block;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section-header p {
  margin-top: 20px;
  color: var(--dark-gray);
  font-size: 15px;
  max-width: 560px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-gray);
  z-index: 1000;
  transition: box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

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

.nav__logo-en {
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--black);
  line-height: 1;
}

.nav__logo-jp {
  font-size: 10px;
  color: var(--mid-gray);
  letter-spacing: 0.1em;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__links a {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-gray);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--black);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__contact-btn {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black) !important;
  background: var(--accent);
  padding: 10px 22px;
  transition: background 0.2s, color 0.2s !important;
}

.nav__contact-btn::after {
  display: none !important;
}

.nav__contact-btn:hover {
  background: #d9a300 !important;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.nav__mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  padding: 24px 40px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s;
  z-index: 999;
}

.nav__mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav__mobile a {
  display: block;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-gray);
  padding: 14px 0;
  border-bottom: 1px solid var(--light-gray);
  transition: color 0.2s;
}

.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--black); }

/* ---- Hero (TOP) ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--white);
  z-index: 0;
}

/* Photo placeholder — replace with real img */
.hero__photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--near-black);
  overflow: hidden;
  z-index: 0;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

/* Placeholder pattern when no image */
.hero__photo-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #1a1a1a 0px,
    #1a1a1a 1px,
    #222 1px,
    #222 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  max-width: 50%;
  padding-right: 80px;
}

.hero__label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid-gray);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--mid-gray);
}

.hero__title {
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__desc {
  font-size: 15px;
  color: var(--dark-gray);
  line-height: 1.9;
  margin-bottom: 48px;
  max-width: 420px;
}

.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn--black {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn--black:hover {
  background: var(--dark-gray);
  border-color: var(--dark-gray);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--black);
}

.btn svg {
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-gray);
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--light-gray);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ---- Stats ---- */
.stats {
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  padding: 60px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats__item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid var(--light-gray);
}

.stats__item:last-child { border-right: none; }

.stats__num {
  font-family: var(--font-en);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--black);
}

.stats__num sup {
  font-size: 0.45em;
  vertical-align: super;
  font-weight: 500;
}

.stats__unit {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  color: var(--mid-gray);
  display: inline;
}

.stats__label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--mid-gray);
  letter-spacing: 0.08em;
}

/* ---- Services ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--light-gray);
  border: 1px solid var(--light-gray);
}

.service-card {
  background: var(--white);
  padding: 56px 48px;
  transition: background 0.3s var(--ease), color 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--near-black);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
  z-index: 0;
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover .service-card__num,
.service-card:hover .service-card__title,
.service-card:hover .service-card__desc,
.service-card:hover .service-card__list li {
  color: var(--white);
}

.service-card:hover .service-card__icon path,
.service-card:hover .service-card__icon rect,
.service-card:hover .service-card__icon circle,
.service-card:hover .service-card__icon polyline,
.service-card:hover .service-card__icon line {
  stroke: var(--white);
}

.service-card__num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--mid-gray);
  margin-bottom: 20px;
  transition: color 0.3s;
}

.service-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
}

.service-card__icon path,
.service-card__icon rect,
.service-card__icon circle,
.service-card__icon polyline,
.service-card__icon line {
  stroke: var(--near-black);
  transition: stroke 0.3s;
}

.service-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.service-card__desc {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.8;
  margin-bottom: 24px;
  transition: color 0.3s;
}

.service-card__list {
  font-size: 13px;
  color: var(--mid-gray);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  transition: color 0.3s;
}

.service-card__list li {
  background: var(--off-white);
  padding: 4px 12px;
  font-size: 12px;
  transition: background 0.3s, color 0.3s;
}

.service-card:hover .service-card__list li {
  background: rgba(255,255,255,0.1);
}

/* ---- Strength / Why Choose Us ---- */
.strength__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.strength-item {
  padding-top: 32px;
  border-top: 2px solid var(--accent);
}

.strength-item__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--black);
}

.strength-item__icon svg {
  width: 100%;
  height: 100%;
}

.strength-item__num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--mid-gray);
  margin-bottom: 20px;
}

.strength-item__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
}

.strength-item__desc {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.9;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--near-black);
  padding: 100px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cta-banner p {
  font-size: 15px;
  color: var(--mid-gray);
  margin-bottom: 48px;
}

/* ---- About Page ---- */
.about-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--light-gray);
}

.about-hero h1 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.about-hero h1 em {
  font-style: normal;
  color: var(--light-gray);
}

.message__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}

.message__photo {
  aspect-ratio: 4/5;
  background: var(--light-gray);
  overflow: hidden;
  position: relative;
}

.message__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.message__photo-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #f0f0f0 0px,
    #f0f0f0 1px,
    #f7f7f7 1px,
    #f7f7f7 12px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.message__body .label { margin-bottom: 12px; }
.message__body h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.4;
}

.message__text {
  font-size: 15px;
  color: var(--dark-gray);
  line-height: 2;
  margin-bottom: 20px;
}

.message__sign {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--light-gray);
}

.message__sign .role {
  font-size: 12px;
  color: var(--mid-gray);
  margin-bottom: 6px;
}

.message__sign .name {
  font-size: 20px;
  font-weight: 700;
}

/* Company Table */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.company-table tr {
  border-bottom: 1px solid var(--light-gray);
}

.company-table tr:first-child {
  border-top: 1px solid var(--light-gray);
}

.company-table th {
  width: 200px;
  padding: 24px 0;
  font-weight: 500;
  color: var(--dark-gray);
  text-align: left;
  vertical-align: top;
}

.company-table td {
  padding: 24px 0;
  color: var(--near-black);
}

/* Certifications */
.cert__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--light-gray);
  border: 1px solid var(--light-gray);
}

.cert-item {
  background: var(--white);
  padding: 32px;
  text-align: center;
}

.cert-item__icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.cert-item__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cert-item__sub {
  font-size: 12px;
  color: var(--mid-gray);
}

/* ---- Service Page ---- */
.service-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--light-gray);
}

.service-hero h1 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--light-gray);
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.service-detail__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-detail__img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-detail__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.6s ease;
}

.service-detail__img:hover img {
  transform: scale(1.04);
}

.service-detail__img-wrap {
  position: relative;
}

.ai-notice {
  display: block;
  font-size: 2px;
  color: #aaa;
  margin: 2px 0 0;
  text-align: right;
  line-height: 1;
}

.service-detail__num {
  font-family: var(--font-en);
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 900;
  color: var(--light-gray);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.service-detail h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.service-detail p {
  font-size: 15px;
  color: var(--dark-gray);
  line-height: 2;
  margin-bottom: 28px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.service-tag {
  border: 1px solid var(--light-gray);
  padding: 6px 16px;
  font-size: 12px;
  color: var(--dark-gray);
  letter-spacing: 0.04em;
}

/* Equipment */
.equipment__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.equipment-item {
  border: 1px solid var(--light-gray);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.equipment-item__icon {
  width: 48px;
  height: 48px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.equipment-item__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.equipment-item__sub {
  font-size: 12px;
  color: var(--mid-gray);
}

/* ---- Contact Page ---- */
.contact-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--light-gray);
}

.contact-hero h1 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

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

.contact-info__item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--light-gray);
}

.contact-info__item:last-child {
  border-bottom: none;
}

.contact-info__label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 8px;
}

.contact-info__value {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.contact-info__sub {
  font-size: 12px;
  color: var(--mid-gray);
  margin-top: 4px;
}

/* Form */
.form__group {
  margin-bottom: 28px;
}

.form__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form__label .required {
  font-size: 10px;
  color: var(--white);
  background: var(--black);
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--light-gray);
  background: var(--white);
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--near-black);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--black);
}

.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%23444'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form__textarea {
  resize: vertical;
  min-height: 160px;
}

.form__submit {
  width: 100%;
  padding: 18px;
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: background 0.25s, color 0.25s;
}

.form__submit:hover {
  background: var(--white);
  color: var(--black);
}

.form__note {
  font-size: 12px;
  color: var(--mid-gray);
  margin-top: 16px;
  line-height: 1.8;
}

/* Map Placeholder */
.map-placeholder {
  width: 100%;
  height: 360px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

/* ---- Recruit Page ---- */
.recruit-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--light-gray);
}

.recruit-hero h1 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.recruit-hero h1 em {
  font-style: normal;
  color: var(--light-gray);
}

.recruit-message h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 16px 0 28px;
}

.recruit-message p {
  font-size: 15px;
  color: var(--dark-gray);
  line-height: 1.9;
  max-width: 680px;
  margin-bottom: 16px;
}

.recruit-jobs {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.recruit-job {
  background: var(--white);
  border: 1px solid var(--light-gray);
}

.recruit-job__header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 48px;
  border-bottom: 1px solid var(--light-gray);
}

.recruit-job__num {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 700;
  color: var(--light-gray);
  line-height: 1;
  flex-shrink: 0;
}

.recruit-job__category {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 8px;
}

.recruit-job__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.recruit-job__note {
  font-size: 13px;
  color: var(--mid-gray);
  background: var(--off-white);
  display: inline-block;
  padding: 4px 12px;
}

.recruit-job__body {
  padding: 40px 48px;
}

.recruit-table {
  width: 100%;
  border-collapse: collapse;
}

.recruit-table tr {
  border-bottom: 1px solid var(--light-gray);
}

.recruit-table tr:last-child {
  border-bottom: none;
}

.recruit-table th {
  width: 140px;
  padding: 18px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid-gray);
  vertical-align: top;
  white-space: nowrap;
}

.recruit-table td {
  padding: 18px 0 18px 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--dark-gray);
}

.recruit-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.recruit-reason__num {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  color: var(--light-gray);
  margin-bottom: 16px;
}

.recruit-reason__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
}

.recruit-reason__desc {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.9;
}

.recruit-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--light-gray);
}

.recruit-flow__step {
  padding: 40px 28px;
  text-align: center;
}

.recruit-flow__arrow {
  font-size: 20px;
  color: var(--light-gray);
  padding: 0 8px;
}

.recruit-flow__num {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  color: var(--light-gray);
  margin-bottom: 12px;
}

.recruit-flow__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.recruit-flow__desc {
  font-size: 12px;
  color: var(--mid-gray);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .recruit-reasons {
    grid-template-columns: 1fr 1fr;
  }
  .recruit-flow {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .recruit-flow__arrow { display: none; }
  .recruit-flow__step { border-bottom: 1px solid var(--light-gray); }
}

@media (max-width: 768px) {
  .recruit-job__header { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .recruit-job__body { padding: 28px 24px; }
  .recruit-table th { width: 100px; font-size: 12px; }
  .recruit-reasons { grid-template-columns: 1fr; gap: 32px; }
  .recruit-flow { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */
.footer {
  background: var(--near-black);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 40px;
}

.footer__brand-name {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer__brand-jp {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer__address {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
}

.footer__nav-title {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer__nav-links a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 6px 0;
  transition: color 0.2s;
}

.footer__nav-links a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-en);
}

.footer__policy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-decoration: underline;
  transition: color 0.2s;
}

.footer__policy:hover {
  color: rgba(255,255,255,0.6);
}

/* ---- Scroll Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }

  .hero__content {
    max-width: 55%;
    padding-right: 40px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item:nth-child(2) { border-right: none; }
  .stats__item:nth-child(3) { border-top: 1px solid var(--light-gray); }
  .stats__item:nth-child(4) { border-top: 1px solid var(--light-gray); }

  .message__grid { gap: 48px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .section { padding: 80px 0; }
  .container { padding: 0 20px; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__photo {
    position: absolute;
    width: 100%;
    opacity: 1;
    animation: none;
  }

  .hero__content {
    max-width: 100%;
    padding-right: 0;
    padding: 60px 20px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card { padding: 40px 28px; }

  .strength__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .message__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .message__photo {
    max-width: 240px;
    max-height: 300px;
    margin: 0 auto;
    order: 2;
  }

  .message__body {
    order: 1;
  }

  .service-detail__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-detail__num { font-size: 64px; }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cert__grid { grid-template-columns: 1fr 1fr; }
  .equipment__grid { grid-template-columns: 1fr; }

  /* 会社概要テーブル: th・tdを縦積みに */
  .company-table th {
    display: block;
    width: 100%;
    padding: 20px 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    border-bottom: none;
  }
  .company-table td {
    display: block;
    width: 100%;
    padding: 0 0 20px;
    font-size: 14px;
  }
  .company-table tr:first-child th { padding-top: 20px; }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================
   ANIMATIONS & EFFECTS
   ================================================ */

/* ---- Page Loading Bar ---- */
.page-loader {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.5s ease 0.3s;
}
.page-loader__bar {
  height: 100%;
  width: 0%;
  background: var(--black);
  transition: width 0.7s cubic-bezier(0.05, 0.3, 0.2, 1);
}
.page-loader.done { opacity: 0; }

/* ---- Hero Intro Animations ---- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroPhotoIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}


@keyframes lineGrow {
  from { width: 0; }
  to   { width: 32px; }
}

.hero__photo {
  opacity: 0;
  animation: heroPhotoIn 1.4s var(--ease) forwards;
}

.hero__label {
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) forwards;
  animation-delay: 0.5s;
}

.hero__label::before {
  width: 0;
  animation: lineGrow 0.6s var(--ease) forwards;
  animation-delay: 0.3s;
}

.hero__title {
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease) forwards;
  animation-delay: 0.8s;
}

.hero__desc {
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) forwards;
  animation-delay: 1.1s;
}

.hero__btns {
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) forwards;
  animation-delay: 1.3s;
}

.hero__scroll {
  opacity: 0;
  animation: heroFadeUp 0.6s var(--ease) forwards;
  animation-delay: 1.8s;
}

/* ---- Hero Mouse Spotlight ---- */
.hero__cursor {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s;
  will-change: left, top;
}

/* ---- Section Header Decorative Line ---- */
.section-header::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--accent);
  margin-top: 48px;
  transition: width 1.2s var(--ease) 0.3s;
}
.section-header.fade-in.visible::after {
  width: 100%;
}

/* ---- Office Photos ---- */
.office-photos {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2px;
  background: var(--light-gray);
  border: 2px solid var(--light-gray);
}

.office-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.office-photo--wide {
  aspect-ratio: auto;
  grid-row: span 1;
}

.office-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
  filter: grayscale(15%);
}

.office-photo:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.office-photo__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-family: var(--font-en);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .office-photos {
    grid-template-columns: 1fr;
  }
  .office-photo {
    aspect-ratio: 16/9;
  }
}

/* ---- Nav Logo Hover ---- */
.nav__logo-en {
  transition: letter-spacing 0.3s var(--ease);
}
.nav__logo:hover .nav__logo-en {
  letter-spacing: 0.1em;
}

/* ---- Mobile Hero: dark photo + white text ---- */
@media (max-width: 768px) {

  /* 写真の上にダークオーバーレイ */
  .hero__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 1;
  }

  /* ヒーロー背景を黒に */
  .hero__bg {
    background: var(--near-black);
  }

  /* テキストを白に */
  .hero__label {
    color: rgba(255, 255, 255, 0.6);
  }

  .hero__label::before {
    background: rgba(255, 255, 255, 0.4);
  }

  .hero__title {
    color: var(--white);
  }

  .hero__title em {
    color: var(--accent);
  }

  .hero__desc {
    color: rgba(255, 255, 255, 0.75);
  }

  /* アウトラインボタンを白枠に */
  .hero .btn--outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
  }

  .hero .btn--outline:hover {
    background: var(--white);
    color: var(--black);
  }

  /* Scroll インジケーター */
  .hero__scroll {
    color: rgba(255, 255, 255, 0.5);
  }

  .hero__scroll::after {
    background: rgba(255, 255, 255, 0.3);
  }
}

/* ---- Service Flow Grid ---- */
.service-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--light-gray);
  border: 1px solid var(--light-gray);
}

@media (max-width: 768px) {
  /* 採用ページ見出しを2行に収める */
  .recruit-message h2 {
    font-size: clamp(20px, 5.5vw, 44px);
  }

  /* ご依頼の流れ: 4列→2列グリッドに */
  .service-flow-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- 施工写真タブ ---- */
.works-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 4px;
}

.works-tab {
  padding: 8px 20px;
  border: 1.5px solid var(--light-gray);
  background: var(--white);
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border-radius: 2px;
}

.works-tab:hover {
  border-color: var(--near-black);
}

.works-tab.active {
  background: var(--near-black);
  color: var(--white);
  border-color: var(--near-black);
}

.works-item.hidden {
  display: none;
}

/* ---- 施工写真ギャラリー ---- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.works-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--light-gray);
}

.works-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.works-item:hover img {
  transform: scale(1.06);
}

.works-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 28px 14px 12px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.works-item:hover .works-item__caption {
  opacity: 1;
}

@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .works-grid {
    grid-template-columns: 1fr 1fr;
  }
}
