@charset "UTF-8";
/**
 * Common Styles - Carwell Design System
 * kk-kvillage 基本スタイル
 */

/* ========================================
   BASE STYLES
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: scroll;
  max-width: 100%;
}

body {
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  letter-spacing: 0.02em;
}

/* ========================================
   TYPOGRAPHY
======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-base);
  color: var(--color-primary);
  margin: 0;
}

h1 { font-size: var(--font-size-5xl); }  /* 48px */
h2 { font-size: var(--font-size-4xl); }  /* 36px */
h3 { font-size: var(--font-size-2xl); }  /* 24px */
h4 { font-size: var(--font-size-lg); }   /* 20px */
h5 { font-size: var(--font-size-base); } /* 16px */
h6 { font-size: var(--font-size-sm); }   /* 14px */

p {
  margin: 0 0 1em;
  line-height: var(--line-height-relaxed);
}

a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  transition: var(--transition-base);
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

/* ========================================
   CONTAINER & LAYOUT
======================================== */

.container,
.inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
  overflow-x: hidden;
}


.l-wrap {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--l-padding-side);
  padding-right: var(--l-padding-side);
  width: 100%;
  overflow-x: hidden;
}

/* Responsive Container Widths */
@media (min-width: 576px) {
  .container, .inner {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container, .inner {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container, .inner {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container, .inner {
    max-width: 1080px;
  }
}

/* ========================================
   SECTIONS
======================================== */

.section {
  padding: var(--section-padding-y) 0;
  position: relative;
  max-width: 100%;
}

@media (max-width: 991px) {
  .section {
    padding: var(--section-padding-y-tablet) 0;
  }
}

@media (max-width: 767px) {
  .section {
    padding: var(--section-padding-y-mobile) 0;
  }
}

/* ========================================
   SECTION HEADERS
======================================== */

.section__header {
  text-align: center;
  margin-bottom: var(--spacing-5xl);  /* 80px */
}

.section__title {
  font-size: var(--font-size-4xl);  /* 36px */
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-base);
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.section__title-en {
  display: block;
  font-family: var(--font-family-en-accent);
  font-size: var(--font-size-6xl);  /* 60px */
  font-weight: var(--font-weight-bold);
  color: var(--color-border);  /* 薄いグレー */
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.05em;
}

.section__title .emphasis-text {
  color: var(--color-accent-red);
}

.section__lead {
  font-size: var(--font-size-md);  /* 18px */
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: var(--line-height-base);
}

/* Responsive */
@media (max-width: 767px) {
  .section__header {
    margin-bottom: var(--spacing-3xl);  /* 50px */
  }

  .section__title {
    font-size: var(--font-size-2xl);  /* 24px */
  }

  .section__title-en {
    font-size: var(--font-size-5xl);  /* 48px */
  }

  .section__lead {
    font-size: var(--font-size-base);  /* 16px */
  }
}

/* ========================================
   GRID SYSTEM
======================================== */

.grid {
  display: flex;
  flex-wrap: wrap;
}

.grid.is-middle {
  align-items: center;
}

.grid.is-bottom {
  align-items: flex-end;
}

.grid.is-center {
  justify-content: center;
}

.grid.is-between {
  justify-content: space-between;
}

.grid.is-around {
  justify-content: space-around;
}

/* Grid Gaps */
.grid.is-gap-sm {
  margin-left: calc(var(--spacing-md) * -1);
  margin-bottom: calc(var(--spacing-md) * -1);
}

.grid.is-gap-sm > .column {
  padding-left: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.grid.is-gap-md {
  margin-left: calc(var(--spacing-lg) * -1);
  margin-bottom: calc(var(--spacing-lg) * -1);
}

.grid.is-gap-md > .column {
  padding-left: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.grid.is-gap-lg {
  margin-left: calc(var(--spacing-xl) * -1);
  margin-bottom: calc(var(--spacing-xl) * -1);
}

.grid.is-gap-lg > .column {
  padding-left: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

/* Column Widths */
.column {
  width: 100%;
}

.column.is-1 { width: 8.333%; }
.column.is-2 { width: 16.666%; }
.column.is-3 { width: 25%; }
.column.is-4 { width: 33.333%; }
.column.is-5 { width: 41.666%; }
.column.is-6 { width: 50%; }
.column.is-7 { width: 58.333%; }
.column.is-8 { width: 66.666%; }
.column.is-9 { width: 75%; }
.column.is-10 { width: 83.333%; }
.column.is-11 { width: 91.666%; }
.column.is-12 { width: 100%; }

/* Responsive Columns */
@media (min-width: 768px) {
  .column.is-tablet-1 { width: 8.333%; }
  .column.is-tablet-2 { width: 16.666%; }
  .column.is-tablet-3 { width: 25%; }
  .column.is-tablet-4 { width: 33.333%; }
  .column.is-tablet-5 { width: 41.666%; }
  .column.is-tablet-6 { width: 50%; }
  .column.is-tablet-7 { width: 58.333%; }
  .column.is-tablet-8 { width: 66.666%; }
  .column.is-tablet-9 { width: 75%; }
  .column.is-tablet-10 { width: 83.333%; }
  .column.is-tablet-11 { width: 91.666%; }
  .column.is-tablet-12 { width: 100%; }
}

@media (min-width: 1200px) {
  .column.is-desktop-1 { width: 8.333%; }
  .column.is-desktop-2 { width: 16.666%; }
  .column.is-desktop-3 { width: 25%; }
  .column.is-desktop-4 { width: 33.333%; }
  .column.is-desktop-5 { width: 41.666%; }
  .column.is-desktop-6 { width: 50%; }
  .column.is-desktop-7 { width: 58.333%; }
  .column.is-desktop-8 { width: 66.666%; }
  .column.is-desktop-9 { width: 75%; }
  .column.is-desktop-10 { width: 83.333%; }
  .column.is-desktop-11 { width: 91.666%; }
  .column.is-desktop-12 { width: 100%; }
}

/* ========================================
   UTILITY CLASSES
======================================== */

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mb-5 { margin-bottom: var(--spacing-2xl); }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--spacing-sm); }
.pt-2 { padding-top: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-lg); }
.pt-4 { padding-top: var(--spacing-xl); }
.pt-5 { padding-top: var(--spacing-2xl); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--spacing-sm); }
.pb-2 { padding-bottom: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-lg); }
.pb-4 { padding-bottom: var(--spacing-xl); }
.pb-5 { padding-bottom: var(--spacing-2xl); }

/* Background Colors */
.bg-white { background-color: var(--color-bg-white); }
.bg-gray { background-color: var(--color-bg-gray); }
.bg-primary { background-color: var(--color-primary); }

/* ========================================
   INVENTORY SECTION (Homepage)
======================================== */

.kv-inventory-section {
  /* 背景色なし */
}

.kv-inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 1.25rem + 0.5vw, 2rem);
  margin-bottom: clamp(2.5rem, 2rem + 1vw, 3.5rem);
}

