/* ============================================================
   TOKOSHIE LANDSCAPE — Premium CSS
   Luxury Modern Japanese Aesthetics
   ============================================================ */

/* ======================== CSS VARIABLES ======================== */
:root {
  /* Colors */
  --black:        #0a0a0a;
  --dark:         #111111;
  --dark-gray:    #1c1c1c;
  --mid-gray:     #2e2e2e;
  --stone:        #4a4540;
  --stone-light:  #7a7268;
  --stone-pale:   #c8bfb0;
  --cream:        #f5f0ea;
  --white:        #fafaf8;
  --green-deep:   #1a2e1e;
  --green:        #2d4a32;
  --green-mid:    #3d6142;
  --warm-gold:    #b8955a;
  --warm-light:   #e8d5aa;
  --accent:       #8a7355;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
  --font-body:    'Montserrat', 'Noto Sans JP', sans-serif;
  --font-jp:      'Noto Serif JP', serif;

  /* Spacing */
  --section-pad:  120px;
  --section-pad-m: 60px;

  /* Transitions */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:     cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur:          0.4s;
  --dur-slow:     0.8s;

  /* Layout */
  --max-w:        1400px;
  --nav-h:        80px;
}

/* ======================== RESET & BASE ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }
input, textarea, select { font: inherit; }

/* ======================== TYPOGRAPHY ======================== */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--warm-gold);
  margin-bottom: 16px;
  display: block;
}
.section-label.light { color: var(--warm-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 24px;
}

.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: var(--stone-pale);
  max-width: 520px;
  line-height: 1.8;
  margin: 0 auto;
}

.title-divider {
  width: 48px;
  height: 1px;
  background: var(--warm-gold);
  margin-bottom: 32px;
}
.title-divider.center { margin-left: auto; margin-right: auto; margin-bottom: 40px; }

/* ======================== LAYOUT ======================== */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
}

/* ======================== NAVIGATION ======================== */
#main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}

#main-header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 48px;
  max-width: calc(var(--max-w) + 96px);
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-symbol {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--warm-gold);
  letter-spacing: 0.05em;
}
.logo-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--white);
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--dur) var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--warm-gold);
  transition: width var(--dur) var(--ease);
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Language Selector */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.lang-selector {
  position: relative;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--white);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color var(--dur) var(--ease);
}
.lang-current:hover { border-color: var(--warm-gold); }
.lang-arrow {
  font-size: 9px;
  color: var(--warm-gold);
  transition: transform var(--dur) var(--ease);
}
.lang-selector.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--dark-gray);
  border: 1px solid rgba(255,255,255,0.1);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--dur) var(--ease);
}
.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  padding: 12px 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: color var(--dur), background var(--dur);
}
.lang-option:hover,
.lang-option.active {
  background: rgba(184,149,90,0.15);
  color: var(--warm-gold);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.mobile-menu-btn span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: all var(--dur) var(--ease);
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ======================== MOBILE MENU ======================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.mobile-link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white);
  transition: color var(--dur) var(--ease);
}
.mobile-link:hover { color: var(--warm-gold); }
.mobile-lang {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}
.mobile-lang-option {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 6px 10px;
  border-bottom: 1px solid transparent;
  transition: all var(--dur) var(--ease);
}
.mobile-lang-option.active,
.mobile-lang-option:hover {
  color: var(--warm-gold);
  border-bottom-color: var(--warm-gold);
}

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--warm-gold);
  transform: translateX(-101%);
  transition: transform var(--dur) var(--ease);
}
.btn:hover::before { transform: translateX(0); }
.btn span, .btn { z-index: 1; }

.btn-primary {
  background: var(--warm-gold);
  color: var(--dark);
  border: 1px solid var(--warm-gold);
}
.btn-primary::before { background: var(--dark); }
.btn-primary:hover { color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline::before { background: var(--warm-gold); }
.btn-outline:hover {
  color: var(--dark);
  border-color: var(--warm-gold);
}

.btn-full { width: 100%; justify-content: center; }

/* ======================== HERO ======================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s var(--ease), transform 8s ease-out;
}
.hero-img.active {
  opacity: 1;
  transform: scale(1);
}

/* hero-main.jpg (縦長コンポジット: 上半分ロゴ, 下半分サウナ庭園) — 下半分の庭園部分を主体に表示 */
#hero-img-0 {
  object-position: center 65%;
}
/* landscape-design.jpg (禅庭園・横長) */
#hero-img-1 {
  object-position: center 50%;
}
/* exterior-design.jpg (モダン住宅・昼間) */
#hero-img-2 {
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(10,10,10,0.78) 0%,
      rgba(10,10,10,0.45) 55%,
      rgba(10,10,10,0.2) 100%
    ),
    linear-gradient(
      to top,
      rgba(10,10,10,0.55) 0%,
      transparent 40%
    );
  z-index: 1;
}

