/* ============================================================
   WORK SHIFT INC. — Corporate Site
   Editorial Minimal / Black × White × Gray + Brass Gold
   Mobile-first
============================================================ */

:root {
  /* color */
  --ink: #141416;
  --black: #0e0e10;
  --black-soft: #1a1a1d;
  --white: #fafaf8;
  --paper: #f2f1ed;
  --gray-700: #3c3c40;
  --gray-500: #6f6f74;
  --gray-300: #b9b9bd;
  --line: rgba(20, 20, 22, 0.12);
  --line-invert: rgba(250, 250, 248, 0.16);
  --accent: #c8a04b;
  --accent-deep: #a9853c;

  /* type */
  --font-serif: "Shippori Mincho", "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", sans-serif;
  --font-en: "Fraunces", "Shippori Mincho", serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* layout */
  --gutter: 22px;
  --max: 1160px;
  --header-h: 64px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "palt";
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

::selection { background: var(--accent); color: var(--black); }

/* ---------- utilities ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 84px 0; position: relative; }
.section--dark { background: var(--black); color: var(--white); }
.section--paper { background: var(--paper); }

/* mono section label e.g. "01 — ISSUE" */
.label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 26px;
}
.label::after { content: ""; flex: 0 0 42px; height: 1px; background: var(--accent); }
.section--dark .label { color: var(--gray-300); }
.label .num { color: var(--accent); }

.heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(24px, 5.4vw, 40px);
  line-height: 1.55;
  letter-spacing: 0.03em;
}
.heading em {
  font-style: normal;
  background: linear-gradient(transparent 64%, rgba(200, 160, 75, 0.32) 64%);
  padding: 0 2px;
}
.lead { margin-top: 22px; color: var(--gray-500); max-width: 38em; }
.section--dark .lead { color: var(--gray-300); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 14px 34px;
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(5px); }

