/* ============================================================
   home.css — トップページ固有スタイル
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 88vh; min-height: 620px;
  color: #fff; overflow: hidden;
  background: #0a1622;
}
.hero-media {
  position: absolute; inset: 0;
  background: #0a1622; /* fallback while video loads */
  contain: layout style paint;
}
/* Layer 1: Video */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
/* Layer 2: Dark overlay (readability) */
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(10, 22, 34, .55) 0%, rgba(10, 22, 34, .35) 40%, rgba(10, 22, 34, .7) 100%);
  pointer-events: none;
}
/* Layer 3: Stripe pattern (uniform across entire hero) */
.hero-media::before {
  content: ""; position: absolute; inset: 0 -220px 0 0; z-index: 3;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(25deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 14px);
  animation: shimmer 14s linear infinite;
  will-change: transform;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { transform: translate3d(0, 0, 0) }
  100% { transform: translate3d(-220px, 0, 0) }
}

/* Layer 4: Text & CTA */
.hero-inner {
  position: relative; z-index: 4;
  height: 100%;
  padding: 0 56px 100px 56px;
  display: flex; align-items: flex-end;
}
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 40px;
}
.hero-vertical {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px; letter-spacing: .4em;
  color: #fff;
  height: 340px;
  align-self: end;
  margin-bottom: 8px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}
.hero-copy {
  align-self: end;
  max-width: 760px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 24px;
}
.hero-eyebrow .bar { width: 36px; height: 1px; background: rgba(255, 255, 255, .5) }
.hero-title-en {
  font-family: var(--en);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 124px);
  line-height: .92;
  letter-spacing: .005em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.hero-title-en em {
  font-style: normal; font-weight: 300;
  color: rgba(255, 255, 255, .65);
  display: block;
}
/* Japanese variant (index-jp.html) */
.hero-title-en.hero-title-jp {
  font-family: var(--serif);
  font-size: clamp(48px, 6.5vw, 108px);
  letter-spacing: .02em;
  line-height: 1.1;
  text-transform: none;
  white-space: nowrap;
}
.hero-sub-ja {
  font-size: 14px; letter-spacing: .18em; color: rgba(255, 255, 255, .78);
  margin: 18px 0 36px;
  font-weight: 400;
}
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap }

.hero-meta {
  align-self: end;
  text-align: right;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  color: rgba(255, 255, 255, .55); line-height: 1.8;
}
.hero-meta b { color: rgba(255, 255, 255, .85); font-weight: 500 }

.scroll-cue {
  position: absolute; left: 56px; bottom: 24px; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  color: rgba(255, 255, 255, .6);
}
.scroll-cue .track {
  width: 1px; height: 48px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden;
}
.scroll-cue .track::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 50%;
  background: #fff; animation: drop 2.4s ease-in-out infinite;
}
@keyframes drop {
  0%   { top: -50% }
  100% { top: 120% }
}

/* ---------- Hero Entrance Animation ---------- */
.hero-entrance {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.215, .61, .355, 1),
              transform .7s cubic-bezier(.215, .61, .355, 1);
}
.hero-entrance.is-visible {
  opacity: 1;
  transform: none;
}
.hero-entrance[data-delay="1"] { transition-delay: .15s }
.hero-entrance[data-delay="2"] { transition-delay: .5s }
.hero-entrance[data-delay="3"] { transition-delay: .85s }
.hero-entrance[data-delay="4"] { transition-delay: 1.15s }
.hero-entrance[data-delay="5"] { transition-delay: 1.45s }
.hero-entrance[data-delay="6"] { transition-delay: 1.75s }

