/* ============================================================
   IT映像サービス — stylesheet
   editorial minimalism / stone palette + REC-orange accent
   ============================================================ */

:root {
  /* palette */
  --stone-50:  #f7f5f1;
  --stone-100: #efece6;
  --stone-200: #e3ded5;
  --stone-300: #cfc8bb;
  --ink:       #17150f;
  --ink-soft:  #4a463d;
  --ink-mute:  #8a8478;
  --paper:     #faf8f4;
  --accent:    #e2521f;   /* REC / film orange */
  --accent-dk: #b83e12;

  /* type */
  --sans: "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --serif-en: "Instrument Serif", Georgia, serif;

  /* layout */
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

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

/* ---------- helpers ---------- */
.pc-only { display: inline; }
@media (max-width: 720px) { .pc-only { display: none; } }

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--pad);
}

.eyebrow, .section-label {
  font-family: var(--serif-en);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  font-style: italic;
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}
.section-label .num {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: 0.15em 0.7em;
}

.section-head { max-width: 720px; margin-bottom: clamp(48px, 7vw, 90px); }
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.section-desc { margin-top: 1.4rem; color: var(--ink-soft); font-size: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.95em 1.9em;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost.dark { margin-top: 1.6rem; }
.btn-lg { padding: 1.1em 2.4em; font-size: 1rem; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}
.site-header.scrolled {
  background: rgba(250, 248, 244, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(23, 21, 15, 0.07);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--paper);
  background: var(--ink);
  width: 2.1em; height: 2.1em;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background 0.4s var(--ease);
}
.brand:hover .brand-mark { background: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-ja { font-size: 0.98rem; font-weight: 500; letter-spacing: 0.04em; }
.brand-en { font-size: 0.62rem; letter-spacing: 0.22em; color: var(--ink-mute); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.3s;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav a:not(.nav-cta):hover { color: var(--accent); }
.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 0.6em 1.3em;
  border-radius: 100px;
  transition: background 0.4s var(--ease);
}
.nav-cta:hover { background: var(--accent); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 26px; height: 2px; background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { transform: translateY(-0px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 90;
  background: var(--paper);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.4rem; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.9rem;
  display: flex; align-items: baseline; gap: 1rem;
}
.mobile-menu .idx {
  font-family: var(--serif-en); font-style: italic;
  font-size: 0.9rem; color: var(--accent);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad) 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 78% 8%, rgba(226, 82, 31, 0.10), transparent 60%),
    radial-gradient(900px 700px at 10% 90%, rgba(23, 21, 15, 0.05), transparent 55%),
    linear-gradient(180deg, var(--stone-50), var(--paper));
  z-index: -2;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(23,21,15,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23,21,15,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
}
.hero-inner { max-width: var(--wrap); margin: 0 auto; width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  margin-bottom: 1.8rem;
  font-style: italic;
}
.rec-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(226, 82, 31, 0.5);
  animation: rec 2s infinite;
}
@keyframes rec {
  0% { box-shadow: 0 0 0 0 rgba(226,82,31,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(226,82,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(226,82,31,0); }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.4vw, 4.6rem);
  line-height: 1.3;
  letter-spacing: 0.005em;
}
.hero-title .line { display: block; }
.accent-serif { color: var(--accent); }

.hero-lead {
  margin-top: 2rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 2;
}
.hero-actions { margin-top: 2.8rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.1rem 0;
  border-top: 1px solid var(--stone-200);
  overflow: hidden;
  background: rgba(250, 248, 244, 0.6);
}
.marquee-track {
  display: flex; align-items: center; gap: 2.5rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--serif-en); font-style: italic;
  font-size: 1.05rem; letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.marquee-track .sep { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Services
   ============================================================ */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--stone-200);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--paper);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  transition: background 0.5s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.service-card:hover { background: var(--stone-50); }
.service-card:hover::before { transform: scaleY(1); transform-origin: top; }
.service-index {
  font-family: var(--serif-en); font-style: italic;
  font-size: 1.1rem; color: var(--ink-mute);
  position: absolute; top: clamp(28px,4vw,48px); right: clamp(28px,4vw,48px);
}
.service-icon { color: var(--accent); width: 48px; height: 48px; margin-bottom: 1.8rem; }
.service-icon svg { width: 100%; height: 100%; }
.service-name {
  font-family: var(--serif);
  font-size: 1.55rem; font-weight: 600;
  margin-bottom: 0.9rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.service-name-en {
  font-family: var(--serif-en); font-style: italic;
  font-size: 0.85rem; color: var(--ink-mute); letter-spacing: 0.06em;
}
.service-text { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 1.6rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-tags li {
  font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 0.35em 0.9em;
  border: 1px solid var(--stone-300);
  border-radius: 100px;
  color: var(--ink-soft);
}

/* ============================================================
   Works
   ============================================================ */
.works {
  max-width: none;
  background: var(--stone-100);
  padding-left: 0;
  padding-right: 0;
}
.works-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 72px) clamp(40px, 5vw, 80px);
}
.work-item { display: block; }
.work-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: var(--ink);
  padding: 0.45em 1em;
  margin-bottom: 1.4rem;
}
.work-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.work-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.work-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.work-tags li {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: #fff;
  padding: 0.45em 1em;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(23, 21, 15, 0.05);
}

/* ============================================================
   About
   ============================================================ */
.about { }
.about-grid {
  max-width: 860px;
}
.about-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.45;
  margin: 1.2rem 0 1.8rem;
}
.about-text { color: var(--ink-soft); margin-bottom: 1.2rem; font-size: 1rem; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--stone-200);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--paper);
  padding: clamp(24px, 3.5vw, 40px) clamp(20px,3vw,32px);
  text-align: left;
}
.stat-num {
  font-family: var(--serif-en);
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1; color: var(--ink);
}
.stat-unit {
  font-family: var(--serif-en);
  font-size: 1.6rem; color: var(--accent); margin-left: 0.1em;
}
.stat-label { display: block; margin-top: 0.7rem; font-size: 0.85rem; color: var(--ink-mute); }

