/* ============================================
   OmiseWeb v3 - OBSIDIAN CHROME Palette
   Modern · Editorial · Refined · Cool-tone
   ============================================ */

:root {
  /* === OBSIDIAN CHROME palette === */
  --onyx: #0A0A0A;            /* primary ink / footer / strong accents */
  --slate: #536878;           /* blue slate accent (replaces former orange) */
  --slate-deep: #3F505E;      /* hover state */
  --slate-soft: #8298A8;      /* secondary accent */
  --slate-tint: #EEF1F4;      /* very subtle slate tint for sections */
  --alabaster: #E5E4E2;       /* warm gray paper tone */
  --alabaster-soft: #EEEDEB;  /* lighter alabaster */

  /* === Semantic mapping === */
  --bg: #FAFAFA;              /* main page background, cleaner than pure white */
  --bg-warm: var(--alabaster);
  --bg-warm-2: var(--alabaster-soft);
  --bg-tint: #F2F2F1;
  --bg-dark: var(--onyx);

  --ink: var(--onyx);
  --ink-soft: #1A1A1A;
  --ink-mid: #4A4A4A;
  --ink-mute: #8A8A8A;

  --line: #D8D6D2;            /* slightly warm gray, harmonizes with alabaster */
  --line-soft: #E5E3DF;

  /* Accent system — Slate replaces orange entirely */
  --accent: var(--slate);
  --accent-deep: var(--slate-deep);
  --accent-soft: var(--slate-tint);
  --accent-ink: #FFFFFF;      /* text color on slate background */

  /* Backwards compatibility (kept so old class refs still work) */
  --brand-orange: var(--slate);
  --brand-orange-soft: var(--slate-tint);
  --warm-1: var(--slate-soft);

  /* Typography */
  --f-display: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
  --f-body: 'Noto Sans JP', sans-serif;
  --f-en: 'Plus Jakarta Sans', sans-serif;
  --f-script: 'Caveat', cursive;

  /* Spacing */
  --container: 1280px;
  --container-narrow: 1080px;
  --pad-x: clamp(20px, 4vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Radii — slightly tighter for sharper, modern feel */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: anywhere;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============================================
   Line break utilities (responsive)
   ============================================ */
/* .sp-only  → mobile (<=767px) でのみ改行 */
/* .pc-only  → desktop (>=768px) でのみ改行 */
br.sp-only,
.br-sp { display: none; }
br.pc-only,
.br-pc { display: inline; }

@media (max-width: 767px) {
  br.sp-only,
  .br-sp { display: inline; }
  br.pc-only,
  .br-pc { display: none; }
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: padding 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(250, 250, 250, 0.94);
  padding: 14px var(--pad-x);
  box-shadow: 0 1px 0 var(--line-soft), 0 8px 30px -16px rgba(10, 10, 10, 0.08);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
}

.brand-name {
  font-family: var(--f-en);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand-script {
  font-family: var(--f-script);
  font-size: 22px;
  color: var(--brand-orange);
  line-height: 1;
  margin-left: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.3s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a.active {
  color: var(--ink);
}

.nav a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 5px;
  height: 5px;
  background: var(--slate);
  border-radius: 50%;
  transform: translateX(-50%);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--slate);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--slate-deep);
  transform: translateY(-1px);
}

.nav-cta i {
  font-size: 10px;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 50%;
  transition: background 0.3s var(--ease);
}

.hamburger:hover {
  background: var(--bg-warm);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: #fff;
  padding: 100px var(--pad-x) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.nav-drawer.open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer a {
  display: block;
  padding: 18px 0;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--f-display);
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: -0.01em;
}

.nav-drawer .nav-cta {
  margin-top: 28px;
  width: 100%;
  justify-content: center;
  padding: 18px;
  font-size: 15px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}

.btn i {
  font-size: 11px;
  transition: transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover i {
  transform: translate(2px, -2px);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #2a2a2a;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-deep);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  background: var(--bg-warm);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn-lg {
  padding: 20px 36px;
  font-size: 15px;
}

/* ============================================
   Section primitives
   ============================================ */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 28px;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--slate);
}

.section-tag-accent {
  color: var(--ink);
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.section-title .script {
  font-family: var(--f-script);
  font-weight: 500;
  color: var(--slate);
  font-style: normal;
  font-size: 0.85em;
}

.section-lead {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-mid);
  max-width: 640px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 32px;
}

.breadcrumb a {
  transition: color 0.3s var(--ease);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb-sep {
  width: 22px;
  height: 1px;
  background: var(--ink-mute);
}

/* Page hero (sub pages) */
.page-hero {
  padding: 180px 0 70px;
  position: relative;
  background: var(--alabaster);
  border-bottom: 1px solid var(--line-soft);
}

.page-hero-title {
  font-family: var(--f-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.page-hero-title .accent {
  color: var(--slate);
}

.page-hero-title .script {
  font-family: var(--f-script);
  color: var(--slate);
  font-weight: 500;
}

.page-hero-lead {
  margin-top: 30px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-mid);
  max-width: 600px;
}

/* ============================================
   Forms
   ============================================ */
.form-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.08);
}

.form-card-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.form-card-lead {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.75;
}

.form-divider {
  height: 1px;
  background: var(--line-soft);
  margin: 28px 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.form-row.single {
  grid-template-columns: 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.field-required {
  display: inline-block;
  padding: 3px 8px;
  background: var(--bg-warm);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.05em;
  font-family: var(--f-en);
}

.field input,
.field textarea,
.field select {
  padding: 14px 0 12px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
  width: 100%;
  border-radius: 0;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--slate);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.7;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%230E0E0E' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

.field-help {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.6;
}

.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.7;
  flex: 1;
  min-width: 200px;
}

/* ============================================
   Popup
   ============================================ */
.popup-mask {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.popup-mask.open {
  opacity: 1;
  visibility: visible;
}

.popup {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 48px 40px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.5s var(--ease-out);
}

.popup-mask.open .popup {
  transform: translateY(0) scale(1);
}

.popup-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 28px;
}

.popup-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.popup-text {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.85;
  margin-bottom: 28px;
}

.popup-close {
  padding: 12px 32px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s var(--ease);
}

.popup-close:hover {
  background: #2a2a2a;
}

/* ============================================
   Footer — OBSIDIAN dark mode
   ============================================ */
.site-footer {
  background: var(--onyx);
  color: #C8C8C8;
  padding: 80px 0 32px;
  border-top: 1px solid var(--onyx);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-brand-name {
  font-family: var(--f-en);
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.025em;
}

.footer-brand-script {
  font-family: var(--f-script);
  font-size: 20px;
  color: var(--slate-soft);
}

.footer-about {
  font-size: 13px;
  line-height: 1.95;
  color: #A0A0A0;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: #A0A0A0;
  transition: color 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--slate-soft);
}

.footer-bot {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #6E6E6E;
}

.footer-bot .script {
  font-family: var(--f-script);
  font-size: 17px;
  color: var(--slate-soft);
}

/* ============================================
   Reveal animations
   ============================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }
.reveal-d6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .nav,
  .nav-cta-wrap {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 22px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 14px var(--pad-x);
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-script {
    font-size: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
