/* =============================================
   Re:OAK Terrace - Pattern4 Premium CSS
   =============================================
   圧倒的なクオリティを実現するスタイルシート
*/

/* ============================================= 
   1. CSS Variables & Custom Properties
   ============================================= */
:root {
  /* Pattern 13 - Modern Minimal Editorial Palette */
  --color-text-primary: #1A1A1A;
  /* Black/Dark Gray for high contrast */
  --color-text-secondary: #4A4A4A;
  --color-text-muted: #888888;
  --color-bg-primary: #FAFAFA;
  /* Very light gray/off-white */
  --color-bg-secondary: #F0F0F0;
  /* Slightly darker gray for UI panels */
  --color-bg-tertiary: #E8E8E8;
  /* Distinct gray block */
  --color-accent-gold: #333333;
  /* Dark mode style accent instead of gold */
  --color-white: #ffffff;
  --color-border: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-base: "Inter", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-english: "Oswald", "Inter", sans-serif;

  /* Spacing */
  --section-padding: 240px;
  /* Extremely wide margins for editorial feel */
  --container-width: 1280px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.06);
}

/* ============================================= 
   2. Reset & Base Styles
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================= 
   3. Loading & Opening Animation
   ============================================= */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-primary);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition:
    opacity 1.5s var(--ease-out-expo),
    visibility 1.5s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--color-text-primary);
  opacity: 0;
  transform: translateY(20px);
  animation: loadingFadeIn 1.2s 0.3s var(--ease-out-expo) forwards;
  /* Ensure flex centering for image */
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-logo-img {
  width: 200px;
  height: auto;
  /* filter: invert(1); removed */
}

.loading-logo::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--color-accent-gold),
      transparent);
}

.loading-progress {
  margin-top: 60px;
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  opacity: 0;
  animation: loadingFadeIn 0.8s 0.8s var(--ease-out-expo) forwards;
}

.loading-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg,
      var(--color-accent-gold),
      var(--color-accent-gold-light));
  animation: loadingProgress 2.5s 1s var(--ease-in-out-quart) forwards;
}

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

@keyframes loadingProgress {
  to {
    width: 100%;
  }
}

/* ============================================= 
   4. Header & Navigation
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s var(--ease-out-quart);
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 48px;
}

.header__logo {
  position: relative;
  z-index: 2;
}

.header__logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.15em;
  font-weight: 550;
  transition: color 0.3s;
}

.header__logo a:hover {
  color: var(--color-accent-gold);
}

.header__logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  /* Invert colors for dark mode (Assumes black logo) */
  /* filter: invert(1); removed */
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.header-nav__list {
  display: flex;
  gap: 36px;
}

.header-nav__link {
  font-family: var(--font-english);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s;
}

.header-nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent-gold);
  transition: width 0.4s var(--ease-out-expo);
}

.header-nav__link:hover {
  color: var(--color-accent-gold);
}

.header-nav__link:hover::after {
  width: 100%;
}

.header__cta {
  padding: 12px 28px;
  border: 1px solid var(--color-text-primary);
  font-family: var(--font-english);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out-expo);
}

.header__cta:hover {
  background: var(--color-text-primary);
  color: var(--color-bg-primary);
}

/* Hamburger Menu */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 32px;
  cursor: pointer;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text-primary);
  transform-origin: right center;
  transition: all 0.4s var(--ease-out-expo);
}

.header__hamburger.active span:nth-child(1) {
  transform: rotate(-45deg);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__hamburger.active span:nth-child(3) {
  transform: rotate(45deg);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--color-bg-secondary);
  z-index: 999;
  padding: 120px 48px 48px;
  transition: right 0.6s var(--ease-out-expo);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.1em;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s;
}

.mobile-nav__link:hover {
  color: var(--color-accent-gold);
  padding-left: 16px;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================= 
   5. Hero Section
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  /* Removed min-height to ensure it fits exactly on screen */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Scale up desktop video to remove encoded black bars */
@media (min-width: 769px) {
  .hero__bg video {
    transform: scale(1.4);
  }
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  /* 画像全体を少し暗くして白文字を読めるように */
  z-index: -2;
}

.hero__overlay::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 10;
}