@media (prefers-reduced-motion: reduce) {
  .hero-entrance {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-video { display: none }
  .hero-media {
    background:
      linear-gradient(180deg, rgba(10, 22, 34, .55) 0%, rgba(10, 22, 34, .35) 40%, rgba(10, 22, 34, .7) 100%),
      radial-gradient(1200px 600px at 70% 30%, #1f4467 0%, #0a1622 65%);
  }
  .hero-media::before { animation: none }
}

/* ---------- News ---------- */
.news { padding: 140px 0 120px; background: var(--paper); position: relative }
.news .sec-watermark { top: 60px; right: -60px }
.news-grid {
  display: grid; grid-template-columns: 380px 1fr; gap: 80px;
  align-items: start;
}
.news-head .more {
  margin-top: 48px;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  color: var(--ink);
}
.news-head .more .dot {
  width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center;
  transition: background .3s, color .3s;
}
.news-head .more:hover .dot { background: var(--ink); color: #fff }
.news-list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.news-item .news-link {
  display: contents;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.news-item {
  display: grid; grid-template-columns: 140px 110px 1fr auto; gap: 32px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .25s, padding .25s;
}
.news-item:hover { background: rgba(20, 48, 74, .025); padding-left: 18px }
.news-date {
  font-family: var(--en); font-weight: 500; font-size: 22px; letter-spacing: .04em;
  color: var(--ink);
}
.news-tag {
  justify-self: start;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 5px 10px;
}
.news-tag.is-event { color: var(--slate); border-color: var(--slate) }
.news-text { font-size: 15px; font-weight: 500; letter-spacing: .04em }
.news-arrow {
  font-family: var(--en); font-size: 18px; color: var(--slate);
  transition: transform .3s, color .3s;
}
.news-item:hover .news-arrow { transform: translateX(6px); color: var(--ink) }

/* ---------- About ---------- */
.about {
  padding: 160px 0 180px;
  background: var(--ink);
  color: #fff;
  position: relative; overflow: hidden;
}
.about .sec-watermark {
  bottom: 40px; left: -30px;
  color: rgba(255, 255, 255, .05);
}
.about-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 90px;
  align-items: center;
}
.about-media { position: relative }
.about-img-a, .about-img-b {
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
  display: block;
}
.about-img-b {
  position: absolute;
  width: 60%;
  aspect-ratio: 1/1;
  right: -10%; bottom: -12%;
  border: 1px solid rgba(255, 255, 255, .15);
}
.about-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  color: rgba(255, 255, 255, .55); margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.about-eyebrow::before { content: ""; width: 24px; height: 1px; background: rgba(255, 255, 255, .45) }
.about-title {
  font-family: var(--en); font-weight: 500;
  font-size: clamp(56px, 6.5vw, 96px);
  line-height: .95; margin: 0 0 8px;
  letter-spacing: .005em; text-transform: uppercase;
}
.about-title-ja {
  font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: .16em;
  color: rgba(255, 255, 255, .85); margin: 18px 0 32px;
}
.about-lead {
  font-size: 17px; line-height: 2; letter-spacing: .06em;
  color: rgba(255, 255, 255, .85);
  margin: 0 0 22px;
  font-weight: 300;
}
.about-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 32px;
}
.stat .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  color: rgba(255, 255, 255, .55); margin-bottom: 8px;
}
.stat .num {
  font-family: var(--en); font-weight: 500; font-size: 48px; line-height: 1;
  letter-spacing: .01em;
}
.stat .num small {
  font-size: 14px; letter-spacing: .16em; color: rgba(255, 255, 255, .7);
  margin-left: 6px; font-family: var(--jp); font-weight: 400;
}
.about .btn-line { margin-top: 42px }

/* ---------- Products ---------- */
.products {
  padding: 140px 0 160px;
  background: var(--ink-deep); color: #fff; position: relative; overflow: hidden;
}
.products .sec-watermark { top: 80px; right: -40px; color: rgba(255, 255, 255, .04) }
.products-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 60px; margin-bottom: 72px;
}
.products-head p {
  max-width: 420px; font-size: 14px; line-height: 2; color: rgba(255, 255, 255, .75);
  margin: 0;
}
.products-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 880px;
}
.products-more {
  margin-top: 40px;
  display: flex; justify-content: flex-end;
}
.product {
  position: relative; aspect-ratio: 3/4;
  overflow: hidden;
  background: #0a1622;
  cursor: pointer;
}
.product .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.product .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px;
  display: flex; align-items: flex-end; justify-content: space-between;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .7) 100%);
  z-index: 2;
}
.product .num {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  color: rgba(255, 255, 255, .6); position: absolute; top: 18px; left: 18px; z-index: 2;
}
.product .name-en {
  font-family: var(--en); font-size: 22px; letter-spacing: .04em; font-weight: 500;
  text-transform: uppercase;
}
.product .name-ja {
  font-size: 13px; letter-spacing: .16em; font-weight: 500; color: rgba(255, 255, 255, .85);
  margin-top: 6px;
}
.product .arrow {
  width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--en);
  transition: background .3s, color .3s, border-color .3s;
}
.product .desc {
  position: absolute; inset: 0; z-index: 3;
  padding: 32px 26px;
  background: rgba(20, 48, 74, .92);
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; transition: opacity .35s ease;
}
.product .desc h4 {
  font-family: var(--en); font-size: 24px; font-weight: 500; margin: 0 0 6px; letter-spacing: .04em;
}
.product .desc .ja {
  font-size: 14px; letter-spacing: .14em; font-weight: 500; margin-bottom: 18px;
}
.product .desc p {
  font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .85); margin: 0 0 18px;
}
.product .desc ul { margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: rgba(255, 255, 255, .7) }
.product .desc ul li { padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .15) }
.product:hover .desc { opacity: 1 }
.product:hover .arrow { background: #fff; color: var(--ink); border-color: #fff }

/* ---------- Equipment (Careers Stats — used on home) ---------- */
.careers-catch {
  margin-top: 64px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start;
}
.careers-catch .lead {
  font-family: var(--serif); font-size: 30px; line-height: 1.7; letter-spacing: .08em; font-weight: 500; color: var(--ink);
}
.careers-catch p {
  font-size: 15px; line-height: 2; color: var(--slate); margin: 0; max-width: 520px;
}
.careers-stats {
  margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--ink);
}
.cstat { padding: 40px 36px 40px 0; border-right: 1px solid var(--line) }
.cstat:nth-child(2) { padding-left: 36px }
.cstat:last-child { border-right: 0; padding-left: 36px; padding-right: 0 }
.cstat .num-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--slate-2); margin-bottom: 22px;
}
.cstat .figure {
  font-family: var(--en); font-weight: 500; font-size: 96px; line-height: .95; letter-spacing: .01em; color: var(--ink);
  display: flex; align-items: baseline;
}
.cstat .figure.text { font-size: 54px; letter-spacing: .04em; font-family: var(--jp); font-weight: 600; line-height: 1.1 }
.cstat .figure small {
  font-family: var(--jp); font-weight: 500; font-size: 24px; letter-spacing: .14em; margin-left: 8px; color: var(--ink);
}
.cstat .cap-en {
  font-family: var(--en); font-size: 13px; letter-spacing: .24em; color: var(--ink-mid);
  margin-top: 18px; text-transform: uppercase; font-weight: 500;
}
.cstat .cap-ja {
  font-size: 14px; line-height: 1.8; letter-spacing: .06em; color: var(--slate); margin: 10px 0 0;
}