.hero-slide-indicators {
  position: absolute;
  bottom: 40px;
  right: 48px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.slide-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.slide-dot.active {
  background: var(--warm-gold);
  width: 24px;
  border-radius: 3px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  padding-top: var(--nav-h);
  width: 100%;
}

.hero-symbol {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 300;
  color: rgba(184,149,90,0.15);
  line-height: 1;
  margin-bottom: -20px;
  letter-spacing: -0.02em;
  user-select: none;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 720px;
}

.hero-subheadline {
  font-family: var(--font-jp);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 200;
  color: var(--warm-light);
  margin-bottom: 28px;
  letter-spacing: 0.12em;
}

.hero-description {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  line-height: 1.85;
  margin-bottom: 44px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--warm-gold), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.7); }
}
.scroll-text {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
}

/* ======================== STUDIO ======================== */
.studio-section {
  background: var(--dark);
}

.studio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 88px;
}

.studio-visual {
  position: relative;
}

.studio-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
/* ファイル名4の左上テキストを隠す: 左上グラデーションオーバーレイ */
.studio-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.72) 0%,
    rgba(10,10,10,0.35) 35%,
    transparent 60%
  );
  z-index: 1;
  pointer-events: none;
}
.studio-img {
  transition: transform var(--dur-slow) var(--ease);
  /* ファイル名4: ベトナム禅庭園夜景 — 左上テキストを隠し庭園部分を表示 */
  object-position: 60% 55%;
  filter: brightness(0.88) saturate(0.95);
}
.studio-image-wrap:hover .studio-img {
  transform: scale(1.04);
  filter: brightness(0.82) saturate(1.0);
}
.studio-accent-line {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 120px;
  height: 120px;
  border-left: 1px solid var(--warm-gold);
  border-bottom: 1px solid var(--warm-gold);
}

.studio-brand-block {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--dark-gray);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.studio-symbol {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--warm-gold);
  line-height: 1;
}
.studio-brand-name {
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--stone-pale);
  text-transform: uppercase;
}

.studio-content {
  padding-left: 20px;
}

.studio-lead {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--cream);
  margin-bottom: 24px;
}
.studio-lead em { color: var(--warm-gold); font-style: italic; }

.studio-body {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}

.studio-philosophy {
  border-left: 2px solid var(--warm-gold);
  padding-left: 24px;
  margin-bottom: 40px;
}
.philosophy-quote {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.6;
}

.studio-representative {
  display: flex;
  align-items: center;
  gap: 20px;
}
.rep-line {
  width: 40px;
  height: 1px;
  background: var(--warm-gold);
  flex-shrink: 0;
}
.rep-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rep-title {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--warm-gold);
  text-transform: uppercase;
}
.rep-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
}
.rep-company {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--stone-pale);
}

/* Studio Values */
.studio-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.value-item {
  padding: 48px 40px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background var(--dur) var(--ease);
}
.value-item:last-child { border-right: none; }
.value-item:hover { background: rgba(255,255,255,0.02); }

.value-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: rgba(184,149,90,0.2);
  line-height: 1;
  margin-bottom: 16px;
}
.value-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}
.value-text {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}

/* ======================== SERVICES ======================== */
.services-section {
  background: var(--black);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 2px;
}

.service-card {
  position: relative;
  overflow: hidden;
  cursor: default;
  background: var(--dark-gray);
}

.service-card--featured {
  grid-column: span 2;
}
.service-card--wide {
  grid-column: span 2;
}

.service-card-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.service-card-image img {
  transition: transform var(--dur-slow) var(--ease);
  object-position: center center;
}
.service-card:hover .service-card-image img {
  transform: scale(1.06);
}

/* ランドスケープデザインカード(featured): 禅庭園夜景 — 砂利・石が際立つ */
.service-card[data-service="landscape"] .service-card-image img {
  object-position: center 55%;
}

/* 外構デザインカード: モダン住宅 ReRender削除版 — 建物全体 */
.service-card[data-service="exterior"] .service-card-image img {
  object-position: center 30%;
}

/* 樹木買取カード: トレーラー樹木画像 — 樹木の枝張りが見えるよう */
.service-card[data-service="tree"] .service-card-image img {
  object-position: center 45%;
  filter: brightness(0.82) saturate(0.9);
}

/* 施工・リノベーションカード: 職人手元画像 — 手とコテが中心 */
.service-card[data-service="construction"] .service-card-image img {
  object-position: center 50%;
}

/* サウナキャビンカード(wide): hero-main.jpgの下半分（庭園・サウナ）を使用 */
.service-card[data-service="sauna"] .service-card-image img {
  object-position: center 70%;
}
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.2) 60%, transparent 100%);
}

