@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap');

/* ==========================================================================
   Design System & Base Styles
   ========================================================================== */

:root {
  --primary: #03A9F4;
  --secondary: #0288D1;
  --accent: #FF5722;
  --bg: #E3F2FD;
  --bg-dark: #0f172a;
  --text: #263238;
  --text-muted: #64748b;
  --white: #ffffff;
  --font-family: 'Noto Serif JP', serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --container-width: 1200px;
  --grad-metallic: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 25%, #94a3b8 50%, #e2e8f0 75%, #475569 100%);
  --grad-metallic-blue: linear-gradient(135deg, #0288D1 0%, #03A9F4 30%, #f1f5f9 50%, #0288D1 70%, #01579B 100%);
  --grad-accent-metallic: linear-gradient(135deg, #ff5722 0%, #ff7043 30%, #ffe0b2 50%, #ff5722 70%, #e64a19 100%);
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* ==========================================================================
   Layout & Common Components
   ========================================================================== */

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

section {
  padding: 80px 0;
  position: relative;
}

/* Section Title (Non-template styling) */
.section-header {
  margin-bottom: 40px;
  position: relative;
}

.section-title-en {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  background: var(--grad-metallic-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 800;
  font-family: 'Roboto', 'Arial Black', sans-serif;
}

.section-title-ja {
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  z-index: 2;
}

.section-title-ja::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--grad-accent-metallic);
}

/* ==========================================================================
   Watermark Section Background Text (Metallic/Industrial Styling)
   ========================================================================== */
#vision, #work, #features, #culture, #about {
  position: relative;
  overflow: hidden; /* Prevent horizontal scrolling on mobile */
}

#vision::before,
#work::before,
#features::before,
#culture::before,
#about::before {
  position: absolute;
  font-family: 'Roboto', 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 15vw;
  background: linear-gradient(180deg, rgba(2, 136, 209, 0.035) 0%, rgba(2, 136, 209, 0.01) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  letter-spacing: 0.15em;
  line-height: 1;
}

#vision::before {
  content: "VISION";
  top: 40px;
  left: -2vw;
}

#work::before {
  content: "DUCT WORK";
  top: 40px;
  right: -5vw;
}

#features::before {
  content: "FEATURES";
  top: 60px;
  left: 5vw;
}

#culture::before {
  content: "CULTURE";
  bottom: 40px;
  left: -1vw;
}

#about::before {
  content: "COMPANY";
  top: 40px;
  right: -3vw;
}

/* Smartphone First optimizations for background watermarks */
@media (max-width: 767px) {
  #vision::before,
  #work::before,
  #features::before,
  #culture::before,
  #about::before {
    font-size: 18vw;
    background: linear-gradient(180deg, rgba(2, 136, 209, 0.025) 0%, rgba(2, 136, 209, 0.005) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  #vision::before { top: 20px; left: -1vw; }
  #work::before { top: 20px; right: -2vw; }
  #features::before { top: 30px; left: 2vw; }
  #culture::before { bottom: 20px; left: -1vw; }
  #about::before { top: 20px; right: -1vw; }
}

/* Decorative huge numbers / typography instead of icons */
.deco-num {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(3, 169, 244, 0.1);
  position: absolute;
  top: -20px;
  left: -10px;
  user-select: none;
  font-family: 'Noto Serif JP', serif;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(30deg);
  transition: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(255, 87, 34, 0.3);
  background-color: #ff6d3b;
}

.btn-primary:hover::after {
  left: 140%;
  transition: all 0.6s ease-in-out;
}

/* Scroll Animation classes */
.anim-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Vision Title Anim (Simple & Stylistic Slide Up & Blur) */
.vision-title {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.8s ease;
}

.vision-title.anim-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}


/* ==========================================================================
   Header (Logo Only / Clean & Dynamic)
   ========================================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  transition: var(--transition);
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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


/* Logo */
.logo-wrapper {
  position: relative;
  z-index: 200;
  margin: 0;
}

.logo-link {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}