.hero__content {
  text-align: center;
  z-index: 1;
  margin-top: 40px;
  /* Shift down by approx 1cm */
}

.hero__title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeIn 1.5s 3.5s var(--ease-out-expo) forwards;
}

.hero__subtitle {
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(12px, 2vw, 16px);
  letter-spacing: 0.3em;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1.5s 3.8s var(--ease-out-expo) forwards;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: heroFadeIn 1.5s 4.2s var(--ease-out-expo) forwards;
}

.hero__scroll-text {
  color: #ffffff;
  font-family: var(--font-english);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, #ffffff, transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #333333, transparent);
  animation: scrollLineMove 2s infinite;
}

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

@keyframes scrollLineMove {
  0% {
    top: -100%;
  }

  100% {
    top: 100%;
  }
}

/* Hero Content Display Control */
.hero__video-wrapper {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__slider {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition:
    opacity 1.5s var(--ease-in-out-quart),
    transform 6s linear;
  transform: scale(1.1);
}

.hero__slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

@media screen and (max-width: 768px) {
  .hero__video-wrapper {
    display: none;
  }

  .hero__slider {
    display: block;
  }
}

/* Floating Particles Effect */
.hero__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(201, 169, 98, 0.4);
  border-radius: 50%;
  animation: particleFloat 15s infinite;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
    transform: translateY(80vh) scale(1);
  }

  90% {
    opacity: 1;
    transform: translateY(10vh) scale(1);
  }

  100% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
}

/* ============================================= 
   6. Section Styles
   ============================================= */
/* Utilities */
.u-mobile-br {
  display: none;
}

@media screen and (max-width: 768px) {
  .u-mobile-br {
    display: block;
  }
}

.section {
  padding: var(--section-padding) 24px;
  position: relative;
}

.section--dark {
  background: var(--color-bg-secondary);
}

.section--gradient {
  background: linear-gradient(180deg,
      var(--color-bg-primary),
      var(--color-bg-secondary));
}

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

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header__label {
  font-family: var(--font-english);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: 16px;
  display: block;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.section-header__line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--color-accent-gold),
      transparent);
  margin: 0 auto;
}

/* ============================================= 
   7. Concept Section
   ============================================= */
.concept {
  padding: 160px 24px;
}

.concept__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.concept__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 2;
  margin-bottom: 60px;
}

.concept__text {
  font-size: 15px;
  line-height: 2.4;
  color: var(--color-text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

.concept__brand {
  font-family: var(--font-english);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--color-text-muted);
  margin-top: 60px;
}

/* ============================================= 
   8. Brand Essentials Section
   ============================================= */
.brand-essentials {
  background: var(--color-bg-secondary);
}

.brand-list {
  display: flex;
  flex-direction: column;
  gap: 160px;
}

.brand-item {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.2s var(--ease-out-expo);
}

.brand-item.inview {
  opacity: 1;
  transform: translateY(0);
}

.brand-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.2s var(--ease-out-expo);
}

.brand-item.inview {
  opacity: 1;
  transform: translateY(0);
}

.brand-item:nth-child(even) {
  direction: rtl;
}

.brand-item:nth-child(even)>* {
  direction: ltr;
}

.brand-item__content {
  display: flex;
  flex-direction: column;
  padding: 40px 0;
}

.brand-item__visual {
  position: relative;
  overflow: hidden;
}

.brand-item__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.brand-item:hover .brand-item__image {
  transform: scale(1.05);
}

.brand-item__visual::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.1), transparent);
  pointer-events: none;
}

.brand-item__content {
  padding: 40px 0;
}

.brand-item__number {
  font-family: var(--font-english);
  font-size: 24px;
  letter-spacing: 0.2em;
  color: var(--color-accent-gold);
  margin-bottom: 16px;
  display: block;
}