.service-card-content {
  padding: 32px;
}
.service-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(184,149,90,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-gold);
  font-size: 16px;
  margin-bottom: 20px;
  transition: all var(--dur) var(--ease);
}
.service-card:hover .service-icon {
  background: var(--warm-gold);
  color: var(--dark);
  border-color: var(--warm-gold);
}
.service-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 10px;
}
.service-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
  line-height: 1.7;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.service-list li {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45);
  padding-left: 14px;
  position: relative;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--warm-gold);
  font-size: 10px;
}
.service-link {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--warm-gold);
  font-weight: 500;
  transition: gap var(--dur) var(--ease);
}
.service-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ======================== PROJECTS ======================== */
.projects-section {
  background: var(--dark-gray);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
  margin-bottom: 60px;
}

.project-card {
  position: relative;
  background: var(--dark);
}
.project-card--main {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.project-image-wrap {
  position: relative;
  overflow: hidden;
}
.project-card--main .project-image-wrap {
  height: 480px;
}
.project-card:not(.project-card--main) .project-image-wrap {
  height: 320px;
}

.project-img {
  transition: transform var(--dur-slow) var(--ease);
  object-position: center center;
}
.project-card:hover .project-img {
  transform: scale(1.05);
}
/* プロジェクト01 (ベトナム禅庭園) — 砂利・石が見えるよう中央より下 */
.project-card--main .project-img {
  object-position: center 55%;
}
/* プロジェクト03 (枯山水 = ファイル名4と同じ画像) — 砂利・石・松を中心に表示 */
.project-card:last-child .project-img {
  object-position: 60% 55%;
}
/* プロジェクト03 画像ラップに左上テキスト隠しオーバーレイ */
.project-card:last-child .project-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.65) 0%,
    rgba(10,10,10,0.2) 40%,
    transparent 65%
  );
  z-index: 1;
  pointer-events: none;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.7) 0%, rgba(26,46,30,0.4) 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-type {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--warm-light);
  text-transform: uppercase;
}
.project-view {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
  font-style: italic;
}

.project-info {
  padding: 36px 40px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.project-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 300;
  color: rgba(184,149,90,0.2);
  line-height: 1;
  flex-shrink: 0;
}
.project-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
}
.project-subtitle {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--warm-gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.project-desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
}

.projects-cta {
  text-align: center;
}

/* ======================== TREE SECTION ======================== */
.tree-section {
  position: relative;
  padding: var(--section-pad) 0;
}
.tree-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tree-bg-image img {
  /* ファイル名7: モダン高級住宅テラス — 松・緑・テラスが見えるよう */
  object-position: center 35%;
  filter: brightness(0.45) saturate(0.7);
}
.tree-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(10,10,10,0.80) 0%,
      rgba(20,36,24,0.60) 50%,
      rgba(10,10,10,0.72) 100%
    );
  mix-blend-mode: multiply;
}
/* 上下エッジを締めるグラデーション */
.tree-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.55) 0%,
    rgba(10,10,10,0.05) 25%,
    rgba(10,10,10,0.05) 75%,
    rgba(10,10,10,0.60) 100%
  );
  z-index: 0;
}

.tree-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.tree-description {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
  max-width: 680px;
  margin-bottom: 60px;
}

.tree-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 56px;
}

.tree-service-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 36px 28px;
  transition: background var(--dur) var(--ease);
}
.tree-service-item:hover {
  background: rgba(184,149,90,0.1);
  border-color: rgba(184,149,90,0.3);
}
.tree-service-icon {
  font-size: 22px;
  color: var(--warm-gold);
  margin-bottom: 20px;
}
.tree-service-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 10px;
}
.tree-service-item p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ======================== AREA ======================== */
.area-section {
  background: var(--black);
}

.area-layout {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 60px;
}

.area-block {
  flex: 1;
  padding: 60px 56px;
}

.area-divider-vertical {
  width: 1px;
  height: 240px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.area-icon {
  font-size: 28px;
  color: var(--warm-gold);
  margin-bottom: 20px;
}
.area-type {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 20px;
}
.area-locations {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.area-location {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.05em;
}
.area-separator {
  color: var(--warm-gold);
  font-size: 20px;
}
.area-note {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.area-locations-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.area-location-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  color: var(--cream);
}
.area-location-item i {
  font-size: 8px;
  color: var(--warm-gold);
}

.area-worldwide-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 0;
}
.worldwide-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,149,90,0.4), transparent);
}
.worldwide-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--warm-gold);
  text-transform: uppercase;
  white-space: nowrap;
}

.area-map-visual {
  display: none; /* Decorative only - hidden on smaller screens */
}

/* ======================== CONTACT ======================== */
.contact-section {
  background: var(--dark);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
}

