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

:root {
  --main-blue: #1A5FAC;
  --sub-blue: #3A8FE8;
  --grad-start: oklch(71.5% 0.143 215.221);
  --grad-end: oklch(62.3% 0.214 259.815);
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --accent-yellow: oklch(90.5% 0.182 98.111);
  --dark: #1A1A2E;
  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', sans-serif;
  --font-en: 'Barlow', sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--font-jp);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.8;
}

/* ===== HEADER (white, separated from hero) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.4s;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(26, 26, 46, 0.08);
}

.header-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: clamp(36px, 3vw, 42px);
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: 0.5px;
  position: relative;
  transition: color var(--transition);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-yellow);
  transition: width var(--transition);
}

.header-nav a:hover::after {
  width: 100%;
}

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

.header-cta {
  padding: 10px 24px;
  background: var(--accent-yellow);
  color: var(--dark);
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform 0.2s;
  letter-spacing: 0.5px;
}

.header-cta:hover {
  background: #e6b400;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 4px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  background: var(--white);
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Drawer */
.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.drawer.open {
  right: 0;
}

.drawer a {
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.drawer a:hover {
  opacity: 1;
}

/* ===== HERO — Single photo + gradient overlay ===== */
.hero {
  position: relative;
  height: calc(100vh - 80px);
  min-height: 520px;
  margin-top: 80px;
  overflow: hidden;
}

/* Hero slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease-in-out;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      oklch(62.3% 0.214 259.815 / 0.82) 0%,
      oklch(67% 0.18 240 / 0.55) 35%,
      oklch(71.5% 0.143 215.221 / 0.35) 65%,
      oklch(71.5% 0.143 215.221 / 0.2) 100%);
}

/* Text overlay — bottom-left */
.hero-content {
  position: absolute;
  z-index: 10;
  bottom: 0;
  left: 0;
  padding: 0 60px 72px;
  max-width: 680px;
}

.hero-catch {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: 2px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s 0.2s forwards;
}

.hero-sub-text {
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
  font-weight: 400;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.8s 0.5s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title-en {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 4px;
  line-height: 1;
  color: var(--main-blue);
}

.section-title-en.white {
  color: var(--white);
}

.section-title-jp {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 8px;
  color: var(--dark);
  letter-spacing: 2px;
}

.section-title-jp.white {
  color: rgba(255, 255, 255, 0.8);
}

.section-title-line {
  width: 40px;
  height: 3px;
  background: var(--accent-yellow);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Section dividers */
.divider-angle {
  position: relative;
  width: 100%;
  height: 80px;
  margin-top: -1px;
}

.divider-angle svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Responsive SVG switching: default = PC */
.divider-angle .divider-tb,
.divider-angle .divider-sp {
  display: none;
}

/* ===== ABOUT ===== */
.about {
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--main-blue), var(--sub-blue));
}

.about-image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-text {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 8px;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--accent-yellow);
  border-radius: 4px;
  z-index: 0;
}

.about-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--accent-yellow);
  line-height: 1.5;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 2;
  color: #555;
  margin-bottom: 16px;
}

/* ===== SERVICE ===== */
.service {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.service-items {
  display: flex;
  flex-direction: column;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service-item:nth-child(even) {
  direction: rtl;
}

.service-item:nth-child(even)>* {
  direction: ltr;
}

.service-item-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-item-image-placeholder {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: 4px;
}

.service-item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item-text {}

.service-item-num {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1rem;
  color: var(--accent-yellow);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.service-item-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.service-item-text p {
  font-size: 0.9rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.8);
}

/* Stats */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 3rem;
  color: var(--accent-yellow);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* ===== RECRUIT ===== */
.recruit {
  background: var(--white);
}

.recruit-content {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 0;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--light-gray);
}

.recruit-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 48px 40px;
  text-align: center;
}

.recruit-text p {
  margin-bottom: 32px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--dark);
}

.recruit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--main-blue);
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.recruit-link:hover {
  background: var(--sub-blue);
  box-shadow: 0 10px 24px rgba(26, 95, 172, 0.22);
  transform: translateY(-2px);
}

.recruit-image {
  min-height: 360px;
  overflow: hidden;
}

.recruit-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== WORKS ===== */
.works {
  background: var(--white);
}

.works-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.works-filter button {
  padding: 8px 20px;
  border: 2px solid var(--main-blue);
  border-radius: 30px;
  background: transparent;
  color: var(--main-blue);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-jp);
}

.works-filter button.active,
.works-filter button:hover {
  background: var(--main-blue);
  color: var(--white);
}

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

.works-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.works-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 95, 172, 0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.works-card:hover .works-card-overlay {
  opacity: 1;
}

.works-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.works-card-overlay h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 6px;
}

.works-card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-yellow);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 3px;
}

.works-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(26, 95, 172, 0.12);
  letter-spacing: 2px;
}

.works-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.works-more {
  text-align: center;
  margin-top: 48px;
}

