/* ============================================================
   合同会社リバイバルフロー — Premium Stylesheet v2
   映像級・1000万円品質デザイン
   ============================================================ */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --navy:         #07111F;
  --navy-2:       #0B1A2E;
  --navy-3:       #0F2440;
  --green-deep:   #0A2E22;
  --gold:         #B8936A;
  --gold-lt:      #D4AE87;
  --gold-pale:    #E8D5B8;
  --white:        #FFFFFF;
  --off-white:    #F8F6F2;
  --cream:        #F2EDE6;
  --grey-100:     #EAE6E0;
  --grey-300:     #C4BBAF;
  --grey-500:     #8C8277;
  --grey-700:     #3E3830;
  --text:         #1A1614;
  --text-muted:   #6B625A;

  --font-jp:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en:  'Inter', sans-serif;
  --font-serif:'Cormorant Garamond', Georgia, serif;

  --header-h: 80px;
  --max-w:    1200px;
  --pad-x:    clamp(1.5rem, 5vw, 5rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font-jp); cursor: none; border: none; background: none; }
input, select, textarea { font-family: var(--font-jp); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

/* ─── Custom Cursor ──────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background 0.3s;
  mix-blend-mode: normal;
}
.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(184,147,106,.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s, width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), opacity 0.3s;
}
.cursor.is-hover  { width: 60px; height: 60px; background: rgba(184,147,106,.15); border: 1px solid var(--gold); }
.cursor.is-hover + .cursor-follower { opacity: 0; }
@media (hover: none) { .cursor, .cursor-follower { display: none; } }

/* ─── Page Loader ────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-en {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--white);
  display: block;
  margin-bottom: 2rem;
}
.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,.15);
  margin: 0 auto;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  animation: loaderFill 1.8s var(--ease-out-expo) forwards;
}
@keyframes loaderFill {
  to { width: 100%; }
}

/* ─── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background 0.5s var(--ease-in-out), box-shadow 0.5s;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,17,31,.85) 0%, transparent 100%);
  opacity: 1;
  transition: opacity 0.4s;
}
.site-header.scrolled::before { opacity: 0; }
.site-header.scrolled {
  background: rgba(7,17,31,.96);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 4px 30px rgba(0,0,0,.4);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 1rem; cursor: none; }
.logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.logo-jp {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.logo-en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

/* Global Nav */
.gnav { display: flex; align-items: center; gap: 0.5rem; }
.gnav-list { display: flex; gap: 0; }
.gnav-link {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
  cursor: none;
}
.gnav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out-expo);
}
.gnav-link:hover { color: var(--white); }
.gnav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.gnav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(184,147,106,.5);
  border-radius: 2px;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s;
  cursor: none;
}
.gnav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-102%);
  transition: transform 0.4s var(--ease-out-expo);
}
.gnav-cta span, .gnav-cta i { position: relative; z-index: 1; }
.gnav-cta:hover { color: var(--navy); border-color: var(--gold); }
.gnav-cta:hover::before { transform: translateX(0); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: color 0.35s, box-shadow 0.35s;
  cursor: none;
}
.btn-primary .btn-bg {
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: translateY(102%);
  transition: transform 0.45s var(--ease-out-expo);
}
.btn-primary .btn-label, .btn-primary i { position: relative; z-index: 1; }
.btn-primary:hover { color: var(--gold); box-shadow: 0 8px 40px rgba(184,147,106,.3); }
.btn-primary:hover .btn-bg { transform: translateY(0); }
.btn-primary--lg { padding: 1.2rem 3rem; font-size: 0.95rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.8rem;
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.85);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, color 0.3s;
  cursor: none;
}
.btn-ghost-arrow { transition: transform 0.3s var(--ease-out-expo); }
.btn-ghost:hover { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover .btn-ghost-arrow { transform: translateX(4px); }

.btn-ghost--light {
  border-color: rgba(184,147,106,.5);
  color: var(--gold);
}
.btn-ghost--light:hover { border-color: var(--gold); color: var(--gold-lt); }

/* ─── Reveal Animations ──────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ─── Section Shared ─────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.section-tag--light { color: var(--gold-lt); }
.section-tag--light::before { background: var(--gold-lt); }

.section-title {
  font-family: var(--font-jp);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.section-title--light { color: var(--white); }

.section-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 2;
  max-width: 440px;
}
.section-lead--light { color: rgba(255,255,255,.6); }

.section-header-center { text-align: center; margin-bottom: 5rem; }
.section-header-center .section-tag { justify-content: center; }
.section-header-center .section-lead { margin: 0 auto; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  animation: heroImgZoom 16s ease-in-out forwards;
}
@keyframes heroImgZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7,17,31,.92) 0%, rgba(7,17,31,.7) 50%, rgba(10,46,34,.55) 100%),
    linear-gradient(0deg, rgba(7,17,31,.5) 0%, transparent 40%);
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) var(--pad-x) 6rem;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.eyebrow-dash {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s 0.8s var(--ease-out-expo);
}
.revealed .eyebrow-dash,
[data-reveal].revealed .eyebrow-dash { transform: scaleX(1); }
.eyebrow-txt {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-h1 { margin-bottom: 2rem; }
.hero-h1-line { display: block; overflow: hidden; }
.hero-h1-line--sub { margin-top: 0.5rem; }
.hero-h1-inner {
  display: block;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.2;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out-expo);
}
.hero-h1-line--sub .hero-h1-inner {
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: rgba(255,255,255,.75);
  letter-spacing: 0.06em;
  line-height: 1.7;
}
[data-reveal].revealed .hero-h1-inner { transform: translateY(0); }

.hero-lead {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  color: rgba(255,255,255,.55);
  line-height: 2;
  margin-bottom: 3rem;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: var(--pad-x);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: scrollPulse 2.5s ease-in-out infinite;
}
.hero-scroll-text {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(.5); transform-origin: top; }
  60% { opacity: 1; transform: scaleY(1); }
}

/* Deco floating text */
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-deco-txt {
  position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(184,147,106,.12);
}
.hero-deco-txt--1 { right: 8%; top: 28%; writing-mode: vertical-rl; }
.hero-deco-txt--2 { right: 4%; bottom: 30%; writing-mode: vertical-rl; }
.hero-deco-txt--3 { right: 14%; bottom: 15%; font-size: clamp(3rem, 8vw, 8rem); letter-spacing: 0; color: rgba(184,147,106,.04); font-weight: 600; }

/* ─── MARQUEE ────────────────────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  background: var(--gold);
  padding: 1rem 0;
  position: relative;
  z-index: 5;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-jp);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
}
.marquee-dot {
  font-size: 0.5rem !important;
  opacity: .6;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── ABOUT ──────────────────────────────────────────────── */
.about {
  background: var(--off-white);
  padding: clamp(5rem, 10vw, 10rem) 0;
  overflow: hidden;
}
.about-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: center;
}

