/* ============================================================
   CENTURION — Corporate Website
   Design: Modern Minimal | Black × Gold
   ============================================================ */

:root {
  --black:   #080808;
  --dark:    #0f0f0f;
  --dark2:   #161616;
  --dark3:   #202020;
  --white:   #f4f4ef;
  --white2:  #e0e0da;
  --gold:    #c9a84c;
  --gold-lt: #e0c470;
  --gold-dk: #9e7c30;
  --gray:    #555;
  --gray2:   #888;
  --gray3:   #aaa;

  --f-en:     'Montserrat', sans-serif;
  --f-serif:  'Cormorant Garamond', serif;
  --f-jp:     'Noto Sans JP', sans-serif;

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-jp);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ── Custom Cursor ──────────────────────────── */
#cursor {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s, background .25s;
  will-change: transform;
}
#cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(201,168,76,.45);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, border-color .3s;
  will-change: transform;
}
.cursor-grow #cursor       { width: 14px; height: 14px; }
.cursor-grow #cursor-ring  { width: 52px; height: 52px; border-color: rgba(201,168,76,.25); }

/* ── Preloader ──────────────────────────────── */
#preloader {
  position: fixed; inset: 0;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity .7s var(--ease), visibility .7s;
}
#preloader.out { opacity: 0; visibility: hidden; }

.pre-inner { text-align: center; }
.pre-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  width: 0; max-width: 220px; margin: 0 auto;
  animation: lineGrow .9s var(--ease) .1s forwards;
}
@keyframes lineGrow { to { width: 220px; } }

/* ── Header ─────────────────────────────────── */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .5s var(--ease), padding .4s;
}
#header.scrolled {
  background: rgba(8,8,8,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201,168,76,.1);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; padding: 0 5%;
  transition: height .4s;
}
#header.scrolled .header-inner { height: 60px; }

/* Logo */
.nav-logo { display: flex; flex-direction: column; gap: 3px; }
.logo-en {
  font-family: var(--f-en);
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: .28em; color: var(--white); line-height: 1;
}
.logo-jp {
  font-size: .58rem; font-weight: 300;
  letter-spacing: .2em; color: var(--gray3); line-height: 1;
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 2.4rem;
}
.nav-links a {
  font-family: var(--f-en);
  font-size: .68rem; font-weight: 400;
  letter-spacing: .2em; color: var(--gray3);
  position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .35s var(--ease);
}
.nav-links a:hover          { color: var(--white); }
.nav-links a:hover::after   { width: 100%; }
.nav-btn {
  border: 1px solid rgba(201,168,76,.4) !important;
  padding: 8px 22px !important;
  color: var(--gold) !important;
  transition: background .35s, color .35s !important;
}
.nav-btn:hover             { background: var(--gold) !important; color: var(--black) !important; }
.nav-btn::after            { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 1px;
  background: var(--white);
  transition: transform .4s var(--ease), opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile Menu ─────────────────────────────── */
.mob-menu {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.mob-menu.open { opacity: 1; visibility: visible; }
.mob-menu ul { text-align: center; }
.mob-menu li { margin: 1.8rem 0; overflow: hidden; }
.mob-link {
  font-family: var(--f-en);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 200; letter-spacing: .18em;
  display: block;
  transform: translateY(110%);
  transition: transform .55s var(--ease-out), color .3s;
}
.mob-menu.open .mob-link               { transform: translateY(0); }
.mob-menu li:nth-child(1) .mob-link    { transition-delay: .08s; }
.mob-menu li:nth-child(2) .mob-link    { transition-delay: .13s; }
.mob-menu li:nth-child(3) .mob-link    { transition-delay: .18s; }
.mob-menu li:nth-child(4) .mob-link    { transition-delay: .23s; }
.mob-link:hover { color: var(--gold); }

/* ── Layout ─────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.section        { padding: 130px 0; }
.section-dark   { background: var(--dark); }

/* Section header */
.sec-head    { text-align: center; margin-bottom: 80px; }
.sec-label {
  display: inline-block;
  font-family: var(--f-en);
  font-size: .62rem; font-weight: 400;
  letter-spacing: .45em; color: var(--gold);
  margin-bottom: 14px;
}
.sec-title {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300; letter-spacing: .1em;
  line-height: 1.2; margin-bottom: 24px;
}
.sec-desc {
  font-size: .88rem; font-weight: 300;
  color: var(--gray3); line-height: 2.1;
  letter-spacing: .05em;
}
.br-pc { display: inline; }

/* ── Hero ───────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh; min-height: 680px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* Background grid texture */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(201,168,76,.05) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(201,168,76,.04) 0%, transparent 45%),
    linear-gradient(160deg, #0c0c0c 0%, #080808 60%, #0a0a0a 100%);
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.025) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* Hero content */
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 5%;
}
.hero-eyebrow {
  display: block;
  font-family: var(--f-en);
  font-size: .62rem; font-weight: 300;
  letter-spacing: .55em; color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .9s var(--ease) 1.6s forwards;
}
.hero-title {
  font-family: var(--f-en);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 200; letter-spacing: .14em;
  line-height: 1; margin-bottom: 36px;
  overflow: hidden;
}
.hero-title-inner {
  display: block;
  background: linear-gradient(135deg,
    var(--white)  0%,
    var(--white2) 35%,
    var(--gold-lt) 58%,
    var(--white)  100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(115%);
  animation: slideUp 1.1s var(--ease-out) .8s forwards;
}
.hero-sub {
  font-size: clamp(.9rem, 2vw, 1.1rem);
  font-weight: 300; letter-spacing: .22em;
  line-height: 2.3; color: var(--gray3);
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp .9s var(--ease) 1.9s forwards;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-en);
  font-size: .72rem; font-weight: 400;
  letter-spacing: .2em; color: var(--gold);
  border: 1px solid rgba(201,168,76,.4);
  padding: 16px 36px;
  transition: background .4s var(--ease), color .4s, gap .3s, border-color .4s;
  opacity: 0;
  animation: fadeUp .9s var(--ease) 2.2s forwards;
}
.hero-cta:hover {
  background: var(--gold); color: var(--black);
  border-color: var(--gold); gap: 20px;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2;
}
.scroll-bar {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollAnim 2.2s var(--ease) infinite;
}
.hero-scroll-indicator span {
  font-family: var(--f-en); font-size: .52rem;
  letter-spacing: .4em; color: var(--gray);
  writing-mode: vertical-rl;
}
@keyframes scrollAnim {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  45%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  55%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── Services Grid ──────────────────────────── */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.1);
}

