/* ========== 共通CSS ========== */
/* 全ページで共有されるスタイル */

/* ========== CSS変数 ========== */
:root {
  --primary: #D94F2B;
  --primary-dark: #B83D1E;
  --accent: #E8734A;
  --text: #111111;
  --text-sub: #555555;
  --text-muted: #999999;
  --white: #FFFFFF;
  --border: #ECECEC;
  --dark: #0D0D0D;
  --cream: #F7F5F2;
}

/* ========== リセット / ベース ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========== REVEAL アニメーション ========== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ========== ヘッダー ========== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
}

header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
  transition: opacity 0.5s;
}

.logo-white { display: block; }
.logo-dark { display: none; }

header.scrolled .logo-white { display: none; }
header.scrolled .logo-dark { display: block; }

nav { display: flex; align-items: center; gap: 2.5rem; }

nav a {
  text-decoration: none;
  color: var(--text-sub);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.3s;
  position: relative;
}

nav a:hover { color: var(--text); }

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}

nav a:hover::after { width: 100%; }

.nav-cta-btn {
  background: var(--text) !important;
  color: white !important;
  padding: 0.65rem 1.5rem !important;
  border-radius: 100px !important;
  border: 1px solid var(--text) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em !important;
  transition: all 0.3s !important;
}

.nav-cta-btn::after { display: none !important; }
.nav-cta-btn:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* ハンバーガーメニューボタン */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  transform-origin: center;
}

/* スクロール前の白色ロゴ表示時はハンバーガーも白 */
header:not(.scrolled) .menu-toggle span {
  background: white;
}

/* メニュー展開時のアニメーション */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* モバイルメニュー展開時はヘッダーを白背景に */
header.menu-open {
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(20px);
}
header.menu-open .logo-white { display: none !important; }
header.menu-open .logo-dark { display: block !important; }
header.menu-open .menu-toggle span { background: var(--text); }

/* ========== ページヒーロー ========== */
.page-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #FDFBF9 0%, #F7F0EB 40%, #F2E8E0 100%);
}

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

.page-hero-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
}

.page-hero-circle:nth-child(1) {
  width: 800px; height: 800px;
  top: -300px; right: -200px;
  opacity: 0.04;
  animation: circleFloat 30s ease-in-out infinite;
}

.page-hero-circle:nth-child(2) {
  width: 500px; height: 500px;
  bottom: -200px; left: -100px;
  opacity: 0.03;
  animation: circleFloat 25s ease-in-out infinite reverse;
}

@keyframes circleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.08); }
  50% { transform: translate(-20px, 40px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.03); }
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 10rem 3rem 6rem;
}

.page-hero-bg-text {
  position: absolute;
  right: -5%;
  bottom: -10%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15vw;
  font-weight: 700;
  color: rgba(0,0,0,0.02);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: heroSlideIn 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}

.page-hero-label-line {
  width: 0;
  height: 1px;
  background: var(--primary);
  animation: lineGrow 0.6s cubic-bezier(0.16,1,0.3,1) 0.5s forwards;
}

@keyframes lineGrow { to { width: 30px; } }

.page-hero h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.9;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: heroSlideIn 0.8s cubic-bezier(0.16,1,0.3,1) 0.5s forwards;
}

.page-hero-sub {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 2.2;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}
.page-hero-anchors {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  max-width: 680px;
  opacity: 0;
  animation: heroSlideIn 0.8s cubic-bezier(0.16,1,0.3,1) 0.8s forwards;
}

.page-hero-cta {
  opacity: 0;
  animation: heroSlideIn 0.8s cubic-bezier(0.16,1,0.3,1) 1s forwards;
}

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

/* ========== ボタン ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(217,79,43,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(217,79,43,0.03);
}

.btn-outline-light {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline-light:visited {
  color: var(--text);
  border-color: var(--border);
}
.btn-outline-light:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-light:hover {
  background: rgba(217,79,43,0.03);
}

.btn-white, .btn-white:visited { background: white; color: var(--primary); font-weight: 600; }
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.btn-line {
  background: #06C755;
  color: white;
  border: none;
}
.btn-line:hover {
  background: #05b34c;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(6,199,85,0.25);
}

.btn-outline-white, .btn-outline-white:visited {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.btn-outline-white:hover {
  background: white;
  color: var(--primary);
}

.btn-ghost-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
}

.btn-arrow {
  font-size: 0.9rem;
  transition: transform 0.3s;
  display: inline-block;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ========== セクション共通 ========== */
section { padding: 7rem 3rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header { margin-bottom: 3rem; }

.section-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.section-jp {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

.section-lead {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 2;
  max-width: 640px;
  margin-top: 1.5rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 2;
  max-width: 640px;
  margin-top: 1.5rem;
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--primary);
  margin: 1.5rem 0;
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}

.visible .section-divider { width: 60px; }

/* ========== CTAセクション ========== */
.cta-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  padding: 6rem 3rem;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0,0,0,0.1) 0%, transparent 60%);
}

.cta-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.cta-section h2,
.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: white;
  margin-bottom: 1.25rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.cta-section .cta-sub,
.cta-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 2;
  margin-bottom: 3rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== フッター ========== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 5rem 3rem 2rem;
}

.footer-inner { max-width: 1400px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo-img {
  height: 28px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-info {
  font-size: 0.8rem;
  line-height: 2.2;
}

.footer-col-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.35rem 0;
  transition: color 0.3s;
}

.footer-col a:hover { color: white; }

.footer-col-subtitle {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  margin-top: 0.8rem;
  margin-bottom: 0.2rem;
}

.footer-col a.footer-sub-link {
  padding-left: 0.8rem;
  font-size: 0.75rem;
}

.footer-bottom {
  padding-top: 2rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
}

/* ========== レスポンシブ（共通部分） ========== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 5rem 1.5rem; }
  .header-inner { padding: 0 1.5rem; }
  .page-hero-content { padding: 8rem 1.5rem 4rem; }
  .cta-section { padding: 4rem 1.5rem; }
  footer { padding: 3rem 1.5rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; }

  /* ハンバーガーメニュー表示 */
  .menu-toggle { display: flex; }

  /* モバイルナビ */
  nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0; right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 99;
  }

  nav.open { display: flex; }

  nav a {
    font-size: 1rem;
    padding: 1.2rem 2rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }

  nav a::after { display: none; }

  .nav-cta-btn {
    margin-top: 1rem !important;
    width: auto !important;
  }
}
