/* 2026-04-22 00:00:00  pages.css — 各ページ固有スタイル統合
   元々は各HTML/PHPのインライン<style>に記述されていたものを集約。
   セレクタは全てページ固有（重複なし）なので、全ページ共通で読み込んでも副作用なし。
*/

/* ============================================================
   Page: top  (index.html)
   ============================================================ */
/* TOP page – Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
  overflow: hidden;
  background:
    linear-gradient(170deg, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.88)),
    url("/assets/images/bg/abstract-tech.jpg") center/cover no-repeat;
  background-color: var(--black);
}

#networkCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sphere-container {
  position: absolute;
  width: 500px;
  height: 500px;
  perspective: 1200px;
  opacity: 0.12;
  z-index: 0;
}

.wireframe-sphere {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: sphereRotate 25s linear infinite;
}

.sphere-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--blue);
  border-radius: 50%;
}

.sphere-ring:nth-child(1) {
  transform: rotateY(0deg);
}

.sphere-ring:nth-child(2) {
  transform: rotateY(30deg);
}

.sphere-ring:nth-child(3) {
  transform: rotateY(60deg);
}

.sphere-ring:nth-child(4) {
  transform: rotateY(90deg);
}

.sphere-ring:nth-child(5) {
  transform: rotateY(120deg);
}

.sphere-ring:nth-child(6) {
  transform: rotateY(150deg);
}

.sphere-ring:nth-child(7) {
  transform: rotateX(90deg);
}

.sphere-ring:nth-child(8) {
  transform: rotateX(90deg) rotateY(45deg);
}

.sphere-ring:nth-child(9) {
  transform: rotateX(90deg) rotateY(90deg);
}

@keyframes sphereRotate {
  from {
    transform: rotateX(15deg) rotateY(0deg);
  }
  to {
    transform: rotateX(15deg) rotateY(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  padding: 6px 16px;
  border: 1px solid rgba(0, 168, 255, 0.25);
  border-radius: 2px;
  opacity: 1;
}

.hero-tag::before {
  content: ">";
  font-weight: 700;
}

#hero-typewriter {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  min-height: 2.5em;
}

.neon-glow {
  font-style: normal;
  display: inline-block;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 168, 255, 0.4));
}

.hero-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--blue);
  margin-left: 3px;
  animation: cursorBlink 0.7s step-end infinite;
  vertical-align: text-bottom;
  box-shadow: 0 0 8px var(--blue-glow);
}

.hero-sub {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: rgba(224, 224, 224, 0.7);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0;
  transform: translateY(16px);
}

.hero-sub.visible {
  animation: fadeUp 0.7s 0.3s forwards var(--ease-out);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 36px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s var(--ease-out);
  letter-spacing: 0.02em;
  background: var(--blue);
  color: var(--black);
  opacity: 0;
  transform: translateY(20px);
}

.hero-cta.visible {
  animation: fadeUp 0.8s 0.5s forwards var(--ease-out);
}

.hero-cta:hover {
  background: #fff;
  box-shadow: 0 0 30px var(--blue-glow);
  transform: translateY(-3px);
}

.hero-cta:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollPulse 2s ease-in-out infinite;
  z-index: 2;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  color: rgba(224, 224, 224, 0.35);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 1.5px solid rgba(224, 224, 224, 0.35);
  border-bottom: 1.5px solid rgba(224, 224, 224, 0.35);
  transform: rotate(45deg);
}

/* ============================================================
   Page: business  (business/index.html)
   ============================================================ */
/* Honeycomb SVG hero bg */
.hero-honeycomb {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-honeycomb svg {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: min(55vw, 560px);
  height: auto;
  opacity: 0.05;
}

.service-detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.service-detail-block.reverse {
  direction: rtl;
}

.service-detail-block.reverse > * {
  direction: ltr;
}

.service-detail-visual {
  position: relative;
}

.service-detail-visual-inner {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(0, 168, 255, 0.12);
  padding: 48px;
  text-align: center;
}

.service-detail-visual-inner svg {
  width: clamp(120px, 20vw, 180px);
  height: auto;
  color: var(--blue);
  filter: drop-shadow(0 0 20px var(--blue-glow));
}
@media (max-width: 900px) {
  .service-detail-block,
  .service-detail-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }
}

/* FAQ セクション */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 168, 255, 0.04);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: rgba(0, 168, 255, 0.5);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.5;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ============================================================
   Page: company  (company/index.html)
   ============================================================ */
/* Fractal tree SVG hero background */
.page-hero-fractal {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-hero-fractal svg {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(50vw, 480px);
  height: auto;
  opacity: 0.06;
}

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

.philosophy-card {
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid rgba(0, 168, 255, 0.08);
  border-top: 3px solid transparent;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

.philosophy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.philosophy-card-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 12px;
}

.philosophy-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.philosophy-card p {
  font-size: 0.8125rem;
  color: rgba(224, 224, 224, 0.6);
  line-height: 1.85;
}

.map-wrap {
  margin-top: 48px;
  position: relative;
  padding-bottom: 42%;
  height: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 168, 255, 0.1);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(80%) invert(90%) hue-rotate(180deg);
}
@media (max-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Page: privacy  (privacy/index.html)
   ============================================================ */
.privacy-content {
  max-width: 860px;
  margin: 0 auto;
}

.privacy-intro {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: rgba(224, 224, 224, 0.82);
  margin-bottom: 48px;
  padding: 24px 28px;
  background: rgba(0, 168, 255, 0.04);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
}

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

.privacy-section h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 168, 255, 0.18);
  letter-spacing: 0.02em;
}

