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

:root {
  --color-primary: #2563eb;
  --color-primary-light: #7dd3fc;
  --color-navy: #0f1f33;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-bg-gray: #f2f4f6;
  --color-border: #e2e8f0;
  --color-footer: #0d0d0d;
  --header-height: 72px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--color-text);
  line-height: 1.7;
  background: #ffffff;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo img {
  height: 28px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-nav a.has-badge {
  position: relative;
}

.nav-badge {
  position: absolute;
  top: -8px;
  right: -14px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-border);
  color: var(--color-text);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: url('../images/menu-all-outline.svg') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background-image: url('../images/menu-all-filled.svg');
}

/* ===== All Menu Overlay ===== */
.all-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #ffffff;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.all-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.all-menu-scrim {
  display: none;
}

.all-menu-panel {
  position: relative;
  width: 100%;
}

.all-menu-close {
  position: fixed;
  top: calc((var(--header-height) - 44px) / 2);
  right: 24px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: url('../images/close-x-blue.svg') center / cover no-repeat;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.all-menu-title {
  display: none;
}

.all-menu-inner,
.all-menu-panel {
  padding: 128px 0 64px;
}

.all-menu-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 24px;
}

.all-menu-col-title {
  display: block;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  cursor: default;
}

.all-menu-col-title .chevron {
  display: none;
}

.all-menu-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text);
}

.all-menu-list a:hover {
  color: var(--color-primary);
}

.all-menu-list .arrow {
  color: var(--color-primary);
  width: 6px;
  height: 6px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 15, 25, 0.55) 0%, rgba(10, 15, 25, 0.05) 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 48px 24px;
  color: #ffffff;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.4;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-dot.is-active {
  background: #ffffff;
  transform: scale(1.2);
}

/* ===== Section shared ===== */
.section-title {
  text-align: center;
}

.section-title h2,
.section-title .en {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-title .en {
  display: block;
}

.section-title .jp {
  display: block;
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 8px;
  font-weight: 500;
}

.section-title.with-underline .jp {
  margin-bottom: 0;
}

.underline-bar {
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  margin: 12px auto 0;
}

/* ===== Arrow (shared chevron shape, used across cards/menus/buttons) ===== */
.arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  font-size: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 1px;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

/* ===== About link section ===== */
.about-link-section {
  padding: 64px 24px;
  border-bottom: 1px solid var(--color-border);
}

.about-link-section a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-link-section .arrow {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.about-link-section a:hover .arrow {
  transform: translateX(6px) rotate(-45deg);
}

/* ===== Card grid (Recruit / AX-DX / KensetsuDX / Construction) ===== */
.card-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.card-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/hero-photo.jpg") center / cover no-repeat;
  transform: scale(1);
  transition: transform 6s ease, background-image 0.2s ease;
}

.card-grid:hover::before {
  transform: scale(1.15);
}

.card-grid:has(.card-recruit:hover)::before {
  background-image: url("../images/recruit-bg.jpg");
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 24px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  background: #ffffff;
}

.card-grid:hover .card {
  background: rgba(255, 255, 255, 0.25);
}

.card-grid:hover .card:hover {
  background: rgba(255, 255, 255, 0.95);
}

.card:not(:first-child):nth-child(odd) {
  border-right: none;
}

.card-about {
  grid-column: 1 / -1;
  padding: 36px 24px;
  border-right: none;
}

.card-title-en {
  position: relative;
  z-index: 1;
  font-size: 26px;
  font-weight: 700;
}

.card-title-jp {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.card .arrow {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  color: var(--color-primary);
  margin-left: 8px;
}

.card.is-disabled {
  cursor: default;
  color: var(--color-text-light);
}

.card.is-disabled .card-title-en {
  color: var(--color-text-light);
}

.card.is-disabled .arrow {
  color: var(--color-border);
}

/* ===== Member ===== */
.member-section {
  background: var(--color-bg-gray);
  padding: 64px 24px;
}

@media (min-width: 769px) {
  .member-section .container {
    max-width: 60%;
  }
}

.member-list-section {
  background: var(--color-bg-gray);
  padding: 64px 24px;
}

@media (min-width: 769px) {
  .member-list-section .container {
    max-width: 80%;
  }
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.member-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 0 var(--color-bg-gray);
  transition: box-shadow 0.3s ease;
}

.member-card:hover {
  box-shadow: inset 0 0 0 6px var(--color-bg-gray);
}

.member-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transform: scale(1);
  transition: transform 0.3s ease, border-radius 0.3s ease;
}

.member-card:hover .member-photo img {
  transform: scale(0.78);
  border-radius: 10px;
}

.member-card:nth-child(1) .member-photo img {
  object-position: center 10%;
}

.member-card:nth-child(2) .member-photo img {
  object-position: center 25%;
}

.member-card:nth-child(4) .member-photo img {
  object-position: center 20%;
}

.member-card:nth-child(5) .member-photo img {
  object-position: center 25%;
}

.member-card:nth-child(6) .member-photo img {
  object-position: center 30%;
}

.member-info {
  padding: 12px 16px;
}

.member-name {
  font-size: 16px;
  font-weight: 700;
}

.member-role {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 4px;
  line-height: 1.5;
}

/* ===== Member profile page ===== */
.profile-hero {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.profile-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta {
  padding: 40px 24px;
  border-bottom: 1px solid var(--color-border);
}

.profile-meta .container {
  max-width: 840px;
  margin: 0 auto;
}

.profile-org {
  color: var(--color-text-light);
  font-size: 14px;
  font-weight: 500;
}

.profile-name {
  font-size: 32px;
  font-weight: 700;
  margin-top: 8px;
}

.profile-joined {
  color: var(--color-text-light);
  font-size: 13px;
  margin-top: 8px;
}

.view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 32px auto 0;
  padding: 12px 32px;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.view-all-btn .arrow {
  width: 7px;
  height: 7px;
}

.view-all-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* ===== News ===== */
.news-section {
  padding: 64px 24px;
}

@media (min-width: 769px) {
  .news-section .container {
    max-width: 60%;
  }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.news-card {
  display: block;
}

.news-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transform: scale(1);
  transition: transform 0.3s ease, border-radius 0.3s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(0.78);
  border-radius: 10px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.news-tag {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: var(--color-primary);
  padding: 3px 10px;
  border-radius: 3px;
}

.news-date {
  font-size: 12px;
  color: var(--color-text-light);
}

.news-title {
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.6;
}

/* ===== Social bar ===== */
.social-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}

.social-btn.youtube {
  background: #e11d2e;
}

.social-btn.note {
  background: #0d0d0d;
}

.social-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-footer);
  color: #cbd5e1;
  padding: 56px 24px 24px;
  text-align: center;
}

