/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:       #ffffff;
  --bg-2:     #f5f5f5;
  --bg-3:     #ebebeb;
  --text:     #0a0a0a;
  --gold:     #b8920a;
  --gold-dim: rgba(184, 146, 10, 0.12);
  --gray:     #888888;
  --border:   #e0e0e0;
  --font-ja:  'Zen Kaku Gothic New', sans-serif;
  --font-en:  'Barlow Condensed', sans-serif;
  --font-body:'Noto Sans JP', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION ===== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 28px 52px;
  transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  padding: 18px 52px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 44px;
}

.nav-links a {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.2em;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-menu-btn span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: all 0.3s;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mobile-link {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.mobile-link:hover {
  color: var(--gold);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 0 52px 0 clamp(52px, 8vw, 180px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-particles {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.6s forwards;
  pointer-events: none;
}

.hero-deco {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-weight: 900;
  font-size: clamp(180px, 22vw, 320px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,0.05);
  letter-spacing: -0.05em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 240px;
  background: linear-gradient(transparent, var(--bg));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: var(--font-en);
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: var(--font-ja);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  margin-bottom: 44px;
}

.line {
  display: block;
  overflow: hidden;
}

.line-1 {
  font-size: clamp(80px, 14vw, 190px);
  color: var(--text);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.line-2 {
  font-size: clamp(80px, 14vw, 190px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.hero-sub {
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 2;
  color: var(--gray);
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--bg);
  background: var(--text);
  padding: 18px 52px;
  text-decoration: none;
  transition: background 0.3s, gap 0.3s;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease 1s forwards;
}

.cta-btn:hover {
  background: var(--gold);
  gap: 20px;
}

.cta-btn .arrow {
  font-size: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 44px;
  right: 52px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}

.scroll-text {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--gray);
  writing-mode: vertical-rl;
}

.scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 80px;
}

.scroll-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--border);
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--gray);
  animation: scrollDraw 2.4s cubic-bezier(1, 0, 0, 1) infinite;
}

/* ===== SECTION COMMON ===== */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 72px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.section-num {
  font-family: var(--font-en);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.section-title {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 88px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text);
}

/* ===== SERVICES ===== */
.services {
  padding: 120px 52px;
  max-width: 1400px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}

.service-item {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  transition: background 0.4s;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-item:hover::before {
  width: 100%;
}

.service-item:hover {
  background: var(--bg-2);
}

.service-bg-num {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 160px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.4s;
}

.service-item:hover .service-bg-num {
  opacity: 0.7;
}

.service-inner {
  padding: 64px 52px 72px;
  position: relative;
  z-index: 1;
}

.service-tag {
  font-family: var(--font-en);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(30px, 3.5vw, 44px);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.service-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 400px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-list li {
  font-size: 14px;
  color: #aaaaaa;
  padding-left: 20px;
  position: relative;
  letter-spacing: 0.02em;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ===== ABOUT ===== */
.about {
  padding: 120px 52px;
  max-width: 1400px;
  margin: 0 auto;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.about-headline {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.45;
  margin-bottom: 36px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.about-headline em {
  font-style: normal;
  color: var(--gold);
}

.about-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
}

.about-info dl {
  border-top: 1px solid var(--border);
}

.info-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

dt {
  font-family: var(--font-en);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-top: 2px;
}

dd {
  color: #555555;
  letter-spacing: 0.02em;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg-2);
  padding: 120px 52px;
}

.contact .section-header {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.contact-inner {
  max-width: 840px;
  margin: 0 auto;
}

.contact-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 60px;
  letter-spacing: 0.06em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group label {
  font-family: var(--font-en);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  color: var(--gold);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #cccccc;
}

.form-group textarea {
  resize: none;
  line-height: 1.8;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  color: #555555;
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.3s;
}

.select-wrap select:focus {
  border-color: var(--gold);
}

.select-wrap select option {
  background: #ffffff;
  color: var(--text);
}

.select-arrow {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--gold);
  pointer-events: none;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  align-self: flex-start;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--bg);
  background: var(--text);
  border: none;
  padding: 20px 64px;
  cursor: pointer;
  transition: background 0.3s, gap 0.3s;
  margin-top: 12px;
}

.submit-btn:hover {
  background: var(--gold);
  gap: 24px;
}

.btn-arrow {
  font-size: 1rem;
  transition: transform 0.3s;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 52px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 32px;
}

.footer-logo {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--text);
}

.footer-nav {
  display: flex;
  gap: 36px;
}

.footer-nav a {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 0.68rem;
  color: var(--gray);
  letter-spacing: 0.1em;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scrollDraw {
  0%   { transform: scale(1, 0); transform-origin: 0 0; }
  30%  { transform: scale(1, 1); transform-origin: 0 0; }
  70%  { transform: scale(1, 1); transform-origin: 0 100%; }
  100% { transform: scale(1, 0); transform-origin: 0 100%; }
}

/* Scroll-triggered fade */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  #nav { padding: 24px 32px; }
  #nav.scrolled { padding: 16px 32px; }
  .hero { padding: 0 32px; }
  .hero-scroll { right: 32px; }
  .services,
  .about { padding: 96px 32px; }
  .contact { padding: 96px 32px; }
  .footer { padding: 40px 32px; }
  .about-inner { gap: 60px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  #nav { padding: 20px 24px; }
  #nav.scrolled { padding: 14px 24px; }

  .hero { padding: 0 24px; min-height: 600px; }
  .hero-scroll { display: none; }

  .services { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-inner { padding: 48px 32px 56px; }

  .about { padding: 80px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }

  .contact { padding: 80px 24px; }
  .contact .section-header { margin-left: 0; margin-right: 0; }
  .form-row { grid-template-columns: 1fr; gap: 40px; }

  .footer { padding: 36px 24px; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-nav { gap: 24px; }
}