.brand-item__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.brand-item__subtitle {
  font-family: var(--font-english);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.brand-item__lead {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 24px;
  border-left: 2px solid var(--color-accent-gold);
  padding-left: 24px;
}

.brand-item__text {
  font-size: 14px;
  line-height: 2.2;
  color: var(--color-text-secondary);
}

/* ============================================= 
   9.5. Projects Section (Coming Soon)
   ============================================= */
.projects {
  padding: 160px 24px;
  background-color: var(--color-bg-primary);
}

.projects__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Project Card Style */
.project-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--color-accent-gold);
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-card__visual {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.project-card:hover .project-card__image {
  transform: scale(1.05);
}

.project-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-accent-gold);
  color: var(--color-bg-primary);
  padding: 6px 16px;
  font-family: var(--font-english);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.project-card__content {
  padding: 40px;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.project-card__description {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* Vision Card / Roadmap Style */
.vision-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vision-card__header {
  margin-bottom: 48px;
  text-align: center;
}

.vision-card__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.vision-card__subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-accent-gold);
  letter-spacing: 0.2em;
}

.vision-card__message {
  text-align: center;
  margin-bottom: 60px;
  padding: 24px;
  background: rgba(201, 169, 98, 0.05);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.vision-card__message p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-primary);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.roadmap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.roadmap::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, #333333, transparent);
}

.roadmap__item {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  position: relative;
  padding-left: 50px;
}

.roadmap__item::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-accent-gold);
  border-radius: 50%;
  z-index: 1;
}

.roadmap__year {
  font-family: var(--font-english);
  font-size: 20px;
  color: var(--color-accent-gold);
  line-height: 1.2;
  flex-shrink: 0;
}

.roadmap__text {
  font-size: 15px;
  line-height: 1.6;
}

.roadmap__text small {
  font-size: 12px;
  color: var(--color-text-muted);
}

@media screen and (max-width: 1024px) {
  .projects__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================= 
/* ============================================= 
   9. Properties Section
   ============================================= */
.properties {
  background: var(--color-bg-primary);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 40px;
}

.property-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  transition: all 0.6s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.property-card:hover {
  border-color: var(--color-accent-gold);
  transform: translateY(-8px);
}

.property-card__visual {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.property-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.property-card:hover .property-card__image {
  transform: scale(1.1);
}

.property-card__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--color-accent-gold);
  color: var(--color-bg-primary);
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.property-card__content {
  padding: 30px;
}

.property-card__location {
  font-family: var(--font-english);
  font-size: 12px;
  color: var(--color-accent-gold);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.property-card__title {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 500;
}

.property-card__specs {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.property-card__spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.property-card__spec-label {
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.property-card__spec-value {
  font-family: var(--font-english);
  font-size: 15px;
  color: var(--color-text-primary);
}

.property-card__link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-english);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  transition: gap 0.4s var(--ease-out-expo);
}

.property-card__link:hover {
  gap: 20px;
  color: var(--color-accent-gold);
}

.property-card__link svg {
  width: 16px;
  height: 16px;
}

/* ============================================= 
   10. Gallery Section
   ============================================= */
.gallery {
  padding: 160px 0;
  overflow: hidden;
}

.gallery__header {
  padding: 0 24px;
  margin-bottom: 60px;
}

.gallery__track {
  display: flex;
  gap: 24px;
  animation: galleryScroll 40s linear infinite;
  width: max-content;
}

.gallery__item {
  flex-shrink: 0;
  width: 400px;
  height: 300px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.gallery__item:hover img {
  transform: scale(1.1);
}

@keyframes galleryScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ============================================= 
   10a. Lightbox
   ============================================= */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--ease-out-expo),
    visibility 0.4s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox__content {
  position: relative;
  z-index: 2;
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  opacity: 0;
  transition:
    transform 0.5s var(--ease-out-expo),
    opacity 0.4s;
}

.lightbox.active .lightbox__image {
  transform: scale(1);
  opacity: 1;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-text-secondary);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.lightbox__close:hover {
  color: #fff;
  border-color: var(--color-accent-gold);
  background: rgba(201, 169, 98, 0.1);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.lightbox__nav:hover {
  color: #fff;
  border-color: var(--color-accent-gold);
  background: rgba(201, 169, 98, 0.15);
}

.lightbox__nav--prev {
  left: 24px;
}

.lightbox__nav--next {
  right: 24px;
}

.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-english);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

@media screen and (max-width: 768px) {
  .lightbox__content {
    max-width: 95vw;
    max-height: 80vh;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .lightbox__nav--prev {
    left: 12px;
  }

  .lightbox__nav--next {
    right: 12px;
  }

  .lightbox__close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
}

/* ============================================= 
   10. CTA Section
   ============================================= */
.cta {
  padding: 160px 24px;
  background: var(--color-bg-secondary);
}

.cta__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 80px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  position: relative;
}

.cta__inner::before,
.cta__inner::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid var(--color-accent-gold);
  opacity: 0.3;
}

.cta__inner::before {
  top: -20px;
  left: -20px;
  border-right: none;
  border-bottom: none;
}

.cta__inner::after {
  bottom: -20px;
  right: -20px;
  border-left: none;
  border-top: none;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.cta__text {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
}

/* CTA Contact Info */
.cta__contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cta__phone-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.cta__phone-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cta__phone-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-accent-gold);
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid rgba(201, 169, 98, 0.25);
  padding: 4px 12px;
  border-radius: 2px;
  flex-shrink: 0;
  min-width: 48px;
  text-align: center;
}

