/* ============================================
   Spice for Solutions株式会社 - Renewal Design
   Main: #003366 / Sub: #748CAB
   ============================================ */
:root {
  --main: #003366;
  --main-dark: #00224d;
  --sub: #748CAB;
  --sub-light: #dfe7f0;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --text: #1e2a38;
  --text-muted: #5b6b7d;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 51, 102, 0.10);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--main); text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sub-light);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.logo-mark { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-size: 1.15rem; font-weight: 700; color: var(--main); letter-spacing: 0.02em; }
.logo-sub { font-size: 0.65rem; color: var(--sub); letter-spacing: 0.18em; text-transform: uppercase; }

.global-nav ul { display: flex; gap: 28px; align-items: center; }
.global-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--text);
  padding: 8px 0; position: relative;
}
.global-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--main); transition: width 0.25s;
}
.global-nav a:hover::after { width: 100%; }
.nav-cta {
  background: var(--main); color: var(--white) !important;
  padding: 10px 22px !important; border-radius: 999px;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--main-dark); }
.nav-cta::after { display: none; }
.nav-recruit {
  color: var(--main) !important; font-weight: 700 !important;
  border: 1.5px solid var(--main); padding: 9px 20px !important; border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.nav-recruit:hover { background: var(--main); color: var(--white) !important; }
.nav-recruit::after { display: none; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 26px; height: 2.5px; background: var(--main);
  margin: 5px 0; border-radius: 2px; transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(116, 140, 171, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(116, 140, 171, 0.25) 0%, transparent 50%),
    linear-gradient(135deg, var(--main-dark) 0%, var(--main) 55%, #1a4a7a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 60px) 0 80px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 560px; height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 50%;
  right: -160px; top: -180px; pointer-events: none;
}
.hero .hero-inner { max-width: 1160px; }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 1 1 auto; }
.hero-visual { flex: 0 0 300px; max-width: 300px; }
.hero-visual svg { width: 100%; height: auto; }

/* ---------- Hero animations ---------- */
/* データの粒が立ち上るパーティクル */
.hero-particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-particles span {
  position: absolute; bottom: -12px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: particle-rise linear infinite;
  opacity: 0;
}
.hero-particles span:nth-child(1)  { left: 6%;  width: 5px; height: 5px; animation-duration: 16s; animation-delay: -2s; }
.hero-particles span:nth-child(2)  { left: 15%; width: 3px; height: 3px; animation-duration: 20s; animation-delay: -9s; }
.hero-particles span:nth-child(3)  { left: 26%; width: 6px; height: 6px; animation-duration: 14s; animation-delay: -5s; }
.hero-particles span:nth-child(4)  { left: 37%; width: 4px; height: 4px; animation-duration: 19s; animation-delay: -13s; }
.hero-particles span:nth-child(5)  { left: 48%; width: 5px; height: 5px; animation-duration: 15s; animation-delay: -7s; }
.hero-particles span:nth-child(6)  { left: 58%; width: 3px; height: 3px; animation-duration: 21s; animation-delay: -16s; }
.hero-particles span:nth-child(7)  { left: 68%; width: 6px; height: 6px; animation-duration: 13s; animation-delay: -4s; }
.hero-particles span:nth-child(8)  { left: 78%; width: 4px; height: 4px; animation-duration: 18s; animation-delay: -11s; }
.hero-particles span:nth-child(9)  { left: 87%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: -14s; }
.hero-particles span:nth-child(10) { left: 94%; width: 3px; height: 3px; animation-duration: 22s; animation-delay: -6s; }
@keyframes particle-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 0.6; }
  85%  { opacity: 0.5; }
  100% { transform: translateY(-105vh) translateX(24px); opacity: 0; }
}

/* 接続線をデータが流れる */
.hero-visual .data-links path { animation: dash-flow 2.4s linear infinite; }
@keyframes dash-flow {
  to { stroke-dashoffset: -18; }
}