/* ---------- Equipment List ---------- */
.equipment { padding: 160px 0 160px; background: var(--paper); position: relative; overflow: hidden }
.equipment .sec-watermark { bottom: -20px; left: -40px }
.eq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 96px;
  align-items: start;
}
.eq-head .lead {
  font-family: var(--serif); font-size: 28px; line-height: 1.7; letter-spacing: .08em;
  margin: 32px 0 24px; color: var(--ink); font-weight: 500;
}
.eq-head p {
  font-size: 15px; line-height: 2; color: var(--slate); margin: 0 0 28px; max-width: 480px;
}
.eq-feature {
  margin-top: 48px;
  aspect-ratio: 5/4;
  width: 100%;
}
.eq-list {
  border-top: 1px solid var(--ink);
}
.eq-row {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 20px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding .25s;
}
.eq-row:hover { padding-left: 14px }
.eq-row .idx {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--slate-2);
}
.eq-row .model {
  font-family: var(--en); font-size: 24px; font-weight: 500; letter-spacing: .04em; color: var(--ink);
}
.eq-row .model small {
  display: block;
  font-family: var(--jp); font-size: 12px; letter-spacing: .14em; color: var(--slate);
  margin-top: 4px; font-weight: 400;
}
.eq-row .maker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--ink);
  text-transform: uppercase;
}

/* ---------- Access ---------- */
.access { padding: 140px 0 140px; background: var(--paper-2); position: relative; overflow: hidden }
.access .sec-watermark { top: 80px; left: -30px }
.ac-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: stretch;
}
.ac-info { padding: 8px 0 }
.ac-block {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: grid; grid-template-columns: 140px 1fr; gap: 20px;
  align-items: start;
}
.ac-block:last-child { border-bottom: 1px solid var(--line) }
.ac-block .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  color: var(--slate); text-transform: uppercase; padding-top: 4px;
}
.ac-block .v { font-size: 15px; line-height: 1.9; letter-spacing: .06em; color: var(--ink) }
.ac-block .v .big {
  font-family: var(--en); font-weight: 500; font-size: 30px; letter-spacing: .04em; color: var(--ink);
  display: block; line-height: 1.2;
}
.ac-map {
  position: relative; width: 100%;
  overflow: hidden;
}
.ac-map iframe {
  width: 100%; aspect-ratio: 4/3;
  display: block; border: none;
}
.ac-map .map-fallback {
  margin: 8px 0 0;
  font-size: 12px; letter-spacing: .04em;
  color: var(--slate-2);
}
.ac-map .map-fallback a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .3s, border-color .3s;
}
.ac-map .map-fallback a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Contact ---------- */
.contact {
  padding: 140px 0 140px;
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.contact .sec-watermark { bottom: -30px; right: -30px; color: rgba(255, 255, 255, .05) }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end;
}
.contact-title {
  font-family: var(--en); font-weight: 500;
  font-size: clamp(72px, 9vw, 160px);
  line-height: .92; margin: 0; letter-spacing: .005em;
  text-transform: uppercase;
}
.contact-lead {
  font-family: var(--serif); font-size: 24px; letter-spacing: .16em; line-height: 1.7;
  color: rgba(255, 255, 255, .92); margin: 36px 0 0; font-weight: 500;
}
.contact-card {
  padding: 40px 44px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .03);
}
.contact-card .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: rgba(255, 255, 255, .6);
  margin-bottom: 14px; display: flex; align-items: center; gap: 14px;
}
.contact-card .label::before { content: ""; width: 24px; height: 1px; background: rgba(255, 255, 255, .4) }
.contact-tel {
  font-family: var(--en); font-weight: 500; font-size: 56px; line-height: 1; letter-spacing: .02em;
  margin: 0 0 6px;
}
.contact-hours {
  font-size: 13px; letter-spacing: .14em; color: rgba(255, 255, 255, .7); margin-bottom: 28px;
}
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap }

