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

:root {
  --bg: #ffffff;
  --text: #333333;
  --text-sub: #555;
  --text-light: #888;
  --green: #1db954;
  --green-mid: #4dd47a;
  --green-light: #7ee4a0;
  --green-pale: #b8f0cc;
  --green-bg: #e6f9ee;
  --green-dark: #148f3e;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Manrope', sans-serif;
  --max-width: 1280px;
}

html { font-size: 16px; }
body {
  font-family: var(--font-jp); background: var(--bg);
  color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased;
  font-size: 16px; line-height: 2;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; line-height: inherit; }

/* ==================== Loader ==================== */
.loader {
  position: fixed; inset: 0; z-index: 9999; background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 22px;
}
.loader-logo { font-family: var(--font-en); font-size: 16px; font-weight: 700; letter-spacing: 5px; color: #0e1116; }
.loader-eq { display: flex; gap: 7px; align-items: flex-end; height: 56px; }
.loader-eq span {
  width: 7px;
  background: var(--green);
  border-radius: 4px;
  animation: loader-eq-bar 1s infinite ease-in-out;
}
.loader-eq span:nth-child(1) { animation-delay: 0s; }
.loader-eq span:nth-child(2) { animation-delay: .1s; }
.loader-eq span:nth-child(3) { animation-delay: .2s; }
.loader-eq span:nth-child(4) { animation-delay: .3s; }
.loader-eq span:nth-child(5) { animation-delay: .4s; }
.loader-eq span:nth-child(6) { animation-delay: .5s; }
@keyframes loader-eq-bar {
  0%, 100% { height: 8px; }
  50%      { height: 56px; }
}

/* ==================== Nav (index10 style) ==================== */
.nav-wrapper {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  padding-top: 40px;
  display: flex; justify-content: center;
}
.nav-wrapper:not(.nav-visible) {
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.2, 0.3, 1);
}
.nav-wrapper.nav-visible {
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.1, 0.2, 0.3, 1);
}
.nav {
  width: 100%;
  height: 48px;
  padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 34px; width: auto; }

/* Parent breadcrumb link — stays visible when nav hides */
.nav-parent {
  position: fixed;
  top: 96px;
  left: 40px;
  z-index: 101;
  pointer-events: auto;
  /* Same easing as nav-wrapper for synchronized motion */
  transition: top 0.4s cubic-bezier(0.1, 0.2, 0.3, 1);
}
/* When nav is hidden, slide parent link up to top */
.nav-wrapper:not(.nav-visible) ~ .nav-parent,
.nav-parent.nav-hidden {
  top: 24px;
  transition: top 0.3s cubic-bezier(0.1, 0.2, 0.3, 1);
}
.nav-parent__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-parent__link:hover {
  color: #148f3e;
}
.nav-parent__arrow {
  font-size: 14px;
  transition: transform 0.3s;
}
.nav-parent__link:hover .nav-parent__arrow {
  transform: translateX(-3px);
}
.nav-links { display: flex; gap: 32px; list-style: none; font-size: 16px; font-weight: 400; margin-right: 80px; }
.nav-links a { transition: color 0.3s; color: var(--text-sub); text-decoration: none; }
.nav-links a:hover { color: var(--green); text-decoration: none; }
/* Nav submenu — fullwidth panel (Goodpatch style) */
.nav-links > li { position: static; }
.nav-links > li.has-submenu > a { cursor: pointer; }

/* Backdrop overlay */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 27, 31, 0.3);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
  z-index: 99;
}
.nav-backdrop.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

/* Submenu panel */
.nav-submenu {
  position: fixed;
  top: 88px;
  left: 0;
  right: 0;
  z-index: 101;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out, visibility 0.25s ease-out;
}
.nav-submenu.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.nav-submenu__panel {
  max-width: var(--max-width);
  /* Right edge aligned to nav Contact link (nav padding-right 40 + nav-links margin-right 80 = 120) */
  width: min(var(--max-width), calc(100vw - 160px));
  margin-left: auto;
  margin-right: 120px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  padding: 48px 0 40px;
  height: 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 0;
}
.nav-submenu__panel > * {
  padding: 0 32px;
}
.nav-submenu__panel > *:not(:last-child) {
  border-right: 1px solid #eee;
}