/* 中央のデータ基盤から波紋が広がる */
.hero-visual .hub-ripple {
  transform-box: fill-box; transform-origin: center;
  animation: hub-ripple 3s ease-out infinite;
}
@keyframes hub-ripple {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-particles span,
  .hero-visual .data-links path,
  .hero-visual .hub-ripple { animation: none; }
}
.hero-en {
  font-size: clamp(2rem, 6vw, 4rem); font-weight: 800; line-height: 1.15;
  letter-spacing: 0.03em;
}
.hero-en .accent { color: var(--sub); }
.hero-catch { font-size: clamp(1.05rem, 2.4vw, 1.5rem); font-weight: 700; margin-top: 28px; }
.hero-lead { margin-top: 18px; color: rgba(255,255,255,0.85); max-width: 560px; font-size: 0.98rem; }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 36px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; transition: 0.25s; text-align: center;
}
.btn-primary { background: var(--white); color: var(--main); }
.btn-primary:hover { background: var(--sub-light); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.7); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-navy { background: var(--main); color: var(--white); }
.btn-navy:hover { background: var(--main-dark); transform: translateY(-2px); }
.btn-lg { padding: 18px 56px; font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-en {
  display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.25em;
  color: var(--sub); text-transform: uppercase; margin-bottom: 8px;
}
.section-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; color: var(--main); }
.section-title::after {
  content: ""; display: block; width: 48px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--main), var(--sub));
  margin: 14px auto 0;
}
.recruit-banner .section-title::after, .page-hero .section-title::after { background: var(--sub); }
.section-lead { max-width: 720px; margin: 20px auto 0; color: var(--text-muted); }

/* ---------- Mission / Vision / Value ---------- */
.mvv-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.mvv-card {
  display: flex; align-items: flex-start; gap: 32px;
  background: var(--white); border-radius: var(--radius); padding: 40px 48px;
  box-shadow: var(--shadow); border-top: 4px solid var(--main);
}
.mvv-content { flex: 1 1 auto; }
.mvv-card h3 {
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0.1em; color: var(--main);
  text-transform: uppercase; margin-bottom: 14px;
}
.mvv-card p { font-size: 1.02rem; color: var(--text); white-space: nowrap; }

/* ---------- Service section ---------- */
/* 事業方針 */
.policy-banner {
  text-align: center; padding: 8px 32px 44px;
  max-width: 800px; margin: 0 auto;
}
.policy-main { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 800; color: var(--main); margin-bottom: 12px; }
.policy-sub { color: var(--text-muted); font-size: 0.98rem; }
.policy-sub strong { color: var(--main); font-weight: 800; }

.challenge-diagram {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 48px; max-width: 960px; margin: 0 auto;
}
.challenge-lead { text-align: center; color: var(--text); font-size: 0.98rem; margin-bottom: 36px; }
.challenge-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.challenge-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border: 1.5px solid var(--sub); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.challenge-icon svg { width: 30px; height: 30px; stroke: var(--main); }
.challenge-icon-label {
  display: block; font-size: 0.9rem; font-weight: 700; color: var(--main);
  padding-top: 12px; border-top: 2px solid var(--sub-light);
}
.challenge-icon-support { display: block; font-size: 0.76rem; color: var(--text-muted); margin-top: 6px; }

/* 業務スコープ */
.scope-diagram {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 48px; max-width: 960px; margin: 28px auto 0;
}
.scope-diagram h4 { color: var(--main); font-size: 1.05rem; margin-bottom: 10px; }
.scope-diagram-lead { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 28px; }
.pipeline { max-width: 960px; margin: 0 auto; }
.pipeline-phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 14px; }
.pipeline-phase {
  background: var(--main); color: var(--white);
  font-size: 0.85rem; font-weight: 700; text-align: center; padding: 9px 6px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}
.pipeline-phase-span3 { grid-column: span 3; }
.pipeline-boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pipeline-box {
  background: var(--white); border: 1.5px solid var(--main); border-radius: 10px;
  padding: 22px 10px; text-align: center; position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.pipeline-box svg { width: 30px; height: 30px; stroke: var(--main); display: block; margin: 0 auto 10px; }
.pipeline-box span {
  font-size: 0.8rem; font-weight: 700; color: var(--main); line-height: 1.5;
  flex: 1; display: flex; align-items: center; justify-content: center;
}
.pipeline-box:not(:last-child)::after {
  content: "▶"; position: absolute; right: -13px; top: 50%;
  transform: translateY(-50%); color: var(--main); font-size: 0.7rem; z-index: 2;
}
.pipeline-return {
  margin-top: 14px; background: var(--main); color: var(--white);
  text-align: center; font-weight: 700; font-size: 0.85rem; padding: 9px 6px;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
}
.phase-detail {
  background: var(--bg-alt); border-radius: 10px;
  padding: 28px 32px; margin-top: 32px;
}
.phase-detail h4 { color: var(--main); font-size: 1rem; margin-bottom: 22px; }
.phase-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; text-align: center; }
.phase-item h5 { font-size: 0.92rem; color: var(--text); margin-bottom: 8px; }
.phase-item p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; }
.flow-note { text-align: center; margin-top: 28px; color: var(--main); font-weight: 700; font-size: 0.95rem; }

