@charset "UTF-8";
/* Avinton Motorcycles JAPAN。本家の最後のデザイン（2018〜2019 年版）に合わせた黒地・白文字
   見出しは Exo 2 の太い斜体、本文は Roboto。色と書体はここの変数で変える。スマホ向けは一番下の @media */

:root {
  --bg: #111;
  --bg-2: #222;
  --text: rgba(255, 255, 255, 0.78);
  --text-strong: #fff;
  --text-sub: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.16);
  --accent: #c8102e;
  --header-h: 64px;
  --font-body: "Roboto", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-display: "Exo 2", "Roboto", sans-serif;
}

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

html body h1,
html body h2,
html body h3,
html body .site-menu-title,
html body .site-menu-top a,
html body .btn-outline,
html body .model-cards span {
  font-family: var(--font-display);
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 300;
  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: 14px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

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

.buttons {
  margin-top: 24px;
}

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

.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: rgba(17, 17, 17, 0.92);
  border-bottom: 1px solid var(--line);
}

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

.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(17, 17, 17, 0.97);
  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: 30px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.1em;
  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;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.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: 30px 20px;
  border-top: 1px solid var(--line);
  background: #0a0a0a;
  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(17, 17, 17, 0.8);
  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: 9%;
  text-align: center;
}

.top-copy img {
  width: min(360px, 60vw);
  filter: drop-shadow(0 0 12px #000);
}

.top-catch {
  margin-top: 18px;
  color: var(--text-strong);
  font-size: clamp(16px, 2vw, 22px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px #000, 0 0 4px #000;
}

/* 日本語は斜体にすると崩れて見えるので、立てて太くする */
:lang(ja) .top-catch {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.top-models {
  padding-top: 80px;
}

/* 車種の一覧（白い背景のスタジオ写真を並べる） */
.model-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.model-cards a {
  display: block;
  color: var(--text-strong);
  text-decoration: none;
}

.model-cards img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 0.3s;
}

.model-cards a:hover img {
  opacity: 0.8;
}

.model-cards span {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.model-cards em {
  display: block;
  color: var(--text-sub);
  font-size: 13px;
  font-style: normal;
}

.model-cards--large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
  margin-top: 50px;
}

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

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

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

/* 各ページの上の横長の写真（青い写真を白黒に近づけて暗く） */
.page-hero--wall img {
  width: 100%;
  max-height: 46vh;
  object-fit: cover;
  filter: grayscale(1) brightness(0.55);
}

.page-title {
  margin: 60px 0 40px;
  color: var(--text-strong);
  font-size: 40px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

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

.page-body h2 {
  margin-bottom: 20px;
  color: var(--text-strong);
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.4;
}

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

.page-photo {
  margin-bottom: 30px;
  text-align: center;
}

.page-photo--small img {
  width: 200px;
}

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

.byline + .byline {
  margin-top: 0;
}

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

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

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

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

.model-studio {
  margin-bottom: 50px;
  text-align: center;
}

.model-intro {
  max-width: 820px;
  margin: 0 auto;
}

.model-logo img {
  height: 46px;
  width: auto;
  /* もとのロゴは黒や赤なので、白一色にする */
  filter: brightness(0) invert(1);
}

.model-tagline {
  margin-top: 20px;
}

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

.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: 30%;
  color: var(--text-sub);
  font-weight: 400;
}

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

.gallery li a {
  display: block;
  aspect-ratio: 3 / 2;
  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 .model-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.other-models .model-cards span {
  font-size: 13px;
}

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

.catalogue p {
  margin-bottom: 16px;
  text-align: center;
}

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

.video-list section {
  margin-bottom: 0;
}

.video-list h2 {
  margin: 14px 0 4px;
  font-size: 17px;
}

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

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

.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: #1a1a1a;
  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: #111;
}

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

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

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

  body {
    font-size: 14px;
  }

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

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

  .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;
  }

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

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

  .page-body h2 {
    font-size: 20px;
  }

  .model-cards,
  .model-cards--large,
  .other-models .model-cards {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }

  .model-cards span {
    font-size: 13px;
  }

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

  .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);
  }

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

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

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

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

/* 本文の段落を両端揃えに（2026-11-16）。中央寄せの段・ボタン・ヘッダー・フッター・表は対象外。英語表示は狭い画面では左揃えのまま */
:where(html:lang(ja)) :where(p, .policy dd, .policy li):not(:where(header *, footer *, nav *, form *, .top-copy *, .model-contact *, .buttons)) { text-align: justify; }
@media (min-width: 768px) {
	:where(html:lang(en)) :where(p, .policy dd, .policy li):not(:where(header *, footer *, nav *, form *, .top-copy *, .model-contact *, .buttons)) { text-align: justify; }
}
