@charset "UTF-8";

/* ============================================================================
   Global Styles - Dubai Luxury Real Estate Website
   ============================================================================
   
   目的: サイト全体で使用する基本スタイル、CSS変数、ユーティリティ
   デザイン: スタイリッシュ・モノトーン × グラスモーフィズム × ゴールドアクセント
   対応環境: モバイル / タブレット / PC / 大型デスクトップ
   
   ============================================================================ */

/* ============================================================================
   1. CSS Custom Properties（CSS変数）
   ============================================================================ */

:root {
--w: calc(100vw / 60); 
--wsp: calc(100vw / 25);

  /* --------------------------------------------------------------------------
     カラーシステム - Monochrome × Glass × Gold Accent
     -------------------------------------------------------------------------- */

  /* Base Colors - モノトーンベース */
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --color-gray-50: #fafafa;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e5e5e5;
  --color-gray-300: #d4d4d4;
  --color-gray-400: #a3a3a3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;

  /* Glass Morphism Colors - 半透明レイヤー */
  --color-glass-white: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  --color-glass-white-hover: rgba(255, 255, 255, 0.15);
  --color-glass-black: rgba(10, 10, 10, 0.6);
  --color-glass-black-heavy: rgba(10, 10, 10, 0.8);

  /* Gold Accent - ラグジュアリーアクセント */
  --color-gold: #d4af37;
  --color-gold-light: #f4d775;
  --color-gold-dark: #b8941f;

  /* Semantic Colors - 用途別カラー */
  --color-bg-primary: var(--color-black);
  --color-bg-secondary: var(--color-gray-900);
  --color-text-primary: var(--color-white);
  --color-text-secondary: var(--color-gray-300);
  --color-text-muted: var(--color-gray-500);
  --color-accent: var(--color-gold);
  --color-border: rgba(255, 255, 255, 0.1);
  

  /* --------------------------------------------------------------------------
     タイポグラフィ
     -------------------------------------------------------------------------- */

  /* Font Families */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-mono: "Menlo", "Monaco", "Courier New", monospace;

  /* Font Sizes - Fluid Typography（モバイルファースト） */
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem); /* 12-14px */
  --font-size-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem); /* 14-16px */
  --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); /* 16-18px */
  --font-size-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.5rem); /* 18-24px */
  --font-size-xl: clamp(1.5rem, 1.35rem + 0.75vw, 2.25rem); /* 24-36px */
  --font-size-2xl: clamp(2rem, 1.75rem + 1.25vw, 3.25rem); /* 32-52px */
  --font-size-3xl: clamp(2.5rem, 2rem + 2.5vw, 5rem); /* 40-80px */

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* --------------------------------------------------------------------------
     Spacing（8pxグリッドシステム）
     -------------------------------------------------------------------------- */

  --space-1: 0.5rem; /* 8px */
  --space-2: 1rem; /* 16px */
  --space-3: 1.5rem; /* 24px */
  --space-4: 2rem; /* 32px */
  --space-5: 2.5rem; /* 40px */
  --space-6: 3rem; /* 48px */
  --space-8: 4rem; /* 64px */
  --space-10: 5rem; /* 80px */
  --space-12: 6rem; /* 96px */
  --space-16: 8rem; /* 128px */
  --space-20: 10rem; /* 160px */

  /* レスポンシブコンテナ幅 */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  --container-3xl: 1920px;
  --container-MAX:calc(100% - 1em);

  /* --------------------------------------------------------------------------
     Border Radius（角の丸み）
     -------------------------------------------------------------------------- */

  --radius-sm: 0.25rem; /* 4px */
  --radius-md: 0.5rem; /* 8px */
  --radius-lg: 1rem; /* 16px */
  --radius-xl: 1.5rem; /* 24px */
  --radius-2xl: 2rem; /* 32px */
  --radius-full: 9999px; /* 完全な円 */

  /* --------------------------------------------------------------------------
     Shadows（影）
     -------------------------------------------------------------------------- */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);

  /* --------------------------------------------------------------------------
     Blur（ぼかし効果 - グラスモーフィズム）
     -------------------------------------------------------------------------- */

  --blur-sm: 4px;
  --blur-md: 8px;
  --blur-lg: 16px;
  --blur-xl: 24px;

  /* --------------------------------------------------------------------------
     Transitions（トランジション）
     -------------------------------------------------------------------------- */

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-luxury: 600ms cubic-bezier(0.25, 1, 0.5, 1);

  /* --------------------------------------------------------------------------
     Z-Index（重なり順序）
     -------------------------------------------------------------------------- */

  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700; 
  --z-maximum:calc(infinity);
}