/* ---------- Members ---------- */
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.member-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.member-head {
  background: linear-gradient(135deg, var(--main), #1a4a7a);
  color: var(--white); padding: 28px 28px 22px;
  display: flex; align-items: center; gap: 18px;
}
.member-photo {
  width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; border: 2px solid rgba(255,255,255,0.5);
}
.member-role { font-size: 0.78rem; color: var(--sub-light); letter-spacing: 0.08em; }
.member-name { font-size: 1.25rem; font-weight: 700; margin-top: 4px; }
.member-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.member-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; }
.member-msg {
  font-size: 0.9rem; font-weight: 700; color: var(--main);
  border-left: 3px solid var(--sub); padding-left: 12px;
  margin-top: auto;
}

/* ---------- Company table ---------- */
.company-table {
  width: 100%; max-width: 800px; margin: 0 auto;
  border-collapse: collapse; background: var(--white);
  box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden;
}
.company-table th, .company-table td {
  padding: 18px 24px; text-align: left; font-size: 0.94rem;
  border-bottom: 1px solid var(--sub-light); vertical-align: top;
}
.company-table th {
  width: 30%; background: var(--bg-alt); color: var(--main);
  font-weight: 700; white-space: nowrap;
}
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }

/* ---------- News ---------- */
.news-list {
  max-width: 800px; margin: 0 auto; background: var(--white);
  box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden;
}
.news-item {
  display: flex; align-items: baseline; gap: 24px;
  padding: 20px 28px; border-bottom: 1px solid var(--sub-light);
}
.news-item:last-child { border-bottom: none; }
.news-date { flex-shrink: 0; width: 110px; font-size: 0.88rem; color: var(--sub); font-weight: 700; letter-spacing: 0.03em; }
.news-title { font-size: 0.95rem; color: var(--text); }
.news-item-link {
  border: none; background: none; font: inherit; color: inherit;
  text-align: left; width: 100%; margin: 0; cursor: pointer;
  transition: background 0.2s;
}
.news-item-link:hover, .news-item-link:focus-visible { background: var(--bg-alt); }
.news-item-link .news-title { text-decoration: underline; text-decoration-color: var(--sub-light); text-underline-offset: 3px; }

/* ---------- Recruit banner ---------- */
.recruit-banner {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(116, 140, 171, 0.4) 0%, transparent 55%),
    linear-gradient(120deg, var(--main-dark), var(--main));
  color: var(--white); text-align: center; padding: 56px 24px;
}
.recruit-banner .section-en { color: var(--sub); }
.recruit-banner h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 700; margin-bottom: 40px; }
.recruit-banner p { max-width: 640px; margin: 0 auto 36px; color: rgba(255,255,255,0.85); }

/* ---------- Contact ---------- */
#contact { padding: 60px 0; }
#contact .section-head { margin-bottom: 32px; }
.contact-box { text-align: center; }
.contact-box p { color: var(--text-muted); margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--main-dark); color: rgba(255,255,255,0.8); padding: 24px 0 16px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: center;
}
.footer-mark { width: 150px; height: auto; }
.copyright {
  text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.5);
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.12);
}

/* ============================================
   Recruit page
   ============================================ */
.page-hero {
  background:
    radial-gradient(ellipse at 80% 15%, rgba(116, 140, 171, 0.4) 0%, transparent 55%),
    linear-gradient(135deg, var(--main-dark), var(--main));
  color: var(--white);
  padding: calc(var(--header-h) + 80px) 0 80px;
  text-align: center;
}
.page-hero .section-en { color: var(--sub); }
.page-hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); font-weight: 800; }
.page-hero p { margin-top: 16px; color: rgba(255,255,255,0.85); }
.hero-back {
  display: inline-block; margin-top: 18px;
  color: rgba(255,255,255,0.85); font-size: 0.85rem; text-decoration: underline;
}
.hero-back:hover { color: var(--white); }

