/* Site-specific styles built on colors_and_type.css */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-app);
  color: var(--fg1);
  font-family: var(--font-sans);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* Section helper */
.section {
  padding: 140px 0;
}
.section.tinted { background: var(--bg-tinted); }
.section.dark   { background: var(--peace-navy); color: var(--fg-on-navy); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--fg-on-navy); }
.section.dark p { color: rgba(255,255,255,0.78); }

@media (max-width: 768px) {
  .section { padding: 80px 0; }
}

/* Section header pattern */
.section-head { margin-bottom: 56px; }
.section-head .eyebrow { display:block; margin-bottom: 12px; }
.section-head h2 { font-size: var(--t-h2); }

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border-radius: var(--r-md);
  font-family: var(--font-sans); font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  text-decoration: none; border: none; cursor: pointer; line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn--mint { background: var(--cta); color: var(--fg-on-mint); }
.btn--mint:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn--mint:active { background: var(--cta-press); transform: translateY(0); }
.btn--navy { background: var(--peace-navy); color: #fff; }
.btn--navy:hover { background: var(--bg-navy-soft); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--peace-navy); border: 1.5px solid var(--peace-navy); }
.btn--outline:hover { background: var(--peace-navy); color: #fff; }
.btn--ghost { background: transparent; color: var(--peace-blue); }
.btn--ghost:hover { background: var(--bg-tinted); }
.btn--lg { min-height: 56px; padding: 0 40px; font-size: 16px; }
.btn .lucide { width: 18px; height: 18px; }

/* Card */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.card--hover:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card--bordered { box-shadow: none; border: 1px solid var(--border); }

/* Site header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-header);
  height: 80px;
}
.site-header__inner {
  display: flex; align-items: center; height: 100%; gap: 40px;
}
.site-header__logo {
  font-family: var(--font-serif); font-weight: 800; font-size: 24px;
  color: var(--peace-navy); letter-spacing: 0.02em;
  text-decoration: none; display:inline-flex; align-items:center; gap: 10px;
}
.site-header__logo .mark { width: 12px; height: 12px; background: var(--peace-mint); border-radius: 2px; }
.site-nav { display: flex; gap: 28px; flex: 1; }
.site-nav a {
  font-size: 14px; font-weight: 500; color: var(--peace-navy);
  letter-spacing: 0.04em; padding: 8px 0; position: relative;
  text-decoration: none;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--peace-blue); transition: width 200ms ease;
}
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }
.site-nav a.active { color: var(--peace-blue); }

.site-header__cta { display:inline-flex; align-items:center; }
.site-header__cta .btn { min-height: 44px; padding: 0 20px; font-size: 13px; }
.site-header__hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--peace-navy); }

@media (max-width: 968px) {
  .site-nav, .site-header__cta { display: none; }
  .site-header__hamburger { display: inline-flex; margin-left: auto; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: #fff;
  display: flex; flex-direction: column;
  padding: 24px 20px;
  transform: translateX(100%); transition: transform 240ms ease-out;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu__close { align-self: flex-end; background: none; border: none; padding: 8px; cursor: pointer; color: var(--peace-navy); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.mobile-menu nav a {
  display: block; padding: 18px 8px; font-family: var(--font-serif); font-weight: 700;
  font-size: 20px; color: var(--peace-navy); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-menu__cta { margin-top: 32px; }
.mobile-menu__cta .btn { width: 100%; }

/* Breadcrumb */
.crumbs {
  padding: 20px 0; font-size: 13px; color: var(--fg3); display: flex; gap: 8px; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.crumbs a { color: var(--peace-blue); text-decoration: none; }
.crumbs a:hover { color: var(--peace-navy); }
.crumbs .sep { color: var(--fg-muted); }

/* Hero */
.hero {
  position: relative; min-height: 720px;
  background-image: url('assets/hero-rental.jpg');
  background-size: cover; background-position: center;
  display: flex; align-items: center;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,0.55) 0%, rgba(10,37,64,0.70) 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__tagline {
  font-family: var(--font-serif); font-weight: 800;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1.15; letter-spacing: 0.04em;
  margin: 0 0 48px;
  color: #fff;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 0.2em; z-index: 1; }

@media (max-width: 768px) {
  .hero { min-height: 560px; }
  .hero__tagline { margin-bottom: 32px; }
}

/* Page title */
.page-title {
  padding: 96px 0 64px;
}
.page-title h1 { font-size: var(--t-h1); }

/* Footer */
.site-footer {
  background: var(--peace-navy);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 24px;
}
.site-footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer__logo { font-family: var(--font-serif); font-weight: 900; font-size: 28px; color: #fff; letter-spacing: 0.02em; }
.site-footer h5 {
  font-family: var(--font-sans); font-size: 12px; font-weight: 700;
  color: #fff; letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { font-size: 14px; line-height: 2.0; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  display: flex; justify-content: space-between;
  padding-top: 20px; font-size: 12px; color: rgba(255,255,255,0.6);
}
@media (max-width: 768px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

/* Floating LINE */
.floating-line {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cta); color: var(--fg-on-mint);
  font-family: var(--font-sans); font-size: 14px; font-weight: 700;
  padding: 14px 22px; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow-float); text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}
.floating-line:hover { background: var(--cta-hover); transform: translateY(-2px); }
.floating-line .lucide { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .floating-line { bottom: 84px; }
}

/* Mobile bottom bar */
.mobile-bottom-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 8px;
  gap: 6px;
  height: 72px;
}
.mobile-bottom-bar .item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: 56px; border-radius: 8px;
  font-family: var(--font-sans); font-size: 11px; font-weight: 700; color: var(--peace-navy);
  letter-spacing: 0.06em; text-decoration: none;
}
.mobile-bottom-bar .item.cta { background: var(--cta); color: var(--fg-on-mint); }
.mobile-bottom-bar .item .lucide { width: 22px; height: 22px; }

@media (max-width: 768px) {
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: 80px; }
}