/* ============================================================
   Responsive — Home-specific breakpoints
   ============================================================ */
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: 280px 1fr; gap: 48px }
  .products-grid { grid-template-columns: repeat(2, 1fr) }
  .about-grid, .eq-grid, .ac-grid, .contact-inner { grid-template-columns: 1fr; gap: 48px }
  .hero-grid { grid-template-columns: 1fr; align-items: start }
  .hero-vertical { display: none }
  .hero-meta { display: none }
  .news-item { grid-template-columns: 100px 90px 1fr auto }
  .careers-catch { grid-template-columns: 1fr; gap: 24px }
  .careers-stats { grid-template-columns: 1fr }
  .cstat { padding: 32px 0 !important; border-right: 0; border-bottom: 1px solid var(--line) }
  .cstat:last-child { border-bottom: 0 }
}
@media (max-width: 720px) {
  /* --- Hero --- */
  .hero { min-height: 520px; height: 85vh }
  .hero-inner { padding: 0 18px 80px }
  .hero-vertical {
    writing-mode: horizontal-tb;
    font-size: 20px; letter-spacing: .2em;
    height: auto; margin-bottom: 16px;
    text-shadow: 0 1px 12px rgba(0,0,0,.5);
  }

  .hero-title-en { font-size: clamp(36px, 11vw, 56px) }
  .hero-eyebrow { margin-bottom: 16px }
  .hero-sub-ja { font-size: 13px; letter-spacing: .12em; margin: 12px 0 24px }
  .hero-actions { gap: 12px }
  .hero-actions .btn-line {
    padding: 14px 20px 14px 18px; font-size: 12px; gap: 14px;
  }
  .hero-actions .btn-line .arrow { width: 24px }
  .scroll-cue { left: 18px; bottom: 18px }
  .scroll-cue .track { height: 32px }

  /* --- Sections padding --- */
  .news, .about, .products, .equipment, .access, .contact { padding: 72px 0 }

  /* --- News --- */
  .news-grid { grid-template-columns: 1fr; gap: 32px }
  .news-head .more { margin-top: 24px }
  .news-item { grid-template-columns: 1fr; gap: 4px; padding: 16px 0 }
  .news-item .news-arrow { display: none }
  .news-date { font-size: 16px }
  .news-tag { font-size: 9px }
  .news-text { font-size: 14px }

  /* --- About --- */
  .about { padding: 72px 0 80px }
  .about-grid { grid-template-columns: 1fr; gap: 40px }
  .about-media { position: relative }
  .about-img-a { aspect-ratio: 16/9 }
  .about-img-b {
    position: static; width: 100%; aspect-ratio: 16/9;
    margin-top: 12px;
  }
  .about-title { font-size: clamp(36px, 10vw, 56px) }
  .about-title-ja { font-size: 18px; margin: 12px 0 24px }
  .about-lead { font-size: 15px; line-height: 1.9 }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 32px }
  .stat { padding: 14px 0; border-bottom: none }
  .stat .num { font-size: 32px }
  .stat .num small { font-size: 12px }

  /* --- Products --- */
  .products { padding: 72px 0 80px }
  .products-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px }
  .products-head p { font-size: 13px }
  .products-grid { grid-template-columns: 1fr; gap: 16px }
  .product { aspect-ratio: 4/3 }
  .product .desc { display: none }

  /* --- Access --- */
  .ac-grid { grid-template-columns: 1fr; gap: 32px }
  .ac-block { grid-template-columns: 1fr; gap: 4px }
  .ac-block .v .big { font-size: 24px }
  .ac-map iframe { aspect-ratio: 1/1 }

  /* --- Contact --- */
  .contact-inner { grid-template-columns: 1fr; gap: 32px }
  .contact-title { font-size: clamp(48px, 14vw, 80px) }
  .contact-lead { font-size: 18px; margin-top: 20px }
  .contact-tel { font-size: 32px }
  .contact-card { padding: 28px 20px }
  .contact-hours { font-size: 12px }
  .btn-fill { min-width: auto; width: 100%; font-size: 12px; padding: 18px 20px }
}
