/* ============================================
   ATREYU — Shared Design System
   ============================================ */

:root {
  --bg:          #f0e8d8;
  --bg-alt:      #e8dcc8;
  --bg-dark:     #2a1a0a;
  --cream:       #faf6ee;
  --brown-dark:  #4a2c10;
  --brown:       #7a4f2e;
  --brown-mid:   #9a6640;
  --brown-light: #c09060;
  --gold:        #b8895a;
  --text:        #2d1a08;
  --text-mid:    #6a4828;
  --text-light:  #9a7858;
  --white:       #fdf8f0;

  --font-serif-en: 'Cormorant Garamond', Georgia, serif;
  --font-serif-jp: 'Noto Serif JP', serif;
  --font-sans:     'Noto Sans JP', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.85;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(240,232,216,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122,79,46,0.12);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 44px;
  height: auto;
  color: var(--brown-dark);
}

.nav-brand {
  font-family: var(--font-serif-en);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--brown-dark);
}

.nav-toggle {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--brown-dark);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-menu {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-top: 1px solid rgba(122,79,46,0.1);
  padding: 8px 0 24px;
}

.nav-menu.open { display: flex; }

.nav-item {
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--brown-dark);
  border-bottom: 1px solid rgba(122,79,46,0.08);
  transition: background 0.2s;
}

.nav-item:hover { background: rgba(122,79,46,0.05); }

.nav-item--cta {
  margin: 12px 24px 0;
  background: var(--brown-dark);
  color: var(--white);
  text-align: center;
  padding: 14px 24px;
  border-bottom: none;
  letter-spacing: 0.15em;
  font-size: 13px;
}

.nav-item--cta:hover { background: var(--brown); }

/* ===== PAGE TOP PADDING ===== */
main { padding-top: 60px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  transition: all 0.25s var(--ease-out);
  text-align: center;
  border: none;
  line-height: 1;
}

.btn--primary {
  background: var(--brown-dark);
  color: var(--white);
}
.btn--primary:hover { background: var(--brown); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--brown-dark);
  color: var(--brown-dark);
}
.btn--ghost:hover { background: var(--brown-dark); color: var(--white); }

.btn--ghost-light {
  background: transparent;
  border: 1px solid rgba(240,232,216,0.4);
  color: var(--white);
}
.btn--ghost-light:hover { background: rgba(240,232,216,0.15); }

.btn--outline {
  background: transparent;
  border: 1px solid var(--brown);
  color: var(--brown);
  padding: 12px 32px;
  font-size: 12px;
  letter-spacing: 0.2em;
}
.btn--outline:hover { background: var(--brown); color: var(--white); }

.btn--large { padding: 18px 36px; font-size: 14px; }
.btn--large small { display: block; font-size: 10px; letter-spacing: 0.08em; margin-top: 4px; opacity: 0.7; }

/* ===== SECTION COMMON ===== */
.section { padding: 80px 28px; }

.section-header { margin-bottom: 48px; }

.section-eyebrow {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--brown-light);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-family: var(--font-serif-jp);
  font-size: 26px;
  font-weight: 400;
  color: var(--brown-dark);
  line-height: 1.4;
}

/* ===== HERO ===== */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 28px 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero-bg-text {
  position: absolute;
  font-family: var(--font-serif-en);
  font-size: clamp(80px, 28vw, 220px);
  font-weight: 300;
  color: rgba(122,79,46,0.055);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.1em;
  user-select: none;
}

.hero-content { position: relative; z-index: 1; max-width: 560px; }

.hero-eyebrow {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--brown-light);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}

.hero-title {
  font-family: var(--font-serif-jp);
  font-size: clamp(24px, 4.5vw, 38px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--brown-dark);
  margin-bottom: 24px;
}

.hero-line { display: block; }

.hero-title em {
  font-style: normal;
  position: relative;
  display: inline-block;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 1px;
  background: var(--brown-light);
}

.hero-sub {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--brown-light);
  text-transform: uppercase;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--brown-light);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--brown);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--brown-dark);
  padding: 28px 28px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 20px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.trust-num {
  font-family: var(--font-serif-en);
  font-size: 32px;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.trust-num small {
  font-size: 14px;
  letter-spacing: 0;
}

.trust-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(240,232,216,0.55);
  line-height: 1.4;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(240,232,216,0.15);
  flex-shrink: 0;
}

/* ===== SERVICES ===== */
.services { background: var(--bg); }

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-card {
  border-top: 1px solid rgba(122,79,46,0.12);
  padding: 48px 0;
}

.service-card:last-child { border-bottom: 1px solid rgba(122,79,46,0.12); }

.service-card__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.service-num {
  font-family: var(--font-serif-en);
  font-size: 42px;
  font-weight: 300;
  color: rgba(122,79,46,0.15);
  line-height: 1;
}

