:root {
  --ink: #1a1a2e;
  --ink-light: #3d3d5c;
  --ink-muted: #6b6b8a;
  --surface: #faf9f7;
  --surface-warm: #f3f1ed;
  --surface-card: #ffffff;
  --accent: #2d5a7b;
  --accent-deep: #1e3f57;
  --accent-light: #e8f0f5;
  --warm: #c4956a;
  --warm-light: #f5ece4;
  --border: #e5e3df;
  --border-light: #eeece8;
  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-en: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-jp);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.8;
  font-size: 15px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.06); }

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

.logo {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  display: block;
}
.logo-mark--header {
  width: 40px;
  height: 40px;
}

nav { display: flex; align-items: center; gap: 6px; }
nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-light);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
nav a:hover { background: var(--surface-warm); color: var(--ink); }
nav .nav-cta {
  background: var(--accent);
  color: white;
  margin-left: 8px;
}
nav .nav-cta:hover { background: var(--accent-deep); color: white; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  padding: 160px 32px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(45,90,123,0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(196,149,106,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
  font-family: var(--font-en);
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-jp);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(45,90,123,0.25); }
.btn-outline {
  background: transparent;
  color: var(--ink-light);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--ink-muted); color: var(--ink); }

/* ── SECTIONS ── */
section { padding: 100px 32px; }

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.9;
}

/* ── MISSION ── */
.mission {
  background: var(--ink);
  color: white;
  text-align: center;
}
.mission .section-label { color: var(--warm); }
.mission .section-title { color: white; }

.mission-statement {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 300;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,0.85);
}
.mission-statement strong {
  font-weight: 500;
  color: white;
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface-card);
  border-radius: 14px;
  padding: 36px 32px;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.service-icon.staging { background: var(--accent-light); }
.service-icon.layout { background: var(--warm-light); }
.service-icon.tools { background: #e8f5e8; }

.service-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-family: var(--font-en);
}
.badge-live { background: var(--accent-light); color: var(--accent); }
.badge-dev { background: var(--warm-light); color: var(--warm); }

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.service-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.service-link:hover { gap: 10px; }
.service-link::after { content: '\2192'; }

/* ── COMPANY ── */
.company { background: var(--surface-warm); }

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}
.company-table th {
  font-weight: 500;
  color: var(--ink-muted);
  width: 120px;
  white-space: nowrap;
  padding-right: 24px;
}
.company-table td { color: var(--ink); }

.company-philosophy {
  background: var(--surface-card);
  border-radius: 14px;
  padding: 36px;
  border: 1px solid var(--border-light);
}
.company-philosophy h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.company-philosophy blockquote {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 16px;
}
.company-philosophy .philosophy-body {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.9;
}

/* ── NEWS ── */
.news-list { list-style: none; }
.news-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}
.news-item:first-child { border-top: 1px solid var(--border-light); }
.news-date {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
  font-weight: 500;
}
.news-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.tag-release { background: var(--accent-light); color: var(--accent); }
.tag-info { background: var(--surface-warm); color: var(--ink-muted); }
.tag-media { background: var(--warm-light); color: var(--warm); }
.news-text {
  font-size: 14px;
  color: var(--ink-light);
  flex: 1;
}

/* ── CONTACT ── */
.contact {
  background: var(--ink);
  color: white;
  text-align: center;
}
.contact .section-label { color: var(--warm); }
.contact .section-title { color: white; margin-bottom: 12px; }
.contact .section-desc {
  color: rgba(255,255,255,0.6);
  margin: 0 auto 40px;
  text-align: center;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.contact-method {
  text-align: center;
}
.contact-method-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}
.contact-method-value {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 500;
  color: white;
}
.contact-method-value a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s;
}
.contact-method-value a:hover { border-color: white; }

.contact-form-wrapper {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.form-group label .required {
  color: var(--warm);
  font-size: 11px;
  margin-left: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: white;
  font-family: var(--font-jp);
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M1.41.59L6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group select option { background: var(--ink); color: white; }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-jp);
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--accent-deep); }

.form-success {
  text-align: center;
  padding: 24px 0;
}
.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #6ee6a0;
  font-size: 28px;
  line-height: 56px;
  margin: 0 auto 20px;
}
.form-success h3 {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}
.form-success p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
}

.form-note {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 14px;
}
.form-note a { color: rgba(255,255,255,0.5); }

/* ── FOOTER ── */
footer {
  background: #141425;
  color: rgba(255,255,255,0.45);
  padding: 48px 32px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand .logo { color: white; margin-bottom: 10px; }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.7; }

.footer-links { display: flex; gap: 40px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-family: var(--font-en);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1080px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 12px;
  font-family: var(--font-en);
  color: rgba(255,255,255,0.3);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ── LEGAL PAGES ── */
.legal-page {
  padding: 140px 32px 80px;
}
.legal-page .section-title {
  margin-bottom: 40px;
}
.legal-content {
  max-width: 720px;
}
.legal-content h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 32px 0 10px;
  color: var(--ink);
}
.legal-content p {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.9;
  margin-bottom: 12px;
}
.legal-content ul {
  margin: 0 0 12px 0;
  padding-left: 1.5em;
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.9;
}
.legal-content li {
  margin-bottom: 4px;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}
.legal-table th,
.legal-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
  color: var(--ink-light);
  line-height: 1.6;
}
.legal-table th {
  background: var(--surface-warm);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.legal-content code {
  font-size: 12px;
  background: var(--surface-warm);
  padding: 1px 5px;
  border-radius: 3px;
}
.legal-contact {
  background: var(--surface-warm);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 12px 0;
}
.legal-contact p {
  margin-bottom: 4px;
}
.legal-contact a {
  color: var(--accent);
  text-decoration: none;
}
.legal-date {
  margin-top: 32px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }

  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    flex-direction: column;
    gap: 4px;
  }
  nav.open { display: flex; }
  nav a { padding: 10px 14px; }
  nav .nav-cta { margin-left: 0; text-align: center; }

  .mobile-toggle { display: flex; }

  .hero { padding: 130px 20px 70px; }
  section { padding: 70px 20px; }

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

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

  .news-item {
    flex-direction: column;
    gap: 6px;
  }

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

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