.srv-card {
  background: var(--black);
  padding: 48px 36px 44px;
  position: relative; overflow: hidden;
  transition: background .4s var(--ease);
}
.srv-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.srv-card:hover                { background: var(--dark2); }
.srv-card:hover::before        { transform: scaleX(1); }

.srv-num {
  font-family: var(--f-en); font-size: .6rem; font-weight: 300;
  letter-spacing: .25em; color: var(--gold); margin-bottom: 22px;
}
.srv-icon {
  width: 48px; height: 48px; margin-bottom: 22px;
  transition: transform .4s var(--ease);
}
.srv-card:hover .srv-icon { transform: translateY(-5px); }

.srv-en {
  font-family: var(--f-en); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; color: var(--white); margin-bottom: 8px;
}
.srv-jp {
  font-size: .82rem; font-weight: 300;
  color: var(--gold); letter-spacing: .16em; margin-bottom: 18px;
}
.srv-body {
  font-size: .8rem; font-weight: 300;
  color: var(--gray3); line-height: 2; letter-spacing: .04em;
}

/* ── About / Philosophy ─────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-text .sec-label { margin-bottom: 14px; }
.about-text .sec-title { text-align: left; margin-bottom: 0; }

.about-body {
  margin-top: 28px; margin-bottom: 44px;
}
.about-body p {
  font-size: .86rem; font-weight: 300;
  color: var(--gray3); line-height: 2.3;
  letter-spacing: .04em; margin-bottom: 18px;
}
.about-body p:last-child { margin-bottom: 0; }

.about-stats {
  display: flex; gap: 52px;
  padding-top: 36px;
  border-top: 1px solid rgba(201,168,76,.18);
}
.stat-num {
  font-family: var(--f-serif);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 300; color: var(--gold);
  line-height: 1; margin-bottom: 8px;
}
.stat-lbl {
  font-size: .7rem; font-weight: 300;
  color: var(--gray3); letter-spacing: .1em;
}

/* About visual */
.about-visual { position: relative; }
.av-card {
  border: 1px solid rgba(201,168,76,.14);
  padding: 48px;
  position: relative; z-index: 1;
}
.av-item { padding: 26px 0; }
.av-en {
  display: block;
  font-family: var(--f-en); font-size: 1.15rem; font-weight: 200;
  letter-spacing: .32em; color: var(--white); margin-bottom: 8px;
}
.av-jp {
  display: block; font-size: .72rem; font-weight: 300;
  color: var(--gray3); letter-spacing: .15em;
}
.av-rule { height: 1px; background: rgba(201,168,76,.14); }
.av-deco {
  position: absolute;
  top: 18px; right: -18px;
  bottom: -18px; left: 18px;
  border: 1px solid rgba(201,168,76,.06);
  pointer-events: none;
}