/* Left column: heading + text links */
.nav-submenu__heading {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}
.nav-submenu__subheading {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
}
.nav-submenu__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-submenu__links a {
  display: block;
  padding: 3px 0;
  font-size: 14px;
  color: var(--text-sub) !important;
  transition: color 0.3s cubic-bezier(0.4, 0.1, 0.3, 1);
  text-decoration: none !important;
}
.nav-submenu__links a:hover {
  color: var(--green) !important;
}

/* Card columns */
.nav-submenu__card {
  position: relative;
  text-decoration: none !important;
  display: block;
}
.nav-submenu__card-img {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;
}
.nav-submenu__card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0.1, 0.3, 1);
}
.nav-submenu__card:hover .nav-submenu__card-img img {
  transform: scale(1.08);
}
.nav-submenu__card-title {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  color: var(--text) !important;
  margin-bottom: 4px;
}
.nav-submenu__card-desc {
  font-size: 13px;
  color: var(--text-light);
}
.nav-submenu__cards {
  display: none;
}

/* ==================== Hover Ball (mouse follower — bouncy style) ==================== */
.hover-ball {
  position: fixed;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(29, 185, 84, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 9000;
  opacity: 0;
  /* transform is set by JS for bounce */
}
/* Card image overlay on hover */
.card .card-img-wrap {
  position: relative;
}
.card .card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(29, 185, 84, 0.08);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover .card-img-wrap::after {
  opacity: 1;
}

/* ==================== Hero ==================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hero-inner {
  width: min(calc(100% - 160px), var(--max-width));
  padding-bottom: 60px;
}
canvas#motionBg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-copy h1 {
  font-family: var(--font-en);
  font-size: clamp(56px, 9vw, 140px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
}
.hero-copy h1 .letter-line {
  display: block;
  overflow: hidden;
  padding-top: 8px;
  padding-bottom: 0.2em;
  transform: translate3d(0, 30%, 0);
  opacity: 0;
  transition: none;
}
.hero-copy h1.is-active .letter-line {
  opacity: 1;
  transform: translateZ(0);
  transition: transform 1.1s cubic-bezier(0.51, -0.04, 0.13, 1.05),
              opacity 0.3s cubic-bezier(0.4, 0.1, 0.3, 1);
}
.hero-copy h1.is-active .letter-line:nth-child(1) { transition-delay: 0.3s, 0.3s; }
.hero-copy h1.is-active .letter-line:nth-child(2) { transition-delay: 0.38s, 0.38s; }
.hero-copy h1.is-active .letter-line:nth-child(3) { transition-delay: 0.46s, 0.46s; }
.hero-copy h1 .letter-line span {
  display: inline-block;
  min-width: 0.14em;
  transform: translate3d(0, 160%, 0);
  transition: none;
  will-change: transform;
}
.hero-copy h1.is-active .letter-line span {
  transform: translateZ(0);
  transition: transform 0.6s cubic-bezier(0.1, 0.2, 0.3, 1);
}

/* Color gradient keyframes (goodpatch faithful - 4 variations) */
@keyframes gp-color-1 {
  0% { color: rgb(226, 69, 122); }
  45% { color: rgb(9, 111, 200); }
  100% { color: var(--text); }
}
@keyframes gp-color-2 {
  0% { color: rgb(242, 208, 64); }
  15% { color: rgb(244, 149, 61); }
  30% { color: rgb(253, 119, 109); }
  45% { color: rgb(226, 69, 122); }
  100% { color: var(--text); }
}
@keyframes gp-color-3 {
  0% { color: rgb(244, 149, 61); }
  10% { color: rgb(226, 69, 122); }
  40% { color: rgb(9, 111, 200); }
  100% { color: var(--text); }
}
@keyframes gp-color-4 {
  0% { color: rgb(170, 201, 51); }
  13% { color: rgb(79, 182, 121); }
  26% { color: rgb(29, 134, 124); }
  40% { color: rgb(9, 111, 200); }
  100% { color: var(--text); }
}

.hero-subtitle {
  margin-top: 24px;
  font-size: clamp(16px, 2vw, 24px);
  color: var(--text-sub);
  opacity: 0;
  transition: opacity 0.8s 0.8s ease;
  letter-spacing: 1px;
}
.hero-subtitle.is-active { opacity: 1; }

.scroll-hint {
  position: absolute;
  bottom: 30px;
  right: 80px;
  z-index: 1;
  font-size: 11px;
  font-family: var(--font-en);
  color: #bbb;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0;
  transition: opacity 0.8s 1.2s ease;
}
.scroll-hint.is-active { opacity: 1; }
.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: #ccc;
  margin-top: 8px;
  margin-left: auto;
  margin-right: auto;
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.3); opacity: 0.3; }
}

