:root {
  --brand: #58da98;
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #0f3460;
  --highlight: #e94560;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f1f3;
  --gray-200: #e0e2e6;
  --gray-300: #c4c8cf;
  --gray-400: #8b919a;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-en: 'Inter', sans-serif;
  --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  /* 固定ヘッダーの下にアンカー先が潜り込まないようにする */
  scroll-padding-top: 100px;
  /* 縦スクロールバーの幅を常に確保する。確保しないと、バーが出入りする
     たびに表示幅が変わり、右揃えのナビが横に動いて見える
     （ページ遷移の直後や、短いページとの行き来で起きる） */
  scrollbar-gutter: stable;
  font-size: 16px;
}

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s var(--transition), box-shadow 0.4s var(--transition);
}

/* スクロールしても高さを変えない。高さが変わると、スムーズスクロール中に
   ページとヘッダーが同時に動いて揺れて見え、ページ遷移でも位置が飛ぶ */
.header.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--highlight);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
}

.logo-text {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
}

.logo-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0.7;
  display: block;
}

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

.nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--highlight);
  transition: width 0.3s var(--transition);
}

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

.nav-contact {
  background: var(--highlight) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
}

.nav-contact::after {
  display: none !important;
}

.nav-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--transition);
  display: block;
}

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

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

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

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  /* 写真が読めない環境でも配色が崩れないよう、下地に元のグラデーションを残す */
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 背景写真。テキストが全面に乗るため、濃紺を重ねてコントラストを確保する */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /* 濃度は実測で決めた。写真を最大限見せつつ、白文字のコントラスト比は
     9.2 を確保している（WCAG AAA の 7:1 を上回る） */
  background: linear-gradient(135deg,
    rgba(26, 26, 46, 0.38) 0%,
    rgba(22, 33, 62, 0.32) 50%,
    rgba(15, 52, 96, 0.32) 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(233, 69, 96, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(15, 52, 96, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(233, 69, 96, 0.05) 0%, transparent 40%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
}

.hero-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-label::before {
  content: '';
  width: 40px;
  height: 1.5px;
  background: var(--highlight);
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 16px;
}

.hero-title-en {
  font-family: var(--font-en);
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 400;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 32px;
  display: block;
}

.hero-desc {
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--highlight);
  color: var(--white);
  padding: 16px 36px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s var(--transition);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--transition);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

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

/* ===== SECTION COMMON ===== */
.section {
  padding: 120px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1.5px;
  background: var(--highlight);
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 2;
  max-width: 640px;
}

/* ===== VISION ===== */
.vision {
  background: var(--gray-50);
}

.vision-grid {
  display: grid;
  /* 企業理念の各項目（最長32文字）が1行に収まる幅を右列に確保する */
  grid-template-columns: 1fr 1.14fr;
  gap: 56px;
  align-items: center;
  margin-top: 60px;
}

.vision-text h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.6;
}

.vision-text p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 2.2;
}

.vision-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vision-value {
  background: var(--white);
  padding: 26px 28px;
  border-radius: 4px;
  border-left: 4px solid var(--highlight);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
}

.vision-value:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.vision-value-num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--highlight);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.vision-value p {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.8;
}

/* ===== SERVICE ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.service-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all 0.4s var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.service-card-visual {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-card-icon {
  width: 64px;
  height: 64px;
  position: relative;
  z-index: 1;
}

.service-card-icon svg {
  width: 100%;
  height: 100%;
  color: var(--white);
}

.service-card-body {
  padding: 32px;
}

.service-card-num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--highlight);
  letter-spacing: 2px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card-en {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: block;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.9;
}

.service-card p + p {
  margin-top: 14px;
}

/* 読み手の状況を示す導入の一文。ここで自分ごとかどうかを判断してもらう */
.service-card-lead {
  font-size: 15px !important;
  font-weight: 700;
  color: var(--gray-800) !important;
  line-height: 1.8 !important;
  margin-bottom: 14px;
}

/* 「売るものと同じものを使う」という方針。ブランドカラーで示す
   （赤はCTA専用のため、ここでは使わない） */
.service-card-policy {
  margin-top: 18px !important;
  padding-left: 16px;
  border-left: 3px solid var(--brand, #58da98);
  color: var(--gray-700) !important;
}

.service-card.featured .service-card-lead {
  font-size: 18px !important;
}

/* Kanring featured card */
.service-card.featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--highlight);
}

.service-card.featured .service-card-visual {
  height: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, #0a0a1a 0%, var(--primary) 50%, var(--accent) 100%);
}