.cta__phone-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-english);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
  transition: color 0.3s;
}

.cta__phone-number:hover {
  color: var(--color-accent-gold);
}

.cta__phone-number svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.cta__phone-number:hover svg {
  opacity: 1;
}

.cta__divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--color-accent-gold),
      transparent);
  opacity: 0.4;
}

.cta__chat-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 40px;
  background: linear-gradient(135deg,
      var(--color-accent-gold),
      var(--color-accent-bronze));
  color: var(--color-bg-primary);
  font-family: var(--font-english);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.5s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(201, 169, 98, 0.2);
}

.cta__chat-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 169, 98, 0.35);
  gap: 18px;
}

.cta__chat-button svg {
  flex-shrink: 0;
}

.cta__chat-arrow {
  transition: transform 0.4s var(--ease-out-expo);
}

.cta__chat-button:hover .cta__chat-arrow {
  transform: translateX(4px);
}

.cta__button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 48px;
  border: 1px solid var(--color-text-primary);
  font-family: var(--font-english);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.5s var(--ease-out-expo);
  color: var(--color-text-primary);
}

.cta__button:hover {
  background: var(--color-text-primary);
  color: var(--color-bg-primary);
  padding-left: 56px;
  padding-right: 56px;
}

.cta__button svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s var(--ease-out-expo);
}

.cta__button:hover svg {
  transform: translateX(8px);
}

/* ============================================= 
   14. Footer
   ============================================= */
.footer {
  background: var(--color-bg-tertiary);
  padding: 80px 24px 24px;
}

.footer__main {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
  margin-bottom: 80px;
}

.footer__brand {
  max-width: 400px;
}

.footer__logos {
  margin-bottom: 24px;
}

