/* ==========================================================================
   VELTO corporate site — shared design system
   ========================================================================== */

:root {
  --ink: #042054;
  --bg: #FAFAFB;
  --sub: #5B5E66;
  --line: #E3E5E9;
  --surface: #F2F3F5;

  --pink: #FC5A78;
  --violet: #6E4FD9;
  --cobalt: #0252D3;

  /* default accent for neutral pages (top / company overview) */
  --accent: var(--ink);
  --accent-ink: #FFFFFF;

  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  --font-label: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;

  --container: 1180px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-3-5: 32px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

body.page-beauty { --accent: var(--pink); }
body.page-video  { --accent: var(--violet); }
body.page-sns    { --accent: var(--cobalt); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  text-wrap: balance;
  letter-spacing: 0.01em;
}

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 251, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
}
.wordmark img {
  height: 20px;
  width: auto;
  display: block;
}
.footer-grid .wordmark img {
  height: 24px;
}
.main-nav { display: flex; align-items: center; gap: var(--space-4); }
.main-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.main-nav a {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.main-nav a[aria-current="page"]::after,
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  border: none;
  background: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 15px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 72px 0 0 0; background: var(--bg);
    flex-direction: column; align-items: stretch; padding: var(--space-4) 28px;
    transform: translateX(100%); transition: transform 0.25s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
}

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-5) 0 var(--space-4); margin-top: var(--space-6); }
.footer-grid { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.footer-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: var(--sub); }
.footer-nav a:hover { color: var(--ink); }
.footer-meta { font-size: 12px; color: var(--sub); margin-top: var(--space-3); }

/* ---- ghost typography ---- */
@keyframes ghost-fade-in {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 0.11; transform: translateX(0); }
}
@keyframes ghost-fade-in-centered {
  from { opacity: 0; transform: translateY(-50%) translateX(-14px); }
  to { opacity: 0.11; transform: translateY(-50%) translateX(0); }
}
.ghost-type {
  position: absolute;
  display: block;
  color: var(--accent);
  opacity: 0.11;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  overflow: visible;
  animation: ghost-fade-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
/* SVG textLength forces the word to render at an exact fraction of this width,
   so it can never overflow its section regardless of word length or font metrics. */
.ghost-type text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 220px;
  fill: currentColor;
}

/* ---- corporate hero (top page) ---- */
.corp-hero {
  padding: var(--space-6) 0 var(--space-5); position: relative; overflow: hidden;
  background: color-mix(in srgb, var(--ink) 4%, var(--bg));
}
.corp-hero .ghost-type { width: auto; height: clamp(80px, 14vw, 200px); left: 0; top: 12px; }
.corp-hero-inner { position: relative; z-index: 2; max-width: 820px; }
.corp-word { font-weight: 700; font-size: 13px; letter-spacing: 0.12em; margin-bottom: var(--space-3); }
.corp-hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; line-height: 1.2; margin-bottom: var(--space-3); }
.corp-hero p.lead { font-size: 16px; line-height: 1.75; color: var(--sub); max-width: 52ch; }

/* ---- business preview grid (top page) ---- */
.biz-preview { border-top: 1px solid var(--line); }
.biz-row-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.35s ease;
}
.biz-row-link:hover { background: var(--surface); }
.biz-row-link:nth-child(even) { direction: rtl; }
.biz-row-link:nth-child(even) > * { direction: ltr; }
@media (max-width: 820px) {
  .biz-row-link, .biz-row-link:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
}
.biz-row-text {
  padding: var(--space-5) var(--space-4);
  border-left: 4px solid var(--accent);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}
.biz-row-text .ghost-type { width: auto; height: clamp(56px, 8vw, 110px); left: 0; bottom: -8px; top: auto; }
.biz-row-text .eyebrow { margin-bottom: var(--space-2); }
.biz-row-text h3 { font-size: clamp(23px, 3vw, 34px); font-weight: 700; line-height: 1.28; margin-bottom: var(--space-2); position: relative; z-index: 2; }
.biz-row-text p { color: var(--sub); font-size: 13.5px; line-height: 1.75; max-width: 40ch; margin-bottom: var(--space-3); position: relative; z-index: 2; }
.biz-row-link .arrow-link { color: var(--accent); transition: transform 0.25s ease; }
.biz-row-link:hover .arrow-link { transform: translateX(4px); }

