/*
Theme Name: Koyo Custom Theme
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Minimal luxury corporate theme for Koyo Co., Ltd.
Version: 1.1
Text Domain: koyo
*/

:root {
  --bg: #121212;
  --text: #F5F5F5;
  --muted: rgba(245, 245, 245, 0.72);
  --gold: #D4AF37;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 1200px;
  --radius: 20px;
  --transition: 0.45s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.koyo-front-page {
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
  text-decoration: none;
  transition:
    color var(--transition),
    opacity var(--transition),
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}

a:hover {
  color: var(--gold);
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.08), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.06), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.03), transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.koyo-container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.koyo-section {
  padding: 110px 0;
}

.koyo-section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.koyo-eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.koyo-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.koyo-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  max-width: 780px;
}

.koyo-grid {
  display: grid;
  gap: 28px;
}

.koyo-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.koyo-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.koyo-card {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.koyo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.42);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.07), rgba(255,255,255,0.02));
}

.koyo-card-title,
.koyo-card h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.koyo-card-text,
.koyo-card p {
  margin: 0;
  color: var(--muted) !important;
  font-size: 0.98rem;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.koyo-card * {
  visibility: visible !important;
}

.koyo-divider {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 22px 0 0;
  opacity: 1 !important;
}

.koyo-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.koyo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.koyo-btn-primary {
  background: var(--gold);
  color: #111;
  border: 1px solid var(--gold);
}

.koyo-btn-primary:hover {
  background: transparent;
  color: var(--gold);
}

.koyo-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.koyo-btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Header */
.koyo-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(18, 18, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.koyo-header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.koyo-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}

.koyo-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(212, 175, 55, 0.06);
  flex-shrink: 0;
}

.koyo-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.koyo-logo-text strong {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.koyo-logo-text em {
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.koyo-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.koyo-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.koyo-nav a:hover {
  color: var(--gold);
}

.koyo-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 999px;
  color: var(--gold) !important;
}

.koyo-nav-cta:hover {
  background: rgba(212, 175, 55, 0.08);
}

.koyo-lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.koyo-lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.koyo-lang-switcher a:hover,
.koyo-lang-switcher a.active {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
}

/* Hero */
.koyo-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}

.koyo-hero-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 48px;
  align-items: end;
}

.koyo-hero-copy {
  max-width: 760px;
}

.koyo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
}

.koyo-kicker::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.8;
}

.koyo-hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.koyo-hero-title .accent {
  color: var(--gold);
}

.koyo-hero-text {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.koyo-hero-panel {
  padding: 28px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.10), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.koyo-panel-label {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.koyo-panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.koyo-panel-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}

.koyo-panel-list li:last-child {
  border-bottom: none;
}

.koyo-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.koyo-stat {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.koyo-stat strong {
  display: block;
  color: var(--gold);
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1;
  font-weight: 800;
  margin-bottom: 10px;
}

.koyo-stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Brand / About */
.koyo-brand-block {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 38px;
  align-items: stretch;
}

.koyo-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 34px;
  border: 1px solid rgba(212, 175, 55, 0.20);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.09), rgba(255,255,255,0.02));
}

.koyo-quote-text {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.koyo-quote-mark {
  color: var(--gold);
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 18px;
}

.koyo-brand-copy {
  padding: 10px 0;
}

.koyo-brand-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Footer */
.koyo-footer {
  padding: 48px 0 60px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.koyo-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.koyo-footer-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.koyo-footer p,
.koyo-footer li,
.koyo-footer a {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.koyo-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.koyo-footer-list li + li {
  margin-top: 10px;
}

.koyo-copyright {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(245,245,245,0.58);
  font-size: 0.9rem;
}

/* Animation */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1s ease forwards;
}

.fade-delay-1 { animation-delay: 0.12s; }
.fade-delay-2 { animation-delay: 0.24s; }
.fade-delay-3 { animation-delay: 0.36s; }
.fade-delay-4 { animation-delay: 0.48s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WP base */
.site-content {
  padding-top: 100px;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

/* Anchor offset */
#services,
#about {
  scroll-margin-top: 100px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .koyo-hero-layout,
  .koyo-brand-block,
  .koyo-grid-3,
  .koyo-footer-grid {
    grid-template-columns: 1fr;
  }

  .koyo-grid-2,
  .koyo-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .koyo-hero {
    min-height: auto;
    padding-top: 120px;
  }

  .koyo-header-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 840px) {
  .koyo-header-inner {
    min-height: 74px;
  }

  .koyo-logo-text em {
    display: none;
  }

  .koyo-nav {
    gap: 16px;
  }

  .koyo-nav a {
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  .koyo-container {
    width: min(100% - 32px, var(--max-width));
  }

  .koyo-section {
    padding: 82px 0;
  }

  .koyo-grid-2,
  .koyo-stat-grid {
    grid-template-columns: 1fr;
  }

  .koyo-hero-title {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .koyo-title {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .koyo-card,
  .koyo-hero-panel,
  .koyo-quote {
    padding: 24px;
  }

  .koyo-header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .koyo-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .koyo-logo-mark {
    width: 48px;
    height: 48px;
    font-size: 0.88rem;
  }

  .koyo-lang-switcher {
    margin-top: 4px;
  }
}