.service-card.featured .service-card-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card.featured h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.service-card.featured p {
  font-size: 15px;
  line-height: 2;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--highlight);
  text-decoration: none;
  transition: gap 0.3s var(--transition);
}

.service-link:hover {
  gap: 14px;
}

.service-link svg {
  width: 16px;
  height: 16px;
}

/* ===== PRODUCTS ===== */
.products {
  background: var(--primary);
  color: var(--white);
}

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

.products .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.product-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s var(--transition);
  text-decoration: none;
  color: var(--white);
  display: block;
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(233, 69, 96, 0.3);
  transform: translateY(-4px);
}

.product-card-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card-tag {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--highlight);
  margin-bottom: 16px;
  display: block;
}

.product-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

/* ===== COMPANY ===== */
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}

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

.company-table tr {
  border-bottom: 1px solid var(--gray-100);
}

.company-table th {
  text-align: left;
  padding: 18px 20px 18px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  width: 120px;
  vertical-align: top;
}

.company-table td {
  padding: 18px 0;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--highlight), var(--gray-200));
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--highlight);
}

.timeline-year {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--highlight);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  color: var(--white);
  text-align: center;
}

.contact .section-label {
  justify-content: center;
}

.contact .section-label::before {
  display: none;
}

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

.contact .section-desc {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto 48px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.contact-info-item {
  text-align: center;
}

.contact-info-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 8px;
}

.contact-info-value {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--highlight);
  color: var(--white);
  padding: 18px 48px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s var(--transition);
  border: none;
  cursor: pointer;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.8;
}

.footer-nav h4 {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--gray-300);
}

.footer-nav a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 0;
  transition: color 0.3s var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 12px;
  color: var(--gray-500);
  font-family: var(--font-en);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ===== RESPONSIVE ===== */
/* 項目が6つあるため、ヘッダーのナビは 900px を下回ると横に収まらない。
   900〜1100px では詰めて表示し、900px 以下はハンバーガーに切り替える。
   （画面外にリンクが出ると、クリック時にブラウザが横スクロールして揺れる） */
@media (max-width: 1100px) {
  .nav {
    gap: 20px;
  }

  .nav a {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .nav-contact {
    padding: 8px 16px !important;
  }

  .logo img {
    height: 34px !important;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    font-size: 18px;
    letter-spacing: 3px;
  }

  .nav-contact {
    padding: 12px 32px !important;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card.featured {
    grid-column: span 2;
  }

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

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 16px 24px;
  }

  .hero-content {
    padding: 0 24px;
  }

  .section {
    padding: 80px 0;
  }

  .container {
    padding: 0 24px;
  }

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

  .service-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .service-card.featured .service-card-visual {
    min-height: 200px;
  }

  .service-card.featured .service-card-body {
    padding: 32px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .contact-info {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.vision-sub {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--highlight);
  margin-bottom: 14px;
}

.vision-text p + p {
  margin-top: 18px;
}

.table-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray-500);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin-top: 40px;
}

.contact-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.3s var(--transition), border-color 0.3s var(--transition);
}

.contact-links a:hover {
  color: var(--white);
  border-bottom-color: var(--highlight);
}

/* 会社概要の施設写真。原本が 350x233 しかないため、拡大せずその幅で並べる */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 350px));
  gap: 32px;
  margin-top: 72px;
  justify-content: center;
}

.facility img {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 4px;
}

.facility figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.facility figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-500);
}

.product-card-visual {
  /* 高さを固定すると、列数によって枠の比率が 1.56〜3.4 まで変動し、
     製品の上下が切れる。比率を固定して切れ方を一定にする
     （製品写真はいずれも 3:2 前後で用意している） */
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--primary-light);
}

.product-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--transition);
}

.product-card:hover .product-card-visual img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 28px 32px 32px;
}

.products-note {
  margin-top: 40px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.products-note a {
  color: var(--white);
  text-decoration: none;
  margin-left: 4px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.3s var(--transition);
}

.products-note a:hover {
  border-bottom-color: var(--highlight);
}

.table-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--highlight);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--transition);
}

.table-link:hover {
  border-bottom-color: var(--highlight);
}

/* 企業理念：日本語は単語の区切りがないため、放っておくと文節の途中で
   折り返される（「便/利」「貢献しま/す」など）。文節ごとに span で包み、
   区切り位置をそこだけに限定する。auto-phrase は対応ブラウザでの上乗せ。 */
.vision-value p {
  word-break: auto-phrase;
}

.vision-value p span {
  display: inline-block;
}