.works-more button {
  padding: 14px 48px;
  border: 2px solid var(--main-blue);
  background: transparent;
  color: var(--main-blue);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-jp);
}

.works-more button:hover {
  background: var(--main-blue);
  color: var(--white);
}

.works-more-link {
  display: inline-block;
  padding: 14px 48px;
  border: 2px solid var(--main-blue);
  background: transparent;
  color: var(--main-blue);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all var(--transition);
}

.works-more-link:hover {
  background: var(--main-blue);
  color: var(--white);
}

/* ===== WORKS PAGE ===== */
.works-page-hero {
  background: linear-gradient(135deg, var(--main-blue), #2A81FE);
  padding: 120px 40px 60px;
  text-align: center;
  color: var(--white);
}

.works-page-hero h1 {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.works-page-hero p {
  font-size: 0.95rem;
  opacity: 0.8;
}

.works-page-section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.works-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.works-page-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.works-page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.works-page-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #e0e8f0, #c0d0e0);
}

.works-page-card-img-wrap {
  position: relative;
}

.works-card-photo-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 20px;
}

.works-page-card-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e0e8f5, #c8d8ea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.4rem;
  color: rgba(26, 95, 172, 0.3);
  letter-spacing: 2px;
}

.works-page-card-body {
  padding: 20px 24px 24px;
}

.works-page-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.works-page-card-scope-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--main-blue);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.works-page-card-scopes.has-parent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.works-page-card-scope-block {
  min-width: 0;
}

.works-page-card-scope {
  list-style: none;
  padding: 0;
  margin: 0;
}

.works-page-card-scope li {
  font-size: 0.82rem;
  color: #555;
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.works-page-card-scope li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--main-blue);
}

.works-page-card-scope-label.parent {
  color: var(--sub-blue);
}

.works-page-card-scope.parent li::before {
  color: var(--sub-blue);
}

/* Pagination */
.works-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.works-pagination button {
  width: 40px;
  height: 40px;
  border: 2px solid var(--main-blue);
  background: transparent;
  color: var(--main-blue);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.works-pagination button.active,
.works-pagination button:hover {
  background: var(--main-blue);
  color: var(--white);
}

.works-pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-slider {
  position: relative;
  background: #000;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.modal-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-arrow:hover { background: rgba(0,0,0,0.75); }
.modal-arrow.prev { left: 12px; }
.modal-arrow.next { right: 12px; }
.modal-arrow:disabled { opacity: 0.2; cursor: default; }

.modal-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

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

.modal-dot.active { background: #fff; }

.modal-counter {
  position: absolute;
  top: 12px;
  left: 14px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 5;
}

.modal-info {
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.modal-info-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.modal-info-scope-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--main-blue);
  margin-bottom: 6px;
}

.modal-info-scope {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-info-scope li {
  font-size: 0.82rem;
  background: #f0f4fa;
  color: var(--main-blue);
  padding: 4px 12px;
  border-radius: 20px;
}

.modal-info-parent-scope {
  margin-top: 16px;
}

.modal-info-scope-label.parent {
  color: var(--sub-blue);
}

.modal-info-scope.parent li {
  background: rgba(58, 143, 232, 0.1);
  color: var(--sub-blue);
}

/* ===== COMPANY ===== */
.company {
  background: var(--light-gray);
}

.company-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.company-table tr {
  border-bottom: 1px solid #e0e0e0;
}

.company-table th {
  background: var(--main-blue);
  color: var(--white);
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  width: 130px;
  vertical-align: top;
}

.company-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  background: var(--white);
}

.company-map {
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  min-height: 350px;
  background: #dde5ed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-map-placeholder {
  text-align: center;
  color: #999;
  font-size: 0.85rem;
}

.company-map-placeholder svg {
  display: block;
  margin: 0 auto 12px;
}

/* ===== HISTORY ===== */
.history {
  background: var(--light-gray);
  padding-top: 16px;
  scroll-margin-top: 80px;
}

.history-year-group {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  transition-delay: 0.12s;
}

.history-year {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(26, 26, 46, 0.28);
  letter-spacing: 0;
  transform: translateX(-24px);
  opacity: 0;
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.history-events {
  position: relative;
  padding-left: 36px;
}

.history-events::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 12px;
  left: 7px;
  width: 1px;
  background: rgba(26, 26, 46, 0.32);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.24s;
}

.history-event {
  position: relative;
  padding-bottom: 36px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s, transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.history-event:last-child {
  padding-bottom: 0;
}

.history-event::before {
  content: '';
  position: absolute;
  top: 9px;
  left: -33px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dark);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.history-month {
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
}

.history-event p {
  max-width: 660px;
  font-size: 0.92rem;
  line-height: 2;
  color: rgba(26, 26, 46, 0.82);
}

.history-year-group.visible .history-year,
.history-year-group.visible .history-event {
  opacity: 1;
  transform: translate(0);
}

.history-year-group.visible .history-events::before {
  transform: scaleY(1);
}

.history-year-group.visible .history-event::before {
  opacity: 1;
  transform: scale(1);
}

.history-year-group.visible .history-event:nth-child(1) {
  transition-delay: 0.42s;
}

.history-year-group.visible .history-event:nth-child(1)::before {
  transition-delay: 0.55s;
}

.history-year-group.visible .history-event:nth-child(2) {
  transition-delay: 0.74s;
}

.history-year-group.visible .history-event:nth-child(2)::before {
  transition-delay: 0.88s;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--white);
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-notice {
  text-align: center;
  margin-bottom: 32px;
  padding: 16px;
  background: rgba(26, 95, 172, 0.05);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--main-blue);
  font-weight: 500;
}

.contact-tabs {
  display: flex;
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--main-blue);
}

.contact-tab {
  flex: 1;
  padding: 14px 20px;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: none;
  background: var(--white);
  color: var(--main-blue);
  font-family: var(--font-jp);
}

.contact-tab.active {
  background: var(--main-blue);
  color: var(--white);
}

.contact-form {
  display: none;
}

.contact-form.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group label .req {
  display: inline-block;
  padding: 1px 6px;
  background: #e74c3c;
  color: white;
  font-size: 0.65rem;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-jp);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--main-blue);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
  font-size: 0.8rem;
  color: #666;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--main-blue);
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent-yellow);
  color: var(--dark);
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-jp);
  letter-spacing: 1px;
}