.contact-intro {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.contact-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(184,149,90,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-gold);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-label-text {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--warm-gold);
  text-transform: uppercase;
}
.contact-value {
  font-size: 15px;
  color: var(--cream);
  font-weight: 300;
  transition: color var(--dur) var(--ease);
}
a.contact-value:hover { color: var(--warm-gold); }

.contact-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.contact-brand-symbol {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--warm-gold);
  font-weight: 300;
}
.contact-brand-name {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--stone-pale);
  text-transform: uppercase;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 300;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--warm-gold);
  background: rgba(184,149,90,0.05);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.select-wrap {
  position: relative;
}
.select-wrap select {
  width: 100%;
  cursor: pointer;
}
.select-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--warm-gold);
  font-size: 11px;
  pointer-events: none;
}

/* ======================== FORMSPREE BANNERS ======================== */

/* 成功バナー */
.fs-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-bottom: 28px;
  animation: fsBannerIn 0.5s var(--ease) both;
}
@keyframes fsBannerIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fs-banner--success {
  background: rgba(45, 74, 50, 0.28);
  border: 1px solid rgba(61, 97, 66, 0.55);
  color: var(--warm-light);
}
.fs-banner--success i {
  font-size: 22px;
  color: var(--green-mid);
  flex-shrink: 0;
}

.fs-banner--error {
  background: rgba(120, 40, 40, 0.25);
  border: 1px solid rgba(160, 60, 60, 0.45);
  color: #e8b4b4;
}

/* [hidden] 属性で非表示 */
.fs-banner[hidden] { display: none !important; }

/* フィールドレベルのエラーメッセージ（Formspree SDK が内容を挿入） */
.fs-field-error {
  display: block;
  font-size: 11px;
  color: #e07070;
  letter-spacing: 0.05em;
  margin-top: 5px;
  min-height: 16px;
}

/* Formspree SDK が付与する aria-invalid スタイル */
[aria-invalid="true"] {
  border-color: rgba(192, 57, 43, 0.7) !important;
  background: rgba(192, 57, 43, 0.06) !important;
}

/* 送信中ボタン状態 */
[data-fs-submit-btn]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 旧 .form-success との後方互換（念のため残す） */
.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(45, 74, 50, 0.3);
  border: 1px solid rgba(61, 97, 66, 0.5);
  color: var(--warm-light);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.form-success i { font-size: 18px; color: var(--green-mid); }
.form-success[hidden] { display: none; }

/* ======================== FOOTER ======================== */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 48px 48px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-symbol {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  color: var(--warm-gold);
  line-height: 1;
}
.footer-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--white);
  text-transform: uppercase;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--stone-pale);
  font-weight: 300;
}
.footer-areas {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.footer-area-separator { color: var(--warm-gold); }
.footer-contact-row {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-contact-row a:hover { color: var(--warm-gold); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  width: 100%;
}
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
}

/* ======================== ANIMATIONS ======================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  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; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-card--featured { grid-column: span 2; }
  .service-card--wide { grid-column: span 2; }
  .tree-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .section-inner { padding: 0 32px; }
  .studio-layout { grid-template-columns: 1fr; gap: 48px; }
  .studio-visual { max-width: 480px; }
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .nav-center { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-menu { display: flex; }
  .navbar { padding: 0 32px; }
  .project-card--main { grid-template-columns: 1fr; grid-column: span 2; }
  .project-card--main .project-image-wrap { height: 360px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; --nav-h: 64px; }
  .section-inner { padding: 0 24px; }

  .hero-content { padding: 0 24px; padding-top: var(--nav-h); }
  .hero-slide-indicators { right: 24px; bottom: 24px; }
  .hero-scroll-indicator { display: none; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }

  .studio-values { grid-template-columns: 1fr; }
  .value-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .value-item:last-child { border-bottom: none; }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card--featured,
  .service-card--wide { grid-column: span 1; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card--main { grid-column: span 1; grid-template-columns: 1fr; }

  .tree-services-grid { grid-template-columns: 1fr; }

  .area-layout { flex-direction: column; }
  .area-divider-vertical { width: 100%; height: 1px; }
  .area-block { padding: 40px 32px; }

  .navbar { padding: 0 24px; }
  .logo-text { display: none; }

  .hero-symbol { font-size: 48px; }
  .footer-areas { flex-direction: column; gap: 8px; }
  .footer-contact-row { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 36px; }
  .section-title { font-size: 32px; }
  .btn { padding: 14px 24px; font-size: 11px; }
  .contact-item { flex-direction: column; gap: 10px; }
}

/* ======================== CUSTOM SCROLLBAR ======================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--warm-gold); border-radius: 2px; }

/* ======================== SELECTION ======================== */
::selection {
  background: rgba(184,149,90,0.3);
  color: var(--white);
}
