/* ============================================
   Fair Place Inc. — Corporate Site Styles
   Design Guideline: Light Base + Vivid Blue
   ============================================ */

/* --- Variables --- */
:root {
  --vivid-blue: #1574E8;
  --deep-blue: #0D52B0;
  --mid-blue: #4D96F0;
  --light-blue: #D6E6FB;
  --bg: #F4F7FD;
  --navy-black: #0A1628;
  --deep-navy: #0F2240;
  --ink: #111827;
  --ink-mid: #4B5563;
  --ink-light: #9CA3AF;
  --off-white: #FAFAFA;
}

/* --- Terminal Boot Overlay --- */
.terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.terminal-overlay.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.terminal-window {
  width: min(720px, 90vw);
  background: #0D1B2A;
  border-radius: 12px;
  border: 1px solid rgba(77, 150, 240, 0.15);
  box-shadow: 0 0 60px rgba(21, 116, 232, 0.15), 0 0 120px rgba(21, 116, 232, 0.05);
  overflow: hidden;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(77, 150, 240, 0.1);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FEBC2E; }
.terminal-dot.green { background: #28C840; }

.terminal-titlebar-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 8px;
}

.terminal-body {
  padding: 20px 24px;
  min-height: 260px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.terminal-line {
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-line .prompt { color: var(--mid-blue); }
.terminal-line .command { color: #28C840; }
.terminal-line .info { color: rgba(255, 255, 255, 0.4); }
.terminal-line .success { color: #28C840; }
.terminal-line .warn { color: #FEBC2E; }
.terminal-line .highlight { color: var(--mid-blue); font-weight: 700; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--mid-blue);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.skip-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  cursor: pointer;
  padding: 10px 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: opacity 0.3s, color 0.2s, border-color 0.2s;
}

.skip-hint:hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(77, 150, 240, 0.5);
}

.terminal-overlay.done .skip-hint {
  opacity: 0;
}

/* --- Site Content (hidden until boot) --- */
.site-content {
  opacity: 0;
  transition: opacity 1s ease 0.3s;
}

.site-content.visible {
  opacity: 1;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Noto Sans JP", "Jost", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background-color: #fff;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* --- Utility --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only {
  display: none;
}

.pc-only {
  display: inline;
}

.required {
  font-size: 0.7em;
  color: #fff;
  background: var(--vivid-blue);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* --- Header (Glassmorphism) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(21, 116, 232, 0.06);
  box-shadow: 0 1px 12px rgba(21, 116, 232, 0.06);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Jost", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  display: block;
  flex-shrink: 0;
}

.logo-fair {
  color: var(--vivid-blue);
}

.logo-place {
  color: #fff;
  transition: color 0.3s;
}

.site-header.scrolled .logo-place {
  color: var(--ink);
}

.global-nav {
  display: flex;
  gap: 32px;
}

.global-nav a {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1.5px;
  transition: color 0.2s;
}

.site-header.scrolled .global-nav a {
  color: var(--ink-mid);
}

.global-nav a:hover {
  color: var(--vivid-blue);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero (Light Base) --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(170deg, #0A1628 0%, #0F2240 40%, #152B4A 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
}

.hero-tagline-en {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--vivid-blue);
  margin-bottom: 28px;
}

.hero-tagline {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  color: #fff;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 44px;
  letter-spacing: 0.04em;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
}

.hero-scroll span {
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  animation: scrollLine 2s ease-in-out infinite;
}

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

/* --- Buttons (Glossy Gradient) --- */
.btn {
  display: inline-block;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(180deg, #3388F0 0%, #1574E8 50%, #0D52B0 100%);
  box-shadow: 0 4px 16px rgba(21, 116, 232, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.3),
              inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(21, 116, 232, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 56px;
  font-size: 1rem;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-label {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--vivid-blue);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.9;
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

/* --- Pain Hook --- */
.section-pain-hook {
  background: #fff;
}

.pain-list {
  margin-top: 32px;
}

.pain-list li {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.8;
  padding: 10px 0 10px 24px;
  position: relative;
  letter-spacing: 0.02em;
}

.pain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vivid-blue);
  opacity: 0.5;
}

.pain-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--vivid-blue), var(--mid-blue));
  margin: 40px 0;
  opacity: 0.6;
}

.pain-reframe {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.9;
  letter-spacing: 0.03em;
}

/* --- Service --- */
.section-service {
  background: var(--bg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(21, 116, 232, 0.06);
  border-radius: 18px;
  padding: 40px 32px;
  box-shadow: 0 1px 3px rgba(21, 116, 232, 0.04);
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(21, 116, 232, 0.08);
  border-color: rgba(21, 116, 232, 0.12);
  transform: translateY(-3px);
}

.service-number {
  font-family: "Jost", sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--vivid-blue), var(--deep-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  margin-bottom: 12px;
  line-height: 1;
}

.service-card-title {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.service-card-lead {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.9;
  margin-bottom: 24px;
}

.service-card-section {
  margin-bottom: 20px;
}

.service-card-section:last-child {
  margin-bottom: 0;
}

.service-card-section-label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--vivid-blue);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.service-card-list {
  padding: 0;
}

.service-card-list li {
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.8;
  padding: 3px 0 3px 16px;
  position: relative;
}

.service-card-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-light);
}

