/* ============================================
   KORUNEO Studio — Main Stylesheet
   https://koruneo.jp/
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Noto+Serif+JP:wght@300;400&family=Raleway:wght@300;400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --cream:       #faf8f3;
  --cream-warm:  #f5f0e8;
  --gold:        #c9a84c;
  --gold-light:  #e8d095;
  --gold-pale:   #f2e8c8;
  --ink:         #2c2620;
  --ink-soft:    #5a5048;
  --terracotta:  #c87d55;
  --sage:        #8aad8a;
  --nav-bg:      rgba(250, 248, 243, 0.97);
  --transition:  0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Noto Serif JP', 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ── Typography ── */
.section-label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-label .en-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.section-label .ja-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: var(--ink-soft);
  letter-spacing: 0.15em;
}

/* ══════════════════════════════════
   NAVIGATION
══════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

#nav.scrolled {
  background: var(--nav-bg);
  box-shadow: 0 1px 20px rgba(44, 38, 32, 0.08);
}

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

/* ── ロゴ ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 201;
}

/* ① ヒーロー上：白ロゴ表示（logo-icon.png は白オーナメント・透過背景） */
.nav-logo .logo-white { display: block; }
.nav-logo .logo-dark  { display: none; }

/* ① スクロール後：黒ロゴに切替 */
#nav.scrolled .nav-logo .logo-white { display: none; }
#nav.scrolled .nav-logo .logo-dark  { display: block; }

.nav-logo img {
  width: 36px;
  height: 36px;
}

.nav-logo span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 300;
  color: white;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

/* ① スクロール後：テキストも黒に */
#nav.scrolled .nav-logo span { color: var(--ink); }

/* ── デスクトップ ナビリンク ── */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }

#nav.scrolled .nav-links a { color: var(--ink-soft); }
#nav.scrolled .nav-links a:hover,
#nav.scrolled .nav-links a.active { color: var(--gold); }

/* ══════════════════════════════════
   ④ HAMBURGER MENU（スマートフォン用）
══════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
}

.hamburger span {
  display: block;
  height: 1.5px;
  background: white;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.35s ease, background var(--transition);
}

#nav.scrolled .hamburger span { background: var(--ink); }

/* ── ハンバーガー → ✕ ── */
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── ドロワー ── */
.nav-drawer {
  display: none; /* JSで制御 */
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(250, 248, 243, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-drawer.open {
  display: flex;
  opacity: 1;
}

.nav-drawer ul {
  list-style: none;
  text-align: center;
}

.nav-drawer li {
  border-bottom: 1px solid var(--gold-pale);
}

.nav-drawer li:first-child {
  border-top: 1px solid var(--gold-pale);
}

.nav-drawer a {
  display: block;
  padding: 1.2rem 3rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  transition: color 0.3s;
}

.nav-drawer a:hover { color: var(--gold); }

.nav-drawer .drawer-divider {
  width: 40px;
  height: 1px;
  background: var(--gold-light);
  margin: 1.2rem auto;
}

.nav-drawer .drawer-legal a {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  opacity: 0.7;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-overlay.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(44, 38, 32, 0.38) 0%,
    rgba(44, 38, 32, 0.22) 50%,
    rgba(201, 168, 76, 0.12) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 1.5rem;
}

.hero-ornament {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

.hero-tagline {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  margin-top: 1.2rem;
  color: rgba(255,255,255,0.88);
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  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.7);
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0.3; }
}

/* ══════════════════════════════════
   SHARED
══════════════════════════════════ */
section { scroll-margin-top: 72px; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 2rem 0;
}

/* ══════════════════════════════════
   ABOUT
══════════════════════════════════ */
#about {
  padding: 7rem 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.about-text p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.about-image {
  position: relative;
}

/* ② 地球画像：比率を保ちつつ枠に収める */
.about-image-frame {
  width: 100%;
  aspect-ratio: 800 / 659;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 20px 20px 60px rgba(44, 38, 32, 0.12);
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -16px; right: -16px;
  width: 60%;
  height: 60%;
  border: 1px solid var(--gold-light);
  border-radius: 2px;
  z-index: -1;
}

/* ══════════════════════════════════
   SERVICE
══════════════════════════════════ */
#service {
  padding: 7rem 0;
  background: var(--cream-warm);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* リンクなし版（ホバーなし） */
.service-card-no-link {
  display: block;
  color: inherit;
  border-radius: 2px;
}

/* ③ カード全体をリンク化 */
.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 2px;
  /* ホバー浮き上がりはカード側に */
}

.service-card {
  background: var(--cream);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(44, 38, 32, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.service-card-link:hover .service-card {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(44, 38, 32, 0.12);
}

/* サービス画像：coverでトリミング（余白なし） */
.service-card-img {
  height: 220px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.service-card-link:hover .service-card-img img { transform: scale(1.06); }

.service-card-body {
  padding: 1.8rem;
}

/* ③ 見出しにリンク感（アンダーライン） */
.service-card-body h3,
.service-card-body h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
  color: var(--ink);
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.service-card-link:hover .service-card-body h3,
.service-card-link:hover .service-card-body h4 {
  color: var(--gold);
  border-bottom-color: var(--gold-light);
}

.service-card-body p {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════
   PROFILE
══════════════════════════════════ */
#profile {
  padding: 7rem 0;
  background: var(--cream);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

/* ② 石井みか写真：比率を保ちつつ枠に収める */
.profile-image-frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 600 / 727;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: -20px 20px 60px rgba(44, 38, 32, 0.1);
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.profile-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.8rem;
}

.profile-text p {
  font-size: 0.9rem;
  line-height: 2.1;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
#contact {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
  text-align: center;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
}

.contact-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 243, 0.88);
}

.contact-content {
  position: relative;
  z-index: 2;
}

.contact-text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  line-height: 2;
  margin-bottom: 2.5rem;
}

.btn-contact {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  color: white;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(201, 168, 76, 0.4);
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem 1rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold-light); }

/* ══════════════════════════════════
   ANIMATIONS
══════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s 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; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */

/* タブレット */
@media (max-width: 900px) {
  .about-grid,
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image { order: -1; }

  .service-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .profile-image-frame {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ④ スマートフォン：ハンバーガー表示 */
@media (max-width: 767px) {
  .nav-links { display: none; } /* デスクトップリンクを非表示 */
  .hamburger { display: flex; }

  .section-inner { padding: 0 1.2rem; }

  #about, #service, #profile, #contact { padding: 5rem 0; }

  .hero-title { letter-spacing: 0.03em; }
}