/* ============================================================================
   2. Lenis Smooth Scroll 設定（ブラウザ標準との競合防止）
   ============================================================================ */

/* Lenisによる慣性スクロール有効化 */
html.lenis,
html.lenis body {
  height: auto;
}

/* ブラウザのscroll-behaviorとの競合を防止（重要） */
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

/* data-lenis-prevent属性での部分スクロール制御 */
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* スクロール停止時 */
.lenis.lenis-stopped {
  overflow: hidden;
}

/* スクロール中のiframe干渉防止 */
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ============================================================================
   3. Base Styles（基本スタイル）
   ============================================================================ */

/* --------------------------------------------------------------------------
   HTML要素の基礎設定
   -------------------------------------------------------------------------- */

html {
  /* スムーススクロール（Lenisがない環境用のフォールバック） */
  /*scroll-behavior: smooth;*/

  /* テキストレンダリングの最適化 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  /* タッチデバイスでのスクロール最適化 */
  -webkit-overflow-scrolling: touch;
}

body {
  /* 背景色とテキスト色 */
  background-color: #1a1919;
  color: var(--color-text-primary);

  /* フォント設定 */
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-normal);

  /* レイアウト */
  min-height: 100vh;
  overflow-x: hidden; /* 横スクロール防止 */

  /* テキスト選択時の色 */
  ::selection {
    background-color: var(--color-gold);
    color: var(--color-black);
  }

  ::-moz-selection {
    background-color: var(--color-gold);
    color: var(--color-black);
  }
}

/* --------------------------------------------------------------------------
   Typography（タイポグラフィ）
   -------------------------------------------------------------------------- */

/* 見出し共通設定 */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  letter-spacing: -0.02em; /* タイトな字間でモダンな印象 */
}

h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
}

h5 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2);
}

/* 段落 */
p {
  margin: 0 0 var(--space-4) 0;
  line-height: var(--line-height-relaxed);
  overflow-wrap: break-word;
  text-align: start;
}

/* リンク */
a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-gold-light);
}

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

/* 強調 */
strong,
b {
  font-weight: var(--font-weight-bold);
}

em,
i {
  font-style: italic;
}

/* コード */
code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  background-color: var(--color-glass-white);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}

/* リスト */
ul,
ol {
  margin: 0 0 var(--space-4) 0;
  padding-left: var(--space-5);
}

li {
  margin-bottom: var(--space-2);
}

/* 水平線 */
hr {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-8) 0;
}

/* --------------------------------------------------------------------------
   Media Elements（メディア要素）
   -------------------------------------------------------------------------- */

