/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0e0e0e;
  --white: #f8f6f2;
  --gold: #b8975a;
  --gold-light: #d4b37a;
  --gray: #888;
  --bg-dark: #111009;
  --bg-light: #f5f3ef;
  --transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

/* ===== ナビゲーション ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.5s, box-shadow 0.5s;
  padding: 0 40px;
}

.header.scrolled {
  background: rgba(14, 14, 14, 0.95);
  box-shadow: 0 1px 0 rgba(184, 151, 90, 0.2);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: auto;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 5px;
  color: var(--white);
}

.logo-ja {
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--gold);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: rgba(248, 246, 242, 0.8);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s;
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--white);
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== ヒーロー ===== */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 14, 14, 0.7) 0%,
    rgba(14, 14, 14, 0.35) 100%
  );
  display: flex;
  align-items: center;
}

.hero-content {
  padding: 0 60px;
  max-width: 700px;
}

.hero-since {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 5px;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.8;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: rgba(248, 246, 242, 0.6);
  margin-bottom: 40px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--gold);
  color: var(--white);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 4px;
  transition: background 0.4s, color 0.4s;
}

.hero-btn:hover {
  background: var(--gold);
  color: var(--black);
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  bottom: 40px; right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-indicator span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: rgba(248, 246, 242, 0.5);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

/* ===== セクション共通 ===== */
.section { padding: 120px 0; }

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

.section-header {
  margin-bottom: 60px;
}

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
  padding-bottom: 20px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 1px;
  background: var(--gold);
}

/* ===== コンセプト ===== */
.concept { background: var(--white); }

.concept-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: center;
}

.concept-text p {
  font-size: 0.95rem;
  line-height: 2.2;
  color: #444;
  margin-bottom: 20px;
}

.concept-nums {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--gold);
  padding-left: 24px;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--black);
  line-height: 1;
}

.stat-num small { font-size: 1.5rem; }

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--gray);
  margin-top: 6px;
}

/* ===== ワークス ===== */
.works-section { background: var(--bg-dark); }

.works-section .section-label,
.works-section .section-header h2 { color: var(--white); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.works-grid .work-item:nth-child(1) { grid-column: span 2; }
.works-grid .work-item:nth-child(4) { grid-column: span 2; }

.work-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.work-item:nth-child(1) { aspect-ratio: auto; }

.work-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--transition);
}

.work-item:hover img { transform: scale(1.05); }

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s;
}

.work-item:hover .work-overlay { opacity: 1; }

.work-overlay p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: var(--white);
}

/* ===== テクノロジー ===== */
.technology { background: var(--bg-light); }

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tech-text p {
  font-size: 0.95rem;
  line-height: 2.2;
  color: #444;
  margin-bottom: 20px;
}

.tech-list {
  list-style: none;
  margin-top: 30px;
}

.tech-list li {
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  font-size: 0.9rem;
  color: #555;
  padding-left: 16px;
  position: relative;
}

.tech-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.tech-img-wrap {
  position: relative;
}

.tech-img-wrap::before {
  content: '';
  position: absolute;
  top: 16px; left: 16px; right: -16px; bottom: -16px;
  border: 1px solid var(--gold);
  z-index: 0;
}

.tech-img-wrap img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  object-fit: cover;
}

/* ===== コンタクト ===== */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--gold);
}

.info-item span, .info-item a {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #333;
  text-decoration: none;
}

.info-item a:hover { color: var(--gold); }

.contact-map {
  height: 380px;
  overflow: hidden;
  border: 1px solid #e0dcd4;
}

.contact-map iframe {
  width: 100%; height: 100%;
  display: block;
}

/* ===== フッター ===== */
footer {
  background: var(--black);
  padding: 30px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 4px;
  color: rgba(248, 246, 242, 0.4);
}

footer span:last-child {
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: rgba(248, 246, 242, 0.3);
}

/* ===== フェードイン ===== */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--transition), transform 0.9s var(--transition);
}

.fade.visible {
  opacity: 1;
  transform: none;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .header { padding: 0 20px; }
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(14, 14, 14, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav.open { transform: none; }

  .nav ul {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .nav-link {
    font-size: 1.2rem;
    letter-spacing: 6px;
  }

  .concept-grid,
  .tech-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .works-grid { grid-template-columns: 1fr 1fr; }
  .works-grid .work-item:nth-child(1) { grid-column: span 2; }
  .works-grid .work-item:nth-child(4) { grid-column: span 1; }

  .hero-content { padding: 0 30px; }
  .scroll-indicator { display: none; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .works-grid { grid-template-columns: 1fr; }
  .works-grid .work-item:nth-child(1) { grid-column: span 1; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
}