/* About Visual */
.about-visual { position: relative; }
.about-img-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}
.about-img-frame:hover .about-img { transform: scale(1.04); }
.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,147,106,.08) 0%, transparent 60%);
  mix-blend-mode: overlay;
}
/* 黄金比フレーム装飾 */
.about-img-frame::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 1px solid rgba(184,147,106,.25);
  z-index: 1;
  pointer-events: none;
}
.about-img-frame::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 40%;
  height: 40%;
  border: 1px solid rgba(184,147,106,.15);
  z-index: 1;
  pointer-events: none;
}

.about-badge {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 100px;
  height: 100px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(184,147,106,.4);
  z-index: 2;
}
.about-badge-year {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--navy);
  font-weight: 500;
}
.about-badge-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.about-stats {
  position: absolute;
  top: 50%;
  left: -3rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-stat {
  background: var(--navy);
  padding: 1.2rem 1.5rem;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(7,17,31,.25);
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-unit {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 300;
}
.stat-label {
  display: block;
  width: 100%;
  font-size: 0.72rem;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* About Body */
.about-body { padding: 0; }
.mission-block {
  margin: 2rem 0 2.5rem;
  padding: 2rem 2rem 2rem 2rem;
  border-left: 2px solid var(--gold);
  background: rgba(184,147,106,.04);
}
.mission-label {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.mission-text {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.65;
}

.about-copy {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 2.1;
  margin-bottom: 2.5rem;
}

.values-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.value-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--grey-100);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  transition: all 0.3s;
}
.value-pill i { color: var(--gold); font-size: 0.75rem; }
.value-pill:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.value-pill:hover i { color: var(--gold); }

/* ─── SERVICES ───────────────────────────────────────────── */
.services {
  position: relative;
  padding: clamp(5rem, 10vw, 10rem) 0;
  overflow: hidden;
}
.services-bg {
  position: absolute;
  inset: 0;
}
.services-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.services-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,17,31,.97) 0%, rgba(10,46,34,.93) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
}