.btn--accent { background: var(--accent); color: var(--black); }
.btn--accent:hover { background: var(--accent-deep); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.section--dark .btn--ghost, .hero .btn--ghost, .cta-band .btn--ghost { color: var(--white); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .cta-band .btn--ghost:hover { background: var(--white); color: var(--black); }

/* small inline text-cta placed at end of sections */
.text-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 34px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
  transition: color 0.3s ease, gap 0.3s var(--ease-out);
}
.text-cta:hover { color: var(--accent-deep); gap: 16px; }
.section--dark .text-cta { color: var(--white); }
.section--dark .text-cta:hover { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-solid { background: rgba(250, 250, 248, 0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid .brand, .site-header.is-solid .menu-btn { color: var(--ink); }
body.menu-open .site-header { background: transparent; backdrop-filter: none; box-shadow: none; }
body.menu-open .site-header .brand, body.menu-open .site-header .menu-btn { color: var(--white); }
.header-inner {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--font-en); font-weight: 550; font-size: 17px; letter-spacing: 0.06em;
  color: var(--white); display: flex; align-items: baseline; gap: 6px;
  transition: color 0.4s ease;
}
.brand .dot { color: var(--accent); }
.brand small { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.3em; color: var(--gray-500); }
body.page-light .brand, body.page-light .menu-btn { color: var(--ink); }

.menu-btn {
  position: relative; z-index: 110;
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  width: 48px; height: 48px; padding: 12px;
  color: var(--white);
}
.menu-btn span { display: block; height: 1px; background: currentColor; transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.menu-btn.is-open { color: var(--white); }
.menu-btn.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* fullscreen nav */
.gnav {
  position: fixed; inset: 0; z-index: 105;
  background: var(--black);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--gutter) 48px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.gnav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.gnav-list { display: flex; flex-direction: column; gap: 4px; max-width: var(--max); width: 100%; margin: 0 auto; }
.gnav-list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 9px 0;
  font-family: var(--font-serif); font-size: 22px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--white);
  opacity: 0; transform: translateY(18px);
  transition: color 0.3s ease;
}
.gnav-list a:hover { color: var(--accent); }
.gnav-list a .en { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; color: var(--gray-500); text-transform: uppercase; }
.gnav.is-open .gnav-list a { animation: navIn 0.7s var(--ease-out) forwards; }
.gnav.is-open .gnav-list li:nth-child(1) a { animation-delay: 0.05s; }
.gnav.is-open .gnav-list li:nth-child(2) a { animation-delay: 0.1s; }
.gnav.is-open .gnav-list li:nth-child(3) a { animation-delay: 0.15s; }
.gnav.is-open .gnav-list li:nth-child(4) a { animation-delay: 0.2s; }
.gnav.is-open .gnav-list li:nth-child(5) a { animation-delay: 0.25s; }
.gnav.is-open .gnav-list li:nth-child(6) a { animation-delay: 0.3s; }
.gnav.is-open .gnav-list li:nth-child(7) a { animation-delay: 0.35s; }
.gnav.is-open .gnav-list li:nth-child(8) a { animation-delay: 0.4s; }
.gnav.is-open .gnav-list li:nth-child(9) a { animation-delay: 0.45s; }
.gnav.is-open .gnav-list li:nth-child(10) a { animation-delay: 0.5s; }
@keyframes navIn { to { opacity: 1; transform: translateY(0); } }
.gnav-cta { max-width: var(--max); width: 100%; margin: 30px auto 0; }
.gnav-cta .btn { width: 100%; }

/* ---------- hero (top) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--black); color: var(--white);
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 110px;
}
.hero::before { /* faint grid */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--line-invert) 1px, transparent 1px) 0 0 / 25% 100%,
    linear-gradient(rgba(250,250,248,0.05) 1px, transparent 1px) 0 0 / 100% 33.3%;
  opacity: 0.35; pointer-events: none;
}
.hero::after { /* noise */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.hero-bg-word {
  position: absolute; right: -2vw; bottom: 4vh; z-index: 0;
  font-family: var(--font-en); font-style: italic; font-weight: 350;
  font-size: clamp(90px, 19vw, 270px); line-height: 0.9; white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(250, 250, 248, 0.13);
  user-select: none; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 30px;
  display: flex; align-items: center; gap: 14px;
}
.hero-label::before { content: ""; width: 42px; height: 1px; background: var(--accent); }
.hero-title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(27px, 7.4vw, 72px);
  line-height: 1.42; letter-spacing: 0.04em;
}
.hero-title .thin { font-weight: 500; color: var(--gray-300); }
.hero-copy { margin-top: 28px; max-width: 34em; color: var(--gray-300); font-size: 14px; }
.hero-actions { margin-top: 44px; display: flex; flex-direction: column; gap: 14px; }
.hero-scroll {
  position: absolute; left: var(--gutter); bottom: 26px; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.3em; color: var(--gray-500);
}
.hero-scroll::after { content: ""; width: 56px; height: 1px; background: var(--gray-500); animation: scrollHint 2.2s ease-in-out infinite; transform-origin: left; }
@keyframes scrollHint { 0% { transform: scaleX(0); } 55% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* marquee */
.marquee {
  border-top: 1px solid var(--line-invert); border-bottom: 1px solid var(--line-invert);
  background: var(--black); color: var(--gray-300);
  overflow: hidden; padding: 14px 0; white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 0; animation: marquee 28s linear infinite; }
.marquee span {
  font-family: var(--font-en); font-style: italic; font-size: 15px; letter-spacing: 0.14em;
  padding: 0 28px; flex: none;
}
.marquee span::after { content: "・"; color: var(--accent); margin-left: 56px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- issue cards ---------- */
.issue-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 46px; }
.issue-card { background: var(--white); padding: 32px 26px; position: relative; }
.issue-card .num {
  font-family: var(--font-en); font-style: italic; font-weight: 350; font-size: 38px;
  color: transparent; -webkit-text-stroke: 1px var(--gray-300);
  line-height: 1; margin-bottom: 18px;
}
.issue-card h3 { font-family: var(--font-serif); font-size: 17px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.7; }
.issue-card p { margin-top: 12px; font-size: 13px; color: var(--gray-500); }

/* ---------- strengths ---------- */
.strength-list { margin-top: 14px; }
.strength-item {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 34px 0; border-bottom: 1px solid var(--line-invert);
}
.strength-item .num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.2em; padding-top: 8px; }
.strength-item h3 { font-family: var(--font-serif); font-size: 17px; font-weight: 600; line-height: 1.7; letter-spacing: 0.03em; }
.strength-item p { margin-top: 12px; font-size: 13px; color: var(--gray-300); max-width: 44em; }

