/* ============================================================
   EarthNecto — Design System / Main Stylesheet
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #e7380d;
  --color-primary-light: #f5a88e;
  --color-secondary: #eb7100;
  --color-accent: #e7380d;
  --color-dark: #1a1a1a;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-gray: #f2f1f0;
  --color-bg-dark: #1a1a1a;
  --color-border: #e0e0e0;
  --color-white: #ffffff;

  --font-en: 'Outfit', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-body: var(--font-ja);

  --container-max: 1200px;
  --header-height: 80px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 8rem;

  --shadow-natural: 6px 6px 9px rgba(0, 0, 0, 0.08);
  --shadow-deep: 12px 12px 50px rgba(0, 0, 0, 0.08);
  --shadow-sharp: 6px 6px 0px rgba(0, 0, 0, 0.06);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.6s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
em { font-style: normal; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.text-accent { color: var(--color-primary); font-weight: 900; }
.sp-only { display: none; }

/* ---------- Fade In ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Image Placeholders ---------- */
.image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #f2f1f0 0%, #e8e6e4 100%);
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.image-placeholder--large { aspect-ratio: 16 / 10; }
.placeholder-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  text-align: center;
  line-height: 1.6;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.header--hidden { transform: translateY(-100%); }
.header--scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06); }

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img { height: 36px; width: auto; }

.header__nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header__nav-link {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-dark);
  position: relative;
  padding: 4px 0;
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width 0.3s var(--ease-out);
}
.header__nav-link:hover::after { width: 100%; }

.header__nav-link--cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 100px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.header__nav-link--cta::after { display: none; }
.header__nav-link--cta:hover { background: var(--color-secondary); transform: translateY(-1px); }

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.header__hamburger span { display: block; width: 28px; height: 2px; background: var(--color-dark); transition: transform 0.3s ease, opacity 0.3s ease; }
.header__hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header__hamburger.is-active span:nth-child(2) { opacity: 0; }
.header__hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg);
  padding-top: var(--header-height);
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0.35; }
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.8) 100%);
}

.hero__arrows { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero__arrow { position: absolute; height: 120px; opacity: 0; animation: arrowFloat 3s var(--ease-out) infinite; }
.hero__arrow--1 { left: 8%;  animation-delay: 0s; }
.hero__arrow--2 { left: 22%; animation-delay: 0.4s; }
.hero__arrow--3 { left: 55%; animation-delay: 0.8s; }
.hero__arrow--4 { left: 70%; animation-delay: 1.2s; }
.hero__arrow--5 { left: 85%; animation-delay: 1.6s; }
.hero__arrow--6 { left: 40%; animation-delay: 2.0s; }

@keyframes arrowFloat {
  0%   { opacity: 0; transform: translateY(-60px); }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(calc(100vh + 60px)); }
}

.hero__content { position: relative; z-index: 2; text-align: center; padding: var(--space-lg); }
.hero__lead { font-family: var(--font-ja); font-size: 18px; font-weight: 500; color: var(--color-primary); letter-spacing: 4px; margin-bottom: var(--space-md); }
.hero__title { font-family: var(--font-ja); font-size: clamp(36px, 6vw, 72px); font-weight: 900; line-height: 1.2; color: var(--color-dark); margin-bottom: var(--space-md); }
.hero__title-line { display: block; }
.hero__desc { font-size: 16px; line-height: 2; color: var(--color-text-light); max-width: 600px; margin: 0 auto; }
.hero__scroll { position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__scroll-text { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--color-text-light); writing-mode: vertical-lr; }
.hero__scroll-line { width: 1px; height: 60px; background: var(--color-primary); animation: scrollLine 2s ease-in-out infinite; }

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: attr(data-title);
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-family: var(--font-en);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 900;
  color: rgba(0,0,0,0.03);
  letter-spacing: -5px;
  line-height: 1;
  pointer-events: none;
}
.page-hero__label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: block;
}
.page-hero__title {
  font-family: var(--font-en);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: var(--space-sm);
}
.page-hero__subtitle {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 640px;
}

/* ============================================================
   SECTION — Common
   ============================================================ */
.section { padding: var(--space-xxl) 0; }
.section--dark { background: var(--color-bg-dark); color: var(--color-white); }
.section--gray { background: var(--color-bg-gray); }