/* 募集職種一覧 */
.position-list { max-width: 800px; margin: 0 auto; display: grid; gap: 20px; }
.position-card {
  display: block; position: relative;
  background: var(--white); border: 1px solid var(--sub-light);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 72px 28px 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.position-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 51, 102, 0.18); }
.position-title { font-size: 1.1rem; color: var(--text); margin-bottom: 14px; }
.position-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.p-tag {
  font-size: 0.78rem; padding: 4px 12px; border-radius: 6px;
  background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--sub-light);
}
.p-tag-area { background: var(--sub-light); color: var(--main); font-weight: 700; }
.position-arrow {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  color: var(--main); font-size: 1.4rem; font-weight: 700;
}

.recruit-section { padding: 80px 0; }
.recruit-section:nth-of-type(even) { background: var(--bg-alt); }

.message-card {
  max-width: 800px; margin: 0 auto; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 48px;
}
.message-card + .message-card { margin-top: 32px; }
.message-card h3 {
  color: var(--main); font-size: 1.15rem; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--sub-light);
}
.message-card p { color: var(--text); font-size: 0.95rem; margin-bottom: 1em; }
.message-card p:last-child { margin-bottom: 0; }

.job-detail { max-width: 800px; margin: 0 auto; }
.job-detail h3 {
  color: var(--main); font-size: 1.1rem; margin: 36px 0 16px;
  padding-left: 14px; border-left: 4px solid var(--main);
}
.job-detail h3:first-child { margin-top: 0; }
.job-detail p { font-size: 0.95rem; margin-bottom: 1em; }
.check-list li, .dot-list li {
  position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 0.95rem;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--main); font-weight: 700;
}
.dot-list li::before {
  content: ""; position: absolute; left: 8px; top: 0.7em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--sub);
}
.note { font-size: 0.85rem; color: var(--text-muted); }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.feature-item {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 28px; display: flex; gap: 16px; align-items: flex-start;
}
.feature-item .f-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--main), var(--sub));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.2rem;
}
.feature-item .f-icon svg { width: 22px; height: 22px; stroke: var(--white); }
.feature-item h4 { color: var(--main); font-size: 0.98rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.85rem; color: var(--text-muted); }

/* selection flow */
.select-flow { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; max-width: 800px; margin: 0 auto; }
.select-step {
  flex: 1; min-width: 180px; text-align: center;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 20px; position: relative;
}
.select-step:not(:last-child)::after {
  content: "▶"; position: absolute; right: -15px; top: 50%;
  transform: translateY(-50%); color: var(--sub); font-size: 0.75rem; z-index: 2;
}
.select-step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--main); color: var(--white); font-weight: 700; margin-bottom: 14px;
}
.select-step h4 { color: var(--main); font-size: 1rem; }
.select-step p { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

/* ---------- Contact form ---------- */
.entry-redirect {
  max-width: 680px; margin: 0 auto 48px;
  background: linear-gradient(120deg, var(--main-dark), var(--main));
  color: var(--white); border-radius: var(--radius);
  padding: 32px 36px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.entry-redirect h3 { font-size: 1.05rem; margin-bottom: 6px; }
.entry-redirect p { font-size: 0.85rem; color: rgba(255,255,255,0.85); margin: 0; }
.entry-redirect .btn { flex-shrink: 0; }

.contact-form {
  max-width: 680px; margin: 0 auto; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px 48px; text-align: left;
}
.form-field { margin-bottom: 24px; }
.form-field label {
  display: block; font-weight: 700; font-size: 0.9rem;
  color: var(--main); margin-bottom: 8px;
}
.required-badge {
  display: inline-block; background: #c94f4f; color: var(--white);
  font-size: 0.68rem; font-weight: 700; border-radius: 4px;
  padding: 1px 8px; margin-left: 8px; vertical-align: middle;
}
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--sub-light); border-radius: 8px;
  font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--bg-alt);
  transition: border-color 0.2s, background 0.2s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--main); background: var(--white);
}
.form-field textarea { min-height: 180px; resize: vertical; }
.form-submit { text-align: center; margin-top: 8px; }
.form-submit .btn { border: none; cursor: pointer; font-family: inherit; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 18px; text-align: center; }

