:root {
  /* 背景を奥行きのあるダークグレーへ */
  --bg: #0d0f12;
  --gold: #d4af37;
  --gold-bright: #f1d279;
  --white: #ffffff;
  --gray-light: rgba(255, 255, 255, 0.7);
  --border-light: rgba(255, 255, 255, 0.15);
  --font-en: 'Cinzel', serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --max-width: 1540px; /* コンテンツ最大幅 */
}

/* --- Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-jp);
  line-height: 1.7;
  overflow-x: hidden;
  word-break: break-all;
}

/* WebGL Background */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.8;
}

.smooth-wrapper {
  width: 100%;
  position: relative;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 4vw;
}

.section {
  padding: 160px 0;
  border-bottom: 1px solid var(--border-light);
}

/* --- Loading Screen --- */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.loader-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
}

.loader-logo {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  opacity: 0;
}

.loader-logo span {
  color: var(--gold);
}

.loader-line-wrap {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px auto;
  position: relative;
}

.loader-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--gold);
}

.loader-status {
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  opacity: 0.5;
}

.loader-bg-top,
.loader-bg-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: #0d0f12;
}

.loader-bg-top {
  top: 0;
}
.loader-bg-bottom {
  bottom: 0;
}

/* --- Header & Navigation --- */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 25px 0;
  z-index: 100;
  background: rgba(13, 15, 18, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

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

.logo {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.logo span {
  color: var(--gold);
}

.desktop-nav ul {
  display: flex;
  gap: 60px;
}

.desktop-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--font-en);
  letter-spacing: 0.2em;
  font-weight: 700;
  transition: color 0.3s;
}

.desktop-nav a:hover {
  color: var(--gold);
}

/* --- Hamburger Menu (SP) --- */
.menu-trigger {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1000;
}

.menu-trigger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  transition: all 0.4s;
}

.menu-trigger span:nth-child(1) {
  top: 0;
}
.menu-trigger span:nth-child(2) {
  bottom: 0;
}

.menu-trigger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background: var(--gold);
}
.menu-trigger.active span:nth-child(2) {
  transform: translateY(-9px) rotate(-45deg);
  background: var(--gold);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero-visual-full {
  width: 90%;
  height: 85vh;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-img-mask {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
  z-index: 1;
}

.hero-main-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(13, 15, 18, 0.8) 0%, transparent 60%);
}

.hero-marquee-area {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  z-index: 10;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.marquee-inner {
  display: flex;
  width: max-content;
}

.hero .split-text {
  font-size: clamp(5rem, 15vw, 15rem);
  padding-right: 0.5em;
  display: inline-block;
  font-family: var(--font-en);
  text-transform: uppercase;
  font-weight: 700;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  color: transparent;
}

.hero .split-text span {
  -webkit-text-stroke: 0;
  color: var(--gold);
}

.hero-content-overlay {
  position: relative;
  z-index: 20;
  pointer-events: none;
  margin-top: 15vh;
}

.tagline {
  font-family: var(--font-en);
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.5em;
  margin-bottom: 25px;
  font-weight: 700;
}

.hero-sub {
  max-width: 800px;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gray-light);
}

/* --- Philosophy & Business Grid --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 120px;
  align-items: flex-start;
}

.title-l {
  font-size: 3.5rem;
  margin-bottom: 30px;
  line-height: 1.2;
  font-weight: 700;
}

.visual-frame {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 40px;
}

.parallax-img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  filter: brightness(0.7);
}

.stats-grid {
  display: grid;
  gap: 30px;
}

.stat-box {
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
}

.stat-box .num {
  display: block;
  font-family: var(--font-en);
  font-size: 4.5rem;
  color: var(--gold-bright);
}

/* Business Grid - 固定修正 */
.business-grid-detailed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 80px;
}

.b-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-light);
  padding: 50px;
  transition: all 0.5s ease;
}

.b-card.full-width {
  grid-column: span 2;
  display: flex;
  gap: 60px;
}

.b-icon {
  font-family: var(--font-en);
  color: var(--gold-bright);
  font-size: 1.5rem;
}

.b-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.b-tags li {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-bright);
  padding: 4px 12px;
  font-size: 0.75rem;
}

/* --- Profile Table --- */
.luxury-table {
  width: 100%;
  border-collapse: collapse;
}
.luxury-table th {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-bright);
  padding: 25px;
  text-align: left;
  width: 30%;
}
.luxury-table td {
  padding: 25px;
  border-bottom: 1px solid var(--border-light);
  font-size: 1.1rem;
}

/* --- Responsive (SP) --- */
@media (max-width: 1024px) {
  .section {
    padding: 100px 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Business Pillars スマホ1列強制 */
  .business-grid-detailed {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .b-card.full-width {
    grid-column: span 1 !important;
    flex-direction: column;
    gap: 20px;
  }
  .b-card {
    padding: 30px 20px !important;
  }

  /* Hamburger Menu */
  .menu-trigger {
    display: block;
  }
  .desktop-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #0d0f12;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.6s cubic-bezier(0.2, 1, 0.3, 1);
  }
  .desktop-nav.active {
    right: 0;
  }
  .desktop-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .desktop-nav a {
    font-size: 1.8rem;
  }

  /* Hero Adjust */
  .hero-visual-full {
    width: 95%;
    height: 70vh;
  }
  .hero .split-text {
    font-size: 10vw;
    white-space: normal;
  }
  .hero-marquee-area {
    top: 40%;
  }
  .hero-content-overlay {
    margin-top: 40vh;
  }

  .r-step {
    padding-left: 0;
    padding-top: 30px;
  }
}