/* ---------- services grid ---------- */
.service-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 46px; }
.service-card {
  background: var(--white); padding: 38px 28px 34px; position: relative; overflow: hidden;
  transition: background-color 0.4s ease;
}
.service-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.service-card:hover { background: var(--paper); }
.service-card:hover::after { transform: scaleX(1); }
.service-card .en {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent-deep); display: block; margin-bottom: 16px;
}
.service-card h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 600; letter-spacing: 0.05em; }
.service-card p { margin-top: 14px; font-size: 13px; color: var(--gray-500); }
.service-card .more {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--ink);
}
.service-card .more .arrow { transition: transform 0.35s var(--ease-out); }
.service-card:hover .more .arrow { transform: translateX(5px); }

/* ---------- practice (自社運営) ---------- */
.practice { overflow: hidden; }
.practice-quote {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(20px, 4.6vw, 34px); line-height: 1.9; letter-spacing: 0.04em;
  margin-top: 8px;
}
.practice-quote strong { color: var(--accent); font-weight: 600; }
.practice-points { margin-top: 40px; display: grid; gap: 26px; }
.practice-point { border-left: 1px solid var(--accent); padding-left: 20px; }
.practice-point h3 { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; }
.practice-point p { margin-top: 8px; font-size: 13px; color: var(--gray-300); }

/* ---------- flow ---------- */
.flow-list { margin-top: 46px; counter-reset: flow; }
.flow-item {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.flow-item:last-child { border-bottom: 1px solid var(--line); }
.flow-item .step {
  font-family: var(--font-en); font-style: italic; font-weight: 350; font-size: 30px;
  color: transparent; -webkit-text-stroke: 1px var(--accent-deep); line-height: 1.2;
}
.flow-item h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 600; letter-spacing: 0.04em; }
.flow-item h3 .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--accent-deep); margin-left: 12px; }
.flow-item p { margin-top: 10px; font-size: 13px; color: var(--gray-500); max-width: 46em; }