/* ── Company Table ──────────────────────────── */
.co-wrap {
  max-width: 920px; margin: 0 auto;
  border: 1px solid rgba(201,168,76,.1);
}
.co-table { width: 100%; border-collapse: collapse; }
.co-table tr { border-bottom: 1px solid rgba(201,168,76,.07); }
.co-table tr:last-child { border-bottom: none; }
.co-table th {
  width: 160px; padding: 28px 32px;
  text-align: left; vertical-align: top;
  font-size: .75rem; font-weight: 400;
  color: var(--gold); letter-spacing: .1em;
  background: rgba(201,168,76,.03);
  border-right: 1px solid rgba(201,168,76,.07);
  white-space: nowrap;
}
.co-table td {
  padding: 28px 32px;
  font-size: .83rem; font-weight: 300;
  color: var(--gray3); line-height: 2.2;
  letter-spacing: .04em;
}
.td-en {
  font-family: var(--f-en); font-size: .72rem; font-weight: 300;
  color: var(--gray); letter-spacing: .1em;
}

/* ── Contact Form ───────────────────────────── */
.con-form { max-width: 820px; margin: 0 auto; }

.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-bottom: 24px;
}
.form-group {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 24px;
}
.form-group:last-of-type { margin-bottom: 0; }

label {
  font-family: var(--f-en);
  font-size: .64rem; font-weight: 400;
  letter-spacing: .16em; color: var(--gray3);
}
.req { color: var(--gold); margin-left: 4px; }

input, select, textarea {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--white);
  padding: 16px 20px;
  font-family: var(--f-jp);
  font-size: .84rem; font-weight: 300;
  letter-spacing: .04em;
  transition: border-color .3s, background .3s;
  appearance: none; -webkit-appearance: none;
  border-radius: 0; width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--gray); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(201,168,76,.5);
  background: rgba(201,168,76,.03);
}

/* Select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: none;
}
select option { background: var(--dark2); color: var(--white); }
textarea       { resize: vertical; min-height: 160px; }

.form-foot   { text-align: center; margin-top: 48px; }
.submit-btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-en);
  font-size: .76rem; font-weight: 400;
  letter-spacing: .22em;
  color: var(--black); background: var(--gold);
  border: none; padding: 18px 52px;
  transition: background .4s, gap .3s, transform .3s;
}
.submit-btn:hover {
  background: var(--gold-lt); gap: 20px;
  transform: translateY(-2px);
}
.submit-btn.sent {
  background: #2a5a3a; color: #7dd9a0;
}

/* ── Footer ─────────────────────────────────── */
#footer {
  background: var(--dark);
  border-top: 1px solid rgba(201,168,76,.1);
  padding: 64px 0 40px;
}
.ft-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 32px;
}
.ft-logo { display: flex; flex-direction: column; gap: 5px; }
.ft-nav  { display: flex; gap: 2.4rem; }
.ft-nav a {
  font-family: var(--f-en); font-size: .64rem;
  letter-spacing: .2em; color: var(--gray3);
  transition: color .3s;
}
.ft-nav a:hover { color: var(--gold); }
.ft-bottom { text-align: center; }
.ft-bottom p {
  font-size: .62rem; font-weight: 300;
  letter-spacing: .15em; color: var(--gray);
}

/* ── Scroll Reveal ──────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger for section-header children */
.sec-head .reveal:nth-child(2) { transition-delay: .1s; }
.sec-head .reveal:nth-child(3) { transition-delay: .2s; }

/* Stagger for service cards */
.srv-card:nth-child(1).reveal { transition-delay: 0s; }
.srv-card:nth-child(2).reveal { transition-delay: .07s; }
.srv-card:nth-child(3).reveal { transition-delay: .14s; }
.srv-card:nth-child(4).reveal { transition-delay: .21s; }
.srv-card:nth-child(5).reveal { transition-delay: .28s; }
.srv-card:nth-child(6).reveal { transition-delay: .35s; }

/* ── Keyframes ──────────────────────────────── */
@keyframes slideUp  { to { transform: translateY(0); } }
@keyframes fadeUp   {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .srv-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 52px; }
  .about-visual { max-width: 480px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  body, button, select { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
  .srv-grid  { grid-template-columns: 1fr; }
  .form-row  { grid-template-columns: 1fr; }
  .ft-top    { flex-direction: column; gap: 32px; text-align: center; }
  .ft-nav    { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  .about-visual { display: none; }
  .about-stats  { flex-wrap: wrap; gap: 28px; }
  .co-table th  { width: 96px; padding: 18px 16px; font-size: .7rem; }
  .co-table td  { padding: 18px 16px; }
  .br-pc { display: none; }
}

@media (max-width: 480px) {
  .section  { padding: 64px 0; }
  .srv-card { padding: 32px 24px; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 3rem); }
  .av-card  { padding: 32px 24px; }
}
