/* ============================================================
   CROSS YARD — index.css (TOP page)
   ============================================================ */

/* ---- Hero ------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--black);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-slide.is-active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
}
.hero-slide.is-active img {
  animation: kenburns 7500ms ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.35) 60%,
    rgba(0,0,0,0.6) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 60px 80px;
  max-width: var(--content-w);
  margin: 0 auto;
  left: 0;
  right: 0;
}

.hero-catch {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-sub {
  font-family: var(--font-ja);
  font-size: 0.8rem;
  font-weight: 200;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-cta .btn {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.hero-cta .btn:hover {
  background: var(--white);
  color: var(--black);
}
.hero-cta .btn-line {
  min-width: 180px;
  padding: 14px 32px;
  font-size: 0.8rem;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 60px;
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.4);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { opacity: 0.4; transform: scaleY(0.5); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1);   }
}

.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 60px;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.35);
  transition: background var(--transition), width var(--transition);
}
.hero-dot.is-active {
  width: 48px;
  background: var(--white);
}

/* ---- Concept Section -------------------------------------- */
.concept-section {
  padding: var(--section-pad);
}
.concept-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: var(--content-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.concept-text .en-label { color: var(--text-light); display: block; margin-bottom: 16px; }
.concept-text .ja-heading { margin-bottom: 24px; }
.concept-text .ja-body { margin-bottom: 36px; }
.concept-img { position: relative; }
.concept-img img { width: 100%; height: 560px; object-fit: cover; }
.concept-img::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 1px solid var(--gray-light);
  z-index: -1;
}

/* ---- Works Section ---------------------------------------- */
.works-section {
  padding: var(--section-pad);
  background: var(--gray-pale);
}
.works-section .section-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: var(--content-pad);
}
.works-grid-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--grid-gap);
  margin-bottom: var(--grid-gap);
}
.works-grid-top .works-card:first-child {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}
.works-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.works-card {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.works-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.works-grid-top .works-card:first-child img { height: 100%; }
.works-card:hover img { transform: scale(1.04); }
.works-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.6);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.works-card:hover .works-card-overlay { opacity: 1; }
.works-card-cat {
  font-family: var(--font-en);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.works-card-title {
  font-family: var(--font-ja);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.5;
}
.works-section-footer {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ---- Service Section -------------------------------------- */
.service-section { padding: var(--section-pad); }
.service-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: var(--content-pad);
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}
.service-card {
  background: var(--gray-pale);
  padding: 48px 36px;
  position: relative;
  transition: background var(--transition);
}
.service-card:hover { background: var(--black); color: var(--white); }
.service-card:hover .service-card-num,
.service-card:hover .service-card-title,
.service-card:hover .service-card-body { color: inherit; }
.service-card-num {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--gray-light);
  line-height: 1;
  margin-bottom: 24px;
  transition: color var(--transition);
}
.service-card-title {
  font-family: var(--font-ja);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 16px;
  transition: color var(--transition);
}
.service-card-body {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 2;
  color: var(--text-mid);
  transition: color var(--transition);
}
.service-card:hover .service-card-body { color: rgba(255,255,255,0.7); }

/* ---- CTA LINE Section ------------------------------------- */
.cta-line-section {
  padding: 100px 0;
  background: var(--black);
}
.cta-line-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--content-pad);
  text-align: center;
}
.cta-line-inner .en-label { color: rgba(255,255,255,0.4); margin-bottom: 20px; display: block; }
.cta-line-inner .ja-heading { color: var(--white); margin-bottom: 16px; }
.cta-line-inner .ja-body { color: rgba(255,255,255,0.55); margin-bottom: 48px; }
.cta-line-btns { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-tel {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: opacity var(--transition);
}
.cta-tel:hover { opacity: 0.6; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .concept-inner { grid-template-columns: 1fr; gap: 48px; }
  .concept-img { order: -1; }
  .concept-img img { height: 400px; }
  .works-grid-top .works-card:first-child { grid-column: 1 / -1; }
  .service-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-content { padding: 0 24px 60px; }
  .hero-scroll { right: 24px; }
  .hero-indicators { left: 24px; bottom: 32px; }
  .works-grid-top,
  .works-grid-bottom { grid-template-columns: 1fr 1fr; }
  .works-grid-top .works-card:first-child { grid-column: 1 / -1; }
  .service-cards { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-catch { font-size: clamp(2rem, 10vw, 3rem); }
  .works-grid-top,
  .works-grid-bottom { grid-template-columns: 1fr; }
}
