/* Design Philosophy: Swiss Modernism meets Japanese Minimalism
 * - Deep charcoal gray and pure white for trust and professionalism
 * - Orange-red accent for energy and call-to-action
 * - Asymmetric grid with bold whitespace for information hierarchy
 * - Diagonal section dividers for movement and direction
 */

:root {
  /* Primary colors using OKLCH */
  --primary: oklch(0.55 0.22 25);
  --primary-foreground: oklch(1 0 0);
  --background: oklch(1 0 0);
  --foreground: oklch(0.20 0 0);
  --card: oklch(0.98 0 0);
  --card-foreground: oklch(0.20 0 0);
  --secondary: oklch(0.96 0 0);
  --secondary-foreground: oklch(0.30 0 0);
  --muted: oklch(0.96 0 0);
  --muted-foreground: oklch(0.50 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.90 0 0);
  --ring: oklch(0.55 0.22 25);
  
  /* Fonts */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  
  /* Border radius */
  --radius: 0.25rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
  outline-color: color-mix(in oklch, var(--ring), transparent 50%);
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-weight: 900;
  /* letter-spacing: -0.02em; */
  line-height: 1.2;
}
/* 全てのh2に共通のスタイルを適用 */
h2 {
  font-size: 3.6rem;
  margin-bottom: 3rem;
  font-weight: 900 !important;
}
/* h2の中にある span (oem-part) だけを Montserrat に強制 */
h2 .oem-part {
  font-family: 'Montserrat', sans-serif !important;
  /* 英字の詰まり具合を微調整 */
  letter-spacing: 0.05em;
}

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

button, [role="button"], [type="button"], [type="submit"], [type="reset"], a[href] {
  cursor: pointer;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 1280px;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--secondary);
}

/* Cards */
.card {
  background-color: var(--card);
  color: var(--card-foreground);
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: color-mix(in oklch, var(--primary), transparent 70%);
}

.card-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* Diagonal sections */
.diagonal-top {
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
  margin-top: -5rem;
  padding-top: 8rem;
}

.diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  padding-bottom: 8rem;
  margin-bottom: -5rem;
}

/* Number display */
.number-display {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Layout */
.section {
  padding: 5rem 0;
}

.section-gray {
  background-color: var(--secondary);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-lg-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Typography utilities */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--muted-foreground);
}

/* Spacing utilities */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Flexbox */
.flex {
  display: flex;
  min-height: 0;
  min-width: 0;
}

.flex-col {
  flex-direction: column;
}

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

.items-center {
  align-items: center;
}

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

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

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Visual utilities */
.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.overflow-hidden {
  overflow: hidden;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Countdown timer */
.countdown-timer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  background-color: var(--foreground);
  color: var(--background);
  border-radius: 0.5rem;
  padding: 1rem;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.countdown-value-text {
  font-size: 2.25rem;
  font-weight: bold;
  font-family: var(--font-mono);
  line-height: 1;
}

.countdown-label {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Footer */
footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 3rem 0;
}

footer a {
  color: var(--background);
  text-decoration: underline;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 1;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: bold;
}

.badge-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.badge-destructive {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .countdown-value {
    min-width: 60px;
    padding: 0.75rem;
  }
  
  .countdown-value-text {
    font-size: 1.75rem;
  }
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring), transparent 90%);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

/* Utility classes for better alignment with React version */
.flex-shrink-0 {
  flex-shrink: 0;
}

.w-full {
  width: 100%;
}

.group:hover .group-hover\:translate-x-1 {
  transform: translateX(0.25rem);
}

.group:hover .group-hover\:translate-x-2 {
  transform: translateX(0.5rem);
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Circle checkmark */
.checkmark-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* Remove bullets from lists that use checkmark circles */
.space-y-2 li {
  list-style: none;
  padding-left: 0;
}

.space-y-4 li {
  list-style: none;
  padding-left: 0;
}

.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