.svc-card {
  position: relative;
  background: rgba(255,255,255,.02);
  transition: background 0.4s;
  cursor: none;
}
.svc-card:hover { background: rgba(184,147,106,.06); }
.svc-card-inner {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  position: relative;
  border: 1px solid transparent;
  transition: border-color 0.4s;
}
.svc-card:hover .svc-card-inner { border-color: rgba(184,147,106,.2); }

.svc-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(184,147,106,.08);
  line-height: 1;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  letter-spacing: 0.05em;
}
.svc-icon-wrap {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(184,147,106,.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: background 0.3s, border-color 0.3s;
}
.svc-card:hover .svc-icon-wrap { background: var(--gold); border-color: var(--gold); }
.svc-icon {
  font-size: 1.05rem;
  color: var(--gold);
  transition: color 0.3s;
}
.svc-card:hover .svc-icon { color: var(--navy); }

.svc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.svc-body {
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
  line-height: 1.9;
  flex: 1;
}
.svc-arrow {
  margin-top: 1.5rem;
  color: rgba(184,147,106,.3);
  font-size: 0.8rem;
  transition: color 0.3s, transform 0.3s;
  align-self: flex-end;
}
.svc-card:hover .svc-arrow { color: var(--gold); transform: translateX(4px); }

/* ─── STRENGTH ───────────────────────────────────────────── */
.strength {
  position: relative;
  padding: clamp(5rem, 10vw, 10rem) 0;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.strength-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.strength-media-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,17,31,.95) 0%, rgba(7,17,31,.85) 55%, rgba(7,17,31,.5) 100%);
}
.strength-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(4rem, 8vw, 10rem);
  align-items: start;
}
.strength-left { position: sticky; top: calc(var(--header-h) + 3rem); }

.strength-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.strength-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.strength-item:first-child { border-top: 1px solid rgba(255,255,255,.08); }
.strength-item-head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.strength-idx {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184,147,106,.4);
  line-height: 1;
  flex-shrink: 0;
  transition: -webkit-text-stroke 0.3s, color 0.3s;
}
.strength-item:hover .strength-idx {
  color: var(--gold);
  -webkit-text-stroke: 1px var(--gold);
}
.strength-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.strength-item-body {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.95;
  padding-left: calc(2.8rem + 1.5rem);
}

