@charset "utf-8";
/* CSS Document */




/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-x {
  position: relative;
  height: clamp(1.875rem, 0.208rem + 3.47vw, 2.813rem);
  flex-shrink: 0;
}

.logo-text { 
	line-height: 1; 
	height: clamp(1.875rem, 0.208rem + 3.47vw, 2.813rem);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted2);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  cursor: none;
  transition: background 0.25s, transform 0.2s;
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.nav-cta .arrow { font-size: 14px; transition: transform 0.2s; }
.nav-cta:hover .arrow { transform: translateX(4px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 80px;
  position: relative;
  overflow: hidden;
}

/* ── HERO BG SLIDES ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8,8,8,0.7), rgba(8,8,8,0.38)),
    rgba(0,0,0,0.2);
  z-index: 2;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 1.8s ease,
    transform 6s ease;
}

/* 画像 */
.hero-bg-img:nth-child(1) {
  background-image: url('../img/index/fv02.jpg');
}
.hero-bg-img:nth-child(2) {
  background-image: url('../img/index/fv01.jpg');
}
.hero-bg-img:nth-child(3) {
  background-image: url('../img/index/fv03.jpg');
}

.hero-bg-img.active {
  opacity: 1;
  transform: scale(1);
}


/* Animated grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,16,46,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,16,46,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(80px); }
}

/* Diagonal slash */
.hero-slash {
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 140vh;
  background: linear-gradient(135deg, transparent 45%, rgba(200,16,46,0.055) 45%, rgba(200,16,46,0.055) 55%, transparent 55%);
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-label {
  position: absolute;
  top: 50%;
  right: 48px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-counter {
  position: absolute;
  top: 50%;
  left: 48px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-counter-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.counter-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--red);
  line-height: 1;
}
.counter-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-content {
  max-width: 960px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--red);
}
.eyebrow-text {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 10vw, 128px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 8px;
}
.hero-title .red { color: var(--red); }
.hero-title .outline {
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.3);
  color: transparent;
}

.hero-sub {
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--muted2);
  margin-top: 28px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.hero-btns {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-red {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 16px 36px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  cursor: none;
  transition: background 0.25s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--muted2);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 15px 36px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  cursor: none;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn-ghost:hover { border-color: rgba(200,16,46,0.5); color: #fff; transform: translateY(-2px); }

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-line {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--red);
  animation: scrollSlide 2s ease-in-out infinite;
}
@keyframes scrollSlide {
  0%   { left: -100%; }
  50%  { left: 0; }
  100% { left: 100%; }
}
.scroll-text {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── MARQUEE ── */
.marquee-wrap {
  background: var(--red);
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 18s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}
.marquee-dot {
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── INTRO SECTION ── */
.intro-section {
  padding: 100px 48px;
  background: var(--off-black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,16,46,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,16,46,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.intro-head {
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}

.intro-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
}

.intro-title span {
  color: var(--red);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  position: relative;
  z-index: 1;
}

.intro-card {
  background: var(--black);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.35s;
}

.intro-card:hover {
  background: var(--surface);
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(0.16,1,0.3,1);
}

.intro-card:hover::before {
  transform: scaleX(1);
}

.intro-card-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 28px;
}

.intro-en {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 54px;
  line-height: 1;
  color: rgba(200,16,46,0.9);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.intro-ja {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  line-height: 1.5;
}

.intro-text {
  font-size: 13px;
  line-height: 2;
  color: var(--muted2);
}

@media (max-width: 980px) {

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-title {
    line-height: 1.1;
  }

}

/* ── SERVICES ── */
.services { padding: 100px 48px; background: var(--black); }

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

.service-card {
  background: var(--off-black);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover { background: var(--surface); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 32px;
}

.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 24px;
  position: relative;
}
.service-icon svg { width: 100%; height: 100%; }

.service-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  line-height: 1.4;
}

.service-desc {
  font-size: 13px;
  color: var(--muted2);
  line-height: 2;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.service-card:hover .service-link { opacity: 1; transform: translateY(0); }
.service-link-arrow { transition: transform 0.25s; }
.service-link:hover .service-link-arrow { transform: translateX(4px); }

/* BG number */
.service-bg-num {
  position: absolute;
  right: -10px; bottom: -20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 120px;
  color: rgba(200,16,46,0.04);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s;
}
.service-card:hover .service-bg-num { color: rgba(200,16,46,0.07); }

/* ── WORKS ── */
.works { padding: 100px 48px; background: var(--off-black); }

.works-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
}

.work-item {
  position: relative;
  overflow: hidden;
  background: var(--surface2);
  cursor: none;
}
.work-item:first-child { grid-row: 1 / 3; }
.work-item:first-child .work-inner { aspect-ratio: unset; min-height: 480px; }
.work-item:first-child .work-inner,
.work-item:first-child .work-visual {
  min-height: 480px;
}
.work-inner { aspect-ratio: 16/10; position: relative; }

.work-visual {
  width: 100%; height: 100%;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
	aspect-ratio: 16 / 10;
}

.work-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter:
    brightness(0.65)
    contrast(1.1)
    saturate(0.9);

  transform: scale(1.02);

  transition:
    transform 1.2s cubic-bezier(0.16,1,0.3,1),
    filter .6s;
}

/* Hover */
.work-item:hover .work-image {
  transform: scale(1.08);
  filter:
    brightness(0.90)
    contrast(1.15)
    saturate(1);
}

/* Geometric SVG placeholders for works */
.work-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  opacity: 0.35;
  z-index: 1;
  mix-blend-mode: screen;

  pointer-events: none;
}
.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.2) 50%, transparent 100%);
  transition: background 0.4s;
  z-index: 2;
}
.work-item:hover .work-overlay { background: linear-gradient(to top, rgba(8,8,8,0.9) 0%, rgba(8,8,8,0.4) 60%, rgba(200,16,46,0.05) 100%); }

