/* =========================================================
   PLAXI.NET — Corporate Site Stylesheet
   White bg, light blue accents, BIZ UDPGothic, i18n toggle
   ========================================================= */

:root {
  --ink: #1a2536;
  --paper: #ffffff;
  --paper-alt: #f5f8fc;
  --accent: #3b82d6;
  --accent-light: #5a9be6;
  --accent-dim: rgba(59, 130, 214, 0.10);
  --text: #2c3a4d;
  --text-mid: #5c6d82;
  --text-light: #94a3b8;
  --white: #ffffff;
  --border: rgba(30, 55, 90, 0.09);
  --shadow-sm: 0 1px 3px rgba(30, 55, 90, 0.06);
  --shadow-md: 0 8px 30px rgba(30, 55, 90, 0.08);
  --shadow-lg: 0 20px 60px rgba(30, 55, 90, 0.10);
  --radius: 2px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'BIZ UDPGothic', 'Hiragino Sans', 'Meiryo', sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--white); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: 0.25em; color: var(--accent);
  text-decoration: none;
}
.nav-right {
  display: flex; align-items: center; gap: 16px;
  order: 1;
}
.nav-links {
  display: flex; gap: 36px; list-style: none;
}
.nav-links a {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--text-mid);
  text-decoration: none; transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 1.5px;
  background: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* Language Toggle */
.lang-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 32px;
  background: none;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}
.lang-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.lang-toggle-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--text-mid);
  transition: color 0.3s;
}
.lang-toggle:hover .lang-toggle-label { color: var(--accent); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 24px 40px; gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: flex-start;
  position: relative; overflow: hidden;
  padding-top: calc(72px + 12vh);
  background: var(--paper);
}
.hero::before {
  content: ''; position: absolute;
  top: -200px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px; opacity: 0.5;
  mask-image: radial-gradient(ellipse 60% 60% at 70% 40%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 70% 40%, black 0%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 32px;
  opacity: 0; animation: fadeUp 0.8s 0.3s forwards;
}
.hero-label::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700;
  line-height: 1.35; color: var(--ink);
  letter-spacing: 0.02em; max-width: 700px;
  opacity: 0; animation: fadeUp 0.8s 0.5s forwards;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  margin-top: 28px; font-size: 1.05rem; font-weight: 400;
  color: var(--text-mid); max-width: 540px; line-height: 2;
  opacity: 0; animation: fadeUp 0.8s 0.7s forwards;
}
.hero-cta {
  margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s 0.9s forwards;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.05em; text-decoration: none;
  border: none; cursor: pointer;
  font-family: 'BIZ UDPGothic', sans-serif;
  transition: all 0.3s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #243347; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid rgba(30,55,90,0.2); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-arrow { transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ── Sections ── */
section { padding: 120px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 16px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700;
  color: var(--ink); line-height: 1.35; letter-spacing: 0.02em;
}
.section-desc {
  margin-top: 20px; font-size: 1rem; font-weight: 400;
  color: var(--text-mid); max-width: 560px; line-height: 2;
}

/* ── About ── */
.about { background: var(--paper-alt); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; margin-top: 64px;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; margin-top: 40px; }
}
.about-visual {
  position: relative; aspect-ratio: 4/3;
  background: var(--ink); overflow: hidden;
}
.about-visual::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(59,130,214,0.15) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.03) 40px, rgba(255,255,255,0.03) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.03) 40px, rgba(255,255,255,0.03) 41px);
}
.about-visual-text {
  position: absolute; bottom: 32px; left: 32px; right: 32px;
  color: rgba(255,255,255,0.6); font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.about-visual-text strong {
  display: block; font-family: 'DM Sans', sans-serif;
  font-size: 3rem; font-weight: 700;
  color: var(--white); letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 12px;
}
.about-body-text {
  font-size: 0.95rem; font-weight: 400;
  color: var(--text-mid); line-height: 2.1;
}
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 40px;
}
.stat-item { padding: 24px; border: 1px solid var(--border); background: var(--white); }
.stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.8rem; font-weight: 700; color: var(--accent);
}
.stat-label { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }

/* ── Services ── */
.services { background: var(--paper); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 64px; background: var(--border);
}
@media (max-width: 960px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--paper); padding: 48px 36px;
  transition: all 0.4s ease; position: relative;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.4s ease;
}
.service-card:hover::before { width: 100%; }
.service-card:hover { background: var(--white); box-shadow: var(--shadow-lg); z-index: 1; }
.service-card-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem; font-weight: 500;
  color: var(--accent); letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.service-card p { font-size: 0.9rem; font-weight: 400; color: var(--text-mid); line-height: 1.9; }

/* ── System Dev ── */
.sysdev { background: var(--ink); color: var(--white); }
.sysdev .section-title { color: var(--white); }
.sysdev .section-desc { color: rgba(255,255,255,0.55); }
.sysdev .section-label { color: var(--accent-light); }
.sysdev .section-label::before { background: var(--accent-light); }

/* Dark grid */
.services-grid--dark { background: rgba(255,255,255,0.06); }

/* Dark card overrides */
.service-card--dark {
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.06);
}
.service-card--dark::before { background: var(--accent-light); }
.service-card--dark:hover {
  background: rgba(255,255,255,0.04);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.service-card--dark .service-card-num { color: var(--accent-light); }
.service-card--dark h3 { color: var(--white); }
.service-card--dark p { color: rgba(255,255,255,0.5); }

/* ── Company ── */
.company { background: var(--paper); padding: 120px 0; }
@media (max-width: 768px) { .company { padding: 80px 0; } }
.company-table-wrap { max-width: 720px; margin-top: 48px; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td {
  padding: 1.1em 0; border-bottom: 1px solid var(--border);
  vertical-align: top; font-size: 0.92rem;
}
.company-table th {
  width: 140px; font-weight: 700; color: var(--text-light);
  font-size: 0.82rem; letter-spacing: 0.04em;
  white-space: nowrap; padding-right: 2rem;
}
.company-table td { color: var(--text); }
.company-table td a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.3s;
}
.company-table td a:hover { border-color: var(--accent); }
@media (max-width: 768px) { .company-table th { width: 110px; font-size: 0.78rem; } }

/* ── Contact ── */
.contact { background: var(--paper-alt); }
.contact-form-area { max-width: 640px; margin-top: 64px; }
@media (max-width: 768px) { .contact-form-area { margin-top: 40px; } }
.privacy-link {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 2px; transition: color 0.3s;
}
.privacy-link:hover { color: var(--accent-light); }
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 8px;
}
.form-group label .required { color: var(--accent); margin-left: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px;
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 0.92rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--border);
  outline: none; transition: all 0.3s; appearance: none; border-radius: 0;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.btn-submit {
  width: 100%; padding: 16px; justify-content: center;
  font-family: 'BIZ UDPGothic', sans-serif;
}
.form-note { margin-top: 16px; font-size: 0.78rem; color: var(--text-light); line-height: 1.8; }
.form-message { margin-top: 16px; padding: 14px 20px; font-size: 0.88rem; display: none; }
.form-message.success { display: block; background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.form-message.error { display: block; background: #fbe9e7; color: #c62828; border: 1px solid #ffccbc; }

/* ── Footer ── */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.4);
  padding: 60px 0 40px;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 40px;
}
.footer-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: 0.25em; color: var(--white);
}
.footer-tagline { margin-top: 8px; font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-links { display: flex; gap: 32px; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.72rem; letter-spacing: 0.05em;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
