@charset "UTF-8";

/* ==========================================================
    NOCTRA - Premium Car Dealer
    Colors (Figmaデザインから実測)
    ---------------------------------------------------------
    page bg      : #222222
    header/footer: #303030
    stocks panel : #252525
    text         : #E1E1E1
    gold accent  : #E2BB7B
    blue button  : #0077BE
    border/gray  : #686868
   ========================================================== */

:root {
  --color-bg: #222222;
  --color-bar: #303030;
  --color-panel: #252525;
  --color-text: #E1E1E1;
  --color-gold: #E2BB7B;
  --color-blue: #0077BE;
  --color-blue-hover: #008EE3;
  --color-gray: #686868;

  --font-mincho: "Zen Old Mincho", serif;
  --font-title: "Cormorant Garamond", serif;
  --font-sans: "Noto Sans JP", sans-serif;
  --font-number: "Roboto Condensed", sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mincho);
  font-size: 16px;
  line-height: 1.9;
}

/* ---------- Layout ---------- */
.container {
  /* 1440px画面でコンテンツ幅1260px（左右余白90px）になる */
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 90px 0 0;
}

/* 金色＋下線の見出し 共通（大見出し = NEWS等、小見出し = SERVICE各項目） */
.section__title,
.service__body h3 {
  color: var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
}

/* 大見出し（NEWS / CAR STOCKS / SERVICE） */
.section__title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 48px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding-bottom: 14px;
  margin-bottom: 56px;
}

/* 中央寄せ見出し（SHOP INFO / CONTACT） */
.section__title--center {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mincho);
  font-size: 18px;
  letter-spacing: 0.15em;
  text-align: center;
  color: #fff;
  padding: 18px 0;
  transition: background 0.3s, color 0.3s;
}

.btn--primary {
  background: var(--color-blue);
}

/* 青ボタン：ホバーで明るい青に */
.btn--primary:hover {
  background: var(--color-blue-hover);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

/* 茶（ゴールド）ボタン：ホバーで色を反転（背景=茶／文字=黒） */
.btn--ghost:hover {
  background: var(--color-gold);
  color: #000;
}

/* ---------- 共通ユーティリティ ---------- */
/* ホバーで通常アイコン→hoverアイコンに切り替える仕組み（NEWS・フッター共通）。
    通常版とhover版の画像を重ね、親<a>のホバーで透明度を切り替える。
   ※親要素に position:relative と表示サイズを指定して使う */
.is-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

a:hover .is-hover {
  opacity: 1;
}

/* ==========================================================
    Header
   ========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bar);
  padding: 18px 50px;
}

.header__logo img {
  width: 224px;
  height: auto;
}

.header__nav ul {
  display: flex;
  gap: 48px;
}

.header__nav a {
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #fff;
  transition: color 0.3s;
}

.header__nav a:hover {
  color: var(--color-gold);
}

/* ==========================================================
   Hero
   ========================================================== */
.hero img {
  width: 100%;
  height: auto;
}

/* ==========================================================
   Lead
   ========================================================== */
.lead {
  padding-top: 34px;
}

.lead__scroll {
  text-align: center;
  margin-bottom: 60px;
}

.lead__scroll span {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #fff;
}

.lead__scroll span::after {
  content: "";
  display: block;
  width: 1px;
  /* スクロール量に応じてJSで --scroll-line を変える（初期40px→0） */
  height: var(--scroll-line, 40px);
  margin: 6px auto 0;
  background: #fff;
  transition: height 0.1s linear;
}

.lead__title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 36px;
}

.lead__text {
  letter-spacing: 0.04em;
}

/* ==========================================================
   News
   ========================================================== */
.news__carousel {
  overflow: hidden;
}

.news__track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
}

.news__item {
  flex: 0 0 calc((100% - 60px) / 3);
}

.news__item img {
  width: 100%;
  aspect-ratio: 375 / 211;
  object-fit: cover;
}

.news__item p {
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: 0.04em;
}

/* カルーセルドット */
.news__dots {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
}

.news__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transition: background 0.3s;
}

.news__dots button.is-active {
  background: var(--color-gold);
}

/* SNSボタン */
.news__sns {
  display: flex;
  justify-content: center;
  gap: 76px;
  margin-top: 56px;
}

.news__sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 300px;
  padding: 15px 0;
  border: 1px solid var(--color-gold);
  transition: background 0.3s;
}

/* 茶（ゴールド）ボタン：ホバーで背景=茶／文字=黒に反転 */
.news__sns a:hover {
  background: var(--color-gold);
}

.news__sns a:hover span {
  color: #000;
}

/* アイコンの入れ物（通常版とhover版を重ねる。切替は .is-hover ユーティリティ） */
.news__sns-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.news__sns-icon img {
  width: 28px;
  height: 28px;
}

.news__sns span {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gold);
  transition: color 0.3s;
}

/* ==========================================================
   Car Stocks
   ========================================================== */
.stocks__panel {
  background: var(--color-panel);
  border: 1px solid var(--color-gray);
  padding: 70px 95px;
}

.stocks__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 60px;
}

.stocks__item img {
  width: 100%;
  aspect-ratio: 503 / 283;
  object-fit: cover;
}