.work-border {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.4s;
  pointer-events: none;
  z-index: 3;
}
.work-item:hover .work-border { border-color: var(--red); }

.work-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 32px;
  z-index: 4;
}
.work-tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.work-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.work-sub {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 4px;
}

/* ── ABOUT / COMPANY ── */
.about { padding: 100px 48px; background: var(--black); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text-block { padding-top: 8px; }
.about-lead {
  font-size: 15px;
  color: var(--text);
  line-height: 2.2;
  margin-bottom: 40px;
}

.about-table { width: 100%; }
.about-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.about-row:first-child { border-top: 1px solid var(--border); }
.about-key {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 2px;
}
.about-val { color: var(--text); line-height: 1.7; }

/* Right side: philosophy card */
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--red);
}
.about-card-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  line-height: 1.05;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.about-card-tagline .red { color: var(--red); }
.about-card-body {
  font-size: 13px;
  color: var(--muted2);
  line-height: 2.2;
}
.about-card-bg {
  position: absolute;
  bottom: -40px; right: -20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 180px;
  color: rgba(200,16,46,0.04);
  line-height: 1;
  letter-spacing: -0.02em;
  pointer-events: none;
}

/* ── RECRUIT ── */
.recruit {
  background: var(--red);
  padding: 100px 48px;
  position: relative;
  overflow: hidden;
}
.recruit::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.recruit-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.recruit-left {}
.recruit-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.recruit-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 6vw, 80px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 20px;
}
.recruit-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 2;
  max-width: 420px;
}
.btn-white {
  background: #fff;
  color: var(--red);
  border: none;
  padding: 18px 44px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  cursor: none;
  font-weight: 700;
  transition: background 0.25s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.btn-white:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); }

.recruit-bg-text {
  position: absolute;
  right: -20px; bottom: -20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 220px;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.02em;
}

/* ── CONTACT ── */
.contact {
  padding: 100px 48px;
  background: var(--off-black);
  position: relative;
  overflow: hidden;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-left {}
.contact-info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.info-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.info-icon svg { width: 16px; height: 16px; }
.info-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.info-val { font-size: 14px; color: var(--text); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}
.form-input, .form-textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 18px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  transition: border-color 0.25s;
  outline: none;
  resize: none;
}
.form-input:focus, .form-textarea:focus { border-color: rgba(200,16,46,0.5); }
.form-textarea { height: 120px; }

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 56px 48px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer-brand {}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 260px;
}

.footer-col h4 {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.15em; color: var(--muted); }
.footer-address { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }

/* ── DIAGONAL DIVIDER ── */
.diagonal {
  height: 60px;
  background: var(--off-black);
  clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 100%);
  margin-top: -30px;
  position: relative;
  z-index: 1;
}

/* Hover state for links/buttons */
a, button { cursor: none; }

/* CTA strip */
.cta-strip {
  background: var(--black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-strip-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 3.5vw, 48px);
  letter-spacing: 0.04em;
  color: #fff;
}
.cta-strip-text span { color: var(--red); }


/* ============================================================
   RESPONSIVE — SP対応 (max-width: 767px)
   ============================================================ */

