/* ============================================================
   KIWA CAPITAL — Main Stylesheet
   参照: jw-planning.co.jp スタイル
   ============================================================ */

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

:root {
  --black:       #0d0d0d;
  --dark:        #1a1a1a;
  --dark2:       #222222;
  --mid:         #2e2e2e;
  --gold:        #c9a84c;
  --gold-light:  #e0c06a;
  --white:       #ffffff;
  --off-white:   #f5f3ef;
  --gray:        #888888;
  --light-gray:  #d4d0c8;
  --font-serif:  'Cormorant Garamond', 'Noto Serif JP', serif;
  --font-sans:   'Noto Sans JP', sans-serif;
  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--dark);
  line-height: 1.8;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Typography ---- */
.section-label {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.section-label.light { color: var(--gold-light); }
.section-label.light::after { background: var(--gold-light); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.section-title.light { color: var(--white); }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Section ---- */
.section { padding: 6rem 0; }
.dark-bg { background: var(--dark); }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
#header.scrolled {
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.logo { display: flex; align-items: center; }
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
  transition: opacity 0.3s;
}
.logo:hover .logo-img { opacity: 0.85; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--white);
}
.logo-sub {
  display: block;
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-top: -2px;
}

/* Main Nav */
.main-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.main-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { width: 100%; }
.main-nav .nav-cta {
  background: var(--gold);
  color: var(--dark) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { background: var(--gold-light); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: rgba(13,13,13,0.98);
  padding: 1.5rem 2rem;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 1rem; }
.mobile-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
  transform: scale(1.05);
  animation: kenburns 8s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }

@keyframes kenburns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(0,0,0,0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
}
.hero-eyebrow {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s 0.5s forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s 0.8s forwards;
}
.hero-title span { display: block; font-size: 0.45em; letter-spacing: 0.5em; color: var(--gold); }
.hero-subtitle {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 0.15em;
  line-height: 2;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 1s 1.1s forwards;
}
.hero-btn {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.85rem 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: var(--transition);
  opacity: 0;
  animation: fadeInUp 1s 1.4s forwards;
}
.hero-btn:hover {
  background: var(--gold);
  color: var(--dark);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { background: var(--off-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 2rem;
}
.about-text p {
  color: #444;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.9;
}
.about-image {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.about-image img {
  transition: transform 0.8s ease;
}
.about-image:hover img { transform: scale(1.04); }
.about-image::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  width: 60%; height: 60%;
  border: 1px solid var(--gold);
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--dark);
  color: var(--white);
  padding: 0.85rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: var(--transition);
  margin-top: 1rem;
}
.btn-primary:hover { background: var(--mid); }
.btn-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.btn-dot.gold { background: var(--gold); }

.btn-outline-light {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  padding: 0.6rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  transition: var(--transition);
  margin-top: 1rem;
}
.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.85rem 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  transition: var(--transition);
}
.btn-gold:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ============================================================
   BUSINESS
   ============================================================ */
.business-section { padding-bottom: 7rem; }
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 3rem;
}
.business-card {
  position: relative;
  overflow: hidden;
  background: var(--dark2);
}
.business-card-img {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.business-card-img img {
  transition: transform 0.8s ease;
}
.business-card:hover .business-card-img img { transform: scale(1.06); }
.business-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.6));
}
.business-card-num {
  position: absolute;
  top: 1.25rem; left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.15);
  z-index: 2;
  line-height: 1;
}
.business-card-body {
  padding: 2rem;
  color: var(--white);
}
.business-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}
.business-card-en {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.business-card-body p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ============================================================
   NEXUS HIGHLIGHT
   ============================================================ */
.nexus-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.nexus-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.nexus-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 100%);
}
.nexus-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.nexus-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 2rem;
}

/* ============================================================
   TEPPANYAKI DETAIL
   ============================================================ */
.teppanyaki-detail { background: var(--off-white); }
.teppanyaki-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.teppanyaki-images {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
}
.teppanyaki-img-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  height: 480px;
  overflow: hidden;
}
.teppanyaki-img-sub {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  height: 230px;
  overflow: hidden;
}
.teppanyaki-img-main img,
.teppanyaki-img-sub img {
  transition: transform 0.8s ease;
}
.teppanyaki-img-main:hover img,
.teppanyaki-img-sub:hover img { transform: scale(1.04); }
.teppanyaki-text p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

/* ============================================================
   NEWS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 3rem;
}
.news-card {
  background: var(--dark2);
  overflow: hidden;
}
.news-card-img {
  height: 220px;
  overflow: hidden;
}
.news-card-img img { transition: transform 0.8s ease; }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-body {
  padding: 1.75rem;
  color: var(--white);
}
.news-date {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}
.news-card-body h3 {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.news-card-body p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  transition: color var(--transition);
}
.news-link:hover { color: var(--gold-light); }

/* ============================================================
   REAL ESTATE
   ============================================================ */
.realestate-section { background: var(--white); }
.realestate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.realestate-text p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}
.realestate-list {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.realestate-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #444;
}
.list-icon { color: var(--gold); flex-shrink: 0; }
.realestate-image {
  position: relative;
}
.realestate-image > img {
  height: 480px;
  object-fit: cover;
}
.realestate-stat {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--dark);
  padding: 1.5rem 2rem;
  display: flex;
  gap: 2rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   SNS
   ============================================================ */
.sns-container { text-align: center; }
.sns-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin: 1rem 0 2.5rem;
  line-height: 1.8;
}
.sns-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.sns-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  padding: 0.85rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: var(--transition);
}
.sns-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.sns-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--off-white); }
.contact-desc {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 3rem;
  max-width: 640px;
}
.contact-form { max-width: 800px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.form-group label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #555;
}
.required { color: var(--gold); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--white);
  border: 1px solid #ddd;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--dark);
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; }
.form-submit { margin-top: 0.5rem; }
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 1rem 3rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit:hover { background: var(--mid); }
.form-message {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  border-left: 3px solid var(--gold);
}
.form-message.success { background: rgba(201,168,76,0.1); color: #5a4a1a; }
.form-message.error { background: rgba(200,50,50,0.1); color: #8a2020; border-color: #c83232; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--black); color: var(--white); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding: 5rem 2rem 3rem;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 1rem;
}
.footer-logo span {
  display: block;
  font-size: 0.5em;
  letter-spacing: 0.5em;
  color: var(--gold);
  font-weight: 300;
}
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  letter-spacing: 0.05em;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-nav-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav-col a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  letter-spacing: 0.05em;
}
.footer-nav-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 2rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--dark);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
.back-to-top:hover { background: var(--gold); color: var(--dark); }

/* ============================================================
   ANIMATIONS (Intersection Observer)
   ============================================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid,
  .teppanyaki-grid,
  .realestate-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image { height: 360px; }
  .about-image::before { display: none; }
  .realestate-image > img { height: 360px; }
  .realestate-stat { position: static; margin-top: 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .business-grid,
  .news-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .section { padding: 4rem 0; }
  .hero-title { font-size: clamp(3rem, 15vw, 5rem); }
  .teppanyaki-grid { grid-template-columns: 1fr; }
  .teppanyaki-images { grid-template-columns: 1fr; }
  .teppanyaki-img-main { grid-column: 1; grid-row: auto; height: 300px; }
  .teppanyaki-img-sub { grid-column: 1; grid-row: auto; height: 200px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .footer-nav { grid-template-columns: 1fr; }
  .header-inner { padding: 1rem 1.25rem; }
}