/* ============================================================
   Flow
   ============================================================ */
.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
  counter-reset: flow;
}
.flow-step { position: relative; padding-top: 2.2rem; }
.flow-step::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--stone-300);
}
.flow-step::after {
  content: "";
  position: absolute; top: -3px; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.flow-num {
  font-family: var(--serif-en); font-style: italic;
  font-size: 2.4rem; color: var(--stone-300);
  display: block; margin-bottom: 0.6rem; line-height: 1;
}
.flow-step h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.6rem; }
.flow-step p { font-size: 0.9rem; color: var(--ink-soft); }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  max-width: none;
  background: var(--ink);
  color: var(--stone-100);
  margin-top: clamp(40px, 6vw, 80px);
}
.contact-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) var(--pad);
}
.section-label.light .num { color: var(--accent); }
.section-label.light { color: var(--stone-300); }
.contact-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.35;
  margin-bottom: 1.4rem;
}
.contact-lead { color: var(--stone-300); max-width: 560px; margin-bottom: 3rem; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; letter-spacing: 0.05em; color: var(--stone-300); }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--paper);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 0.85em 1em;
  transition: border-color 0.3s, background 0.3s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.32); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.07);
}
.field select { appearance: none; cursor: pointer; }
.field select option { color: #111; }
.form-foot { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.form-note { font-size: 0.8rem; color: var(--ink-mute); }

.contact-alt {
  margin-top: 2.6rem;
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  font-size: 0.95rem; color: var(--stone-300);
}
.contact-alt a { color: var(--paper); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.contact-alt a:hover { color: var(--accent); }
.contact-alt .dot { color: var(--ink-mute); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--stone-300);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(50px,7vw,80px) var(--pad) 2.4rem;
  display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.6rem; max-width: 340px; }
.footer-brand .brand-mark { width: 2.4em; height: 2.4em; }
.footer-brand .brand-ja { color: var(--paper); font-size: 1.05rem; font-weight: 500; }
.footer-tag { font-size: 0.85rem; color: var(--ink-mute); margin-top: 0.3rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-nav a { font-size: 0.9rem; transition: color 0.3s; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.8rem var(--pad);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--ink-mute);
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rec-dot, .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .flow-list { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .hero {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 92px;
    padding-bottom: 64px;
  }
  .hero-title { font-size: min(1.55rem, 6.2vw); line-height: 1.45; }
  .eyebrow { margin-bottom: 1.2rem; }
  .service-list { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: 1fr; row-gap: 2.6rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}