/* ---------- お知らせ写真ライトボックス ---------- */
.photo-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.photo-modal[hidden] { display: none; }
.photo-overlay { position: absolute; inset: 0; background: rgba(0, 24, 51, 0.75); cursor: pointer; }
.photo-dialog {
  position: relative; z-index: 1;
  max-width: 560px; width: 100%; max-height: 80vh;
  display: flex; align-items: center; justify-content: center;
}
.photo-figure { margin: 0; width: 100%; }
.photo-figure img {
  width: 100%; max-height: 62vh; object-fit: contain; display: block;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 20px 60px rgba(0, 24, 51, 0.5);
}
.photo-caption {
  background: var(--main-dark); color: var(--white);
  font-size: 0.92rem; text-align: center;
  padding: 14px 20px; margin: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 20px 60px rgba(0, 24, 51, 0.5);
}
.photo-caption[hidden] { display: none; }
.photo-close {
  position: fixed; top: 24px; right: 24px; z-index: 210;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15); border: none; cursor: pointer;
  color: var(--white); font-size: 1.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.photo-close:hover { background: rgba(255, 255, 255, 0.3); }

/* ---------- 実績紹介モーダル ---------- */
.works-cta { text-align: center; margin-top: 40px; }
.works-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.works-modal[hidden] { display: none; }
.works-overlay { position: absolute; inset: 0; background: rgba(0, 24, 51, 0.65); cursor: pointer; }
.works-dialog {
  position: relative; background: var(--white); border-radius: var(--radius);
  max-width: 1000px; width: 100%; max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 24, 51, 0.35);
}
.works-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px; border-bottom: 1px solid var(--sub-light); flex-shrink: 0;
}
.works-heading { color: var(--main); font-size: 1.2rem; }
.works-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.8rem; line-height: 1; color: var(--text-muted);
  padding: 4px 10px; border-radius: 8px;
}
.works-close:hover { color: var(--main); background: var(--sub-light); }
.works-body { overflow-y: auto; padding: 32px 40px 40px; }
.works-case + .works-case { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--sub-light); }
.works-case h3 {
  color: var(--main); font-size: 1.1rem;
  border-left: 4px solid var(--main); padding-left: 14px; margin-bottom: 20px;
}
.works-row {
  display: grid; grid-template-columns: 130px 1fr;
  border: 1px solid var(--sub-light); border-radius: 8px; overflow: hidden;
  margin-bottom: 14px;
}
.works-label {
  background: var(--main); color: var(--white);
  font-weight: 700; font-size: 0.88rem;
  display: flex; align-items: center; justify-content: center; padding: 14px 10px;
}
.works-text { padding: 14px 20px; font-size: 0.9rem; }
.works-text p { margin-bottom: 0.6em; }
.works-text p:last-child { margin-bottom: 0; }
.works-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.works-tools li { position: relative; padding-left: 16px; font-size: 0.9rem; }
.works-tools li::before {
  content: ""; position: absolute; left: 2px; top: 0.65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--sub);
}
/* 実績紹介：アーキテクチャ図 */
.works-diagram {
  display: flex; align-items: center; gap: 10px;
  margin-top: 28px; padding: 18px 4px 10px; overflow-x: auto; overflow-y: visible;
}
.wd-arrow { flex-shrink: 0; color: var(--main); font-size: 0.85rem; }
.wd-arrow-sm { font-size: 0.7rem; }
.wd-group {
  flex-shrink: 0; position: relative;
  border: 1.5px dashed var(--sub); border-radius: 12px;
  padding: 18px 16px 14px; background: var(--white);
}
.wd-label {
  position: absolute; top: -11px; left: 14px;
  background: var(--white); padding: 0 8px;
  font-size: 0.74rem; font-weight: 700; color: var(--main); white-space: nowrap;
}
.wd-group-inner { display: flex; align-items: stretch; gap: 10px; }
.wd-group-inner-col { flex-direction: column; align-items: stretch; gap: 14px; }
.wd-group-nested { margin: 0; background: var(--bg-alt); }
.wd-source-stack { display: flex; flex-direction: column; gap: 8px; }
.wd-box {
  flex-shrink: 0; background: var(--bg-alt); border: 1.5px solid var(--main);
  border-radius: 8px; padding: 10px 14px; text-align: center;
  display: flex; flex-direction: column; justify-content: center; min-width: 118px;
}
.wd-box-sm { min-width: 0; padding: 8px 12px; font-size: 0.78rem; font-weight: 700; color: var(--main); }
.wd-box-single { min-width: 150px; font-size: 0.85rem; font-weight: 700; color: var(--main); }
.wd-box-title { font-weight: 700; color: var(--main); font-size: 0.82rem; }
.wd-box-desc { font-size: 0.7rem; color: var(--text-muted); margin-top: 6px; line-height: 1.6; }
.wd-note { display: block; font-weight: 400; font-size: 0.68rem; color: var(--text-muted); margin-top: 4px; }
.wd-stage-group { flex-shrink: 0; }
.wd-stage-row { display: flex; align-items: stretch; gap: 8px; }
.wd-stage {
  min-width: 108px; background: var(--bg-alt); border: 1.5px solid var(--main);
  border-radius: 8px; padding: 10px 10px; text-align: center;
}
.wd-stage h5 { font-size: 0.78rem; color: var(--main); margin-bottom: 6px; }
.wd-stage p { font-size: 0.68rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.wd-loop {
  margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--sub);
  text-align: center; font-size: 0.68rem; color: var(--text-muted);
}
.wd-rls {
  border: 1.5px dashed var(--main); border-radius: 8px;
  padding: 10px 14px; text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--main);
}
.wd-clients { display: flex; flex-direction: column; gap: 8px; }
.wd-client {
  background: var(--main); color: var(--white); border-radius: 6px;
  padding: 8px 12px; font-size: 0.74rem; font-weight: 700; text-align: center;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .member-grid { grid-template-columns: 1fr; }
  .mvv-card { flex-direction: column; gap: 16px; padding: 32px 28px; }
  .mvv-content { padding-top: 0; }
  .mvv-card p { white-space: normal; }
  .feature-grid { grid-template-columns: 1fr; }
  .challenge-diagram { padding: 32px 24px; }
  .challenge-icons { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .pipeline-phases { display: none; }
  .pipeline-boxes { grid-template-columns: 1fr; gap: 12px; }
  .pipeline-box:not(:last-child)::after {
    content: "▼"; right: auto; left: 50%; top: auto; bottom: -14px;
    transform: translateX(-50%);
  }
  .pipeline-return { clip-path: none; border-radius: 8px; }
  .scope-diagram { padding: 28px 22px; }
  .phase-detail { padding: 28px 22px; }
  .works-modal { padding: 12px; }
  .works-body { padding: 24px 20px 28px; }
  .works-row { grid-template-columns: 1fr; }
  .works-label { padding: 10px; }
  .works-tools { grid-template-columns: 1fr; }
  .wd-group { padding: 16px 12px 12px; }
  .wd-box, .wd-stage { min-width: 96px; }
  .phase-grid { grid-template-columns: 1fr; gap: 20px; }
  .select-step:not(:last-child)::after { display: none; }
  .hero-visual { display: none; }
  .contact-form { padding: 32px 24px; }
  .entry-redirect { padding: 28px 24px; }

  .nav-toggle { display: block; }
  .global-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--sub-light);
    transform: translateY(-130%); transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }
  .global-nav.open { transform: none; }
  .global-nav ul { flex-direction: column; gap: 0; padding: 16px 24px 24px; align-items: stretch; }
  .global-nav li { border-bottom: 1px solid var(--sub-light); }
  .global-nav li:last-child { border-bottom: none; padding-top: 16px; }
  .global-nav a { display: block; padding: 14px 4px; }
  .nav-recruit, .nav-cta { text-align: center; }

  .company-table th { width: 34%; }
  .news-item { flex-direction: column; gap: 6px; padding: 16px 20px; }
  .news-date { width: auto; }
  .message-card { padding: 32px 24px; }
  .position-card { padding: 24px 56px 24px 22px; }
}
