/* ==========================================================================
   LOSTOROS — corporate site
   design language: black & white editorial + matador red accent
   type: Goldman (display) / Space Mono (labels) / Noto Sans JP (body)
   ========================================================================== */

:root {
  --ink: #0c0c0d;
  --ink-soft: #161618;
  --paper: #f4f2ec;
  --red: #c8102e;
  --disp: 'Goldman', sans-serif;
  --mono: 'Space Mono', monospace;
  --jp: 'Noto Sans JP', sans-serif;
  --pad-x: clamp(20px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--paper); }

img { max-width: 100%; display: block; }
a { color: inherit; }

.mono {
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sq { color: var(--red); font-style: normal; }

.keep-case { text-transform: none; }

/* ---------- grain overlay ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='300' height='300' filter='url(%23n)'/></svg>");
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  color: #fff;
  transition: transform .4s ease;
}

/* 下スクロールで隠れ、上スクロールで現れる */
.site-header.is-hidden { transform: translateY(-110%); }

/* 背景色に応じて反転させる（白ロゴが白背景でも読める） */
.header-logo, .site-nav, .nav-toggle { mix-blend-mode: difference; }

.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  width: clamp(132px, 13vw, 184px);
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 2.6vw, 38px);
}

.site-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-decoration: none;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .35s ease;
}

.site-nav a:hover { background-size: 100% 1px; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px var(--pad-x) 28px;
  overflow: hidden;
}

.hero-lanes {
  position: absolute;
  inset: -20% 0;
  pointer-events: none;
}

.hero-lanes span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 140%;
  background: rgba(255, 255, 255, .08);
  transform: rotate(16deg);
}

.hero-lanes span:nth-child(1) { left: 8%; }
.hero-lanes span:nth-child(2) { left: 24%; }
.hero-lanes span:nth-child(3) { left: 40%; }
.hero-lanes span:nth-child(4) { left: 56%; }
.hero-lanes span:nth-child(5) { left: 72%; background: rgba(200, 16, 46, .35); }
.hero-lanes span:nth-child(6) { left: 88%; }

.hero-kicker {
  font-size: 12px;
  opacity: .75;
  margin-bottom: auto;
}

/* ワードマーク画像：常にコンテンツ幅いっぱい（画面幅に追従） */
.hero-word {
  margin: 24px 0 8px;
  animation: fade 1.4s ease .2s backwards;
}

.hero-word img,
.footer-word img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- 闘牛シルエットの浮かび上がり ---- */

.hero > * { position: relative; }

/* 全面背景の縦動画：object-fit coverで画面を満たし、暗幕で文字を立たせる */
.hero-video {
  position: absolute !important;
  inset: 0;
  overflow: hidden;
  animation: fade 1.8s ease .2s backwards;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(1) contrast(1.06) brightness(.92);
}

.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(12, 12, 13, .55) 0%,
    rgba(12, 12, 13, .28) 42%,
    rgba(12, 12, 13, .78) 74%,
    rgba(12, 12, 13, .96) 100%);
}

.hero-tagline {
  margin: clamp(20px, 4vh, 48px) 0;
  animation: fade 1.2s ease .7s backwards;
}

@keyframes fade { from { opacity: 0; transform: translateY(16px); } }

.hero-copy {
  font-weight: 900;
  font-size: clamp(24px, 3.6vw, 46px);
  line-height: 1.6;
  letter-spacing: .04em;
}

.u-red {
  position: relative;
  z-index: 0;
}

.u-red::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -3%;
  bottom: .08em;
  height: .2em;
  background: var(--red);
  transform: rotate(-1.2deg);
}

.hero-sub {
  font-size: 13px;
  letter-spacing: .34em;
  opacity: .55;
  margin-top: 14px;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  padding-top: 20px;
  animation: fade 1.2s ease .9s backwards;
}

.hero-bottom p {
  font-size: 12px;
  line-height: 2.1;
  opacity: .8;
  text-transform: none;
  letter-spacing: .08em;
}

.hero-stamp {
  position: relative;
  flex: none;
  width: 110px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.hero-stamp .stamp-ellipse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, .8);
  stroke-width: 1.4;
  transform: rotate(-4deg);
}

.hero-stamp .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  background: var(--red);
  border-radius: 50%;
}

/* ---------- marquee ---------- */

.marquee {
  background: var(--red);
  color: var(--paper);
  overflow: hidden;
  padding: 12px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  white-space: nowrap;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(15px, 2vw, 26px);
  letter-spacing: .08em;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections (shared) ---------- */

.section { padding: clamp(80px, 11vw, 150px) var(--pad-x); }

.section--paper {
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(clamp(80px, 11vw, 150px) + 3.5vw);
}

.section--ink { background: var(--ink); color: var(--paper); }

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.section-head .rule {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .3;
}

.section-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(46px, 8.6vw, 140px);
  line-height: .95;
  text-transform: uppercase;
}

