/* ==========================================================
   style.css — 株式会社Blue Beach グローバルスタイル
   ========================================================== */

:root {
  --navy: #0a1628;
  --navy-deep: #060f1c;
  --navy-soft: #152238;
  --gold: #c9a96e;
  --gold-light: #d9bd87;
  --gold-deep: #a88a51;
  --off-white: #f7f5f0;
  --off-white-2: #ede9e0;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-mute: #6b6b6b;
  --line: rgba(10, 22, 40, 0.12);
  --serif: 'Cormorant Garamond', 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ───── Header ───── */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.5s ease, padding 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 56px;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  transition: color 0.4s ease;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.logo::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-2px);
}
.header.scrolled .logo { color: var(--navy); }

.nav {
  display: flex;
  gap: 44px;
  align-items: center;
}
.nav a {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.4s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.nav a:hover::after { width: 100%; }
.header.scrolled .nav a { color: var(--navy); }

.nav-mobile-toggle { display: none; }

/* ───── FV ───── */
.fv {
  height: 100vh;
  min-height: 640px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(201, 169, 110, 0.08), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(201, 169, 110, 0.05), transparent 60%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-soft) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* subtle horizon line texture */
.fv::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 49.5%, rgba(201,169,110,0.06) 50%, transparent 50.5%),
    linear-gradient(to bottom, transparent 60%, rgba(10,22,40,0.4) 100%);
  pointer-events: none;
}

/* corner frame marks */
.fv-frame {
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(201, 169, 110, 0.18);
  pointer-events: none;
}
.fv-frame::before, .fv-frame::after {
  content: ''; position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--gold);
}
.fv-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.fv-frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.fv-inner {
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.fv-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 1.2s 0.2s ease forwards;
}
.fv-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 7.5vw, 108px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(30px);
  animation: rise 1.4s 0.5s ease forwards;
}
.fv-title em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
}
.fv-divider {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 36px;
  animation: expand 1.6s 1.1s ease forwards;
}
@keyframes expand { to { width: 80px; } }

.fv-jp {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.5em;
  color: rgba(255,255,255,0.55);
  padding-left: 0.5em; /* optical */
  opacity: 0;
  animation: fade 1.4s 1.4s ease forwards;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fade 1.2s 2s ease forwards;
}
.scroll-indicator span {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -30px; left: 0;
  width: 1px; height: 30px;
  background: var(--gold);
  animation: scrollPulse 2.4s ease infinite;
}
@keyframes scrollPulse {
  0% { top: -30px; }
  100% { top: 60px; }
}

/* ───── Section base ───── */
section { padding: 140px 56px; }
.container { max-width: 1240px; margin: 0 auto; }

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.section-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 80px;
  letter-spacing: 0.01em;
}
.section-title .jp {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--ink-mute);
  margin-top: 18px;
}

/* ───── Service ───── */
#service { background: #fff; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-card {
  padding: 56px 40px 64px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.5s ease;
  cursor: default;
}
.service-card:first-child { border-left: 1px solid var(--line); }
.service-card:hover { background: var(--off-white); }
.service-card:hover .service-num { color: var(--gold); }
.service-card:hover .service-arrow { transform: translate(4px, -4px); border-color: var(--gold); }

.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  margin-bottom: 48px;
  transition: color 0.4s ease;
}
.service-title-en {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.service-title-jp {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  margin-bottom: 32px;
}
.service-divider {
  width: 28px; height: 1px;
  background: var(--navy);
  margin-bottom: 28px;
  opacity: 0.3;
}
.service-desc {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.service-arrow {
  position: absolute;
  top: 56px;
  right: 40px;
  width: 10px; height: 10px;
  border-top: 1px solid var(--ink-mute);
  border-right: 1px solid var(--ink-mute);
  transform: rotate(45deg);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

/* ───── Company ───── */
#company {
  background: var(--off-white);
  position: relative;
}
#company::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 50%, transparent);
  opacity: 0.5;
}

.company-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.company-watermark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold-deep);
  letter-spacing: 0.2em;
  position: sticky;
  top: 120px;
}
.company-watermark-label {
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
  margin-top: 14px;
  letter-spacing: -0.01em;
}
.company-watermark-sub {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
  letter-spacing: 0.4em;
  margin-top: 20px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table tr {
  border-bottom: 1px solid rgba(10,22,40,0.1);
}
.company-table tr:first-child { border-top: 1px solid rgba(10,22,40,0.1); }
.company-table th, .company-table td {
  text-align: left;
  padding: 26px 0;
  vertical-align: top;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.company-table th {
  width: 180px;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.12em;
  padding-right: 24px;
}
.company-table th::before {
  content: attr(data-num);
  display: inline-block;
  font-family: var(--serif);
  font-size: 11px;
  color: var(--ink-mute);
  margin-right: 14px;
  vertical-align: middle;
  font-style: normal;
  letter-spacing: 0.2em;
}
.company-table td {
  color: var(--ink);
  line-height: 1.9;
}
.company-table .jp-label {
  display: block;
  font-size: 11px;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-style: normal;
  letter-spacing: 0.25em;
  margin-top: 4px;
  font-weight: 300;
}

/* ───── Footer ───── */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  padding: 80px 56px 40px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--gold);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 60px;
}
.footer-copy {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ───── Reveal ───── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ───── Responsive ───── */
@media (max-width: 900px) {
  .header { padding: 20px 24px; }
  .header.scrolled { padding: 14px 24px; }
  .logo { font-size: 22px; }
  .nav { gap: 24px; }
  .nav a { font-size: 14px; letter-spacing: 0.1em; }

  .fv-frame { inset: 20px; }
  .fv-title { margin-bottom: 32px; }
  .fv-jp { letter-spacing: 0.4em; }

  section { padding: 90px 24px; }
  .section-title { margin-bottom: 48px; }

  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    padding: 44px 28px 48px;
  }
  .service-num { margin-bottom: 32px; }
  .service-title-en { font-size: 28px; }

  .company-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .company-watermark { position: static; }
  .company-watermark-label { font-size: 60px; }
  .company-table th {
    display: block;
    width: 100%;
    padding-bottom: 6px;
    font-size: 13px;
  }
  .company-table td {
    display: block;
    padding-top: 0;
    padding-bottom: 22px;
  }
  .company-table tr { border-bottom: 1px solid rgba(10,22,40,0.1); }

  footer { padding: 60px 24px 30px; }
  .footer-logo { font-size: 24px; }
}

@media (max-width: 520px) {
  .nav { gap: 18px; }
  .nav a { font-size: 12px; }
  .fv-eyebrow { font-size: 11px; letter-spacing: 0.25em; margin-bottom: 24px; }
}
