/*
Theme Name: saltcrew
Theme URI: https://saltcrew.co.jp
Author: SALT CREW Inc.
Author URI: https://saltcrew.co.jp
Description: SALT CREW コーポレートサイト WordPress テーマ。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: saltcrew
*/

/* ============================================================
   SALT CREW — Shared Design System
   Based on Design 11: Split-Screen Duality
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Noto+Serif+JP:wght@300;400;600&family=Space+Grotesk:wght@300;400;500&display=swap');

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

:root {
  --light: #f5f2ec;
  --dark: #0c0b09;
  --mid-l: #8a8278;
  --mid-d: #6b6560;
  --line-l: rgba(12, 11, 9, .1);
  --line-d: rgba(245, 242, 236, .08);
  --black: #000;
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--dark);
  color: var(--light);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit
}

/* ── Typography helpers ── */
.serif {
  font-family: 'Playfair Display', serif
}

.serif-jp {
  font-family: 'Noto Serif JP', serif
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 56px;
  mix-blend-mode: difference;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--light);
  text-decoration: none;
}

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

.nav-link {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--light);
  text-decoration: none;
  opacity: .5;
  transition: opacity .3s;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1
}

.nav-cta {
  font-size: .6rem;
  letter-spacing: .15em;
  padding: 10px 22px;
  border: 1px solid var(--light);
  color: var(--light);
  text-decoration: none;
  opacity: .8;
  transition: all .3s;
}

.nav-cta:hover {
  background: var(--light);
  color: var(--dark);
  opacity: 1
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--light);
  transition: all .3s
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 250;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}

.nav-drawer.open {
  opacity: 1;
  pointer-events: auto
}

.nav-drawer .nav-link {
  font-size: 1.2rem;
  letter-spacing: .12em;
  opacity: .6
}

.nav-drawer .nav-link:hover {
  opacity: 1
}

.nav-drawer .nav-cta {
  font-size: .7rem;
  margin-top: 16px
}

/* ── SUB-PAGE HERO ── */
.page-hero {
  height: 55vh;
  min-height: 400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.page-hero-left {
  background: var(--light);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 56px 56px;
}

.page-hero-right {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 56px 56px;
  border-left: 1px solid var(--line-l);
}

.page-hero-eyebrow {
  font-size: .5rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--mid-l);
  margin-bottom: 24px;
}

.page-hero-eyebrow.dark {
  color: var(--mid-d)
}

.page-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--dark);
  overflow: hidden;
}

.page-hero-title span {
  display: block;
  transform: translateY(110%);
  animation: slideUp .9s cubic-bezier(.77, 0, .18, 1) .3s forwards;
}

.page-hero-title-en {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--mid-d);
  overflow: hidden;
}

.page-hero-title-en span {
  display: block;
  transform: translateY(110%);
  animation: slideUp .9s cubic-bezier(.77, 0, .18, 1) .5s forwards;
}

.page-hero-desc {
  margin-top: 28px;
  font-size: .78rem;
  line-height: 1.95;
  color: var(--mid-d);
  opacity: 0;
  animation: fadeIn .8s ease 1s forwards;
}

/* ── SECTION COMMON ── */
.section {
  padding: 120px 56px;
  border-top: 1px solid var(--line-d)
}

.section--light {
  background: var(--light);
  color: var(--dark);
  border-top: 1px solid var(--line-l)
}

.section--black {
  background: var(--black);
  border-top: 1px solid var(--line-d)
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 72px
}

.section-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: .8rem;
  color: var(--mid-d);
}

.section-num--light {
  color: var(--mid-l)
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line-d)
}

.section-rule--light {
  background: var(--line-l)
}

.section-name {
  font-size: .52rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--mid-d)
}

.section-name--light {
  color: var(--mid-l)
}

.section-lead {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(245, 242, 236, .6);
  max-width: 640px;
  margin-bottom: 64px;
}

.section-lead--light {
  color: rgba(12, 11, 9, .65)
}

/* ── SPLIT BLOCK ── */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-d);
}

.split-block__left {
  background: var(--light);
  color: var(--dark);
  padding: 120px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-block__right {
  background: var(--dark);
  padding: 120px 56px;
  border-left: 1px solid var(--line-d);
}

/* ── SERVICE ROW ── */
.service-row {
  display: grid;
  grid-template-columns: 48px 1fr 200px;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line-d);
  transition: padding-left .4s;
}

.service-row:hover {
  padding-left: 12px
}

.svc-n {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--mid-d);
  padding-top: 6px;
}

.svc-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 16px;
}

.svc-title-en {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: .8rem;
  color: var(--mid-d);
  display: block;
  margin-top: 4px;
}

.svc-body {
  font-size: .78rem;
  color: var(--mid-d);
  line-height: 2.2;
  max-width: 480px
}

.svc-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
  padding-top: 8px;
}

