/* ============================================================
   JERAFLARE OFFICE — style.css
   共通スタイル（index.html / works.html 共用）
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Noto+Serif+JP:wght@200;300;400&family=Jost:wght@200;300;400;500&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Serif JP', serif;
  background: var(--cream);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== CSS Variables ===== */
:root {
  --ink:         #1a1812;
  --ink-mid:     #3d3830;
  --ink-light:   #6b6358;
  --cream:       #f7f4ef;
  --cream-dark:  #ede8e0;
  --gold:        #b8924a;
  --gold-light:  #d4b07a;
  --white:       #fefcf8;
  --accent:      #c0621a;   /* オレンジ寄りのアクセント（main.png に合わせて） */
  --font-en:     'Cormorant Garamond', serif;
  --font-en-sub: 'Jost', sans-serif;
  --font-jp:     'Noto Serif JP', serif;
  --transition:  0.3s ease;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 80px;
  background: rgba(14,14,14,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184,146,74,0.15);
  transition: padding var(--transition), background var(--transition);
}

.header-logo {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--cream);
}
.header-logo span { color: var(--gold); }

.header-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.header-nav a {
  font-family: var(--font-en-sub);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.7);
  position: relative;
  transition: color var(--transition);
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s ease;
}
.header-nav a:hover,
.header-nav a.active { color: var(--cream); }
.header-nav a:hover::after,
.header-nav a.active::after { right: 0; }

.header-cta {
  font-family: var(--font-jp) !important;
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
  text-transform: none !important;
  background: var(--gold);
  color: var(--white) !important;
  padding: 10px 26px;
  transition: background var(--transition) !important;
}
.header-cta:hover { background: #a07a3a !important; }
.header-cta::after { display: none !important; }

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

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: rgba(14,14,14,0.97);
  z-index: 190;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.mobile-nav.open { opacity: 1; visibility: visible; display: flex; }
.mobile-nav a {
  font-family: var(--font-en-sub);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.7);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--gold); }

/* ===== PAGE HERO (sub pages) ===== */
.page-hero {
  margin-top: 80px;
  padding: 80px 80px 64px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.page-hero-bg-text {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-size: 160px;
  font-weight: 300;
  color: rgba(184,146,74,0.06);
  letter-spacing: 0.1em;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb {
  font-family: var(--font-en-sub);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(184,146,74,0.55);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.breadcrumb a { color: rgba(184,146,74,0.55); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(237,232,224,0.2); }
.page-title {
  font-family: var(--font-en);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.page-subtitle {
  font-size: 14px;
  color: rgba(237,232,224,0.45);
  letter-spacing: 0.06em;
}

/* ===== SECTION COMMON ===== */
.section-label {
  font-family: var(--font-en-sub);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(34px, 3.5vw, 54px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
}
.section-title-jp {
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 200;
  color: var(--ink-light);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 16px 40px;
  font-family: var(--font-jp);
  font-size: 13px;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-primary:hover { background: #a07a3a; }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(254,252,248,0.45);
  color: var(--white);
  padding: 16px 40px;
  font-family: var(--font-jp);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: border-color 0.3s, background 0.3s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(254,252,248,0.07); }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.60s; }

/* ===== TICKER ===== */
.ticker-wrap {
  background: var(--gold);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
  font-family: var(--font-en-sub);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-sep { opacity: 0.45; }

/* ===== FOOTER ===== */
.site-footer {
  background: #0a0906;
  padding: 72px 80px 40px;
  border-top: 1px solid rgba(184,146,74,0.1);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 36px;
}
.footer-logo {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--cream);
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  margin-top: 16px;
  font-size: 12.5px;
  color: rgba(237,232,224,0.45);
  line-height: 2;
}
.footer-nav-title {
  font-family: var(--font-en-sub);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-nav-list { display: flex; flex-direction: column; gap: 12px; }
.footer-nav-list a {
  font-size: 13px;
  color: rgba(237,232,224,0.45);
  transition: color 0.2s;
}
.footer-nav-list a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-family: var(--font-en-sub);
  font-size: 11px;
  color: rgba(237,232,224,0.25);
  letter-spacing: 0.1em;
}
.footer-to-top {
  font-family: var(--font-en-sub);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237,232,224,0.35);
  transition: color 0.2s;
}
.footer-to-top:hover { color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .site-header { padding: 0 36px; }
  .page-hero { padding: 72px 40px 56px; }
  .site-footer { padding: 56px 40px 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 24px; }
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .page-hero { padding: 64px 24px 48px; }
  .page-hero-bg-text { font-size: 80px; }
  .site-footer { padding: 48px 24px 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