/* ─── COMPANY ────────────────────────────────────────────── */
.company {
  background: var(--cream);
  padding: clamp(5rem, 10vw, 10rem) 0;
  overflow: hidden;
}
.company-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: start;
  margin-top: 3rem;
}
.company-tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,.06);
}
.company-tbl th,
.company-tbl td {
  padding: 1.3rem 2rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--grey-100);
  vertical-align: top;
  text-align: left;
  line-height: 1.75;
}
.company-tbl tr:last-child th,
.company-tbl tr:last-child td { border-bottom: none; }
.company-tbl th {
  width: 30%;
  font-weight: 600;
  color: var(--grey-500);
  letter-spacing: 0.05em;
  background: rgba(7,17,31,.02);
  white-space: nowrap;
  padding-top: 1.4rem;
}
.company-tbl td { color: var(--text); }
.company-tbl td small { font-size: 0.78rem; color: var(--grey-500); display: block; margin-top: 0.3rem; }
.tbl-link { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.tbl-link:hover { color: var(--gold); }
.placeholder-val {
  font-style: italic;
  color: var(--grey-500);
  font-size: 0.82rem;
  background: rgba(184,147,106,.08);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  border: 1px dashed rgba(184,147,106,.35);
}

/* Company Accent */
.company-accent-col { position: sticky; top: calc(var(--header-h) + 3rem); }
.company-accent-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.company-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}
.company-ring--1 { width: 100%; height: 100%; border-color: rgba(184,147,106,.1); animation: companyRing 12s linear infinite; }
.company-ring--2 { width: 72%; height: 72%; border-color: rgba(184,147,106,.15); animation: companyRing 8s linear infinite reverse; }
.company-ring--3 { width: 44%; height: 44%; border-color: rgba(184,147,106,.3); background: rgba(184,147,106,.04); }
@keyframes companyRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.company-crest {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.crest-en {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.15em;
  display: block;
}
.crest-year {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  display: block;
  text-transform: uppercase;
}
.crest-city {
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--grey-500);
  display: block;
  text-transform: uppercase;
}

/* ─── CONTACT ────────────────────────────────────────────── */
.contact {
  position: relative;
  padding: clamp(5rem, 10vw, 10rem) 0;
  overflow: hidden;
  background: var(--navy-2);
}
.contact-bg {
  position: absolute;
  inset: 0;
}
.contact-bg-grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(10,46,34,.6) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 80% 80%, rgba(184,147,106,.04) 0%, transparent 60%);
}

.contact-header { text-align: center; margin-bottom: 4rem; }
.contact-header .section-tag { justify-content: center; }

.contact-body {
  max-width: 800px;
  margin: 0 auto;
}

.cform {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 4px;
  padding: clamp(2rem, 5vw, 4rem);
  backdrop-filter: blur(10px);
}
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.cform-group { margin-bottom: 1.5rem; }
.cform-row .cform-group { margin-bottom: 0; }

.cform-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}
.req {
  font-size: 0.65rem;
  background: rgba(184,147,106,.2);
  color: var(--gold);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.opt { font-size: 0.65rem; color: rgba(255,255,255,.35); font-weight: 400; }

.cform-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px;
  color: var(--white);
  font-size: 0.88rem;
  appearance: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.cform-input::placeholder { color: rgba(255,255,255,.25); }
.cform-input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.07); box-shadow: 0 0 0 3px rgba(184,147,106,.1); }
.cform-input.is-error { border-color: #e05555; }

.cform-select-wrap { position: relative; }
.cform-select { padding-right: 2.5rem; cursor: pointer; }
.cform-select option { background: var(--navy-2); }
.cform-chevron { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.3); pointer-events: none; font-size: 0.72rem; }

.cform-textarea { resize: vertical; min-height: 140px; }