.form-submit:hover {
  background: #e6b400;
  transform: translateY(-1px);
}

.form-thanks {
  display: none;
  text-align: center;
  padding: 60px 0;
}

.form-thanks.show {
  display: block;
}

.form-thanks h3 {
  font-size: 1.4rem;
  color: var(--main-blue);
  margin-bottom: 12px;
}

.form-thanks p {
  color: #666;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand .footer-logo {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 2px;
}

.footer-logo-img {
  display: block;
  width: 120px;
  height: auto;
}

.footer-brand p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  gap: 48px;
}

.footer-nav-col h4 {
  font-size: 0.75rem;
  color: var(--accent-yellow);
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-nav-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-nav-col a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-bottom p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-en);
  letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .works-page-grid {
    grid-template-columns: 1fr;
  }

  .works-page-section {
    padding: 48px 20px;
  }

  .header {
    padding: 0 20px;
    height: 64px;
  }

  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    height: calc(100svh - 64px);
    margin-top: 64px;
  }

  .hero-content {
    padding: 0 24px 48px;
    max-width: 100%;
  }

  .hero-catch {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

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

  .service-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .recruit-content {
    grid-template-columns: 1fr;
  }

  .service-item:nth-child(even) {
    direction: ltr;
  }

  .service-item-image {
    aspect-ratio: 16/9;
  }

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

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

  .history-year-group {
    grid-template-columns: minmax(96px, 140px) 1fr;
    gap: 32px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-nav {
    flex-direction: column;
    gap: 24px;
  }

  .stats-row {
    gap: 32px;
    flex-wrap: wrap;
  }

  /* Divider: switch to TB */
  .divider-angle .divider-pc {
    display: none;
  }

  .divider-angle .divider-tb {
    display: block;
  }
}

@media (max-width: 768px) {

  /* Divider: switch to SP */
  .divider-angle .divider-tb {
    display: none;
  }

  .divider-angle .divider-sp {
    display: block;
  }

  /* Hero スライド：スマホ時の個別フォーカス調整 */
  .hero-slide:nth-child(3) img {
    object-position: left center;
  }

  .hero-slide:nth-child(5) img {
    object-position: right center;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }

  .works-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .works-page-card-body {
    padding: 20px 22px 24px;
  }

  .works-page-card-scopes.has-parent {
    gap: 12px;
  }

  .works-page-card-scope-label {
    font-size: 0.72rem;
  }

  .works-page-card-scope li {
    font-size: 0.78rem;
    padding-left: 12px;
  }

  .recruit-content {
    border-radius: 8px;
    background: var(--white);
    border: 1px solid rgba(26, 95, 172, 0.24);
  }

  .recruit-image {
    order: -1;
    min-height: 0;
    aspect-ratio: 16/9;
  }

  .recruit-text {
    min-height: 0;
    padding: 36px 24px 40px;
  }

  .recruit-text p {
    margin-bottom: 28px;
    font-size: 0.98rem;
    line-height: 2;
  }

  .recruit-link {
    min-width: 200px;
    min-height: 52px;
    padding: 12px 28px;
  }

  .history {
    padding-top: 8px;
    scroll-margin-top: 64px;
  }

  .history-year-group {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .history-year {
    font-size: 2.2rem;
  }

  .history-events {
    padding-left: 28px;
  }

  .history-event {
    padding-bottom: 30px;
  }

  .history-event::before {
    left: -25px;
  }

  .history-event p {
    font-size: 0.88rem;
    line-height: 1.9;
  }

  .divider-angle {
    height: 50px;
  }
}