/* ===== SUB PAGES ===== */
/* 下層ページはヒーローが無いため、ヘッダーを常時不透明にする */
.header.solid {
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.page-head {
  padding: 160px 0 64px;
  background: var(--primary);
  color: var(--white);
}

.page-head .section-label {
  color: var(--highlight);
}

.page-head h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.page-head p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 760px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  padding: 20px 0 0;
}

.breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--highlight);
}

.prose {
  max-width: 820px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.prose p {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.prose ul, .prose ol {
  margin: 0 0 20px 22px;
}

.prose li {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.prose strong {
  color: var(--gray-800);
  font-weight: 700;
}

/* 注意書き・補足 */
.note {
  background: var(--gray-50);
  border-left: 3px solid var(--gray-300);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--gray-600);
}

.note.warn {
  background: rgba(233, 69, 96, 0.04);
  border-left-color: var(--highlight);
}

/* データ表 */
.data-table {
  width: 100%;
  /* colgroup の指定どおりに列幅を固定し、表どうしで列を揃える */
  table-layout: fixed;
  min-width: 560px;
  border-collapse: collapse;
  margin: 20px 0 32px;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
  font-weight: 600;
  color: var(--gray-700);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
  vertical-align: top;
  /* 日本語を文節単位で折り返す。列幅が足りず2行になる行で、
     「172万」と「円）」のように語の途中で切れるのを防ぐ。
     未対応のブラウザでは従来の折り返しに戻るだけ。 */
  word-break: auto-phrase;
}

/* 折り返させたくない語のまとまり（金額・括弧書きなど） */
.nowrap {
  white-space: nowrap;
}

.data-table tr:hover td {
  background: var(--gray-50);
}

.data-table .num {
  white-space: nowrap;
  font-family: var(--font-en);
  color: var(--gray-500);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tag-pending {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(233, 69, 96, 0.1);
  color: var(--highlight);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .page-head {
    padding: 120px 0 48px;
  }

  .prose h2 {
    font-size: 19px;
    margin: 40px 0 16px;
  }

  .data-table {
    font-size: 13px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }
}

/* ===== FORM ===== */
.wform h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--highlight);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.req {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--highlight);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  vertical-align: 1px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--highlight);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--highlight);
  background: rgba(233, 69, 96, 0.03);
}

.field textarea {
  resize: vertical;
}

.field-hint {
  font-size: 12px;
  color: var(--gray-500);
  margin: 6px 0 0;
}

/* ハニーポット：利用者には見せず、読み上げ・タブ移動からも外す */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
}

.check input {
  margin-top: 4px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--highlight);
}

.form-foot {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-100);
}

.form-note {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.wform .contact-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.form-msg {
  margin-top: 20px;
  font-size: 14px;
}

.form-msg.error {
  color: var(--highlight);
  font-weight: 600;
}

.form-msg.ok {
  color: #15803d;
  font-weight: 600;
}

@media (max-width: 768px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== RECRUIT ===== */
.recruit-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.recruit-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 36px 34px 34px;
  /* 横に並ぶカードで「応募する」の高さを揃えるため、
     箇条書きを伸縮させてボタンを下端に寄せる */
  display: flex;
  flex-direction: column;
}

/* 箇条書きを伸縮させ、横に並ぶカードで「応募する」の高さを揃える。
   既存の .recruit-card ul より後方かつ高い優先度で指定する必要がある */
.recruit-cards .recruit-card ul {
  margin-bottom: auto;
}

.recruit-cards .recruit-card ul + p {
  margin-top: 16px;
}

/* 募集状態の切り替え。カードの div に class を足し引きするだけで変わる。
   is-closed … 「募集しておりません」を表示し、応募ボタンを隠す
   is-hidden … カードごと非表示にする */
.recruit-card .recruit-closed {
  display: none;
}

.recruit-card.is-closed .recruit-closed {
  display: block;
}

.recruit-card.is-closed .recruit-apply {
  display: none;
}

.recruit-card.is-hidden {
  display: none;
}

.recruit-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 16px;
}

.recruit-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}

.recruit-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.recruit-card ul li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.9;
}

.recruit-card ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.95em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.recruit-closed {
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.recruit-card .btn-accent {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  padding: 12px 32px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s var(--transition);
}

.recruit-card .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 218, 152, 0.45);
}

.recruit-card .btn-primary {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  padding: 12px 32px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s var(--transition);
}

.recruit-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 218, 152, 0.4);
}

.prose .btn-primary {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  padding: 14px 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  transition: all 0.3s var(--transition);
}