/* Forms */
.field { display: block; margin-bottom: 20px; }
.field label {
  display: block; font-size: 13px; font-weight: 700; color: var(--peace-navy);
  margin-bottom: 8px; letter-spacing: 0.04em;
}
.field label .req { color: var(--danger); margin-left: 4px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  font-family: var(--font-sans); font-size: 15px; color: var(--fg1);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--peace-blue);
  box-shadow: 0 0 0 3px rgba(30,90,140,0.14);
}

/* Tag chip */
.chip {
  display: inline-flex; align-items: center; padding: 6px 12px;
  background: var(--bg-tinted); color: var(--peace-blue);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  border-radius: 999px;
}
.chip--active { background: var(--peace-navy); color: #fff; }
.chip--outline { background: transparent; border: 1px solid var(--border); color: var(--peace-navy); }

/* Utility */
.eyebrow { color: var(--peace-blue); font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.muted { color: var(--fg3); }

/* ============================================================
   Responsive grid utilities — PCで列数、SPで自動的にスタック
   ============================================================ */
.r-grid { display: grid; gap: 24px; }
.r-grid--2 { grid-template-columns: repeat(2, 1fr); }
.r-grid--3 { grid-template-columns: repeat(3, 1fr); }
.r-grid--4 { grid-template-columns: repeat(4, 1fr); }
.r-grid--5 { grid-template-columns: repeat(5, 1fr); }
.r-grid--split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.r-grid--split-narrow { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.r-grid--media { grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }

@media (max-width: 968px) {
  .r-grid { gap: 16px; }
  .r-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .r-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .r-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .r-grid--2, .r-grid--3, .r-grid--4, .r-grid--5 {
    grid-template-columns: 1fr;
  }
  .r-grid--split, .r-grid--split-narrow, .r-grid--media {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* Force media block image to come first when stacked */
  .r-grid--media > *:first-child { order: -1; }
}

/* ============================================================
   Smartphone-specific layout adjustments
   ============================================================ */
@media (max-width: 640px) {
  /* Page title block */
  .page-title { padding: 56px 0 32px; }
  .page-title h1 { font-size: 32px; }

  /* Section head spacing */
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 26px; }

  /* Hero tagline */
  .hero { min-height: 520px; }
  .hero__tagline { font-size: 44px !important; margin-bottom: 32px !important; line-height: 1.2; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 12px !important; }
  .hero__cta .btn { width: 100%; }

  /* Section flow */
  .section { padding: 64px 0; }
  .section-head { text-align: left !important; }

  /* Card padding on mobile */
  .card { padding: 20px; }

  /* Buttons: full-width on mobile when in a row */
  .btn--lg { padding: 0 24px; min-height: 52px; font-size: 15px; }
}

/* ============================================================
   会社概要 table — stacks on mobile
   ============================================================ */
.profile-table {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.profile-table__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-top: 1px solid var(--border);
}
.profile-table__row:first-child { border-top: none; }
.profile-table__key {
  padding: 20px 24px;
  background: var(--bg-tinted);
  font-weight: 700;
  font-size: 14px;
  color: var(--peace-navy);
  letter-spacing: 0.04em;
}
.profile-table__val {
  padding: 20px 24px;
  font-size: 15px;
  color: var(--fg1);
}
.profile-table__val--empty { color: var(--fg-muted); }

@media (max-width: 640px) {
  .profile-table__row {
    grid-template-columns: 1fr;
  }
  .profile-table__key {
    padding: 14px 20px 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--peace-blue);
    background: #fff;
    text-transform: uppercase;
  }
  .profile-table__val {
    padding: 0 20px 18px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .profile-table__row:last-child .profile-table__val { border-bottom: none; }
}

/* Site footer mobile */
@media (max-width: 640px) {
  .site-footer__top { grid-template-columns: 1fr !important; gap: 28px !important; }
  .site-footer__bottom { flex-direction: column; gap: 8px; }
}

/* Header mobile padding */
@media (max-width: 640px) {
  .site-header { height: 64px; }
  .site-header__logo { font-size: 20px; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 600ms ease-out both; }

/* ============================================================
   Motion & flair — hero Ken Burns + scroll-reveal
   （JS無効/失敗時もコンテンツは必ず表示される安全設計）
   ============================================================ */

/* Hero: ゆっくりズームする背景レイヤー（静的背景はフォールバックとして残す） */
.hero { overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/hero-rental.jpg');
  background-size: cover; background-position: center;
  transform: scale(1.04);
  animation: heroZoom 24s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.16); }
}

/* SCROLL インジケーターを上下にゆらす */
.hero__scroll { animation: scrollBob 2.2s ease-in-out infinite; }
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* スクロールで各セクションがふわっと浮き上がる */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal main .section {
    opacity: 0; transform: translateY(32px);
    transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
  }
  .js-reveal main .section.is-visible { opacity: 1; transform: none; }
}

/* ============================================================
   ボタン文字色の死守
   <a> 化したボタンが グローバル a:hover{color:濃紺} に負けて
   ホバー/押下時に文字が暗転→背景に溶ける問題を防ぐ
   ============================================================ */
.btn--navy:hover, .btn--navy:active, .btn--navy:focus { color: #fff; }
.btn--mint:hover, .btn--mint:active, .btn--mint:focus { color: var(--fg-on-mint); }
.btn--ghost:hover, .btn--ghost:active, .btn--ghost:focus { color: var(--peace-blue); }
