@charset "UTF-8";
/* VYRUS JAPAN。本家 vyrus.it に合わせた黒地・白文字のデザイン
   色と書体はここの変数で変える。スマホ向けは一番下の @media にまとめてある */

:root {
  --bg: #000;
  --text: #d8d8d8;
  --text-strong: #fff;
  --text-sub: #9a9a9a;
  --line: rgba(255, 255, 255, 0.18);
  --accent: #c8102e;
  --header-h: 64px;
  --font-body: "Open Sans", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-display: "Orbitron", "Open Sans", sans-serif;
}

/* reset.css が全要素に書体を指定しているので、ここで上書きする */
html body,
html body * {
  font-family: var(--font-body);
}

html body .model-band-no,
html body .model-band-year,
html body .model-hero-no,
html body .page-title,
html body .site-menu-title,
html body .site-menu-top a,
html body .spec h2,
html body .gallery h2,
html body .other-models h2,
html body .btn-outline {
  font-family: var(--font-display);
}

body {
  background: var(--bg) url(../img/top/bg_site.jpg) center top / cover fixed;
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-strong);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

main {
  padding-top: var(--header-h);
  padding-bottom: 60px;
}

/* ボタン（本家の白い枠のボタン） */
.btn-outline {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--text-strong);
  color: var(--text-strong);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

a.btn-outline:hover,
a:hover .btn-outline {
  background: var(--text-strong);
  color: #000;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 30px;
  background: linear-gradient(rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7));
  border-bottom: 1px solid var(--line);
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header .logo img {
  height: 22px;
  width: auto;
}

.site-header .logo span img {
  height: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switch a {
  color: var(--text-sub);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.lang-switch a + a {
  margin-left: 6px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.lang-switch a.current,
.lang-switch a:hover {
  color: var(--text-strong);
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: none;
  background: none;
  color: var(--text-strong);
  font-size: 13px;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.menu-toggle .fa {
  font-size: 20px;
}

/* ---------- 全画面メニュー ---------- */

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.menu-open .site-menu {
  opacity: 1;
  visibility: visible;
}

.menu-open {
  overflow: hidden;
}

.menu-close {
  position: absolute;
  top: 14px;
  right: 26px;
  border: none;
  background: none;
  color: var(--text-strong);
  font-size: 28px;
  cursor: pointer;
}

.site-menu-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 30px 60px;
}

.site-menu-top {
  grid-column: 1 / -1;
}

.site-menu-top a {
  font-size: 28px;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.site-menu-title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 13px;
  letter-spacing: 0.25em;
}

.site-menu li a {
  display: block;
  padding: 6px 0;
  color: var(--text-strong);
  text-decoration: none;
}

.site-menu li a:hover {
  color: var(--accent);
}

/* ---------- フッター ---------- */

.site-footer {
  padding: 40px 20px 30px;
  border-top: 1px solid var(--line);
  background: #000;
  color: var(--text-sub);
  font-size: 12px;
  text-align: center;
}

#page-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
}

#page-top a {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-strong);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-decoration: none;
}

/* ---------- トップ ---------- */

.page-top main {
  padding-top: 0;
}

.top-video {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.top-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  color: var(--text-strong);
  font-size: 15px;
  letter-spacing: 0.4em;
  text-align: center;
  text-shadow: 0 0 12px #000;
}

.model-band {
  position: relative;
  display: block;
  overflow: hidden;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.model-band img {
  width: 100%;
  transition: transform 0.8s;
}

.model-band:hover img {
  transform: scale(1.03);
}

/* 文字が写真に負けないよう、文字の側だけ暗くする */
.model-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}

.model-band:nth-child(even)::after {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 55%);
}

.model-band-text {
  z-index: 1;
}

.model-band-text {
  position: absolute;
  top: 50%;
  left: 7%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateY(-50%);
}

.model-band:nth-child(even) .model-band-text {
  left: auto;
  right: 7%;
  align-items: flex-end;
}

.model-band-year {
  color: var(--text-sub);
  font-size: 18px;
  letter-spacing: 0.3em;
}