.privacy-section h2 .privacy-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--blue);
  margin-right: 12px;
  vertical-align: 2px;
}

.privacy-section p {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: rgba(224, 224, 224, 0.78);
  margin-bottom: 12px;
}

.privacy-section ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.privacy-section ul li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(224, 224, 224, 0.78);
  margin-bottom: 10px;
}

.privacy-section ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.75rem;
  top: 4px;
}

.privacy-contact-block {
  margin-top: 32px;
  padding: 24px 28px;
  background: rgba(26, 26, 46, 0.4);
  border: 1px solid rgba(0, 168, 255, 0.12);
  border-radius: 6px;
}

.privacy-contact-block p {
  margin-bottom: 6px;
  font-size: 0.9375rem;
}

.privacy-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 168, 255, 0.12);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(224, 224, 224, 0.5);
}

/* ============================================================
   Page: recruit  (recruit/index.html)
   ============================================================ */
/* DNA helix hero background */
.hero-dna {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-dna svg {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(42vw, 420px);
  height: auto;
  opacity: 0.06;
}

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

.welfare-item {
  background: rgba(26, 26, 46, 0.4);
  border: 1px solid rgba(0, 168, 255, 0.08);
  padding: 24px 20px;
  font-size: 0.8125rem;
  color: rgba(224, 224, 224, 0.7);
  line-height: 1.8;
}

.welfare-item-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}
@media (max-width: 768px) {
  .welfare-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .welfare-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Page: works  (works/index.html)
   ============================================================ */
/* Constellation background */
.hero-constellation {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-constellation svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.07;
}

/* Works filter logic */
.works-card[data-cat] {
  transition:
    opacity 0.4s,
    transform 0.4s;
}

.works-card.hidden-card {
  display: none;
}

/* ============================================================
   Page: contact  (contact/index.php)
   ============================================================ */
/* Radar scan hero background */
.hero-radar {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-radar svg {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(44vw, 440px);
  height: auto;
  opacity: 0.06;
}

.radar-sweep {
  transform-origin: 200px 200px;
  animation: radarSpin 4s linear infinite;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
       Step switching (Step1 form / Step2 confirm / Step3 thanks)
       ============================================================ */
.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: stepFadeIn 0.5s ease both;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.step-indicator-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(224, 224, 224, 0.3);
  transition: color 0.3s ease;
}

.step-indicator-item.is-active {
  color: var(--blue);
}

.step-indicator-item.is-done {
  color: rgba(0, 168, 255, 0.5);
}

.step-indicator-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
}

.step-indicator-item.is-active .step-indicator-num {
  background: var(--blue);
  color: #0a0a0a;
  border-color: var(--blue);
}

.step-indicator-sep {
  width: 40px;
  height: 1px;
  background: rgba(0, 168, 255, 0.18);
}

/* Step 2: 確認画面 */
.confirm-table {
  border-top: 1px solid rgba(0, 168, 255, 0.12);
  margin: 24px 0 32px;
}

.confirm-table dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
}

.confirm-table dt,
.confirm-table dd {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 168, 255, 0.08);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.confirm-table dt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(0, 168, 255, 0.04);
  letter-spacing: 0.05em;
}

.confirm-table dd {
  color: rgba(224, 224, 224, 0.85);
  white-space: pre-wrap;
  word-break: break-word;
}

.confirm-table dd.is-empty {
  color: rgba(224, 224, 224, 0.3);
  font-style: italic;
}
@media (max-width: 640px) {
  .confirm-table dl {
    grid-template-columns: 1fr;
  }
  .confirm-table dt {
    border-bottom: none;
    padding-bottom: 6px;
  }
  .confirm-table dd {
    padding-top: 4px;
    padding-bottom: 14px;
  }
}

.confirm-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.confirm-actions .submit-btn,
.confirm-actions .back-btn {
  flex: 1 1 auto;
  min-width: 200px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: transparent;
  border: 1px solid rgba(224, 224, 224, 0.3);
  color: rgba(224, 224, 224, 0.85);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  border-color: rgba(224, 224, 224, 0.6);
  color: var(--white);
}

/* Step 3: サンクス画面 */
.thanks-block {
  text-align: center;
  padding: 56px 24px 40px;
  border: 1px solid rgba(0, 168, 255, 0.12);
  background: rgba(0, 168, 255, 0.02);
  border-radius: 4px;
}

.thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  margin-bottom: 24px;
  color: var(--blue);
}

.thanks-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.thanks-text {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: rgba(224, 224, 224, 0.78);
  margin-bottom: 28px;
}

.thanks-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.thanks-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  min-width: 200px;
}

.thanks-actions .thanks-btn-primary {
  background: var(--blue);
  color: #0a0a0a;
  border: 1px solid var(--blue);
}

.thanks-actions .thanks-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.thanks-actions .thanks-btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid rgba(0, 168, 255, 0.5);
}

.thanks-actions .thanks-btn-secondary:hover {
  background: rgba(0, 168, 255, 0.05);
  border-color: var(--blue);
}

/* ============================================================
   @keyframes (page専用)
   ============================================================ */
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes radarSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   @keyframes (page専用)
   ============================================================ */
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes radarSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