img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 画像の最適化 */
img {
  /* 画像がぼやけないようにする */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* --------------------------------------------------------------------------
   Form Elements（フォーム要素）
   -------------------------------------------------------------------------- */

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input,
textarea,
select {
  background-color: var(--color-glass-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

/* ==========================================================================
   Double Offset Square Button（global.cssの「4. Utility Classes」に追加）
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base Style - White Background
   -------------------------------------------------------------------------- */

.double-offset-square-button {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  color: #000000;
  font-size: 18px;
  border-radius: 0px;
  width: 180px;
  height: 60px;
  position: relative;
  transition: 0.3s;
}

.double-offset-square-button::before,
.double-offset-square-button::after {
  content: "";
  display: block;
  position: absolute;
  border: 1px solid #000000;
  width: 100%;
  height: 100%;
  transition: 0.3s;
}

.double-offset-square-button::before {
  top: -4px;
  left: -4px;
}

.double-offset-square-button::after {
  top: 4px;
  left: 4px;
}

.double-offset-square-button:hover::before,
.double-offset-square-button:hover::after {
  top: 0;
  left: 0;
}

/* --------------------------------------------------------------------------
   Gold Variation（ゴールドバージョン）
   -------------------------------------------------------------------------- */

.double-offset-square-button--gold {
  color: var(--color-black);
}

.double-offset-square-button--gold::before,
.double-offset-square-button--gold::after {
  border-color: var(--color-gold-dark);
}

/* --------------------------------------------------------------------------
   White Outline Variation（ホワイトアウトライン）
   -------------------------------------------------------------------------- */

.double-offset-square-button--outline {
  color: var(--color-white);
  background-color: transparent;
}

.double-offset-square-button--outline::before,
.double-offset-square-button--outline::after {
  border-color: var(--color-white);
}



/* ============================================================================
   4. Utility Classes（ユーティリティクラス）
   ============================================================================ */

/* --------------------------------------------------------------------------
   コンテナ
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-MAX);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

.container-fluid {
  width: 100%;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* --------------------------------------------------------------------------
   Glass Morphism Components（グラスモーフィズムコンポーネント）
   -------------------------------------------------------------------------- */

.glass {
  background: var(--color-glass-white);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.glass-dark {
  background: var(--color-glass-black);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  border: 1px solid var(--color-border);
}

.glass-heavy {
  background: var(--color-glass-black-heavy);
  backdrop-filter: blur(var(--blur-xl));
  -webkit-backdrop-filter: blur(var(--blur-xl));
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Text Utilities（テキストユーティリティ）
   -------------------------------------------------------------------------- */

.text-primary {
  color: var(--color-text-primary);
}
.text-secondary {
  color: var(--color-text-secondary);
}
.text-muted {
  color: var(--color-text-muted);
}
.text-gold {
  color: var(--color-gold);
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.text-uppercase {
  text-transform: uppercase;
}
.text-lowercase {
  text-transform: lowercase;
}
.text-capitalize {
  text-transform: capitalize;
}

/* 行の折り返し最適化 */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Display & Visibility
   -------------------------------------------------------------------------- */

.hidden {
  display: none !important;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}

/* スクリーンリーダー専用（アクセシビリティ） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --------------------------------------------------------------------------
   Flexbox Utilities
   -------------------------------------------------------------------------- */

.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-nowrap {
  flex-wrap: nowrap;
}

.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.items-stretch {
  align-items: stretch;
}

.justify-start {
  justify-content: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}

.gap-1 {
  gap: var(--space-1);
}
.gap-2 {
  gap: var(--space-2);
}
.gap-3 {
  gap: var(--space-3);
}
.gap-4 {
  gap: var(--space-4);
}
.gap-6 {
  gap: var(--space-6);
}
.gap-8 {
  gap: var(--space-8);
}

/* --------------------------------------------------------------------------
   Spacing Utilities（マージン・パディング）
   -------------------------------------------------------------------------- */

/* Margin */
.m-0 {
  margin: 0;
}
.m-auto {
  margin: auto;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-4 {
  margin-top: var(--space-4);
}
.mb-4 {
  margin-bottom: var(--space-4);
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}

/* Padding */
.p-0 {
  padding: 0;
}
.p-4 {
  padding: var(--space-4);
}
.p-6 {
  padding: var(--space-6);
}
.p-8 {
  padding: var(--space-8);
}

.px-4 {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}
.py-4 {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   Interactive States（インタラクティブ状態）
   -------------------------------------------------------------------------- */

.hover-gold {
  transition: color var(--transition-base);
}

.hover-gold:hover {
  color: var(--color-gold);
}

.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Loading State（ローディング状態）
   -------------------------------------------------------------------------- */

.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid var(--color-gold);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================================
   5. Responsive Breakpoints（レスポンシブブレークポイント）
   ============================================================================ */

/* 
  モバイルファースト設計
  
  - デフォルト: モバイル（〜767px）
  - sm: 640px〜
  - md: 768px〜（タブレット）
  - lg: 1024px〜（PC）
  - xl: 1280px〜（大型PC）
  - 2xl: 1536px〜（超大型ディスプレイ）
*/

/* 特定デバイスでの非表示 */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hide-tablet {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ============================================================================
   6. Animations（アニメーション）
   ============================================================================ */

/* フェードイン */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn var(--transition-luxury) ease-out;
}

/* スライドアップ */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp var(--transition-luxury) ease-out;
}

/* グロー効果（ゴールドアクセント） */
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  }
}

.glow-gold {
  animation: glow 2s ease-in-out infinite;
}

/* ============================================================================
   7. Print Styles（印刷用スタイル）
   ============================================================================ */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  img {
    page-break-inside: avoid;
    max-width: 100% !important;
  }
}

/* ============================================================================
   8. Accessibility（アクセシビリティ強化）
   ============================================================================ */

/* フォーカス表示の強化 */
*:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

/* 縮小アニメーション無効化の設定（ユーザー設定を尊重） */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
  :root {
    --color-text-primary: #ffffff;
    --color-bg-primary: #000000;
    --color-border: rgba(255, 255, 255, 0.3);
  }
}

/* ============================================================================
   9. Browser-Specific Fixes（ブラウザ別の修正）
   ============================================================================ */

/* Safari用のblur最適化 */
@supports (-webkit-backdrop-filter: blur(1px)) {
  .glass,
  .glass-dark,
  .glass-heavy {
    -webkit-backdrop-filter: blur(var(--blur-lg));
  }
}