/* ---------- works / cases ---------- */
.case-grid { display: grid; gap: 32px; margin-top: 46px; }
.case-card { border: 1px solid var(--line-invert); padding: 30px 26px 34px; transition: border-color 0.4s ease; }
.case-card:hover { border-color: var(--accent); }
.case-card .cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; color: var(--accent); text-transform: uppercase; }
.case-card h3 { margin-top: 16px; font-family: var(--font-serif); font-size: 19px; font-weight: 600; line-height: 1.7; }
.case-card p { margin-top: 12px; font-size: 13px; color: var(--gray-300); }
.case-metrics { margin-top: 22px; display: flex; gap: 28px; flex-wrap: wrap; }
.case-metrics dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; color: var(--gray-500); text-transform: uppercase; }
.case-metrics dd { font-family: var(--font-en); font-weight: 550; font-size: 26px; color: var(--white); line-height: 1.3; }
.case-metrics dd small { font-size: 13px; }
.section:not(.section--dark) .case-card { border-color: var(--line); }
.section:not(.section--dark) .case-card:hover { border-color: var(--accent-deep); }
.section:not(.section--dark) .case-metrics dd { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 42px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid; grid-template-columns: 28px 1fr 28px; align-items: baseline; gap: 14px;
  padding: 24px 0;
  font-weight: 700; font-size: 14px; letter-spacing: 0.04em; line-height: 1.8;
}
.faq-item summary .q { font-family: var(--font-en); font-style: italic; color: var(--accent-deep); font-size: 17px; }
.faq-item summary .toggle { position: relative; width: 14px; height: 14px; justify-self: end; align-self: center; }
.faq-item summary .toggle::before, .faq-item summary .toggle::after {
  content: ""; position: absolute; inset: 50% auto auto 0; width: 14px; height: 1px;
  background: var(--ink); transition: transform 0.4s var(--ease-out);
}
.faq-item summary .toggle::after { transform: rotate(90deg); }
.faq-item[open] summary .toggle::after { transform: rotate(0); }
.faq-item .a {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  padding: 0 0 26px; font-size: 13px; color: var(--gray-500);
}
.faq-item .a::before { content: "A."; font-family: var(--font-en); font-style: italic; color: var(--gray-300); font-size: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--black); color: var(--white);
  padding: 96px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: "Contact"; position: absolute; right: -1vw; top: -10px;
  font-family: var(--font-en); font-style: italic; font-weight: 350;
  font-size: clamp(80px, 16vw, 200px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(250,250,248,0.1);
  pointer-events: none;
}
.cta-band .heading { font-size: clamp(24px, 5vw, 38px); }
.cta-band .lead { color: var(--gray-300); }
.cta-actions { margin-top: 42px; display: flex; flex-direction: column; gap: 14px; }
.cta-note { margin-top: 18px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--gray-500); }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: var(--gray-300); border-top: 1px solid var(--line-invert); padding: 64px 0 110px; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand .brand { font-size: 20px; color: var(--white); }
.footer-brand p { margin-top: 16px; font-size: 12px; color: var(--gray-500); max-width: 30em; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.footer-nav a { font-size: 12px; padding: 6px 0; display: inline-block; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line-invert);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; color: var(--gray-500);
}

/* mobile fixed CTA bar */
.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(14, 14, 16, 0.94); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-invert);
  transform: translateY(100%); transition: transform 0.5s var(--ease-out);
}
.fixed-cta.is-show { transform: translateY(0); }
.fixed-cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 58px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--white);
}
.fixed-cta a.primary { background: var(--accent); color: var(--black); }

/* ---------- sub pages ---------- */
.page-hero {
  background: var(--black); color: var(--white);
  padding: calc(var(--header-h) + 72px) 0 70px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: attr(data-en); position: absolute; right: -1vw; bottom: -16px;
  font-family: var(--font-en); font-style: italic; font-weight: 350;
  font-size: clamp(64px, 13vw, 160px); line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(250,250,248,0.12);
  pointer-events: none;
}
.page-hero .label { color: var(--gray-300); margin-bottom: 18px; }
.page-hero h1 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(28px, 6.4vw, 48px); line-height: 1.5; letter-spacing: 0.05em;
}
.page-hero .lead { color: var(--gray-300); }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 34px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; color: var(--gray-500);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--gray-700); }