.svc-tag {
  font-size: .52rem;
  letter-spacing: .1em;
  color: var(--mid-d);
  text-align: right
}

/* ── CARDS ── */
.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-d)
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-d)
}

.card {
  background: var(--dark);
  padding: 48px 40px;
  transition: background .4s
}

.card:hover {
  background: #111
}

.card-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: .65rem;
  color: var(--mid-d);
  margin-bottom: 12px;
  display: block;
}

.card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.5;
}

.card-body {
  font-size: .75rem;
  color: var(--mid-d);
  line-height: 2.1
}

/* ── WORK CARD ── */
.work-card {
  background: var(--dark);
  padding: 48px 40px;
  transition: background .4s
}

.work-card:hover {
  background: #111
}

.work-svc {
  font-size: .5rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--mid-d);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.work-svc::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--mid-d)
}

.work-client {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 6px
}

.work-industry {
  font-size: .65rem;
  color: var(--mid-d);
  margin-bottom: 40px
}

.work-kpi {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--light);
}

.work-kpi-label {
  font-size: .62rem;
  color: var(--mid-d);
  margin-top: 8px;
  line-height: 1.7
}

/* ── CTA BANNER ── */
.cta-band {
  background: var(--black);
  text-align: center;
  padding: 140px 56px;
  border-top: 1px solid var(--line-d);
}

.cta-band__over {
  font-size: .52rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--mid-d);
  margin-bottom: 40px;
}

.cta-band__heading {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.45;
  margin-bottom: 16px;
}

.cta-band__en {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(.9rem, 2vw, 1.3rem);
  color: var(--mid-d);
  margin-bottom: 60px;
}

.cta-band__btn {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 18px 56px;
  border: 1px solid rgba(245, 242, 236, .2);
  color: var(--light);
  text-decoration: none;
  transition: all .3s;
}

.cta-band__btn:hover {
  border-color: var(--light);
  background: rgba(245, 242, 236, .04)
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--line-d);
  padding: 52px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--light);
}

.footer-tag {
  font-size: .55rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--mid-d);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 28px
}

.footer-link {
  font-size: .55rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mid-d);
  text-decoration: none;
  transition: color .3s;
}

.footer-link:hover,
.footer-link.active {
  color: var(--light)
}

.footer-copy {
  font-size: .5rem;
  color: rgba(107, 101, 96, .4)
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .52rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mid-d);
  padding: 0 56px;
  height: 44px;
  border-bottom: 1px solid var(--line-d);
}

.breadcrumb a {
  color: var(--mid-d);
  text-decoration: none;
  transition: color .3s
}

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

.breadcrumb-sep {
  opacity: .4
}

/* ── FORM ── */
.form-group {
  margin-bottom: 28px
}

.form-label {
  display: block;
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mid-d);
  margin-bottom: 10px;
}

.form-label span {
  color: rgba(245, 242, 236, .3);
  margin-left: 4px;
  font-size: .5rem
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(245, 242, 236, .04);
  border: 1px solid var(--line-d);
  color: var(--light);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem;
  padding: 14px 18px;
  transition: border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(245, 242, 236, .3);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(245, 242, 236, .2)
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.8
}

.form-select {
  cursor: pointer
}

.form-select option {
  background: var(--dark)
}

.form-submit {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 18px 64px;
  border: 1px solid rgba(245, 242, 236, .3);
  background: none;
  color: var(--light);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  transition: all .3s;
}

.form-submit:hover {
  border-color: var(--light);
  background: rgba(245, 242, 236, .04)
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease
}

.reveal.visible {
  opacity: 1;
  transform: none
}

.reveal-delay-1 {
  transition-delay: .1s
}

.reveal-delay-2 {
  transition-delay: .2s
}

.reveal-delay-3 {
  transition-delay: .3s
}

/* ── ANIMATIONS ── */
@keyframes slideUp {
  to {
    transform: translateY(0)
  }
}

@keyframes fadeIn {
  to {
    opacity: 1
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  .nav {
    padding: 20px 24px
  }

  .nav-links {
    display: none
  }

  .hamburger {
    display: flex
  }

  .page-hero {
    grid-template-columns: 1fr;
    height: auto
  }

  .page-hero-left {
    padding: 88px 24px 40px;
    min-height: 50vw
  }

  .page-hero-right {
    padding: 40px 24px 48px;
    border-left: none;
    border-top: 1px solid var(--line-d)
  }

  .breadcrumb {
    padding: 0 24px
  }

  .section {
    padding: 72px 24px
  }

  .split-block {
    grid-template-columns: 1fr
  }

  .split-block__left,
  .split-block__right {
    padding: 72px 24px
  }

  .split-block__right {
    border-left: none;
    border-top: 1px solid var(--line-d)
  }

  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr
  }

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

  .svc-tags {
    display: none
  }

  .cta-band {
    padding: 80px 24px
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 28px
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 20px
  }
}