.footer__logo-kyufu {
  height: 48px;
  width: auto;
  object-fit: contain;
  /* filter: invert(1); removed */
  opacity: 0.9;
  margin-bottom: 16px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.footer__description {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.footer__nav {
  display: flex;
  gap: 80px;
}

.footer__nav-group h4 {
  font-family: var(--font-english);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: 24px;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__nav-list--cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
}

.footer__nav-link {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.3s;
}

.footer__nav-link:hover {
  color: var(--color-accent-gold);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer__note {
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

.footer__copyright {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ============================================= 
   12. Chatbot Styles
   ============================================= */
.chatbot-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg,
      var(--color-accent-gold),
      var(--color-accent-bronze));
  color: var(--color-bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  z-index: 900;
  transition: all 0.4s var(--ease-out-expo);
}

.chatbot-toggle:hover {
  transform: scale(1.1) translateY(-4px);
}

.chatbot-toggle svg {
  width: 28px;
  height: 28px;
}

.chatbot-container {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 380px;
  height: 520px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 899;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s var(--ease-out-expo);
}

.chatbot-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: linear-gradient(135deg,
      var(--color-bg-tertiary),
      var(--color-bg-secondary));
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.chatbot-header__title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.1em;
}

.chatbot-header__close {
  color: var(--color-text-muted);
  font-size: 24px;
  transition: color 0.3s;
}

.chatbot-header__close:hover {
  color: var(--color-text-primary);
}

.chatbot-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  max-width: 85%;
  animation: messageFade 0.4s var(--ease-out-expo);
}

@keyframes messageFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.message--bot {
  align-self: flex-start;
}

.message--user {
  align-self: flex-end;
}

.message__content {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.message--bot .message__content {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  border-bottom-left-radius: 4px;
}

.message--user .message__content {
  background: var(--color-text-main, #2C2C2C);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.chatbot-input-area {
  padding: 16px 20px;
  background: var(--color-bg-tertiary);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 12px;
}

.chatbot-input {
  flex: 1;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 12px 20px;
  color: var(--color-text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.chatbot-input:focus {
  border-color: var(--color-accent-gold);
}

.chatbot-input::placeholder {
  color: var(--color-text-muted);
}

.chatbot-send {
  width: 44px;
  height: 44px;
  background: var(--color-accent-gold);
  color: var(--color-bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.chatbot-send:hover {
  background: var(--color-accent-gold-light);
  transform: scale(1.05);
}

.chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================= 
   13. Utilities & Animations
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s var(--ease-out-expo);
}

.reveal.inview {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Text Gradient */
.text-gradient {
  color: var(--color-text-primary);
}

/* Smooth Scrollbar (Webkit) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ============================================= 
   14. Responsive Design
   ============================================= */
@media screen and (max-width: 1024px) {

  .header,
  .header.scrolled {
    padding: 12px 12px;
  }

  .header-nav__list {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .brand-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .brand-item:nth-child(even) {
    direction: ltr;
  }

  .brand-item__content {
    display: contents;
  }

  .brand-item__number {
    order: 1;
    margin-bottom: 0;
  }

  .brand-item__title {
    order: 2;
    margin-bottom: 0;
  }

  .brand-item__subtitle {
    order: 3;
    margin-bottom: 8px;
  }

  .brand-item__lead {
    order: 4;
    margin-bottom: 4px;
    padding-left: 16px;
  }

  .brand-item__visual {
    order: 5;
    margin: 8px 0;
  }

  .brand-item__text {
    order: 6;
    margin-top: 4px;
  }

  .footer__main {
    flex-direction: column;
    gap: 48px;
    padding: 0;
    /* Padding is now on .footer */
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 32px;
  }

  /* Property Grid Mobile */
  .properties-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* EM-Row Mobile Fixes */
  .em-row {
    flex-direction: column !important;
    /* Force stack */
    gap: 40px !important;
  }

  .em-visual {
    width: 100% !important;
    position: relative;
    padding-left: 20px;
    /* Space for the panel */
  }

  .em-panel {
    width: 80% !important;
    height: 100% !important;
    left: 0 !important;
    right: auto !important;
    top: 20px !important;
    bottom: -20px !important;
  }

  .em-row--reverse .em-visual {
    padding-left: 0;
    padding-right: 20px;
  }

  .em-row--reverse .em-panel {
    left: auto !important;
    right: 0 !important;
  }

  .em-content {
    width: 100% !important;
    padding: 20px 0 !important;
  }

  .em-title {
    writing-mode: horizontal-tb;
    /* Horizontal title on mobile for readability */
    position: relative;
    left: 0;
    top: 0;
    margin-bottom: 24px;
    letter-spacing: 0.2em;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --section-padding: 50px;
  }

  .header,
  .header.scrolled {
    padding: 10px 12px;
  }

  .hero {
    min-height: 600px;
    padding-bottom: 60px;
  }

  .concept {
    padding: 60px 20px;
  }

  .vision-card {
    padding: 40px 20px;
  }

  .vision-card__message {
    margin-bottom: 32px;
  }

  .roadmap {
    gap: 24px;
  }

  .gallery__item {
    width: 280px;
    height: 200px;
  }

  .cta {
    padding: 80px 20px;
  }

  .cta__inner {
    padding: 40px 20px;
  }

  .cta__button {
    padding: 16px 32px;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .cta__phone-number {
    font-size: 18px;
  }

  .cta__chat-button {
    padding: 16px 28px;
    font-size: 13px;
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .chatbot-container {
    width: calc(100% - 40px);
    right: 20px;
    height: 60vh;
  }

  .chatbot-toggle {
    width: 56px;
    height: 56px;
    right: 20px;
    bottom: 20px;
  }
}

@media screen and (max-width: 480px) {

  .header,
  .header.scrolled {
    padding: 10px 8px;
  }

  .header__logo a {
    font-size: 14px;
    letter-spacing: 0.05em;
    gap: 8px;
  }

  .header__logo-img {
    height: 36px;
  }

  .brand-item__lead {
    font-size: 15px;
    padding-left: 16px;
  }

  .cta__inner {
    padding: 40px 16px;
  }

  .cta__button {
    padding: 14px 20px;
    font-size: 12px;
    gap: 8px;
  }

  .cta__phone-number {
    font-size: 16px;
  }

  .cta__phone-label {
    font-size: 10px;
    padding: 3px 8px;
    min-width: 40px;
  }

  .cta__chat-button {
    padding: 14px 20px;
    font-size: 12px;
    gap: 10px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Custom Cursor - Gold Ring (Luxury Style) */
.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(201, 169, 98, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s var(--ease-out-expo),
    height 0.4s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-expo),
    background-color 0.4s var(--ease-out-expo),
    opacity 0.4s var(--ease-out-expo),
    mix-blend-mode 0.4s;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center dot */
.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--color-accent-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10002;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease-out-expo);
}

/* Cursor label text */
.cursor-label {
  font-family: var(--font-english);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out-expo);
  white-space: nowrap;
  pointer-events: none;
}

/* Hover state - general interactive elements */
.cursor-follower.active {
  width: 60px;
  height: 60px;
  border-color: rgba(201, 169, 98, 1);
  background-color: rgba(201, 169, 98, 0.08);
}

.cursor-follower.active .cursor-label {
  opacity: 0;
}

.cursor-dot.active {
  opacity: 0;
}

/* Gallery hover state */
.cursor-follower.cursor-view {
  width: 80px;
  height: 80px;
  border-color: rgba(201, 169, 98, 0.8);
  background-color: rgba(201, 169, 98, 0.15);
  mix-blend-mode: normal;
}

.cursor-follower.cursor-view .cursor-label {
  opacity: 1;
}

.cursor-dot.cursor-view {
  opacity: 0;
}

/* Brand / Project card hover */
.cursor-follower.cursor-explore {
  width: 80px;
  height: 80px;
  border-color: rgba(201, 169, 98, 0.8);
  background-color: rgba(201, 169, 98, 0.12);
}

.cursor-follower.cursor-explore .cursor-label {
  opacity: 1;
}

.cursor-dot.cursor-explore {
  opacity: 0;
}

/* Hide on touch devices */
@media (hover: none) {

  .cursor-follower,
  .cursor-dot {
    display: none !important;
  }
}

/* Custom cursor disabled - no JS handler present */

/* --- KINTO Style Contrast Fixes for Header --- */
/* ============================================= 
   Pattern 13: Editorial Layout specific styles
   ============================================= */
.editorial-section {
  padding: var(--section-padding) 24px;
  background-color: var(--color-bg-primary);
}

.editorial-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  max-width: var(--container-width);
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 900px) {
  .editorial-block {
    grid-template-columns: 1fr 1fr;
    gap: 120px;
  }

  .editorial-block.is-reversed .editorial-content {
    order: -1;
  }
}

.editorial-figure {
  position: relative;
  width: 100%;
}

/* The solid gray panel behind images */
.editorial-panel {
  position: absolute;
  top: -40px;
  bottom: -40px;
  background-color: var(--color-bg-secondary);
  z-index: 0;
}

/* Z-pattern panel placements */
.editorial-block:not(.is-reversed) .editorial-panel {
  right: -40px;
  left: 20%;
}

.editorial-block.is-reversed .editorial-panel {
  left: -40px;
  right: 20%;
}

.editorial-image-wrapper {
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.editorial-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo), filter 0.8s ease;
  filter: brightness(0.95) contrast(1.05);
  /* Slight matte finish */
}

.editorial-figure:hover .editorial-image {
  transform: scale(1.03);
  filter: brightness(1) contrast(1);
}

.editorial-content {
  position: relative;
  z-index: 2;
  padding: 40px 0;
}

.editorial-vertical-title {
  writing-mode: vertical-rl;
  font-family: var(--font-english);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: absolute;
  top: 0;
  left: -40px;
  height: 100%;
  display: flex;
  align-items: flex-start;
}

.editorial-subtitle {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 24px;
}

/* Thin horizontal line decorator */
.editorial-subtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--color-border);
  border-bottom: 1px solid var(--color-text-primary);
}

.editorial-text {
  font-size: 14px;
  line-height: 2.2;
  color: var(--color-text-secondary);
  font-weight: 300;
  margin-bottom: 40px;
}

/* Modern Minimal Button */
.link-minimal {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-english);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
  position: relative;
}

.link-minimal::after {
  content: "→";
  margin-left: 12px;
  transition: transform 0.3s var(--ease-out-expo);
}

.link-minimal:hover {
  opacity: 0.6;
}

.link-minimal:hover::after {
  transform: translateX(4px);
}

/* Base resets & Layout overrides */
body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
}

/* ============================================= 
   Pattern 13: Phase 2 Component overrides
   ============================================= */

/* Section Headers */
.section-header {
  position: relative;
  margin-bottom: 80px;
}

.section-header__label {
  font-family: var(--font-english);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 16px;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--color-text-primary);
  font-weight: 400;
  letter-spacing: 0.1em;
  position: relative;
  display: inline-block;
}

.section-header__title::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
}

.section-header__line {
  display: none;
  /* Hide the old thick line */
}

/* Override existing project cards to be minimal */
.projects {
  background-color: var(--color-bg-primary);
  padding: var(--section-padding) 0;
}

.project-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.project-card__image {
  aspect-ratio: 16/9;
  filter: grayscale(20%) contrast(1.1);
  transition: transform 1.2s var(--ease-out-expo), filter 0.8s ease;
}

.project-card:hover .project-card__image {
  transform: scale(1.02);
  filter: grayscale(0%) contrast(1);
}

.project-card__content {
  padding: 32px 0 0 0;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.project-card__description {
  font-weight: 300;
  color: var(--color-text-secondary);
}

.vision-card {
  background-color: var(--color-bg-secondary);
  border: none;
  border-radius: 0;
  padding: 60px 48px;
  box-shadow: none;
  /* Add an offset border effect */
  position: relative;
}

.vision-card::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1px solid var(--color-border);
  z-index: -1;
}

.vision-card__title {
  font-family: var(--font-english);
  font-size: 24px;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
}

.vision-card__subtitle {
  font-family: var(--font-base);
  font-weight: 300;
  letter-spacing: 0.2em;
}

/* Property Cards Minimal Override */
.properties {
  background-color: var(--color-white);
  padding: var(--section-padding) 0;
}

.property-card {
  background: var(--color-bg-secondary);
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: background-color 0.4s ease;
}

.property-card:hover {
  background: var(--color-bg-tertiary);
  transform: none;
  /* remove old lift effect */
}

.property-card__location {
  font-family: var(--font-english);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.property-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 16px 0 32px 0;
}

.property-card__link {
  font-family: var(--font-english);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  justify-content: flex-start;
}

.property-card__link svg {
  margin-left: 12px;
  transition: transform 0.3s ease;
}

.property-card:hover .property-card__link svg {
  transform: translateX(4px);
}

/* ============================================= 
   Pattern 13: Exact Match (Reference Image)
   ============================================= */

/* Base Colors Overrides */
:root {
  --color-bg-base: #F8F8F8;
  /* Very light, warm gray page background */
  --color-bg-panel: #EAEBE9;
  /* The specific gray panel behind images */
  --color-text-main: #2A2A2A;
  /* Almost black */
  --color-text-sub: #7A7A7A;
  /* Muted gray for small text */
  --color-border-thin: #D0D0D0;
  /* For thin dividers */

  --font-mincho: "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --font-gothic: "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-display-en: "Inter", "Helvetica Neue", sans-serif;
}

body {
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  font-family: var(--font-gothic);
}

/* Hide original brand section entirely */
.section.brand-essentials .container>.section-header,
.brand-list {
  display: none !important;
}

.brand-essentials {
  padding: 0 !important;
}

/* Exact Match Layout Containers */
.em-section {
  padding: 180px 0;
  background-color: var(--color-bg-base);
  overflow: hidden;
}

.em-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Z-Pattern Row */
.em-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 240px;
  position: relative;
  align-items: center;
}

.em-row:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .em-row {
    flex-direction: row;
    gap: 120px;
  }

  /* Text on left, image on right */
  .em-row.is-reversed {
    flex-direction: row-reverse;
  }
}