.lead {
  font-weight: 700;
  font-size: clamp(19px, 2.5vw, 30px);
  line-height: 1.9;
  letter-spacing: .03em;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.about-body p:not(.lead) {
  font-size: 15px;
  margin-top: 1.6em;
  max-width: 36em;
}

.company-table {
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid rgba(12, 12, 13, .35);
  text-transform: none;
  letter-spacing: 0;
}

.company-table > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(12, 12, 13, .18);
}

.company-table dt {
  font-size: 11px;
  letter-spacing: .16em;
  padding-top: 4px;
}

.company-table dd {
  font-family: var(--jp);
  font-size: 14px;
  line-height: 1.9;
}

/* ---------- philosophy ---------- */

.phil-list { list-style: none; }

.phil-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 64px;
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid rgba(244, 242, 236, .22);
}

.phil-row:last-child { border-bottom: 1px solid rgba(244, 242, 236, .22); }

.phil-en {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 86px);
  line-height: .95;
}

.phil-copy {
  font-weight: 700;
  font-size: clamp(17px, 2vw, 26px);
  line-height: 1.9;
}

.phil-note {
  font-size: 12px;
  opacity: .5;
  margin-top: 14px;
}

.phil-num {
  font-size: 12px;
  opacity: .5;
  text-align: right;
  padding-top: 8px;
}

/* ---------- business ---------- */

.biz-intro {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(56px, 8vw, 110px);
}

.circle-red {
  position: relative;
  display: inline-block;
  padding: 0 .1em;
}

.circle-red::after {
  content: '';
  position: absolute;
  inset: -.25em -.4em;
  border: 2.5px solid var(--red);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.biz-list { list-style: none; }

.biz-row {
  display: grid;
  grid-template-columns: 72px 1fr 1.5fr;
  gap: clamp(18px, 3vw, 48px);
  align-items: start;
  padding: clamp(34px, 4.6vw, 56px) 0;
  border-top: 1px solid rgba(12, 12, 13, .3);
}

.biz-row:last-child { border-bottom: 1px solid rgba(12, 12, 13, .3); }

.biz-num { font-size: 12px; opacity: .5; padding-top: 8px; }

.biz-en {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 44px);
  line-height: 1;
  text-transform: uppercase;
}

.biz-body h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .05em;
}

.biz-body p {
  font-size: 14.5px;
  margin-top: 12px;
  max-width: 38em;
}

/* ---------- members ---------- */

.members-lead {
  font-size: 12px;
  opacity: .6;
  margin: 20px 0 clamp(40px, 6vw, 72px);
}

/* 縦積みの役員紹介：写真左・テキスト右（Leverages参照の翻訳） */
.member-row {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr 64px;
  gap: clamp(24px, 4.5vw, 88px);
  align-items: center;
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid rgba(244, 242, 236, .22);
}

.member-row:last-child { border-bottom: 1px solid rgba(244, 242, 236, .22); }

.member-num {
  font-size: 12px;
  opacity: .5;
  text-align: right;
  align-self: start;
  padding-top: 8px;
}

.member-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 380px;
  background:
    repeating-linear-gradient(105deg,
      transparent 0 90px,
      rgba(244, 242, 236, .05) 90px 91px),
    var(--ink-soft);
  border: 1px solid rgba(244, 242, 236, .16);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-role {
  font-size: 12px;
  color: var(--red);
}

.member-name {
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 52px);
  letter-spacing: .06em;
  margin-top: 12px;
}

.member-en {
  font-size: 12px;
  letter-spacing: .18em;
  opacity: .5;
  margin-top: 8px;
}

/* 目標（紹介文の代わりに掲げる） */
.member-goal {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .03em;
  margin-top: 20px;
}

.member-goal-label {
  flex: none;
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--red);
}

/* 実績リスト（営業資料より抜粋） */
.member-creds {
  list-style: none;
  margin-top: 22px;
  max-width: 30em;
  border-top: 1px solid rgba(244, 242, 236, .2);
  text-transform: none;
}

.member-creds li {
  font-size: 12px;
  letter-spacing: .08em;
  opacity: .75;
  padding: 9px 0;
  border-bottom: 1px solid rgba(244, 242, 236, .12);
}

/* ---------- sponsors ---------- */

.sponsor-intro {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 90px);
}

.sponsor-copy p:not(.lead) {
  font-size: 15px;
  margin-top: 1.4em;
  max-width: 34em;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sponsor-slot {
  aspect-ratio: 3 / 2;
  border: 1px dashed rgba(12, 12, 13, .35);
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: .22em;
  opacity: .5;
}

.sponsor-cta {
  text-align: center;
  margin-top: clamp(48px, 6vw, 80px);
}

.btn-red {
  display: inline-block;
  background: var(--red);
  color: var(--paper);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .1em;
  text-decoration: none;
  padding: 20px 52px;
  transition: background .3s ease, transform .3s ease;
}

.btn-red:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

/* ---------- contact ---------- */

/* 写真は上半分に人物、テキストは下半分に置いて顔と重ねない */
.section--contact {
  position: relative;
  overflow: hidden;
  min-height: min(104svh, 940px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: clamp(48px, 6vw, 88px);
}

.section--contact > *:not(.contact-photo) { position: relative; z-index: 1; }

.contact-body { position: relative; z-index: 1; }

/* 2ショット写真の全面背景＋暗幕 */
.contact-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 顔がセクション上部1/4に来る位置で切り出す（下部のテキストと重ねない） */
  object-position: center 40%;
  filter: grayscale(1) contrast(1.04);
}

.section--contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(12, 12, 13, .70) 0%,
    rgba(12, 12, 13, .22) 22%,
    rgba(12, 12, 13, .34) 44%,
    rgba(12, 12, 13, .88) 66%,
    rgba(12, 12, 13, .98) 100%);
}

