/* パーキングモンテ 紹介サイトの見た目（配色・レイアウト・レスポンシブ）。
   責務: 表現のみ。内容・文言は index.html が持つ。
   注意点: 外部フォント/JS/CSSに依存しない。チャコール×セーフティイエロー×白。
           ヒーロー背景は img/lift.jpg（このCSSからの相対）。375/768/1280で崩れない。 */

:root {
  --char: #1a1a1a;        /* チャコール（近黒） */
  --char-2: #232323;      /* 一段明るいチャコール */
  --char-3: #2e2e2e;      /* カード境界などの補助 */
  --yellow: #f5b301;      /* セーフティイエロー（搬器リフトの黄） */
  --yellow-dark: #d99e00; /* ホバー等の一段濃い黄 */
  --ink: #232323;         /* 本文（白地の上） */
  --muted: #666f78;       /* 補助テキスト */
  --line: #e4e6e9;        /* 白地セクションの罫 */
  --bg-alt: #f5f6f7;      /* 交互セクションの背景 */
  --white: #ffffff;
  --maxw: 1040px;

  /* 縦リズムの階層（16/24/32）— 見出し・要素間の余白を統一 */
  --sp-1: 16px;
  --sp-2: 24px;
  --sp-3: 32px;

  /* 影・角丸・モーション（CSSのみ・JS不使用） */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.05);
  --shadow-md: 0 10px 24px rgba(26, 26, 26, 0.10);
  --radius: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 180ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* キーボード操作時の可視フォーカス（マウスクリックには出さない） */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 3px; }

/* テキスト選択色（ブランドのイエロー） */
::selection { background: var(--yellow); color: var(--char); }

/* --- モーション定義（すべてCSSのみ・JS不使用。reduced-motionで無効化） --- */
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

a { color: var(--yellow-dark); transition: color var(--dur) var(--ease); }