/* News article h3 — left border accent */
.news-article h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--green);
  line-height: 1.6;
}

/* Page header title span spacing */
.page-header__title span {
  display: inline-block;
  min-width: 0.3em;
}

/* ==================== Sections ==================== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }

.section { padding: 120px 0; }
.section.alt { background: #fafafa; }

.section-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}
/* H3: グラデーション下線 */
h3.section-title {
  font-size: clamp(20px, 3vw, 28px);
  padding-bottom: 12px;
  background-image: linear-gradient(90deg, var(--green), transparent);
  background-size: 100% 3px;
  background-position: bottom left;
  background-repeat: no-repeat;
}
/* H4: 左バー細 */
h4.section-title {
  font-size: clamp(16px, 2vw, 20px);
  padding-left: 12px;
  border-left: 3px solid var(--green);
}
.section-text {
  font-size: 16px;
  line-height: 2;
  color: var(--text-sub);
  max-width: 720px;
}
.content-heading { margin-top: 32px; font-size: 18px; font-weight: 700; }
.content-subheading { margin-top: 24px; font-size: 15px; font-weight: 700; }
.recruit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
/* Recruit Hero Banner */
.recruit-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.recruit-hero__img {
  width: 100%;
  height: auto;
  display: block;
}
.recruit-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 32px 40px;
}
.recruit-hero__links {
  max-width: 1200px;
  width: 100%;
  display: flex;
  gap: 12px;
}
.recruit-hero__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 60px;
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}
.recruit-hero__link:hover {
  background: linear-gradient(135deg, #5bbee5, #52ddae);
  border-color: transparent;
  color: #fff;
}
.recruit-hero__link-arrow {
  transition: transform 0.3s;
}
.recruit-hero__link:hover .recruit-hero__link-arrow {
  transform: translateX(4px);
}
.recruit-hero--fullwidth {
  border-radius: 0;
  width: 100%;
}
.recruit-hero--fullwidth .recruit-hero__img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}
/* Asymmetric: left aligned to container, right bleeds to edge */
.recruit-hero--asymmetric {
  border-radius: 16px 0 0 16px;
  width: calc(100vw - max(40px, (100vw - 1200px) / 2));
  margin-left: auto;
  margin-right: 0;
}
.recruit-hero--asymmetric .recruit-hero__img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}
/* Peek-through (Sun* style) */
.recruit-peek {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  cursor: none;
}
.recruit-peek__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
}
.recruit-peek__cover {
  position: absolute;
  inset: 0;
  background: var(--green);
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
}
.recruit-peek__ring {
  display: none;
}
.recruit-peek__text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.recruit-peek__text-label {
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}
.recruit-peek__text-desc {
  font-size: 16px;
  line-height: 2;
  color: #fff;
  text-align: center;
  margin-top: 20px;
  max-width: 800px;
}
.recruit-peek__text p {
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.recruit-peek__bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 32px 40px;
  display: flex;
  justify-content: center;
}
.recruit-peek__bottom .recruit-hero__links {
  max-width: 1200px;
  width: 100%;
}
/* Common gradient pill button */
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 14px 36px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(135deg, #5bbee5, #52ddae);
  background-size: 100% 100%;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.3s ease;
}
.section-link .arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.3s ease;
}
.section-link:hover {
  filter: brightness(1.1);
}
.section-link:hover .arrow {
  transform: translateX(5px);
}