.logo-en {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.logo-ja {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  margin-top: 3px;
}

/* Global Navigation (Desktop) */
.nav-menu {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu ul li a {
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
  position: relative;
  padding: 8px 0;
  text-decoration: none;
  transition: var(--transition);
}

.nav-menu ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-menu ul li a:hover::after {
  width: 100%;
}

/* Apply Button */
.header-cv {
  display: flex;
  align-items: center;
  margin-left: 36px;
}

.btn-apply-header {
  background-color: var(--accent);
  color: var(--white);
  padding: 10px 22px;
  font-size: 0.88rem;
  border-radius: 4px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-apply-header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(30deg);
  transition: none;
}

.btn-apply-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
  background-color: #ff6d3b;
}

.btn-apply-header:hover::after {
  left: 140%;
  transition: all 0.6s ease-in-out;
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 200;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}




/* ==========================================================================
   Hero Section
   ========================================================================== */

#hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--bg-dark);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(3, 169, 244, 0.25) 50%, rgba(15, 23, 42, 0.9) 100%);
}

/* Dynamic skewed overlay for futuristic feeling */
.hero-skew-overlay {
  position: absolute;
  top: 0;
  right: -10%;
  width: 50%;
  height: 100%;
  background: var(--grad-metallic-blue);
  opacity: 0.18;
  transform: skewX(-20deg);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 800px;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 24px;
  display: block;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

.hero-highlight {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 2px 10px rgba(3, 169, 244, 0.2);
  display: inline-block;
  margin-top: 6px;
}

.hero-title .hero-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 400;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
}


/* ==========================================================================
   Vision Section (Clean / Asymmetrical Element)
   ========================================================================== */

#vision {
  background-color: var(--bg);
  padding: 100px 0;
  overflow: hidden;
}

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

.vision-image-wrapper {
  position: relative;
}

/* Asymmetric frame effect - overlap */
.vision-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--primary);
  z-index: 1;
  pointer-events: none;
}

.vision-image {
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.vision-image img {
  transition: transform 0.8s ease;
}

.vision-image:hover img {
  transform: scale(1.05);
}

.vision-text-wrapper {
  padding-left: 20px;
}

.vision-lead {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.vision-description {
  color: var(--text);
  font-size: 1.05rem;
  text-align: justify;
}

.vision-accent {
  display: inline;
  color: var(--secondary);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 2;
}


/* ==========================================================================
   Job Description (Two Column Asymmetrical Grid / Left-Right Alternate)
   ========================================================================== */

#work {
  background-color: var(--white);
}

.job-intro {
  max-width: 100%;
  margin-bottom: 30px;
}

.job-intro-lead {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.job-intro-points {
  background-color: var(--bg);
  padding: 24px 30px;
  border-radius: 6px;
  margin-bottom: 24px;
  border-left: 4px solid var(--primary);
}

.job-intro-points p {
  margin-bottom: 12px;
  font-weight: 700;
}

.job-intro-points p:last-child {
  margin-bottom: 0;
}

.job-intro-points span {
  color: var(--secondary);
  font-weight: 700;
  margin-right: 8px;
}

.job-intro-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  text-align: left;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.job-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  position: relative;
}

@media (min-width: 768px) {
  /* Job 01の下（右側）：テキストからJob 02の写真へ伸びる点線 */
  .job-item:nth-child(1)::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: 23%;
    height: 70px;
    border-left: 3px dotted rgba(2, 136, 209, 0.4);
    z-index: 1;
  }

  /* Job 02の下（左側）：テキストからJob 03の写真へ伸びる点線 */
  .job-item:nth-child(2)::after {
    content: '';
    position: absolute;
    bottom: -70px;
    left: 23%;
    height: 70px;
    border-left: 3px dotted rgba(2, 136, 209, 0.4);
    z-index: 1;
  }
}

.job-item:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.job-item:nth-child(even) .job-image-wrapper {
  order: 2;
}

.job-item:nth-child(even) .job-text-wrapper {
  order: 1;
}

.job-image-wrapper {
  position: relative;
}

/* Distinctive overlay lines instead of normal frames */
.job-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background-color: rgba(3, 169, 244, 0.08);
  z-index: 1;
  pointer-events: none;
}

.job-image {
  position: relative;
  z-index: 2;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
}

/* 1枚目(製造)・3枚目(取付)：縦長画像をご提示のアスペクト比(4:3)でトリミング、ズームなし */
.job-item:nth-child(1) .job-image,
.job-item:nth-child(3) .job-image {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.job-item:nth-child(1) .job-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transform-origin: center center;
  transition: var(--transition);
}

.job-item:nth-child(3) .job-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.0);
  transform-origin: center center;
  transition: var(--transition);
}

.job-item:nth-child(1):hover .job-image img {
  transform: scale(1.05);
}