@media (max-width: 767px) {

  /* ── カスタムカーソル非表示 ── */
  .cursor,
  .cursor-ring { display: none; }
  body, a, button { cursor: auto; }

  /* ── NAV ── */
  nav {
    padding: 0 20px;
    height: 60px;
  }
  .logo-x,
  .logo-text { height: 32px; }

  /* PCナビリンク・CTAボタン非表示 */
  .nav-links { display: none; }
  .nav-cta   { display: none; }

  /* ハンバーガーボタン */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    z-index: 200;
  }
  .nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* SPドロワーメニュー */
  .nav-drawer {
    display: none;
    position: fixed;
    inset: 60px 0 0 0;
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(16px);
    z-index: 150;
    padding: 40px 28px;
    flex-direction: column;
    gap: 0;
  }
  .nav-drawer.open { display: flex; }
  .nav-drawer a {
    display: block;
    font-size: 24px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.1em;
    color: #fff;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: color 0.2s;
  }
  .nav-drawer a:hover { color: var(--red); }
  .nav-drawer .drawer-cta {
    margin-top: 32px;
    background: var(--red);
    color: #fff;
    text-align: center;
    padding: 16px;
    font-size: 14px;
    letter-spacing: 0.15em;
  }

  /* ── HERO ── */
  .hero {
    min-height: 100svh;
    padding: 0 20px 60px;
    align-items: flex-end;
  }
  .hero-label,
  .hero-counter { display: none; }
  .hero-content { max-width: 100%; }
  .hero-eyebrow { margin-bottom: 20px; }
  .eyebrow-text { font-size: 9px; letter-spacing: 0.18em; }
  .hero-title {
    font-size: clamp(52px, 12vw, 72px);
    line-height: 0.95;
  }
  .hero-sub {
    font-size: 10px;
    letter-spacing: 0.15em;
    margin-top: 20px;
    margin-bottom: 28px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .btn-red,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 12px;
  }
  .scroll-indicator { display: none; }

  /* ── MARQUEE ── */
  .marquee-item {
    font-size: 9px;
    gap: 20px;
    padding: 0 20px;
  }

  /* ── INTRO ── */
  .intro-section { padding: 60px 20px; }
  .intro-head { margin-bottom: 40px; }
  .intro-title { font-size: clamp(34px, 9vw, 52px); line-height: 1.1; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-card { padding: 36px 24px; }
  .intro-en { font-size: 40px; }

  /* ── SERVICES ── */
  .services { padding: 60px 20px; }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 36px;
  }
  .section-header .btn-ghost {
    align-self: auto;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 36px 24px; }
  .service-name { font-size: 16px; }
  /* タッチ端末ではhoverできないので常時表示 */
  .service-link { opacity: 1; transform: none; }

  /* ── WORKS ── */
  .works { padding: 60px 20px; }
  .works-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2px;
  }
  .work-item:first-child { grid-row: auto; }
  .work-item:first-child .work-inner,
  .work-item:first-child .work-visual {
    min-height: unset;
    aspect-ratio: 4 / 3;
  }
  .work-inner  { aspect-ratio: 4 / 3; }
  .work-visual { aspect-ratio: 4 / 3; }

  /* ── RECRUIT ── */
  .recruit { padding: 60px 20px; }
  .recruit-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .recruit-title { font-size: clamp(44px, 12vw, 64px); }
  .recruit-sub { font-size: 13px; }
  .btn-white {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
  .recruit-bg-text { font-size: 120px; }

  /* ── CTA STRIP ── */
  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px;
    gap: 24px;
  }
  .cta-strip-text { font-size: clamp(26px, 7vw, 36px); }
  .cta-strip .btn-red {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  /* ── FOOTER ── */
  footer { padding: 48px 20px 24px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 36px;
    margin-bottom: 20px;
  }
  .logo-x, .logo-text { height: 28px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

} /* end @media 767px */


/* ============================================================
   TABLET  768px ～ 1024px
   ============================================================ */

@media (min-width: 768px) and (max-width: 1024px) {

  nav { padding: 0 32px; }
  .nav-links { gap: 20px; }

  .hero { padding: 0 32px 72px; }
  .hero-counter { left: 20px; }
  .hero-label   { right: 20px; }

  .intro-section { padding: 80px 32px; }
  .intro-grid { grid-template-columns: 1fr; }

  .services { padding: 80px 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-link { opacity: 1; transform: none; }

  .works { padding: 80px 32px; }
  .works-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .work-item:first-child { grid-column: 1 / 3; grid-row: auto; }
  .work-item:first-child .work-inner,
  .work-item:first-child .work-visual {
    min-height: 360px;
    aspect-ratio: 16 / 7;
  }
  .work-inner,
  .work-visual { aspect-ratio: 4 / 3; }

  .recruit { padding: 80px 32px; }
  .recruit-inner { gap: 40px; }
  .recruit-sub { max-width: 320px; }

  .cta-strip { padding: 48px 32px; }

  footer { padding: 48px 32px 24px; }
  .footer-top {
    grid-template-columns: 1fr auto auto;
    gap: 40px;
  }

} 
@media (max-width: 360px) {
    .hero-title {
        font-size: clamp(40px, 10vw, 60px);
        line-height: 0.95;
    }
}
/* end @media tablet */