/* rental.css — 追加日: 2026-03-14 */

/* ヒーロー */
.rental-hero {
  position: relative; height: 70vh; min-height: 500px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.rental-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #050c10 0%, #0a1820 60%, #061218 100%);
  background-size: cover; background-position: center;
  transition: transform 8s ease;
}
.rental-hero:hover .rental-hero-bg { transform: scale(1.03); }
.rental-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,12,16,0.35) 0%, rgba(5,12,16,0.6) 50%, rgba(5,12,16,0.92) 100%);
}
.rental-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(57,197,187,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,197,187,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.rental-hero-content {
  position: relative; z-index: 2;
  padding: 3rem 2.5rem; max-width: var(--max-width); width: 100%; margin: 0 auto;
}
.rental-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  color: var(--white); letter-spacing: 0.05em; line-height: 1.05;
  margin-bottom: 1.2rem;
}

/* ━━━ 対応エリアブロック（コンタクト上・装飾ブロック） ━━━ */
.rental-spec-wrap {
  padding: 0 2rem 3rem;
}
.rental-spec-wrap .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.rental-spec-block {
  background: var(--panel);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.rental-spec-block::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 24px;
  height: 24px;
  border-top: 2px solid var(--miku);
  border-left: 2px solid var(--miku);
  box-shadow: var(--glow-sm);
}
.rental-spec-block::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 24px;
  height: 24px;
  border-bottom: 2px solid var(--magenta);
  border-right: 2px solid var(--magenta);
}
.rental-spec-block-inner {
  padding: 0.5rem 0;
}
.rental-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.rental-spec-item {
  padding: 2rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 96px;
}
.rental-spec-item:last-child {
  border-right: none;
}
.rental-spec-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--miku);
  transition: height 0.25s ease;
}
.rental-spec-item:hover::before,
.rental-spec-item.reveal.visible::before {
  height: 100%;
}
.rental-spec-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: block;
}
.rental-spec-value {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.rental-spec-unit {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 300;
  margin-left: 0.15em;
}
.rental-spec-tel {
  color: var(--miku);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
.rental-spec-tel:hover {
  color: var(--white);
  text-shadow: var(--glow-sm);
}

/* カテゴリ */
.rental-category { margin-bottom: 3.5rem; }
.rental-cat-title {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--miku); letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.8rem;
}
.rental-cat-title::before {
  content: ''; width: 3px; height: 14px;
  background: var(--miku); box-shadow: var(--glow-sm);
}

/* レンタル品グリッド */
.rental-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.rental-card {
  background: var(--panel);
  display: flex; flex-direction: column;
  transition: background 0.25s;
  position: relative; overflow: hidden;
}
.rental-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 0; height: 2px;
  background: var(--miku); box-shadow: var(--glow-sm);
  transition: width 0.3s cubic-bezier(.4,0,.2,1);
}
.rental-card:hover { background: var(--panel2); }
.rental-card:hover::before { width: 100%; }

.rental-card-img {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--dark2);
}
.rental-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.rental-card:hover .rental-card-img img { transform: scale(1.06); }
.rental-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--text-muted);
}
.rental-card-body { padding: 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.rental-card-name { font-size: 0.9rem; color: var(--white); font-weight: 500; line-height: 1.4; }
.rental-card-desc { font-size: 0.78rem; color: var(--text); line-height: 1.7; flex: 1; }
.rental-card-price {
  font-family: var(--font-display); font-size: 1.3rem;
  color: var(--miku); letter-spacing: 0.05em; margin-top: 0.4rem;
}
.rental-card-price span { font-family: var(--font-body); font-size: 0.75rem; color: var(--text); font-weight: 300; margin-left: 0.2rem; }

@media(max-width:768px) {
  .rental-hero { height: auto; padding-bottom: 3rem; }
  .rental-hero-content { padding: 6rem 1.2rem 2rem; }
  .rental-spec-wrap { padding: 0 1.2rem 2.5rem; }
  .rental-spec-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rental-spec-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 82px;
    padding: 1.1rem 0.75rem;
  }
  .rental-spec-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .rental-spec-value { font-size: 1.05rem; }
  .rental-spec-block::before,
  .rental-spec-block::after { width: 16px; height: 16px; }
  .rental-grid { grid-template-columns: 1fr 1fr; }
}