/* service detail */
.detail-block { margin-top: 46px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.detail-item { background: var(--white); padding: 32px 26px; }
.detail-item .en { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; color: var(--accent-deep); text-transform: uppercase; }
.detail-item h3 { margin-top: 14px; font-family: var(--font-serif); font-size: 18px; font-weight: 600; }
.detail-item p { margin-top: 10px; font-size: 13px; color: var(--gray-500); }

.price-table { margin-top: 46px; border: 1px solid var(--line); }
.price-row { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row > div { padding: 22px 24px; }
.price-row .plan { background: var(--paper); font-family: var(--font-serif); font-weight: 600; font-size: 16px; }
.price-row .plan small { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--accent-deep); margin-top: 6px; }
.price-row .price { font-family: var(--font-en); font-weight: 550; font-size: 24px; }
.price-row .price small { font-size: 12px; font-family: var(--font-sans); color: var(--gray-500); }
.price-row .desc { font-size: 13px; color: var(--gray-500); padding-top: 0; }
.price-note { margin-top: 16px; font-size: 11px; color: var(--gray-500); }

/* ---------- works page ---------- */
.works-note { margin-top: 16px; font-size: 11px; color: var(--gray-500); }

/* before / after cards */
.ba-case { margin-bottom: 56px; }
.ba-case:last-child { margin-bottom: 0; }
.ba-hotel { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--accent); margin-bottom: 6px; }
.ba-hotel span { color: var(--gray-500); }
.ba-title { font-family: var(--font-serif); font-size: clamp(18px,2.5vw,23px); color: var(--white); margin-bottom: 20px; font-weight: 600; line-height: 1.6; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-invert); }
.ba-before, .ba-after { padding: clamp(22px,4vw,36px); }
.ba-before { border-right: 1px solid var(--line-invert); }
.ba-after { background: rgba(255,255,255,.03); }
.ba-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; display: inline-block; padding: 3px 10px; margin-bottom: 18px; }
.ba-before .ba-tag { border: 1px solid var(--gray-700); color: var(--gray-500); }
.ba-after .ba-tag { border: 1px solid var(--accent); color: var(--accent); }
.ba-before ul, .ba-after ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ba-before li, .ba-after li { font-size: 13px; line-height: 1.8; padding-left: 18px; position: relative; color: var(--gray-300); }
.ba-before li::before { content: "×"; position: absolute; left: 0; color: var(--gray-700); top: 1px; font-size: 11px; }
.ba-after li::before { content: "→"; position: absolute; left: 0; color: var(--accent); top: 1px; font-size: 11px; }
.ba-phone { width: min(300px, 86vw); margin: 0 auto 12px; }
.ba-phone .phone-screen { height: min(560px, 62vh); }
.ba-live { text-align: center; margin-bottom: 26px; font-size: 11px; }
.ba-live a { color: var(--gray-500); text-decoration: underline; text-underline-offset: 3px; }
.ba-after .ba-live a { color: var(--accent); }
@media (max-width: 640px) {
  .ba-grid {
    display: grid;
    grid-template-columns: 100% 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: none;
    gap: 0;
  }
  .ba-grid::-webkit-scrollbar { display: none; }
  .ba-before, .ba-after {
    scroll-snap-align: start;
    border: 1px solid var(--line-invert);
    min-width: 0;
  }
  .ba-before { border-right: none; }
  .ba-after { border-left: none; background: rgba(255,255,255,.03); }
  .ba-case::after {
    content: "← BEFORE  ╱  AFTER →  スワイプで切り替え";
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--gray-500);
    margin-top: 10px;
  }
}

/* ---------- column ---------- */
.article-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 46px; }
.article-card { background: var(--white); padding: 30px 26px; transition: background-color 0.35s ease; }
.article-card:hover { background: var(--paper); }
.article-card time { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--gray-500); }
.article-card .cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--accent-deep); margin-left: 14px; }
.article-card h3 { margin-top: 14px; font-family: var(--font-serif); font-size: 17px; font-weight: 600; line-height: 1.8; }
.article-card p { margin-top: 10px; font-size: 13px; color: var(--gray-500); }

/* ---------- company ---------- */
.company-table { margin-top: 46px; border-top: 1px solid var(--line); }
.company-table > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.company-table dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--gray-500); padding-top: 3px; }
.company-table dd { font-size: 14px; }
.message-body { margin-top: 30px; display: grid; gap: 22px; font-size: 14px; color: var(--gray-700); max-width: 42em; }
.section--dark .message-body { color: var(--gray-300); }
.message-sign { margin-top: 10px; font-family: var(--font-serif); font-size: 15px; }
.message-sign small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--gray-500); display: block; margin-bottom: 8px; }