.photo-slot {
  position: relative; min-height: 280px;
  background-size: cover; background-position: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.biz-row-link:hover .photo-slot { transform: scale(1.06); filter: brightness(1.03); }

/* ---- generic section ---- */
.section { position: relative; overflow: hidden; padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: none; }
.section > .ghost-type {
  width: auto; height: clamp(46px, 6.5vw, 88px); left: 0; bottom: -8px; top: auto;
}
.section-head { position: relative; z-index: 2; max-width: 640px; margin-bottom: var(--space-4); }
.section-head h2 {
  font-family: var(--font-label); font-size: 24px; font-weight: 800;
  line-height: 1.2; letter-spacing: normal; margin: var(--space-2) 0;
}
.section-head p { color: var(--sub); font-size: 14.5px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em;
  border: 1.5px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(0,0,0,0.28); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(0.94); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.arrow-link { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; transition: transform 0.2s ease; }
a.arrow-link:hover { transform: translateX(3px); }

/* ---- business page hero ---- */
.biz-hero {
  padding: var(--space-5) 0 var(--space-5); position: relative; overflow: hidden;
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
}
.biz-hero .ghost-type { width: auto; height: clamp(70px, 12vw, 170px); left: 0; top: 18px; }
.biz-hero-inner { position: relative; z-index: 2; max-width: 860px; }
.biz-hero h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 700; line-height: 1.2; margin: var(--space-2) 0 var(--space-3); }
.biz-hero p.lead { color: var(--sub); font-size: 15px; line-height: 1.75; max-width: 52ch; }

/* ---- info grid (company overview) ---- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-top: 1px solid var(--line); }
.info-table tr:last-child { border-bottom: 1px solid var(--line); }
.info-table th, .info-table td { text-align: left; padding: 24px 16px 24px 0; font-size: 14px; line-height: 1.75; vertical-align: top; }
.info-table th { width: 200px; color: var(--sub); font-weight: 600; }

/* ---- cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 820px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line); border-radius: 12px; padding: var(--space-3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -18px rgba(0,0,0,0.22);
  border-color: var(--accent);
}
.card h3 { font-size: 15.5px; line-height: 1.4; margin-bottom: 8px; }
.card p { font-size: 13px; line-height: 1.7; color: var(--sub); }
.card-grid .card:nth-child(2) { transition-delay: 0.06s; }
.card-grid .card:nth-child(3) { transition-delay: 0.12s; }

.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--accent); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---- contact form ---- */
.contact-form { max-width: 560px; }
.form-row { margin-bottom: var(--space-3-5); }
.form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: var(--font-sans); font-size: 14.5px; background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); }
.form-row textarea { resize: vertical; min-height: 140px; }
.form-hint { font-weight: 400; color: var(--sub); text-transform: none; letter-spacing: 0; }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.checkbox-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 100px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.checkbox-item:hover { border-color: var(--accent); }
.checkbox-item:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.checkbox-item input { accent-color: var(--accent); width: 16px; height: 16px; }
.form-note { font-size: 12px; color: var(--sub); margin-top: var(--space-2); }
.form-status { font-size: 13.5px; margin-top: var(--space-2); display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { color: #1a7f4e; }
.form-status.is-error { color: #c73737; }

/* ---- external cta (hotpepper) ---- */
.cta-panel {
  border: 1.5px solid var(--line); border-radius: 14px; padding: var(--space-4);
  background: color-mix(in srgb, var(--accent) 5%, var(--bg));
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
}
.cta-panel h3 { font-size: 16px; margin-bottom: 6px; }
.cta-panel p { font-size: 13px; color: var(--sub); }

/* ---- reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