.job-item:nth-child(3):hover .job-image img {
  transform: scale(1.05);
}

/* 2枚目(納入)：元々横長の写真なのでそのままのアスペクト比で使用 */
.job-item:nth-child(2) .job-image {
  aspect-ratio: auto;
  width: 100%;
}

.job-item:nth-child(2) .job-image img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.0);
  transition: var(--transition);
}

.job-item:nth-child(2):hover .job-image img {
  transform: scale(1.03);
}

.job-text-wrapper {
  position: relative;
}

.job-step-num {
  font-size: 5rem;
  font-weight: 900;
  background: var(--grad-metallic-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 10px;
  font-family: 'Roboto', 'Arial Black', sans-serif;
}

.job-title {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.job-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
}

.job-desc {
  font-size: 1rem;
  text-align: justify;
}


/* ==========================================================================
   Features Section (Asymmetrical Block Overlap / No repetitive columns)
   ========================================================================== */

#features {
  background-color: var(--bg);
  position: relative;
  overflow: hidden;
}

.features-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  position: relative;
}

.feature-block:nth-child(even) {
  grid-template-columns: 1.2fr 1fr;
}

.feature-block:nth-child(even) .feature-image-side {
  order: 2;
}

.feature-block:nth-child(even) .feature-text-side {
  order: 1;
}

.feature-image-side {
  position: relative;
  min-height: 320px;
}

.feature-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.feature-text-side {
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.feature-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.feature-headline {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.4;
}

.feature-body {
  font-size: 1rem;
  text-align: justify;
  color: var(--text-muted);
}


/* ==========================================================================
   Career Path Section (Timeline Layout / CSS Diagrams)
   ========================================================================== */

#career_path {
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%), url('../images/career_path_01.jpeg');
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
  padding: 100px 0;
}

.career-intro {
  max-width: 800px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.career-layout {
  display: block;
  max-width: 800px;
  margin: 40px auto 0;
}

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

.career-timeline {
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.career-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  width: 2px;
  height: 100%;
  background-color: var(--primary);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-left: 90px;
  margin-bottom: 60px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  left: 31px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--white);
  border: 4px solid var(--secondary);
  z-index: 2;
}

.timeline-step {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.timeline-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: justify;
}


/* ==========================================================================
   Member Voice Section (Grid / CSS Quotes / No icons)
   ========================================================================== */

#member_voice {
  background-color: var(--bg);
  color: var(--text);
}

.member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

.member-card {
  background-color: var(--white);
  border: 1px solid rgba(2, 136, 209, 0.15);
  border-radius: 4px;
  padding: 40px;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.4s ease, 
              border-color 0.4s ease, 
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s ease;
}

/* スクロール時の2枚目の時間差（浮き上がり）ディレイ */
.member-card:nth-child(2) {
  transition-delay: 0.15s;
}

.member-card:hover {
  transform: translateY(-12px);
  background-color: #f0f9ff;
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(3, 169, 244, 0.12);
  z-index: 10;
  transition-delay: 0s !important;
}

.member-quote-mark {
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.18;
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: 'Noto Serif JP', serif;
}

.member-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.member-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(3, 169, 244, 0.5);
  background-color: var(--bg);
  flex-shrink: 0;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  margin-bottom: 24px;
}

.member-role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.member-name {
  font-size: 1.3rem;
  font-weight: 700;
}

.member-comment {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: justify;
}


/* ==========================================================================
   Culture Section (Zigzag Layout)
   ========================================================================== */

#culture {
  background-color: var(--white);
}

.culture-zigzag {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 40px;
}

.culture-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.culture-row:nth-child(even) {
  direction: rtl;
}

.culture-row:nth-child(even) .culture-text {
  direction: ltr;
}

.culture-row:nth-child(even) .culture-img {
  direction: ltr;
}

.culture-img {
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
  aspect-ratio: 1.5 / 1;
  border-radius: 6px;
}

.culture-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--transition);
}

/* 集合写真の看板が途中で切り取られないように、上部を基準に切り抜き */
.culture-row:nth-child(2) .culture-img img {
  object-position: center 5%;
}

/* 3枚目のダクト写真：お試しで下部を映した配置に変更 */
.culture-row:nth-child(3) .culture-img img {
  object-position: center 85%;
}

.culture-row:hover .culture-img img {
  transform: scale(1.04);
}