/* inview fade animation */
.inview {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.inview.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Purpose / AI section with green bg */
.section-green {
  background: var(--green);
  color: #fff;
  padding: 120px 0;
}
.section-green .section-label { color: rgba(255,255,255,0.6); }
.section-green .section-text { color: rgba(255,255,255,0.85); }
.section-green .section-link { color: #fff; }

/* ==================== Purpose Section (purpose9 design) ==================== */
.purpose {
  background: linear-gradient(180deg, #464646 0%, #2a2a2a 100%);
  color: #fff;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.purpose__bg-text {
  position: absolute;
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
/* FOR ALL background image (left side, vertical) */
.purpose__bg-img--for {
  position: absolute;
  left: 15%;
  top: 408px;
  height: 40%;
  width: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
/* WHO WE ARE background image (right side, rotated 90deg, extends off-screen like original) */
.purpose__bg-img--who {
  position: absolute;
  top: 408px;
  right: -150px;
  width: 800px;
  height: 130px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transform: rotate(90deg);
}
.purpose__bg-text--value {
  font-size: clamp(24px, 4vw, 48px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  pointer-events: none;
  user-select: none;
  color: rgba(255,255,255,0.06);
  font-family: var(--font-en);
  font-weight: 800;
  white-space: nowrap;
}
.purpose__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
.purpose__img { display: block; width: 100%; height: auto; }
.purpose__img-wrap { max-width: 852px; margin: 0 auto 56px; }
.purpose__img-wrap--philosophy { max-width: 852px; margin: 0 auto 56px; }
.purpose__text {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: 0.04em;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
}
.purpose__heading {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 48px;
  text-align: center;
}
.purpose__heading span {
  display: inline-block;
}
.purpose__values {
  max-width: 960px;
  margin: 0 auto 56px;
  list-style: none;
}
.purpose__value-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 2px solid;
  border-image: linear-gradient(135deg, #5bbee5, #52ddae) 1;
}
.purpose__value-item:last-child {
  border-bottom: 2px solid;
  border-image: linear-gradient(135deg, #5bbee5, #52ddae) 1;
}
.purpose__value-num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  min-width: 40px;
  flex-shrink: 0;
}
.purpose__value-text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}
.purpose__link-wrap { text-align: center; }
.purpose__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(135deg, #5bbee5, #52ddae);
  background-size: 100% 100%;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.3s ease;
}
.purpose__link .arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.3s ease;
}
.purpose__link:hover {
  filter: brightness(1.1);
}
.purpose__link:hover .arrow {
  transform: translateX(5px);
}

/* Recruit cards (福利厚生 / 数字で見るアルテニア) */
.recruit-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s;
}
.recruit-card:hover {
  transform: translateY(-4px);
}
.recruit-card img {
  width: 100%;
  height: auto;
  display: block;
}
.recruit-card__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 4px;
}

/* Interview background outline image — above cards, original size */
.recruit-interview-bg {
  position: relative;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  margin-bottom: -10px;
}

/* Business section — background decorations */
.section-business {
  position: relative;
  overflow: hidden;
}
.section-business::before {
  content: '';
  position: absolute;
  background-image: url('/assets/images/deco/top_deco_img03.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 35vw;
  height: 17vw;
  top: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
}
.section-business::after {
  content: '';
  position: absolute;
  background-image: url('/assets/images/deco/top_deco_img01.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 20vw;
  height: 22vw;
  bottom: -5vw;
  right: -3vw;
  z-index: 0;
  pointer-events: none;
}
.section-business .container {
  position: relative;
  z-index: 1;
}

/* Business section — two column layout */
.business-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.business-layout__text {
  max-width: 520px;
}
.business-layout__images {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.business-layout__img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.business-layout__img--main {
  height: 220px;
  object-fit: cover;
}
.business-layout__img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.business-layout__img-row .business-layout__img {
  height: 140px;
}

/* Purpose section side image */
.purpose__side-img {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20%;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}

/* Dark background section (like altenir.co.jp about section) */
.section-dark {
  background: #464646;
  color: #fff;
}
.section-dark .section-label { color: var(--green); }
.section-dark .section-title { color: #fff; }
.section-dark .section-text { color: rgba(255,255,255,0.8); }
.section-dark .section-link { color: var(--green); }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 32px;
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}
/* Card image hover zoom */
.card img {
  transition: transform 0.4s cubic-bezier(0.4, 0.1, 0.3, 1);
}
.card:hover img {
  transform: scale(1.05);
}
/* Recruit card image hover zoom */
.recruit-card img {
  transition: transform 0.4s cubic-bezier(0.4, 0.1, 0.3, 1);
}
.recruit-card:hover img {
  transform: scale(1.05);
}
/* Business image hover zoom */
.business-layout__img {
  transition: transform 0.4s cubic-bezier(0.4, 0.1, 0.3, 1);
}
.business-layout__images:hover .business-layout__img {
  transform: scale(1.03);
}
.card .role {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
}
.card a {
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
}
.card a .arrow,
.cta-btn .arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.3s ease;
}
.card a:hover .arrow,
.cta-btn:hover .arrow {
  transform: translateX(5px);
}

/* News list */
.news-list { list-style: none; }
.news-list li {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 24px;
  align-items: baseline;
}
.news-list .date {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--text-light);
  flex-shrink: 0;
}
.news-list a { font-size: 15px; transition: color 0.3s; }
.news-list a:hover { color: var(--green); }

/* CTA */
.cta {
  padding: 120px 0;
  text-align: center;
  background: #464646 url(/assets/images/cta_img01_flip.png) 98% 50% / auto 90% no-repeat;
  color: #fff;
}
.cta h2 {
  font-family: var(--font-en);
  font-size: 54px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: 0.04em;
}
.cta h2 span {
  display: block;
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 500;
  margin-top: 8px;
  letter-spacing: 0.08em;
}
.cta p { font-size: 15px; color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.cta .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.cta .cta-buttons a {
  flex: 1;
  max-width: 420px;
  height: 120px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: filter 0.3s, transform 0.3s;
}
.cta .cta-buttons a:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.cta-mail-btn {
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
}
.cta-tel-btn {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  flex-direction: column;
  gap: 4px;
}
.cta-tel-btn .tel-num {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cta-tel-btn .tel-label {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  margin-right: 8px;
}
.cta-tel-btn .tel-hours {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
/* Legacy CTA elements (keep for backwards compat) */
.cta .phone {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  margin-top: 24px;
  color: #fff;
}
.cta .note { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 16px 48px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(135deg, #5bbee5, #52ddae);
  background-size: 100% 100%;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-position 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-btn:hover { filter: brightness(1.1); }

/* Footer */
footer {
  padding: 64px 40px 32px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: var(--text-light);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--text);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding-bottom: 32px;
}
.footer-col h4 {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-col h4 a { color: var(--text); text-decoration: none; transition: color 0.3s; font-size: 13px; }
.footer-col h4 a:hover { color: var(--green); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col a { color: var(--text-light); font-size: 12px; transition: color 0.3s; }
.footer-col a:hover { color: var(--green); }
.footer-sub-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-top: 8px;
}
.footer-sub-link {
  font-size: 13px;
  color: var(--text) !important;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-sub-link:hover { color: var(--green) !important; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 11px;
}

/* ==================== Hamburger Button ==================== */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 102;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #5bbee5, #52ddae);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 9px; }
.nav-hamburger span:nth-child(3) { top: 18px; }
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ==================== Mobile Menu Overlay ==================== */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  padding: 100px 24px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-mobile-menu.is-active {
  opacity: 1;
  visibility: visible;
}
.nav-mobile-menu__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-mobile-menu__links > li > a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #eee;
}
.nav-mobile-menu__links > li > a:hover { color: var(--green); }
.nav-mobile-menu__sub {
  list-style: none;
  padding: 0 0 8px 16px;
}
.nav-mobile-menu__sub li a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-sub);
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
}
.nav-mobile-menu__sub li a:hover { color: var(--green); }

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  /* Nav */
  .nav-hamburger { display: block; }
  .nav-links { display: none; }
  .nav-mobile-menu { display: block; }
  .nav { padding: 0 20px; }
  .nav-wrapper { padding-top: 20px; }
  .nav-parent { left: 20px; top: 76px; }
  .nav-submenu { display: none; }
  .nav-backdrop { display: none; }

  /* Sections */
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .purpose { padding: 80px 0 60px; }
  .purpose__inner { padding: 0 20px; }

  /* Page header */
  .page-header { padding: 100px 0 40px; padding-left: 20px; padding-right: 20px; }

  /* Business layout */
  .business-layout { grid-template-columns: 1fr !important; gap: 32px; }
  .business-layout__img-row { flex-direction: column; }

  /* Cards / grids */
  .card-grid { grid-template-columns: 1fr !important; }
  .recruit-grid { grid-template-columns: 1fr !important; }
  .marks-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .governance-cards { grid-template-columns: 1fr !important; }

  /* Footer */
  footer { padding: 40px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-sub-row { grid-template-columns: 1fr; gap: 16px; }

  /* CTA */
  .cta { padding: 60px 20px; background-image: none; background-color: #464646; }
  .cta h2 { font-size: 36px; }
  .cta .cta-buttons { flex-direction: column; align-items: stretch; gap: 16px; max-width: 100%; }
  .cta .cta-buttons a { width: 100%; max-width: 100%; min-height: 96px; font-size: 17px; padding: 16px; }
  .cta-mail-btn { font-size: 17px; font-weight: 600; }
  .cta-tel-btn { min-height: 110px; }
  .cta-tel-btn .tel-num { font-size: 26px; }
  .cta-tel-btn .tel-label { font-size: 13px; }
  .cta-tel-btn .tel-hours { font-size: 11px; }

  /* Section nav dots */
  .section-nav { display: none; }

  /* Hover ball - hide on touch */
  .hover-ball { display: none !important; }

  /* Purpose bg images */
  .purpose__bg-img--for { display: none; }
  .purpose__bg-img--who { display: none; }

  /* Hero section */
  .hero { height: 80vh; }
  .hero-inner { width: calc(100% - 40px); padding-bottom: 40px; }
  .scroll-hint { right: 20px; bottom: 20px; }

  /* Services / Business canvas section */
  .section.section-business { padding: 80px 0 60px !important; }
  .section-business .container { padding: 0 20px !important; }
  .section-business .section-title { font-size: 22px !important; }
  .section-business .section-text { font-size: 14px; }
  #neural-canvas { max-height: 400px; }

  /* Recruit peek section */
  .recruit-peek { height: 620px; }
  .recruit-peek__text {
    align-items: center;
    justify-content: flex-start;
    padding-top: 32px;
    text-align: center;
  }
  .recruit-peek__text-label { font-size: 24px; }
  .recruit-peek__text p { font-size: clamp(22px, 6vw, 32px); }
  .recruit-peek__text-desc { padding: 0 20px; line-height: 1.8; max-width: 100%; }
  .recruit-peek__bottom { padding: 12px 20px; }
  .recruit-peek__bottom .recruit-hero__links {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .recruit-peek__bottom .recruit-hero__link {
    width: 100%;
    justify-content: center;
  }

  /* Purpose values */
  .purpose__value-text { font-size: 16px; }
  .purpose__text { font-size: 14px; line-height: 2; padding: 0 8px; }
  .purpose__heading { font-size: 20px; margin-bottom: 32px; }
  .purpose__bg-text--value { font-size: 18px; }

  /* Card grid interview */
  .card-grid .card img { height: 160px; }
  .recruit-interview-bg { display: none; }
}

@media (max-width: 480px) {
  .marks-grid { grid-template-columns: 1fr !important; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 60px 0; }
}