/* Image Side */
.em-visual {
  flex: 1;
  width: 100%;
  position: relative;
}

/* The Gray Panel */
.em-panel {
  position: absolute;
  top: -60px;
  bottom: -60px;
  background-color: var(--color-bg-panel);
  z-index: 1;
}

/* Panel positioning depending on Z-pattern */
.em-row:not(.is-reversed) .em-panel {
  right: -80px;
  left: 20%;
}

.em-row.is-reversed .em-panel {
  left: -80px;
  right: 20%;
}

.em-image-wrap {
  position: relative;
  z-index: 2;
}

.em-image-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: sepia(10%) contrast(1.05) brightness(0.95);
  /* Slight filter for mood */
}

/* Text Side */
.em-content {
  flex: 1;
  position: relative;
  padding: 60px 40px;
  z-index: 3;
}

/* Vertical Label (CONCEPT, WORKS) */
.em-label {
  font-family: var(--font-display-en);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--color-text-main);
  font-weight: 500;
  writing-mode: vertical-rl;
  position: absolute;
  left: -20px;
  top: 60px;
  /* Thin line next to label */
  display: flex;
  align-items: center;
}

.em-label::before {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background-color: var(--color-text-main);
  margin-bottom: 16px;
}

/* Heading */
.em-heading {
  font-family: var(--font-mincho);
  font-size: 24px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: var(--color-text-main);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 24px;
}