.section__header { margin-bottom: var(--space-xl); }
.section__number { font-family: var(--font-en); font-size: 14px; font-weight: 700; color: var(--color-primary); letter-spacing: 2px; display: block; margin-bottom: var(--space-xs); }
.section__title { font-family: var(--font-en); font-size: clamp(42px, 5vw, 64px); font-weight: 900; letter-spacing: -1px; line-height: 1.1; color: var(--color-dark); }
.section--dark .section__title { color: var(--color-white); }
.section__subtitle { font-size: 14px; font-weight: 500; color: var(--color-text-light); margin-top: var(--space-xs); letter-spacing: 2px; }
.section--dark .section__subtitle { color: rgba(255,255,255,0.5); }

/* ============================================================
   MISSION
   ============================================================ */
.mission__body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.mission__heading { font-size: clamp(28px, 3vw, 42px); font-weight: 900; line-height: 1.4; color: var(--color-dark); margin-bottom: var(--space-md); }
.mission__desc { font-size: 16px; line-height: 2; color: var(--color-text); margin-bottom: var(--space-sm); }

/* ============================================================
   SERVICES (TOP — 4 cards)
   ============================================================ */
.services__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }

.service-card { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; position: relative; }
.service-card:nth-child(even) { direction: rtl; }
.service-card:nth-child(even) > * { direction: ltr; }

.service-card__number { position: absolute; top: -20px; left: -10px; font-family: var(--font-en); font-size: 120px; font-weight: 900; color: rgba(255,255,255,0.05); line-height: 1; pointer-events: none; z-index: 0; }
.service-card__image { position: relative; z-index: 1; }
.service-card__image .image-placeholder { border-radius: 16px; border-color: rgba(255,255,255,0.15); background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); }
.service-card__image .placeholder-label { color: rgba(255,255,255,0.3); }
.service-card__body { position: relative; z-index: 1; }
.service-card__title { font-size: 13px; font-weight: 700; color: var(--color-primary); letter-spacing: 2px; margin-bottom: var(--space-sm); }
.service-card__catch { font-size: clamp(22px, 3vw, 32px); font-weight: 900; line-height: 1.4; color: var(--color-white); margin-bottom: var(--space-md); }
.service-card__desc { font-size: 15px; line-height: 2; color: rgba(255,255,255,0.7); margin-bottom: var(--space-md); }
.service-card__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-en); font-size: 14px; font-weight: 600; color: var(--color-primary); transition: gap 0.3s var(--ease-out); }
.service-card__link:hover { gap: 14px; }
.service-card__link img { filter: invert(28%) sepia(95%) saturate(4000%) hue-rotate(5deg) brightness(95%); }

/* ============================================================
   SERVICES DETAIL (services.html)
   ============================================================ */
.service-detail { padding: var(--space-xxl) 0; border-bottom: 1px solid var(--color-border); }
.service-detail:last-child { border-bottom: none; }
.service-detail--alt { background: var(--color-bg-gray); }

.service-detail__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.service-detail--alt .service-detail__inner { direction: rtl; }
.service-detail--alt .service-detail__inner > * { direction: ltr; }

.service-detail__label { font-family: var(--font-en); font-size: 13px; font-weight: 700; color: var(--color-primary); letter-spacing: 3px; text-transform: uppercase; margin-bottom: var(--space-sm); display: block; }
.service-detail__title { font-size: clamp(26px, 3vw, 38px); font-weight: 900; color: var(--color-dark); line-height: 1.3; margin-bottom: var(--space-sm); }
.service-detail__catch { font-size: clamp(18px, 2vw, 24px); font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-md); line-height: 1.4; }
.service-detail__body { font-size: 15px; line-height: 2; color: var(--color-text); margin-bottom: var(--space-md); }

.features-list { margin-top: var(--space-md); }
.features-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  color: var(--color-text);
}
.features-list__item::before { content: '→'; color: var(--color-primary); font-weight: 700; flex-shrink: 0; margin-top: 0.1em; }
.features-list__item:last-child { border-bottom: none; }

/* ============================================================
   NEWS
   ============================================================ */