.service-badge {
  font-family: var(--font-serif-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  background: var(--brown-dark);
  color: var(--white);
  padding: 3px 10px;
}

.service-badge--light {
  background: transparent;
  border: 1px solid var(--brown-light);
  color: var(--brown-light);
}

.service-name {
  font-family: var(--font-serif-jp);
  font-size: 22px;
  font-weight: 400;
  color: var(--brown-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-catch {
  font-family: var(--font-serif-jp);
  font-size: 16px;
  font-weight: 300;
  color: var(--brown);
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 20px;
}

.service-link {
  font-family: var(--font-serif-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--brown);
  border-bottom: 1px solid rgba(122,79,46,0.3);
  padding-bottom: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s, color 0.2s;
}
.service-link:hover { color: var(--brown-dark); gap: 10px; }

.service-img-placeholder {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #d4c0a0 100%);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-img-placeholder span {
  font-family: var(--font-serif-en);
  font-size: 64px;
  font-weight: 300;
  color: rgba(122,79,46,0.2);
}

.service-img-placeholder--dark {
  background: linear-gradient(135deg, #3a2510 0%, #5a3820 100%);
}
.service-img-placeholder--dark span { color: rgba(240,232,216,0.15); }

/* ===== CONCEPT TEASER ===== */
.concept-teaser {
  background: var(--brown-dark);
  padding: 72px 28px;
  position: relative;
  overflow: hidden;
}

.concept-teaser::before {
  content: 'ATREYU';
  position: absolute;
  font-family: var(--font-serif-en);
  font-size: 120px;
  font-weight: 300;
  color: rgba(255,255,255,0.03);
  bottom: -20px;
  right: -10px;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.concept-teaser__title {
  font-family: var(--font-serif-jp);
  font-size: 24px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 16px;
}

.concept-teaser__text {
  font-size: 13px;
  color: rgba(240,232,216,0.55);
  line-height: 1.9;
  margin-bottom: 32px;
}

.concept-teaser__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
}

/* ===== NEWS ===== */
.news-section { background: var(--bg-alt); }

.news-list { display: flex; flex-direction: column; }

.news-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(122,79,46,0.1);
  transition: background 0.2s;
}

.news-date {
  font-family: var(--font-serif-en);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brown-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

.news-arrow {
  color: var(--brown-light);
  font-size: 16px;
  transition: transform 0.2s;
}

.news-item:hover .news-arrow { transform: translateX(4px); }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--bg-dark);
  padding: 80px 28px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(122,79,46,0.25) 0%, transparent 70%);
}

.cta-inner { position: relative; z-index: 1; }

.cta-title {
  font-family: var(--font-serif-jp);
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cta-sub {
  font-size: 13px;
  color: rgba(240,232,216,0.55);
  line-height: 2;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--brown-dark);
  padding: 48px 28px 32px;
  border-top: 1px solid rgba(122,79,46,0.3);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 36px;
  color: rgba(240,232,216,0.4);
}

.footer-brand {
  font-family: var(--font-serif-en);
  font-size: 16px;
  letter-spacing: 0.2em;
  color: rgba(240,232,216,0.4);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.footer-nav a {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(240,232,216,0.45);
  padding: 6px 16px 6px 0;
  transition: color 0.2s;
}

.footer-nav a:hover { color: rgba(240,232,216,0.85); }

.footer-sns {
  display: flex;
  gap: 14px;
}

.sns-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(240,232,216,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.sns-btn svg { width: 16px; height: 16px; color: rgba(240,232,216,0.5); }
.sns-btn:hover { border-color: rgba(240,232,216,0.5); background: rgba(240,232,216,0.05); }

.footer-note {
  font-size: 11px;
  color: rgba(240,232,216,0.3);
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.footer-copy {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(240,232,216,0.2);
  padding-top: 16px;
  border-top: 1px solid rgba(240,232,216,0.06);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 80px 28px 56px;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid rgba(122,79,46,0.1);
}

.page-hero__eyebrow {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--brown-light);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.page-hero__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 400;
  color: var(--brown-dark);
  line-height: 1.45;
  margin-bottom: 16px;
}

.page-hero__sub {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2;
  max-width: 480px;
}

/* ===== PROSE (content pages) ===== */
.prose {
  padding: 56px 28px;
  max-width: 640px;
}

.prose h2 {
  font-family: var(--font-serif-jp);
  font-size: 20px;
  font-weight: 400;
  color: var(--brown-dark);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(122,79,46,0.1);
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  font-size: 14px;
  line-height: 2.1;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.prose p + p { margin-top: -4px; }

/* ===== PRICE TABLE ===== */
.price-block {
  border: 1px solid rgba(122,79,46,0.15);
  margin: 32px 0;
  overflow: hidden;
}

.price-block__head {
  background: var(--brown-dark);
  color: var(--white);
  padding: 14px 20px;
  font-family: var(--font-serif-jp);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.price-block__body { padding: 20px; background: var(--cream); }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(122,79,46,0.08);
  font-size: 13px;
  gap: 16px;
}

.price-row:last-child { border-bottom: none; }
.price-row__label { color: var(--text-mid); }
.price-row__value { font-family: var(--font-serif-en); font-size: 18px; color: var(--brown-dark); white-space: nowrap; }
.price-row__note { font-size: 11px; color: var(--text-light); margin-top: 8px; line-height: 1.8; }

/* ===== FADE ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 560px; }

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.form-label span {
  color: var(--brown);
  margin-left: 4px;
  font-size: 10px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--cream);
  border: 1px solid rgba(122,79,46,0.2);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  border-radius: 0;
}

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

.form-textarea { min-height: 160px; resize: vertical; }

/* ===== DIVIDER ===== */
.ornament {
  text-align: center;
  padding: 8px 0;
  opacity: 0.3;
  font-family: var(--font-serif-en);
  letter-spacing: 0.8em;
  color: var(--brown);
  font-size: 14px;
}