@media (max-width: 991px) {
  .kv-inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .kv-inventory-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Inventory Card */
.kv-inventory-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.kv-inventory-card:hover {
  transform: translateY(-8px);
}

.kv-inventory-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
}

.kv-inventory-card__image-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.kv-inventory-card__image {
  position: relative;
  width: 100%;
  padding-top: 66.67%;
  background: var(--color-bg-light);
  overflow: hidden;
}

.kv-inventory-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.kv-inventory-card:hover .kv-inventory-card__image img {
  transform: scale(1.05);
}

.kv-inventory-card__content {
  padding: clamp(1.25rem, 1rem + 0.5vw, 1.5rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.kv-inventory-card__title {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
  margin-bottom: 0.375rem;
}

.kv-inventory-card__title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.kv-inventory-card__title a:hover {
  color: var(--color-primary);
}

.kv-inventory-card__grade {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.kv-inventory-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e6f4ff 100%);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.kv-inventory-card__price-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.kv-inventory-card__price-value {
  font-family: var(--font-family-en-accent);
  font-size: clamp(1.25rem, 1.125rem + 0.5vw, 1.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.kv-inventory-card__price-value small {
  font-size: 0.75em;
  font-weight: var(--font-weight-medium);
  margin-left: 0.25rem;
}

.kv-inventory-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.kv-inventory-card__spec {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.kv-inventory-card__spec i {
  color: var(--color-primary);
  font-size: 0.875rem;
}

/* View More Button */
.kv-inventory-more {
  text-align: center;
}