.culture-text-headline {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(2, 136, 209, 0.15);
  line-height: 1.4;
}

.culture-text-body {
  font-size: 1rem;
  text-align: justify;
}


/* ==========================================================================
   Benefits Section (Highlight Numbers)
   ========================================================================== */

#benefits {
  background-color: var(--bg);
}

.support-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.7fr;
  gap: 24px;
  margin-top: 48px;
}

.support-card {
  background: var(--white);
  border-radius: 4px;
  padding: 36px 28px 32px;
  text-align: center;
  border: 1px solid rgba(2, 136, 209, 0.12);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(2, 136, 209, 0.10);
}

.support-card-num {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.support-card-unit {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-left: 2px;
}

.support-card-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 0;
}

.support-card-rule {
  width: 32px;
  height: 2px;
  background: var(--primary);
  margin: 16px auto 14px;
  border-radius: 2px;
  opacity: 0.6;
}

.support-card-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}

.support-card-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* Card 4: text variant */
.support-card--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.support-card-text-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.support-card-text-main {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.4;
}

.support-card-text-sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--secondary);
  opacity: 0.8;
  line-height: 1.4;
}

.support-card-text-bottom {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  text-align: center;
}


/* ==========================================================================
   Recruitment Info (Styled Table)
   ========================================================================== */

#recruitment_info {
  background-color: var(--bg-dark);
  color: var(--white);
}

.info-table-wrapper {
  margin-top: 60px;
  border-top: 2px solid rgba(3, 169, 244, 0.4);
  border-bottom: 2px solid rgba(3, 169, 244, 0.4);
}

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

.info-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.info-table th {
  width: 25%;
  padding: 24px;
  font-weight: 700;
  color: var(--primary);
  background-color: rgba(255, 255, 255, 0.03);
  text-align: left;
  vertical-align: top;
}

.info-table td {
  padding: 24px;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  vertical-align: top;
}

.course-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.course-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.course-title {
  font-weight: 700;
  color: var(--secondary);
  display: block;
  margin-bottom: 4px;
}

.course-salary {
  font-weight: 700;
  color: var(--accent);
}


/* ==========================================================================
   Selection Flow Section
   ========================================================================== */

#flow {
  background-color: var(--bg);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
  position: relative;
}

.flow-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-step-num {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.flow-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.flow-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Arrow connecting steps via CSS */
.flow-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 10px;
  height: 20px;
  background-color: var(--primary);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  z-index: 10;
  opacity: 0.7;
}

.flow-note {
  text-align: center;
  margin-top: 40px;
  font-weight: 700;
  color: var(--secondary);
}


/* ==========================================================================
   FAQ Section (Accordion / Clean Interface)
   ========================================================================== */

#faq {
  background-color: var(--white);
  padding: 50px 0;
}