/* Double border under heading like reference image */
.em-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 160px;
  /* Short line */
  height: 3px;
  border-top: 1px solid var(--color-text-main);
  border-bottom: 1px solid var(--color-text-main);
}

/* Text */
.em-text {
  font-family: var(--font-gothic);
  font-size: 13px;
  line-height: 2.4;
  letter-spacing: 0.08em;
  color: var(--color-text-main);
  font-weight: 300;
  margin-bottom: 50px;
}

/* View More Button (Text + Arrow) */
.em-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.em-link::after {
  content: "→";
  margin-left: 8px;
  font-weight: 300;
  transition: transform 0.3s;
}

.em-link:hover {
  opacity: 0.6;
}

.em-link:hover::after {
  transform: translateX(5px);
}

/* ============================================= 
   Pattern 13: Minimal Timeline
   ============================================= */
.em-timeline {
  position: relative;
  padding-left: 30px;
  margin-bottom: 50px;
}

.em-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 3px;
  width: 1px;
  background-color: var(--color-text-main);
  opacity: 0.2;
}

.em-timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.em-timeline-item:last-child {
  margin-bottom: 0;
}

.em-timeline-item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -30px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-text-main);
  z-index: 2;
}

/* ============================================= 
   Pattern 13: UI Visibility Fixes 
   ============================================= */