.news__list { border-top: 1px solid var(--color-border); }
.news__item { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); transition: background 0.3s ease; }
.news__item:hover { background: var(--color-bg-gray); padding-left: var(--space-sm); padding-right: var(--space-sm); }
.news__date { font-family: var(--font-en); font-size: 14px; font-weight: 500; color: var(--color-text-light); white-space: nowrap; min-width: 100px; }
.news__tag { font-size: 12px; font-weight: 700; color: var(--color-primary); background: rgba(231,56,13,0.08); padding: 4px 12px; border-radius: 100px; white-space: nowrap; }
.news__link { font-size: 15px; font-weight: 500; flex: 1; }
.news__link:hover { color: var(--color-primary); }
.news__more { margin-top: var(--space-lg); text-align: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-ja); font-size: 15px; font-weight: 700; padding: 16px 36px; border-radius: 100px; border: none; cursor: pointer; transition: all 0.3s var(--ease-out); text-decoration: none; }
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-secondary); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(231,56,13,0.3); color: var(--color-white); }
.btn--primary img { filter: brightness(0) invert(1); }
.btn--outline { background: transparent; color: var(--color-dark); border: 2px solid var(--color-dark); }
.btn--outline:hover { background: var(--color-dark); color: var(--color-white); }
.btn--outline:hover img { filter: brightness(0) invert(1); }
.btn--large { padding: 20px 48px; font-size: 16px; }

/* ============================================================
   COMPANY
   ============================================================ */
.company__body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; margin-bottom: var(--space-xl); }
.company__table { width: 100%; border-collapse: collapse; }
.company__table tr { border-bottom: 1px solid var(--color-border); }
.company__table th, .company__table td { padding: var(--space-sm); text-align: left; font-size: 15px; vertical-align: top; }
.company__table th { font-weight: 700; color: var(--color-dark); width: 160px; white-space: nowrap; }
.company__table td { color: var(--color-text); }

/* CEO message */
.ceo-message { background: var(--color-bg); border-radius: 20px; padding: var(--space-lg) var(--space-xxl); box-shadow: var(--shadow-natural); }
.ceo-message__text { font-size: 16px; line-height: 2; color: var(--color-text); }
.ceo-message__text p { margin-bottom: var(--space-md); }
.ceo-message__text p:last-child { margin-bottom: 0; }
.ceo-message__sig { text-align: right; font-size: 14px; color: var(--color-text-light); margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid var(--color-border); }
.ceo-message__sig p { margin-bottom: var(--space-xs); }
.ceo-message__name-img { max-height: 26px; width: auto; display: inline-block; margin-top: 4px; }

/* Access */
.access { margin-top: var(--space-xl); }
.access__info { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }
.access__map { border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; background: var(--color-bg-gray); }
.access__map iframe { width: 100%; height: 100%; border: none; }
.access__detail { font-size: 15px; line-height: 2; color: var(--color-text); }
.access__detail dt { font-weight: 700; color: var(--color-dark); }
.access__detail dd { margin-bottom: var(--space-sm); }

/* Recruit Banner */
.recruit-banner { display: flex; align-items: center; justify-content: space-between; background: var(--color-dark); border-radius: 20px; padding: var(--space-lg); gap: var(--space-md); }
.recruit-banner__title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: var(--color-white); margin-bottom: var(--space-xs); text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.8); }
.recruit-banner__desc { font-size: 15px; color: var(--color-white); text-shadow: 0 1px 6px rgba(0,0,0,0.7); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__lead { font-size: 16px; line-height: 2; color: var(--color-text-light); text-align: center; margin-bottom: var(--space-xl); }
.contact__form { max-width: 800px; margin: 0 auto; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form__group { margin-bottom: var(--space-md); }
.form__group--full { grid-column: 1 / -1; }
.form__group--center { text-align: center; }
.form__label { display: block; font-size: 14px; font-weight: 700; color: var(--color-dark); margin-bottom: 8px; }
.form__required { font-size: 11px; font-weight: 700; color: var(--color-primary); margin-left: 8px; padding: 2px 8px; background: rgba(231,56,13,0.08); border-radius: 4px; }
.form__input, .form__select, .form__textarea {
  width: 100%; padding: 14px 18px; font-family: var(--font-ja); font-size: 15px;
  color: var(--color-text); background: var(--color-bg-gray);
  border: 2px solid transparent; border-radius: 10px; outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.form__input:focus, .form__select:focus, .form__textarea:focus { border-color: var(--color-primary); background: var(--color-white); }
.form__textarea { resize: vertical; min-height: 150px; }
.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.form__checkbox { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--color-text); cursor: pointer; }
.form__checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-primary); }
.form__checkbox a { color: var(--color-primary); text-decoration: underline; }

/* Form error */
.form__error { font-size: 13px; color: var(--color-primary); margin-top: 6px; display: none; }
.form__error.is-visible { display: block; }