.contact-mail {
  font-size: 15px;
  margin-top: 18px;
}

.contact-mail a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
  transition: color .3s ease;
}

.contact-mail a:hover { color: var(--red); }

.contact-reach {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  text-decoration: none;
  transition: color .3s ease;
}

.contact-reach:hover { color: var(--red); }

.contact-word {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(44px, 10.4vw, 170px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-arrow {
  width: clamp(64px, 9vw, 150px);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform .35s ease;
}

.contact-reach:hover .contact-arrow { transform: translateX(14px); }

.contact-note {
  font-size: 12px;
  opacity: .6;
  margin-top: 34px;
}

/* ---------- お問い合わせフォーム ---------- */

.form-section {
  border-top: 1px solid rgba(244, 242, 236, .16);
  scroll-margin-top: 80px;
}

.form-wrap { max-width: 900px; }

.form-title {
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: .08em;
}

.form-lead {
  font-size: 12px;
  opacity: .6;
  margin-top: 16px;
  text-transform: none;
}

.cform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(40px, 5vw, 64px);
}

.cfield { display: flex; flex-direction: column; gap: 10px; }

.cfield--full { grid-column: 1 / -1; }

.cfield label {
  font-size: 11px;
  letter-spacing: .16em;
  opacity: .8;
}

.req {
  color: var(--red);
  font-size: 9px;
  letter-spacing: .1em;
  margin-left: 6px;
}

.cfield input,
.cfield select,
.cfield textarea {
  width: 100%;
  background: rgba(244, 242, 236, .04);
  border: 1px solid rgba(244, 242, 236, .22);
  color: var(--paper);
  font-family: var(--jp);
  font-size: 15px;
  line-height: 1.7;
  padding: 14px 16px;
  border-radius: 0;
  transition: border-color .25s ease, background .25s ease;
}

.cfield textarea { resize: vertical; min-height: 150px; }

.cfield select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%),
                    linear-gradient(135deg, var(--paper) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.cfield select option { background: var(--ink); color: var(--paper); }

.cfield input:hover,
.cfield select:hover,
.cfield textarea:hover { border-color: rgba(244, 242, 236, .45); }

.cfield input:focus-visible,
.cfield select:focus-visible,
.cfield textarea:focus-visible {
  outline: none;
  border-color: var(--red);
  background: rgba(244, 242, 236, .07);
}

.cfield [aria-invalid="true"] { border-color: var(--red); }

.cform-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cform-foot .btn-red { border: none; cursor: pointer; font-family: var(--jp); }

.cform-status {
  font-size: 12px;
  text-transform: none;
  letter-spacing: .06em;
}

.cform-status[data-state="error"] { color: var(--red); }
.cform-status[data-state="ok"] { color: var(--paper); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid rgba(244, 242, 236, .15);
  padding-top: clamp(48px, 7vw, 110px);
  overflow: hidden;
}

.footer-word {
  padding: 0 var(--pad-x);
  margin-bottom: clamp(28px, 4vw, 56px);
  text-align: center;
}

.footer-word img {
  width: min(96%, 1080px);
  height: auto;
  margin: 0 auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(244, 242, 236, .2);
  padding: 18px var(--pad-x);
  font-size: 11px;
  opacity: .7;
}

/* ---------- scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-word, .hero-tagline, .hero-bottom { animation: none; }
  .hero-video { animation: none; }
  .marquee-track { animation-duration: 120s; }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .site-nav.open { display: flex; mix-blend-mode: normal; }
  .site-nav.open a { font-size: 18px; color: var(--paper); }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 110;
    width: 40px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-toggle span {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: #fff;
    transition: transform .3s ease, top .3s ease;
  }

  .nav-toggle span:nth-child(1) { top: 12px; }
  .nav-toggle span:nth-child(2) { top: 20px; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 16px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 16px; transform: rotate(-45deg); }

  .about-grid, .biz-intro, .sponsor-intro { grid-template-columns: 1fr; }

  .phil-row { grid-template-columns: 1fr; gap: 14px; }
  .phil-num { display: none; }

  .biz-row { grid-template-columns: 48px 1fr; }
  .biz-body { grid-column: 2; }

  .member-row { grid-template-columns: 1fr; gap: 20px; }
  .member-num { display: none; }

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

  .hero-bottom { flex-direction: column; align-items: flex-start; }

  .contact-photo { object-position: center 26%; }

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

  .pc { display: none; }
}