/* --- ヘッダー --- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(26, 26, 26, 0.96);
  border-bottom: 2px solid var(--yellow);
  backdrop-filter: saturate(1.2) blur(4px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-mark {
  font-weight: 800; font-size: 17px; letter-spacing: 1.5px; color: var(--yellow);
}
.brand-jp { font-weight: 700; font-size: 14px; color: #e9eaec; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: flex-end; }
.nav a { color: #c7cacd; text-decoration: none; font-size: 14px; padding: 4px 2px; transition: color var(--dur) var(--ease); }
.nav a:hover { color: var(--yellow); }

/* --- ヒーロー（搬器の実写真＋暗オーバーレイ） --- */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: min(92vh, 820px);
  background-color: var(--char);
  color: #fff;
  overflow: hidden;
}
/* 背景写真は別レイヤーにして超スロー・ケンバーンズ（ゆっくりズーム）を効かせる */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("img/lift.jpg") center / cover no-repeat;
  transform: scale(1.12);
  animation: kenburns 18s var(--ease) both;
}
/* 背景に薄く浮かぶ超特大の飾り文字（装飾・読み上げ対象外） */
.hero::after {
  content: "MONTE";
  position: absolute; right: -2vw; bottom: -6vh; z-index: 0;
  font-size: clamp(120px, 34vw, 460px); font-weight: 800; letter-spacing: -0.04em;
  color: rgba(245, 179, 1, 0.08); line-height: 0.8; pointer-events: none;
}
/* ヒーロー各要素を下から順に立ち上げる登場アニメ */
.hero-eyebrow  { animation: rise 0.7s var(--ease) both; animation-delay: 0.05s; }
.hero-wordmark { animation: rise 0.7s var(--ease) both; animation-delay: 0.13s; }
.hero-title    { animation: rise 0.8s var(--ease) both; animation-delay: 0.20s; }
.hero-sub      { animation: rise 0.8s var(--ease) both; animation-delay: 0.30s; }
.hero-price    { animation: rise 0.8s var(--ease) both; animation-delay: 0.40s; }
.hero .btn-primary { animation: rise 0.8s var(--ease) both; animation-delay: 0.50s; }
.hero-note     { animation: rise 0.8s var(--ease) both; animation-delay: 0.58s; }
/* 白文字を確実に読ませるための暗幕。左を濃く、右へ抜けるグラデ＋全体の底上げ。 */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,20,20,0.92) 0%, rgba(20,20,20,0.72) 45%, rgba(20,20,20,0.45) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding: clamp(80px, 12vw, 140px) 22px clamp(64px, 10vw, 110px); max-width: var(--maxw); }
.hero-eyebrow {
  margin: 0 0 var(--sp-3); padding: 7px 15px; display: inline-block;
  letter-spacing: 2px; font-size: 13px; font-weight: 800; color: var(--char);
  background: var(--yellow); border-radius: 3px;
}
.hero-wordmark {
  margin: 0 0 6px; font-size: clamp(15px, 2vw, 20px); font-weight: 800; letter-spacing: 8px; color: var(--yellow);
}
.hero-title {
  margin: 0 0 var(--sp-2); font-size: clamp(46px, 12vw, 104px); line-height: 0.98;
  font-weight: 800; letter-spacing: -0.035em;
}
.hero-sub { margin: 0 0 var(--sp-3); color: #eceded; font-size: clamp(18px, 2.4vw, 22px); max-width: 32em; line-height: 1.6; }
.hero-price {
  margin: 0 0 var(--sp-3); font-size: 20px; color: var(--char);
  display: inline-flex; align-items: baseline; gap: 12px;
  background: var(--yellow); padding: 12px 22px; border-radius: 8px; font-weight: 800;
}
.hero-price strong { font-size: clamp(38px, 6vw, 52px); font-weight: 800; color: var(--char); }
.hero-note { margin: var(--sp-2) 0 0; color: #c4c6c8; font-size: 14px; }

/* --- ボタン --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 14px 26px; border-radius: 6px; font-weight: 800; font-size: 18px;
  text-decoration: none; line-height: 1;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn-primary { background: var(--yellow); color: var(--char); border: 2px solid var(--yellow); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
/* ヒーローのCTAは特大 */
.hero .btn-primary { font-size: clamp(18px, 2.4vw, 22px); padding: 18px 34px; border-radius: 8px; }

/* --- セクション共通 --- */
main { counter-reset: sec; }
.section { padding: clamp(64px, 9vw, 112px) 0; border-bottom: 1px solid var(--line); counter-increment: sec; }
.section-alt { background: var(--bg-alt); }
.section-title {
  margin: 0 0 var(--sp-4); font-size: clamp(30px, 5.5vw, 52px); color: var(--char); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.05;
}
/* エディトリアルな大きい連番（01〜） */
.section-title::before {
  content: counter(sec, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font-size: clamp(14px, 1.8vw, 18px); font-weight: 800; letter-spacing: 4px; color: var(--yellow-dark);
}
.section-title .pending { display: inline-block; font-size: 15px; font-weight: 600; color: var(--yellow-dark); letter-spacing: 0; }
.note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.note a { color: var(--yellow-dark); font-weight: 700; }
.pending { color: var(--yellow-dark); font-size: 0.82em; }

/* --- 特徴 --- */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature-grid li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  border-top: 3px solid var(--yellow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.feature-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--yellow); }
.feature-grid strong { color: var(--char); }
.feature-mark { color: var(--yellow); margin-right: 8px; }

/* --- 料金表 --- */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: none; }
.price-table th { width: 44%; background: var(--char); color: #fff; font-weight: 700; }
.price-value { font-size: 22px; font-weight: 800; color: var(--char); }

/* --- 空き状況バナー（#price 内・毎週木曜更新の日付は vacancy.js が自動更新） --- */
.vacancy {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  margin: 0 0 24px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--yellow);
  border-radius: 10px; box-shadow: var(--shadow-sm);
}
.vacancy-label { font-weight: 700; color: var(--char); }
.vacancy-status { font-size: 22px; font-weight: 800; color: var(--char); letter-spacing: 0.02em; }
.vacancy-meta { margin-left: auto; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) {
  .vacancy-meta { margin-left: 0; flex-basis: 100%; }
}

/* --- サイズ制限 --- */
.size-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr); text-align: center; }
.size-grid li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 8px; }
.size-label { display: block; font-size: 13px; color: var(--muted); }
.size-value { display: block; font-size: 24px; font-weight: 800; color: var(--char); margin-top: 4px; }