.cform-err { display: block; font-size: 0.75rem; color: #f48c8c; margin-top: 0.35rem; min-height: 1em; }

/* Check */
.cform-check-group { margin-bottom: 2.5rem; }
.cform-check-label { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.cform-check-input { position: absolute; opacity: 0; width: 0; height: 0; }
.cform-check-box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 2px;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}
.cform-check-input:checked + .cform-check-box { background: var(--gold); border-color: var(--gold); }
.cform-check-input:checked + .cform-check-box::after {
  content: '';
  width: 5px; height: 9px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(40deg) translateY(-1px);
}
.cform-check-text { font-size: 0.82rem; color: rgba(255,255,255,.6); }
.cform-check-text a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.cform-submit { text-align: center; }

/* Contact Success */
.contact-success {
  text-align: center;
  padding: 5rem 2rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 4px;
}
.success-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(184,147,106,.15);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem;
  font-size: 1.5rem;
  color: var(--gold);
  animation: successPop 0.6s var(--ease-out-expo) both;
}
@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-ttl { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.success-body { font-size: 0.9rem; color: rgba(255,255,255,.55); line-height: 1.9; margin-bottom: 2rem; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: #040C16;
  color: rgba(255,255,255,.6);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 1.2rem; }
.footer-logo-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  flex-shrink: 0;
}
.footer-logo-jp { font-size: 0.95rem; font-weight: 700; color: var(--white); letter-spacing: 0.06em; }
.footer-logo-en { font-family: var(--font-en); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 0.2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.footer-nav a { font-family: var(--font-en); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 0.35rem 0.7rem; border-radius: 2px; transition: color 0.2s, background 0.2s; }
.footer-nav a:hover { color: var(--gold); background: rgba(255,255,255,.04); }

.footer-mid {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.footer-mission {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,.25);
  text-align: center;
  letter-spacing: 0.05em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-addr { font-size: 0.78rem; color: rgba(255,255,255,.3); display: flex; align-items: center; gap: 0.5rem; }
.footer-addr i { color: var(--gold); font-size: 0.7rem; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,.2); letter-spacing: 0.04em; }

/* Back to Top */
.btt {
  position: fixed;
  bottom: 2.5rem; right: 2.5rem;
  width: 48px; height: 48px;
  border: 1px solid rgba(184,147,106,.35);
  border-radius: 50%;
  background: rgba(7,17,31,.85);
  backdrop-filter: blur(10px);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  z-index: 900;
  cursor: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease-out-expo);
  font-size: 0.8rem;
}
.btt:not([hidden]) { opacity: 1; transform: translateY(0); }
.btt:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-4px); }

/* ─── RESPONSIVE: Tablet ─────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { display: none; }
  .about-img-frame::before, .about-img-frame::after { display: none; }
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 520px; margin: 0 auto; }
  .about-badge { bottom: -1rem; right: -1rem; width: 80px; height: 80px; }
  .about-badge-num { font-size: 1.2rem; }
  .strength-layout { grid-template-columns: 1fr; }
  .strength-left { position: static; }
  .company-layout { grid-template-columns: 1fr; }
  .company-accent-col { display: none; }
}

/* ─── RESPONSIVE: Mobile ─────────────────────────────────── */
@media (max-width: 768px) {
  :root { --header-h: 68px; }

  .hamburger { display: flex; }

  .gnav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(4,12,22,.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: 999;
  }
  .gnav.open { transform: translateX(0); }
  .gnav-list { flex-direction: column; align-items: center; margin-bottom: 2rem; }
  .gnav-link { font-size: 1.4rem; padding: 1rem 2rem; letter-spacing: 0.2em; }
  .gnav-cta { font-size: 0.85rem; padding: 0.9rem 2rem; }

  .services-grid { grid-template-columns: 1fr; }
  .svc-card-inner { min-height: auto; }
  .svc-num { font-size: 2rem; }

  .hero-deco { display: none; }
  .hero-scroll { display: none; }

  .strength-item-body { padding-left: 0; }

  .cform-row { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .btt { bottom: 1.5rem; right: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; justify-content: center; max-width: 320px; }
  .company-tbl th, .company-tbl td { padding: 1rem 1.2rem; font-size: 0.82rem; }
  .company-tbl th { width: 36%; }
  .cform { padding: 1.5rem 1.2rem; }
}

/* ─── Prefers Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.1ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