.model-band-no {
  color: var(--text-strong);
  font-size: clamp(64px, 11vw, 160px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.model-band-name {
  margin: 8px 0 22px;
  color: var(--text-strong);
  font-size: 14px;
  letter-spacing: 0.2em;
}

/* ---------- 共通のページ ---------- */

.page-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 30px;
}

.page-hero {
  position: relative;
  max-height: 70vh;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
}

.page-title {
  margin: 60px 0 40px;
  color: var(--text-strong);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page-body section {
  margin-bottom: 70px;
}

.page-body h2 {
  margin-bottom: 20px;
  color: var(--text-strong);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.page-body p + p {
  margin-top: 1em;
}

.page-body .photo {
  margin: 30px 0;
}

/* 文が主のページは、1行が長くなりすぎないよう本文の幅を狭くする */
.page-body--text {
  max-width: 820px;
}

/* 横幅の小さい写真は引き伸ばさず、切らずに全体を見せる */
.page-photo {
  margin-bottom: 40px;
  text-align: center;
}

/* What Say: 縦長の写真を左に原寸で、右に本文。写真は読み進めても上に残す */
.whatsay {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 40px;
  align-items: start;
}

.whatsay-photo {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.whatsay .quote-box {
  margin: 0;
}

.youtube {
  position: relative;
  padding-top: 56.25%;
}

.youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 写真と文を左右に並べる段。--reverse で左右を入れ替える */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* 文が長いときも写真が上に残るように */
.media-row > div:has(> img) {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.media-row--reverse > :first-child {
  order: 2;
}

/* ---------- 車種ページ ---------- */

.model-hero {
  position: relative;
}

.model-hero img {
  width: 100%;
  max-height: 85vh;
  object-fit: cover;
}

.model-hero-title {
  position: absolute;
  left: 6%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  color: var(--text-strong);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}

.model-hero-no {
  font-size: clamp(64px, 12vw, 170px);
  font-weight: 900;
  line-height: 1;
}

.model-hero-name {
  font-size: 16px;
  letter-spacing: 0.25em;
}

.model-quote {
  margin: 70px 0 60px;
  color: var(--text-strong);
  font-size: 24px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  text-align: center;
}

.model-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.model-intro .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* 986 M2 の技術の紹介。写真（960x300）は横長の帯で、片側が暗い。暗い側に文を重ねる（作り直し前のサイトと同じ見せ方）
   写真の被写体は 02・04・06 が右、03・05 が左なので、1・3・5 番目は文を左、2・4 番目は右に置く */
.model-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-bottom: 50px;
}

.model-feature img {
  grid-row: 1;
  grid-column: 1 / -1;
  width: 100%;
}

.model-feature-text {
  grid-row: 1;
  grid-column: 1;
  padding: 20px 30px 20px 0;
}

.model-feature:nth-child(even) .model-feature-text {
  grid-column: 2;
  padding: 20px 0 20px 30px;
}

.model-jp {
  padding: 30px 36px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.spec h2,
.gallery h2,
.other-models h2 {
  font-size: 20px;
  letter-spacing: 0.25em;
}

.spec table {
  width: 100%;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.spec th,
.spec td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec th {
  width: 32%;
  color: var(--text-sub);
  font-weight: 400;
}

.spec .note {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 12px;
}

.gallery ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.gallery li a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.gallery li a:hover img {
  opacity: 0.7;
}

.model-contact {
  text-align: center;
}

.model-contact .btn-outline {
  margin-top: 16px;
}

.other-models ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.other-models a {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
}

.other-models img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  margin-bottom: 6px;
}

/* ---------- 各ページ ---------- */

.quote-box {
  margin: 50px 0;
  padding: 30px 40px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-strong);
  font-size: 18px;
  font-style: italic;
}

.quote-box cite {
  display: block;
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 14px;
  font-style: normal;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.photo-grid figure {
  margin: 0;
}

.photo-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid figcaption {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.5;
}

.credit {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 12px;
}

.video-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.video-list h2 {
  margin-top: 14px;
  font-size: 18px;
}

.video-list p {
  color: var(--text-sub);
  font-size: 14px;
}

.notice {
  margin-top: 20px;
  color: var(--text-sub);
  font-size: 13px;
}

/* プライバシーポリシー */
.policy dt {
  margin-top: 30px;
  color: var(--text-strong);
  font-weight: 600;
}

.policy dd {
  margin-top: 8px;
}

.policy ul {
  margin: 10px 0 0 1.5em;
  list-style: disc;
}

/* お問い合わせフォーム */
.formTable {
  width: 100%;
  margin-top: 30px;
}

.formTable th,
.formTable td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.formTable th {
  width: 32%;
  color: var(--text-strong);
  font-weight: 400;
}

.formTable th span {
  margin-left: 6px;
  color: var(--accent);
  font-size: 12px;
}

.formTable input[type="text"],
.formTable select,
.formTable textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #555;
  border-radius: 2px;
  background: #111;
  color: var(--text-strong);
  font-size: 16px;
  box-sizing: border-box;
}

.form-buttons {
  margin-top: 30px;
  text-align: center;
}

.form-buttons input {
  margin: 0 8px;
  padding: 10px 30px;
  border: 1px solid var(--text-strong);
  background: none;
  color: var(--text-strong);
  font-size: 15px;
  cursor: pointer;
}

.form-buttons input[type="submit"]:hover {
  background: var(--text-strong);
  color: #000;
}

/* 日本語の見出し・引用は、文節の切れ目で折り返して行の長さをそろえる（本文の段落は対象外） */
:lang(ja) h1,
:lang(ja) h2,
:lang(ja) .model-quote,
:lang(ja) figcaption {
  word-break: auto-phrase;
  text-wrap: balance;
}

/* ---------- スマホ・タブレット縦（900px 以下） ---------- */

@media (max-width: 900px) {
  :root {
    --header-h: 54px;
  }

  body {
    background-attachment: scroll;
    font-size: 14px;
  }

  .site-header {
    padding: 0 16px;
  }

  .site-header .logo span {
    display: none;
  }

  .site-header .logo img {
    height: 15px;
  }

  .header-right {
    gap: 16px;
  }

  .menu-toggle span {
    display: none;
  }

  .site-menu-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    padding: 80px 20px 40px;
  }

  .top-video {
    height: 60vh;
  }

  .model-band img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .model-band-text,
  .model-band:nth-child(even) .model-band-text {
    top: auto;
    bottom: 14px;
    left: 16px;
    right: auto;
    align-items: flex-start;
    transform: none;
  }

  .model-band-year {
    font-size: 13px;
  }

  .model-band-name {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .btn-outline {
    padding: 8px 20px;
  }

  .page-body {
    padding: 0 16px;
  }

  .page-title {
    margin: 36px 0 24px;
    font-size: 24px;
  }

  .model-quote {
    margin: 40px 0;
    font-size: 18px;
  }

  .model-intro,
  .media-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* スマホでは文を重ねず、写真の下に置く */
  .model-feature {
    display: block;
  }

  /* 横長の写真のままだと被写体が小さいので、被写体のある半分だけを見せる */
  .model-feature img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: right center;
  }

  .model-feature:nth-child(even) img {
    object-position: left center;
  }

  .model-feature-text,
  .model-feature:nth-child(even) .model-feature-text {
    padding: 14px 0 0;
  }

  .media-row--reverse > :first-child {
    order: 0;
  }

  .media-row > div:has(> img) {
    position: static;
  }

  .whatsay {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .whatsay-photo {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }

  .model-jp {
    padding: 20px;
  }

  .spec th,
  .spec td {
    display: block;
    width: auto;
    padding: 4px 0;
    border: none;
  }

  .spec th {
    padding-top: 12px;
  }

  .spec tr {
    display: block;
    border-bottom: 1px solid var(--line);
  }

  .gallery ul,
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .other-models ul {
    grid-template-columns: 1fr 1fr;
  }

  .video-list {
    grid-template-columns: 1fr;
  }

  .quote-box {
    padding: 20px;
    font-size: 16px;
  }

  .formTable th,
  .formTable td {
    display: block;
    width: auto;
    border: none;
  }

  .formTable th {
    padding: 14px 0 4px;
  }

  .formTable td {
    padding: 0 0 6px;
  }
}