/* Header Fix */
.header {
  background-color: rgba(248, 248, 248, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.header.scrolled {
  background-color: rgba(248, 248, 248, 0.95) !important;
}

/* Chatbot Visibility Fix */
.chatbot-toggle {
  background-color: var(--color-text-main) !important;
  border: 1px solid var(--color-text-main) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

.chatbot-toggle svg {
  stroke: var(--color-bg-base) !important;
}

.chatbot-toggle:hover {
  transform: scale(1.05) !important;
  background-color: #000 !important;
}

/* Footer Logo Visibility Fix (Invert logic for dark background) */
.footer {
  background-color: #1a1a1a !important;
  /* Force dark to ensure consistency */
  color: #fff !important;
}

.footer__logo-kyufu {
  filter: brightness(0) invert(1) opacity(0.8) !important;
}

/* ============================================= 
   Pattern 13: CTA Chat Button Visibility Fix
   ============================================= */
.cta__chat-button {
  background: var(--color-text-main) !important;
  color: var(--color-bg-base) !important;
  border: 1px solid var(--color-text-main) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

.cta__chat-button:hover {
  background: #000 !important;
  color: #fff !important;
  transform: translateY(-3px) !important;
}

.cta__chat-button svg {
  stroke: var(--color-bg-base) !important;
}

.cta__chat-button:hover svg {
  stroke: #fff !important;
}