.prose .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 218, 152, 0.4);
}

.prose .btn-accent {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  padding: 14px 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  transition: all 0.3s var(--transition);
}

.prose .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
}

.recruit-stopped {
  background: rgba(233, 69, 96, 0.06);
  border: 1px solid rgba(233, 69, 96, 0.2);
  padding: 20px 28px;
  border-radius: 4px;
  text-align: center;
  color: var(--highlight);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 32px;
}

.portal-section {
  margin-bottom: 32px;
}

.portal-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--gray-50);
  border-left: 3px solid var(--brand);
}

.portal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-left: 12px;
}

.portal-links a {
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--transition), border-color 0.3s var(--transition);
}

.portal-links a:hover {
  color: var(--highlight);
  border-bottom-color: var(--highlight);
}

@media (max-width: 768px) {
  .recruit-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== Q&A ===== */
.qa-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
}

.qa-item:first-child {
  border-top: 1px solid var(--gray-200);
}

.qa-q {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 12px;
}

.qa-a {
  padding-left: 1.5em;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ===== RECRUIT（やわらかい見た目） =====
   応募者は女性が多く、企業向けページと同じ濃紺・赤では威圧的になるため、
   求人ページだけ配色とフォントをやわらげる。角丸は 4px のまま（全体の規約どおり）。 */

/* 丸ゴシック。見出しだけでなく本文にも適用して印象を揃える */
body.recruit,
body.recruit .page-head h1,
body.recruit .prose h2,
body.recruit .prose h3,
body.recruit .recruit-card h3,
body.recruit .qa-q,
body.recruit .btn,
body.recruit label,
body.recruit input,
body.recruit select,
body.recruit textarea {
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Noto Sans JP', sans-serif;
}

/* ページ見出し帯：濃紺をやめ、淡い緑の面にする */
.page-head.soft {
  background: linear-gradient(135deg, #f3fbf7 0%, #e9f6ef 100%);
  border-bottom: 1px solid #dceee5;
}

.page-head.soft .section-label {
  color: #1f8a5b;
}

.page-head.soft h1 {
  color: var(--gray-800);
}

.page-head.soft p {
  color: var(--gray-600);
}

/* 本文の行間を広げ、詰まった印象をなくす */
body.recruit .prose p,
body.recruit .prose li {
  line-height: 2.05;
}

body.recruit .prose h2 {
  border-bottom-color: #dceee5;
}

/* 見出しの下線も緑寄りに */
body.recruit .qa-item {
  border-bottom-color: #e8f4ee;
}

@media (max-width: 768px) {
  .recruit-card {
    padding: 28px 24px;
  }
}

/* 緑のボタンは白文字だとコントラスト比 1.77 で読みにくい。
   明るい緑のまま文字を濃紺にすると 9.66 になるため、そちらを採る。
   （求人ページのみ。企業向けの赤いCTAは白文字のまま） */
body.recruit .btn-primary,
body.recruit .btn-accent {
  color: var(--primary);
}

/* 見出し帯の小さなラベルは 13px のため 4.5 以上が必要。
   線も赤のままだったので緑に揃える */
.page-head.soft .section-label {
  color: #146e47;
}

.page-head.soft .section-label::before {
  background: #1f8a5b;
}

/* ページ内の節リンク（製品保証など、1ページに独立した章がある場合） */
.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.page-toc a {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  background: var(--white);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--transition);
}

.page-toc a:hover {
  border-color: var(--brand);
  background: var(--gray-50);
}

@media (max-width: 600px) {
  .page-toc a {
    width: 100%;
    text-align: center;
  }
}

/* メディア掲載の帯（媒体名のみをテキストで並べる） */
.media-strip {
  padding: 48px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.media-strip-head {
  display: block;
  margin-bottom: 20px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.media-strip-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 28px;
  margin: 0 0 24px;
}

.media-strip-names li {
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  list-style: none;
}

.media-strip-more {
  text-align: center;
}

.media-strip-more a {
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 2px;
  transition: all 0.3s var(--transition);
}

.media-strip-more a:hover {
  color: var(--primary);
  border-bottom-color: var(--brand);
}

/* 沿革の下に置く続きへのリンク */
.timeline-more {
  margin-top: 28px;
  text-align: right;
}

.timeline-more a {
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s var(--transition);
}

.timeline-more a:hover {
  color: var(--primary);
}

@media (max-width: 600px) {
  .media-strip-names {
    gap: 8px 18px;
  }
  .media-strip-names li {
    font-size: 13px;
  }
  .timeline-more {
    text-align: left;
  }
}