/* --- アクセス --- */
.access-addr { font-size: 19px; font-weight: 800; margin: 0 0 12px; color: var(--char); }
.access-stations { margin: 0 0 22px; padding-left: 1.2em; color: var(--muted); }
.access-photo { margin: 0 0 22px; }
.access-photo img { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.access-photo figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.map-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- 契約の流れ --- */
.flow-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.flow-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 62px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.flow-steps li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.flow-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--yellow); color: var(--char); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.flow-steps strong { color: var(--char); }

/* --- FAQ --- */
.faq-list { margin: 0; }
.faq-list dt { font-weight: 800; color: var(--char); margin-top: 18px; padding-left: 20px; position: relative; }
.faq-list dt::before { content: "Q"; position: absolute; left: 0; color: var(--yellow-dark); font-weight: 800; }
.faq-list dt:first-child { margin-top: 0; }
.faq-list dd { margin: 6px 0 0; color: var(--ink); }

/* --- お問い合わせ（黒背景の“締め”ブロック。電話番号を主役に） --- */
.contact {
  text-align: center; position: relative; overflow: hidden;
  background: var(--char); color: #eceded; border-bottom: none;
}
/* 締めブロックにも薄い飾り文字 */
.contact::before {
  content: "TEL"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: clamp(160px, 30vw, 420px); font-weight: 800; letter-spacing: -0.04em;
  color: rgba(245, 179, 1, 0.06); line-height: 0.8; pointer-events: none; z-index: 0;
}
.contact .wrap { position: relative; z-index: 1; }
.contact .section-title { display: inline-block; margin-bottom: 18px; color: #fff; }
.contact .section-title::before { color: var(--yellow); }
.contact p { color: #c7cacd; }
.contact-phone { margin: var(--sp-3) 0 0; }
.contact .btn-primary {
  font-size: clamp(22px, 4vw, 34px); padding: 20px 40px; letter-spacing: 0.5px;
}
.contact .btn-primary:hover { box-shadow: 0 12px 32px rgba(245, 179, 1, 0.35); }
.contact .note { color: #9aa0a5; }

/* --- フッター --- */
.site-footer { background: var(--char); color: #c7cacd; padding: 36px 0; text-align: center; border-top: 3px solid var(--yellow); }
.footer-name { font-weight: 800; color: var(--yellow); margin: 0 0 6px; font-size: 17px; letter-spacing: 1px; }
.footer-line { margin: 2px 0; font-size: 14px; }
.footer-line a { color: #fff; }
.footer-small { margin: 16px 0 0; font-size: 12px; color: #8a8f94; }

/* --- レスポンシブ --- */
@media (max-width: 640px) {
  .hero-inner { padding: 60px 22px 52px; }
  .hero-title { font-size: 33px; }
  .hero-price strong { font-size: 28px; }
  .nav { display: none; }           /* 狭幅ではナビを畳んで横スクロールを防ぐ */
  .size-grid { grid-template-columns: repeat(2, 1fr); }
  .price-table th { width: 42%; }
  .btn { font-size: 16px; padding: 12px 20px; }
}

/* --- モーション低減の希望を尊重（スムーススクロール・トランジション・変形を無効化） --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;   /* 遅延で一瞬隠れるのを防ぐ */
  }
  .hero::before { transform: none; }  /* ケンバーンズを止める */
  .btn-primary:hover, .feature-grid li:hover, .flow-steps li:hover { transform: none; }
}