/* ---------- contact ---------- */
.contact-form { margin-top: 46px; display: grid; gap: 28px; max-width: 680px; }
.form-field label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 12px; }
.form-field .req { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--accent-deep); border: 1px solid var(--accent-deep); padding: 2px 8px; }
.form-field .opt { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--gray-500); border: 1px solid var(--line); padding: 2px 8px; }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"], .form-field textarea {
  width: 100%; padding: 16px; font: inherit; font-size: 15px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0;
  transition: border-color 0.3s ease;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent-deep); }
.form-field textarea { min-height: 160px; resize: vertical; }
.check-group { display: grid; gap: 10px; }
.check-group label { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 400; margin: 0; cursor: pointer; }
.check-group input { width: 18px; height: 18px; accent-color: var(--accent-deep); }
.form-consent { font-size: 12px; color: var(--gray-500); }
.form-consent a { text-decoration: underline; }
.contact-alt { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--gray-500); }
.contact-alt strong { font-family: var(--font-en); font-size: 20px; color: var(--ink); letter-spacing: 0.06em; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Tablet ≥ 760px
============================================================ */
@media (min-width: 760px) {
  body { font-size: 16px; }
  :root { --gutter: 40px; --header-h: 76px; }
  .section { padding: 120px 0; }

  .hero-actions { flex-direction: row; gap: 18px; }
  .issue-list { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; overflow-x: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .compare-grid > :last-child { grid-column: 1 / -1; }
  .compare-item { flex: none; }
  .swipe-hint { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-points { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { flex-direction: row; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .footer-nav { grid-template-columns: 1fr 1fr 1fr; }
  .fixed-cta { display: none; }
  .site-footer { padding-bottom: 64px; }
  .detail-block { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .price-row { grid-template-columns: 220px 200px 1fr; align-items: center; }
  .price-row .desc { padding-top: 22px; }
  .company-table > div { grid-template-columns: 200px 1fr; padding: 24px 8px; }
  .flow-item { grid-template-columns: 90px 1fr; }
  .strength-item { grid-template-columns: 90px 1fr; }
  .strength-item h3 { font-size: 20px; }
  .gnav-list a { font-size: 30px; }
}

/* ============================================================
   NIGHT SHIFT concept — hotel-clock timestamps / shift motion
============================================================ */

/* section timestamp (hotel 24h rhythm) */
.timestamp {
  position: absolute; top: 86px; right: var(--gutter); z-index: 1;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent-deep);
}
.timestamp::before {
  content: ""; width: 7px; height: 7px;
  border: 1px solid currentColor; border-radius: 50%;
}
.section--dark .timestamp, .cta-band .timestamp { color: var(--accent); }
.cta-band .timestamp { top: 98px; }

/* hero: clock + narrative note + vertical brush line */
.hero-time {
  position: absolute; right: var(--gutter); bottom: 26px; z-index: 1;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.hero-time::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.hero-note {
  margin-top: 30px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--gray-500);
}
.hero-vertical {
  display: none;
  position: absolute; right: calc(var(--gutter) + 8px); top: 16%; z-index: 1;
  writing-mode: vertical-rl;
  font-family: var(--font-serif); font-weight: 500; font-size: 15px;
  letter-spacing: 0.42em; color: var(--gray-300);
}
.hero-vertical::before {
  content: ""; display: block; width: 1px; height: 44px;
  background: var(--accent); margin: 0 auto 22px;
}

/* before / after comparison (live demos in phone frames) */
.compare-grid {
  margin-top: 50px;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 18px;
  padding-bottom: 14px;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  scrollbar-width: none;
}
.compare-grid::-webkit-scrollbar { display: none; }
.compare-item { margin: 0; flex: 0 0 82vw; scroll-snap-align: start; }
.swipe-hint {
  display: block; text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--gray-500); margin-top: 14px;
}
.compare-tag {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
}
.compare-tag--before { color: var(--gray-500); }
.compare-tag--before::before { content: "×"; color: #a05a4a; font-size: 13px; }
.compare-tag--mid { color: var(--gray-700); }
.compare-tag--mid::before { content: "△"; color: #b08a3e; font-size: 11px; }
.compare-tag--after { color: var(--accent-deep); }
.compare-tag--after::before { content: "✓"; font-size: 12px; }
.phone {
  width: min(340px, 92vw); margin: 0 auto;
  background: #141416; border-radius: 44px; padding: 10px;
  border: 1px solid rgba(20, 20, 22, 0.35);
  box-shadow: 0 24px 60px rgba(14, 14, 16, 0.28);
  position: relative;
}
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 6px; border-radius: 3px; background: rgba(250, 250, 248, 0.14);
}
.phone-screen {
  height: min(680px, 76vh); border-radius: 34px; overflow: hidden; background: #fff;
}
.phone-screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.compare-notes {
  max-width: 340px; margin: 24px auto 0;
  display: grid; gap: 9px; font-size: 12px; color: var(--gray-500);
}
.compare-notes li { display: flex; gap: 10px; line-height: 1.7; }
.compare-notes li::before { content: "×"; color: #a05a4a; font-family: var(--font-mono); flex: none; }
.compare-item--mid .compare-notes li::before { content: "△"; color: #b08a3e; }
.compare-item--mid .compare-notes li:first-child::before { content: "✓"; color: var(--gray-300); }
.compare-item--after .compare-notes li::before { content: "✓"; color: var(--accent-deep); }
.compare-note-foot { margin-top: 34px; font-size: 11px; color: var(--gray-500); text-align: center; }

/* diagnosis sample report (contact page) */
.report-card {
  max-width: 580px; margin-top: 46px;
  background: #fff; border: 1px solid var(--line);
  padding: 30px 26px 26px;
  box-shadow: 0 30px 60px rgba(14, 14, 16, 0.1);
  position: relative;
}
.report-card::before {
  content: "SAMPLE"; position: absolute; top: 18px; right: -34px;
  transform: rotate(35deg);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.34em;
  color: #a05a4a; border: 1px solid #a05a4a; padding: 3px 36px;
  opacity: 0.65; pointer-events: none;
}
.report-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  border-bottom: 2px solid var(--ink); padding-bottom: 14px;
}
.report-head h3 { font-family: var(--font-serif); font-size: 16px; font-weight: 600; }
.report-head .meta { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; color: var(--gray-500); }
.report-score { display: flex; align-items: baseline; gap: 10px; padding: 22px 0 6px; }
.report-score .total {
  font-family: var(--font-en); font-style: italic; font-weight: 550;
  font-size: 56px; line-height: 1; color: var(--ink);
}
.report-score .of { font-family: var(--font-mono); font-size: 11px; color: var(--gray-500); letter-spacing: 0.14em; }
.report-score .judge { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: #a05a4a; border: 1px solid #a05a4a; padding: 4px 12px; }
.report-bars { display: grid; gap: 12px; padding: 14px 0 6px; }
.report-bar { display: grid; grid-template-columns: 58px 1fr 52px; align-items: center; gap: 12px; }
.report-bar .name { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--gray-700); }
.report-bar .track { display: block; height: 6px; background: var(--paper); overflow: hidden; }
.report-bar .fill { display: block; height: 100%; background: var(--accent); }
.report-bar .val { font-family: var(--font-en); font-size: 14px; text-align: right; color: var(--ink); }
.report-bar .val small { font-size: 10px; color: var(--gray-500); }
.report-todo { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.report-todo h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--gray-500); margin-bottom: 10px; }
.report-todo li { display: flex; gap: 10px; align-items: baseline; font-size: 12px; padding: 5px 0; }
.report-todo li .pri {
  flex: none; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em;
  padding: 2px 8px; border: 1px solid var(--accent-deep); color: var(--accent-deep);
}
.report-todo li .pri.high { background: var(--accent); border-color: var(--accent); color: var(--black); }
.report-foot { margin-top: 18px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.18em; color: var(--gray-300); }
.report-note { margin-top: 18px; font-size: 11px; color: var(--gray-500); }

/* work samples (works page) */
.case-thumb {
  position: relative; aspect-ratio: 16 / 10; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); overflow: hidden;
}
.case-thumb .t-name {
  font-family: var(--font-en); font-style: italic; font-weight: 350;
  font-size: 20px; letter-spacing: 0.22em;
}
.case-thumb .t-tag {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.2em;
  text-transform: uppercase; opacity: 0.65;
}
.thumb-night { background: radial-gradient(ellipse 90% 70% at 50% 110%, rgba(200, 160, 75, 0.35), transparent 62%), #121214; color: #f5f2ea; }
.thumb-retro { background: repeating-linear-gradient(45deg, #e7eed9 0 14px, #dde6cb 14px 28px); color: #5a6b3a; }
.thumb-retro .t-name { font-family: var(--font-sans); font-style: normal; font-weight: 700; font-size: 15px; letter-spacing: 0.1em; }
.thumb-onsen { background: linear-gradient(165deg, #efece4 0%, #ddd6c8 100%); color: #6b6354; }
.thumb-onsen .t-name { font-family: var(--font-serif); font-style: normal; letter-spacing: 0.34em; font-size: 17px; }

/* stat band (night audit numbers) */
.stat-band {
  margin-top: 60px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 24px;
}
.stat { display: flex; flex-direction: column-reverse; gap: 10px; border-top: 1px solid var(--line-invert); padding-top: 18px; }
.stat dd {
  font-family: var(--font-en); font-weight: 550; font-style: italic;
  font-size: clamp(34px, 7vw, 54px); line-height: 1; color: var(--white);
}
.stat dd small { font-size: 0.45em; color: var(--accent); font-style: normal; letter-spacing: 0.08em; }
.stat dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--gray-500); text-transform: uppercase; }

/* ============================================================
   Desktop ≥ 1080px
============================================================ */
@media (min-width: 1080px) {
  .section-split { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: start; }
  .section-split .sticky-head { position: sticky; top: 120px; }
  .issue-list { grid-template-columns: repeat(4, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-block { grid-template-columns: repeat(3, 1fr); }
  .gnav-list { flex-direction: row; flex-wrap: wrap; gap: 10px 48px; }
  .gnav-list a { font-size: 24px; }

  .compare-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
  .compare-grid > :last-child { grid-column: auto; }

  /* NIGHT SHIFT: staggered grids + vertical line */
  .hero-vertical { display: block; }
  .service-grid { gap: 36px; background: none; border: 0; }
  .service-card { border: 1px solid var(--line); }
  .service-card:nth-child(even) { margin-top: 52px; }
  .case-grid > :nth-child(3n + 2) { margin-top: 44px; }
  .stat-band { grid-template-columns: repeat(4, 1fr); }
  .timestamp { top: 122px; }
  .cta-band .timestamp { top: 98px; }
}

/* ============================================================
   NIGHT SHIFT: "shift" hover — element slips, gold trace remains
   (placed last to win over .reveal transform rules)
============================================================ */
.service-card {
  transition: opacity 0.9s var(--ease-out), transform 0.55s var(--ease-out),
    background-color 0.4s ease, box-shadow 0.55s var(--ease-out);
}
.service-card:hover {
  transform: translate(-6px, -6px);
  box-shadow: 6px 6px 0 var(--accent);
}
.btn--accent:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--accent-deep); }
.btn { transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .service-card:hover, .btn--accent:hover { transform: none; box-shadow: none; }
}