/* Complete page */
.complete { text-align: center; padding: var(--space-xxl) 0; }
.complete__icon { font-size: 64px; margin-bottom: var(--space-md); }
.complete__title { font-size: clamp(24px, 3vw, 36px); font-weight: 900; color: var(--color-dark); margin-bottom: var(--space-md); }
.complete__desc { font-size: 16px; line-height: 2; color: var(--color-text-light); margin-bottom: var(--space-xl); }

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy-content { max-width: 800px; margin: 0 auto; }
.privacy-content h2 { font-size: 22px; font-weight: 700; color: var(--color-dark); margin-top: var(--space-xl); margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 2px solid var(--color-border); }
.privacy-content h3 { font-size: 18px; font-weight: 700; color: var(--color-primary); margin-top: var(--space-lg); margin-bottom: var(--space-sm); }
.privacy-content p { font-size: 15px; line-height: 2; color: var(--color-text); margin-bottom: var(--space-md); }
.privacy-content ol, .privacy-content ul { margin-left: var(--space-md); margin-bottom: var(--space-md); }
.privacy-content li { font-size: 15px; line-height: 2; color: var(--color-text); margin-bottom: var(--space-sm); }
.privacy-content ol { list-style: decimal; }
.privacy-content ul { list-style: disc; }
.privacy-content table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-md); }
.privacy-content table th, .privacy-content table td { padding: 12px var(--space-sm); border: 1px solid var(--color-border); font-size: 14px; text-align: left; }
.privacy-content table th { background: var(--color-bg-gray); font-weight: 700; color: var(--color-dark); width: 160px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--color-dark); color: var(--color-white); padding: var(--space-xl) 0 var(--space-md); }
.footer__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: var(--space-lg); border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: var(--space-md); }
.footer__logo { height: 36px; width: auto; margin-bottom: var(--space-sm); }
.footer__tagline { font-size: 14px; color: rgba(255,255,255,0.5); }
.footer__nav { display: flex; gap: var(--space-xl); }
.footer__nav-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__nav-list a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.3s ease; }
.footer__nav-list a:hover { color: var(--color-white); }
.footer__nav-list--sub a { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer__bottom { text-align: center; }
.footer__copyright { font-family: var(--font-en); font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: 1px; }

/* ============================================================
   REAL IMAGE STYLES (replacing placeholders)
   ============================================================ */

/* Hero background */
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.35;
}

/* Mission visual */
.mission__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-deep);
}

/* Service cards (dark section) */
.service-card__image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
}

/* Service detail pages */
.service-detail__visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-deep);
}

/* Company office */
.company__office-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-deep);
}

/* Recruit banner with photo background */
.recruit-banner--photo {
  position: relative;
  overflow: hidden;
}
.recruit-banner--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.18;
}
.recruit-banner--photo > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   SERVICES PAGE CTA SECTION
   ============================================================ */
.page-cta { background: var(--color-dark); padding: var(--space-xl) 0; text-align: center; }
.page-cta__title { font-size: clamp(24px, 3vw, 36px); font-weight: 900; color: var(--color-white); margin-bottom: var(--space-sm); }
.page-cta__desc { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: var(--space-lg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .mission__body { grid-template-columns: 1fr; gap: var(--space-lg); }
  .service-card { grid-template-columns: 1fr; gap: var(--space-md); }
  .service-card:nth-child(even) { direction: ltr; }
  .company__body { grid-template-columns: 1fr; }
  .recruit-banner { flex-direction: column; text-align: center; }
  .service-detail__inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .service-detail--alt .service-detail__inner { direction: ltr; }
  .ceo-message__inner { grid-template-columns: 1fr; }
  .access__info { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .ceo-message { padding: var(--space-lg) var(--space-lg); }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --space-xl: 4rem;
    --space-xxl: 5rem;
  }
  .sp-only { display: inline; }

  .header__hamburger { display: flex; }
  .header__nav {
    position: fixed; top: 0; right: 0;
    width: 100%; height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  .header__nav.is-open { opacity: 1; visibility: visible; }
  .header__nav-list { flex-direction: column; gap: 2.5rem; text-align: center; }
  .header__nav-link { font-size: 20px; }

  .hero__content { padding: var(--space-md); }
  .hero__arrow { height: 80px; }

  .news__item { flex-wrap: wrap; gap: var(--space-xs) var(--space-sm); }
  .news__link { flex-basis: 100%; }

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

  .footer__top { flex-direction: column; gap: var(--space-lg); }
  .footer__nav { flex-direction: column; gap: var(--space-md); }
  .footer__nav-list { flex-direction: row; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); }

  .recruit-banner { padding: var(--space-md); border-radius: 14px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 32px; }
  .section__title { font-size: 36px; }
  .page-hero__title { font-size: 36px; }
}