.service-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.service-flow-step {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-mid);
  background: var(--bg);
  border: 1px solid rgba(21, 116, 232, 0.08);
  border-radius: 6px;
  padding: 4px 10px;
  line-height: 1.5;
  white-space: nowrap;
}

.service-flow-step:not(:last-child)::after {
  content: "\203A";
  margin-left: 6px;
  color: var(--ink-light);
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  right: -4px;
}

/* --- Why Us --- */
.section-why-us {
  background: #fff;
}

.why-us-body {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.9;
  letter-spacing: 0.02em;
}

/* --- Company --- */
.section-company {
  background: var(--bg);
}

.company-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

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

.company-table th,
.company-table td {
  padding: 16px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(21, 116, 232, 0.06);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  font-weight: 700;
  color: var(--ink);
  width: 120px;
  white-space: nowrap;
}

.company-table td {
  color: var(--ink-mid);
}

.profile-card {
  background: #fff;
  border: 1px solid rgba(21, 116, 232, 0.06);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(21, 116, 232, 0.04);
}

.profile-title {
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-bottom: 4px;
}

.profile-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.profile-name-en {
  font-family: "Jost", sans-serif;
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-bottom: 16px;
}

.profile-bio {
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.8;
  text-align: left;
}

/* --- Contact --- */
.section-contact {
  background: #fff;
}

.contact-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  background: var(--bg);
  border: 1px solid rgba(21, 116, 232, 0.06);
  border-radius: 18px;
  padding: 48px 40px;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(21, 116, 232, 0.12);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--vivid-blue);
  box-shadow: 0 0 0 3px rgba(21, 116, 232, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: #fff;
  color: var(--ink);
}

.form-group textarea {
  resize: vertical;
}

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

.form-status {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 1.5em;
}

.form-status-success {
  color: #28C840;
}

.form-status-error {
  color: #E53E3E;
}

/* --- Footer (Dark) --- */
.site-footer {
  background: var(--navy-black);
  color: rgba(255, 255, 255, 0.5);
  padding: 60px 0 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-logo {
  font-family: "Jost", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-fair {
  color: var(--vivid-blue);
}

.footer-logo .logo-place {
  color: rgba(255, 255, 255, 0.7);
}

.footer-tagline {
  font-family: "Jost", sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-nav a {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
}

/* --- Animations (scroll reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  .pc-only {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .global-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid rgba(21, 116, 232, 0.06);
  }

  .global-nav.open {
    max-height: 300px;
    padding: 16px 0;
  }

  .global-nav a {
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--ink-mid);
  }

  .hero-tagline {
    font-size: 1.7rem;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

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

  .service-card {
    padding: 28px 24px;
  }

  .service-card-title {
    font-size: 1.2rem;
  }

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

  .contact-form {
    padding: 32px 24px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }
}