.site-footer .logo img {
  height: 26px;
  margin: 0 auto 24px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  margin-bottom: 24px;
}

.footer-nav a:hover {
  color: #ffffff;
}

.copyright {
  font-size: 12px;
  color: #64748b;
}

/* ===== About page ===== */
.page-title {
  padding: 72px 24px 48px;
  text-align: center;
}

.page-title h1 {
  font-size: 40px;
  font-weight: 700;
}

.page-title p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 8px;
}

.video-section {
  padding: 0 24px 64px;
}

.video-wrapper {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  pointer-events: none;
}

.video-wrapper:hover .play-button {
  background: #ffffff;
}

.rep-message {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 56px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.rep-message-photo {
  flex: 0 0 300px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
}

.rep-message-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rep-message-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.rep-message-body p {
  color: var(--color-text-light);
  font-size: 14px;
}

.rep-message-body p + p {
  margin-top: 14px;
}

.rep-message-body .signature {
  margin-top: 20px;
  font-weight: 700;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .rep-message {
    flex-direction: column;
  }

  .rep-message-photo {
    flex-basis: auto;
    width: 100%;
    max-width: 300px;
  }
}

.about-block {
  max-width: 840px;
  margin: 0 auto;
  padding: 56px 24px;
  border-top: 1px solid var(--color-border);
}

.about-block h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}

.story-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 15, 25, 0.6) 0%, rgba(10, 15, 25, 0) 55%);
}

.story-card-title {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.section-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 13px;
}

.company-info {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}

.company-info-heading h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 16px;
}

.company-table {
  border-top: 1px solid var(--color-border);
}

.company-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.company-row dt {
  font-weight: 700;
}

.company-row dd {
  color: var(--color-text-light);
  line-height: 1.7;
}

.about-block p + p {
  margin-top: 14px;
}

.about-block p {
  color: var(--color-text-light);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

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

  .card {
    border-right: none;
  }

  .card-grid:hover .card,
  .card-grid:hover .card:hover {
    background: #ffffff;
  }

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

  .social-bar {
    grid-template-columns: 1fr;
  }

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

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

  .company-info {
    grid-template-columns: 1fr;
  }

  .company-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .all-menu {
    background: transparent;
    overflow: hidden;
  }

  .all-menu-scrim {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(15, 31, 51, 0.45);
  }

  .all-menu-panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: 88%;
    max-width: 360px;
    height: 100%;
    background: #ffffff;
    border-radius: 24px 0 0 24px;
    overflow-y: auto;
    padding: 72px 24px 40px;
  }

  .all-menu-close {
    top: 16px;
    right: auto;
    left: 16px;
  }

  .all-menu-title {
    display: block;
    text-align: center;
    margin-bottom: 24px;
  }

  .all-menu-title-en {
    display: block;
    font-size: 26px;
    font-weight: 700;
  }

  .all-menu-title-jp {
    display: block;
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 4px;
  }

  .all-menu-grid {
    display: block;
    max-width: none;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
  }

  .all-menu-col + .all-menu-col {
    margin-top: 0;
  }

  .all-menu-col-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 0;
  }

  .all-menu-col:last-child:not(.is-expanded) .all-menu-col-title {
    border-bottom: none;
  }

  .all-menu-col-title .chevron {
    display: inline-block;
    width: 8px;
    height: 8px;
    font-size: 0;
    border-right: 2px solid var(--color-text-light);
    border-bottom: 2px solid var(--color-text-light);
    border-radius: 1px;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }

  .all-menu-col.is-expanded .chevron {
    transform: rotate(45deg);
  }

  .all-menu-col > .all-menu-list {
    display: none;
    padding: 4px 16px;
    background: var(--color-bg-gray);
    border-bottom: 1px solid var(--color-border);
  }

  .all-menu-col:last-child > .all-menu-list {
    border-bottom: none;
  }

  .all-menu-col.is-expanded > .all-menu-list {
    display: block;
  }
}

@media (max-width: 480px) {
  .member-grid {
    gap: 12px;
  }

  .member-info {
    padding: 8px;
  }

  .member-name {
    font-size: 13px;
  }

  .member-role {
    font-size: 11px;
  }

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

  .section-title h2,
  .section-title .en {
    font-size: 30px;
  }
}