.faq-list {
  max-width: 800px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-q {
  padding: 24px;
  background-color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  user-select: none;
}

.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  color: var(--secondary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-q::after {
  transform: rotate(45deg);
}

.faq-item.active {
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(3, 169, 244, 0.06);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: rgba(3, 169, 244, 0.01);
}

.faq-a-inner {
  padding: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  text-align: justify;
}


/* ==========================================================================
   Application Form Section
   ========================================================================== */

#application_form {
  background-color: var(--bg);
  padding: 100px 0;
}

.form-wrapper {
  max-width: 750px;
  margin: 40px auto 0;
  background-color: var(--white);
  padding: 60px;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.form-lead {
  max-width: 750px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 1rem;
  line-height: 2;
  color: var(--text-muted);
}

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

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group label .required-tag {
  background-color: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-radio-group {
  display: flex;
  gap: 24px;
  padding: 8px 0;
}

.form-radio-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-weight: 400 !important;
}

.form-radio-label input {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

.form-checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 400 !important;
  font-size: 0.9rem;
}

.form-checkbox-label input {
  margin-right: 10px;
  margin-top: 4px;
  width: 16px;
  height: 16px;
}

.form-checkbox-label a {
  color: var(--secondary);
  text-decoration: underline;
}

.form-submit-wrapper {
  text-align: center;
  margin-top: 40px;
}

.form-submit-wrapper .btn {
  width: 100%;
  max-width: 320px;
}


/* ==========================================================================
   About Section (Company Info / Google Map)
   ========================================================================== */

#about {
  background-color: var(--white);
}

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

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

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

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

.about-table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

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

.about-table th {
  width: 30%;
  padding: 18px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.about-table td {
  padding: 18px 16px;
  font-size: 0.95rem;
  color: var(--text);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

footer {
  background-color: var(--bg-dark);
  color: var(--white);
  padding: 60px 0 40px;
}

.footer-simple {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-body {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 6px;
}

.footer-copyright {
  text-align: center;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}


/* ==========================================================================
   Subpages (Thanks & Privacy)
   ========================================================================== */

.subpage-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
}

.subpage-header {
  background-color: var(--bg-dark);
  padding: 20px 0;
  color: var(--white);
}

.subpage-content {
  flex: 1;
  padding: 80px 0;
}

.subpage-card {
  background-color: var(--white);
  padding: 60px;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 0 auto;
}

.thanks-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(3, 169, 244, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.thanks-icon::after {
  content: '✓';
  font-size: 2.5rem;
  color: var(--secondary);
  font-weight: bold;
}

.thanks-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 20px;
}

.thanks-message {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-muted);
}

.thanks-action {
  text-align: center;
}

.privacy-title {
  font-size: 2rem;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 12px;
}

.privacy-section {
  margin-bottom: 30px;
}

.privacy-section h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.privacy-section p {
  color: var(--text-muted);
  text-align: justify;
}


/* ==========================================================================
   Responsive Styles (Mobile First)
   ========================================================================== */

@media (max-width: 1023px) {
  /* Header & Navigation mobile view */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-dark);
    padding: 100px 40px 40px;
    z-index: 150;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    display: block;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
  }

  .nav-menu ul li a {
    font-size: 1.1rem;
    width: 100%;
    display: block;
    color: var(--white);
  }

  .header-cv {
    margin-left: auto;
    margin-right: 20px;
  }

  .btn-apply-header {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* Common Grid adjustments */
  .vision-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .job-item {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .job-item:nth-child(even) {
    grid-template-columns: 1fr;
  }
  
  .job-item:nth-child(even) .job-image-wrapper {
    order: 0;
  }
  
  .job-item:nth-child(even) .job-text-wrapper {
    order: 0;
  }
  
  .feature-block {
    grid-template-columns: 1fr;
  }
  
  .feature-block:nth-child(even) {
    grid-template-columns: 1fr;
  }
  
  .feature-block:nth-child(even) .feature-image-side {
    order: 0;
  }
  
  .feature-block:nth-child(even) .feature-text-side {
    order: 0;
  }
  
  .member-grid {
    grid-template-columns: 1fr;
  }
  
  .culture-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .culture-row:nth-child(even) {
    direction: ltr;
  }
  


  .support-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .flow-steps {
    grid-template-columns: 1fr;
  }
  
  .flow-card:not(:last-child)::after {
    top: auto;
    bottom: -20px;
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }
  
  .about-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-nav {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  section {
    padding: 50px 0;
  }

  #career_path {
    background-attachment: scroll;
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 24px;
  }
  
  .section-title-ja {
    font-size: 1.65rem;
    padding-bottom: 8px;
  }

  .section-title-ja::after {
    height: 3px;
    width: 40px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .feature-text-side {
    padding: 30px;
  }
  
  .form-wrapper {
    padding: 30px;
  }
  
  .subpage-card {
    padding: 30px;
  }
  
  .info-table th {
    width: 100%;
    display: block;
    padding-bottom: 8px;
    background-color: transparent;
  }
  
  .info-table td {
    width: 100%;
    display: block;
    padding-top: 8px;
  }
  
  .info-table tr {
    display: block;
    padding: 16px 0;
  }

  /* Support cards mobile optimizations */
  .support-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .support-card {
    padding: 20px 10px 16px;
  }
  
  .support-card-num {
    font-size: 2.2rem;
  }
  
  .support-card-unit {
    font-size: 0.95rem;
  }
  
  .support-card-icon {
    font-size: 2rem;
  }
  
  .support-card-rule {
    margin: 8px auto 8px;
    width: 24px;
  }
  
  .support-card-label {
    font-size: 0.8rem;
  }
  
  .support-card-note {
    font-size: 0.72rem;
    margin-top: 4px;
  }

  .support-card-text-main {
    font-size: 0.9rem;
  }

  .support-card-text-sub {
    font-size: 0.7rem;
  }

  .support-card-text-bottom {
    font-size: 0.72rem;
  }
}