.stocks__item h3 {
  margin-top: 26px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.stocks__item p {
  margin-top: 6px;
  font-size: 16px;
  letter-spacing: 0.06em;
}

/* ==========================================================
   Service
   ========================================================== */
.service__row {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 64px;
  /* スクロールで写真側からフェードイン（初回のみ）。通常行＝写真は左なので左(-60px)から入る */
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.service__row:last-child {
  margin-bottom: 0;
}

.service__row--reverse {
  flex-direction: row-reverse;
  /* 反転行＝写真は右なので右(+60px)から入る */
  transform: translateX(60px);
}

/* 画面内に入ったら定位置へ（フェードイン完了状態） */
.service__row.is-shown {
  opacity: 1;
  transform: translateX(0);
}

.service__row img {
  width: 615px;
  max-width: 50%;
  height: auto;
  flex-shrink: 0;
}

/* 小見出し（金色＋下線は上の共通ルールで指定済み） */
.service__body h3 {
  display: inline-block;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding-bottom: 8px;
  margin-bottom: 28px;
}

.service__body p {
  letter-spacing: 0.04em;
  text-align: justify;
}

.service__body p + p {
  margin-top: 28px;
}

/* ==========================================================
   Shop Info
   ========================================================== */
.shop__inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  margin-top: 56px;
}

.shop__map {
  width: 486px;
  max-width: 50%;
}

.shop__map iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
  /* ダークテーマに馴染ませる */
  filter: grayscale(0.2);
}

.shop__detail {
  padding-top: 96px;
}

.shop__address {
  letter-spacing: 0.04em;
}

.shop__hours {
  margin-top: 28px;
  font-size: 18px;
  letter-spacing: 0.04em;
}

/* ==========================================================
   Contact
   ========================================================== */
.contact {
  padding-bottom: 110px;
  text-align: center;
}

.contact__tel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.contact__tel-label {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.contact__tel-number {
  font-family: var(--font-number);
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.2;
}

.contact__mail {
  width: 394px;
  max-width: 100%;
  margin-top: 48px;
}

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  background: var(--color-bar);
  text-align: center;
  padding: 26px 0 30px;
}

.footer__copy {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.footer__sns {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 14px;
}

.footer__sns a {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
}

.footer__sns img {
  width: 100%;
  height: 100%;
}
/* ホバー切替は共通の .is-hover ユーティリティが担当 */

/* ==========================================================
   Modal（お問い合わせ）
   ========================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  overflow-y: auto;
  /* ページに重なる半透明のオーバーレイ（背面のページが透けて見える） */
  background: rgba(0, 0, 0, 0.8);
}

.modal.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 40px;
  /* オーバーレイをふわっとフェードイン */
  animation: modalFade 0.3s ease both;
}

/* フォーム本体は少し遅れて浮き上がりながらフェードイン */
.modal.is-open .modal__content {
  animation: modalContentFade 0.4s ease both;
}

@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalContentFade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 56px 60px 72px;
  /* 浮いているパネルとして見せる */
  background: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal__close {
  position: absolute;
  top: 28px;
  right: 40px;
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  transition: color 0.3s;
}

.modal__close:hover {
  color: var(--color-gold);
}

.modal__title {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-align: center;
  color: var(--color-gold);
  margin-bottom: 64px;
}

/* ---- フォーム / 確認画面 共通の2カラム（ラベル30% : 値70%） ---- */
.form__row,
.check__row {
  display: flex;
  margin-bottom: 44px;
}

/* ラベル列（左） */
.form__row label,
.check__row dt {
  width: 30%;
  flex-shrink: 0;
  font-size: 19px;
  letter-spacing: 0.08em;
}

/* 値列（右） */
.form__row input,
.form__row textarea,
.check__row dd {
  width: 70%;
  font-family: var(--font-sans);
  font-size: 17px;
}

/* ---- 入力フォーム 固有 ---- */
.form__row {
  align-items: center;
}

.form__row--textarea {
  align-items: flex-start;
}

.form__row input,
.form__row textarea {
  background: transparent;
  border: 1px solid var(--color-gray);
  color: var(--color-text);
  padding: 15px 18px;
  border-radius: 0;
}

.form__row textarea {
  height: 142px;
  resize: vertical;
}

.form__row input::placeholder,
.form__row textarea::placeholder {
  color: var(--color-gray);
  font-weight: 700;
}

.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

/* ---- 確認画面 固有 ---- */
.check__row {
  align-items: stretch;
}

.check__row dt {
  display: flex;
  align-items: center;
}

.check__row dd {
  border-left: 1px solid var(--color-gray);
  padding: 8px 0 8px 46px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  white-space: pre-wrap;
  word-break: break-word;
}

.check__row--textarea dt {
  align-items: flex-start;
}

.check__row--textarea dd {
  min-height: 142px;
  align-items: flex-start;
}

/* ---- モーダル内ボタン ---- */
.modal__actions {
  text-align: center;
  margin-top: 60px;
}

.modal__actions .btn {
  width: 216px;
}

.modal__actions--double {
  display: flex;
  justify-content: center;
  gap: 48px;
}

/* ---- 送信完了 ---- */
.modal__content--send {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 60px;
  text-align: center;
}

.modal__title--send {
  margin-bottom: 0;
}

.modal__content--send .modal__actions {
  margin-top: 72px;
}
