/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --pink:       #e8748a;
  --pink-light: #f7c5cf;
  --pink-pale:  #fdf0f2;
  --cream:      #fdf7f2;
  --cream-dark: #f5ebe0;
  --brown:      #3d2314;
  --brown-mid:  #7a4a2e;
  --gold:       #c4954a;
  --gold-light: #e8c48a;
  --gray:       #6b7280;
  --gray-light: #e8e8e8;
  --white:      #ffffff;
  --font-main:  'Noto Sans JP', sans-serif;
  --font-en:    'Cormorant Garamond', serif;
  --transition: 0.35s ease;
  --radius:     16px;
  --radius-lg:  32px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--brown);
  background: var(--white);
  line-height: 1.85;
  font-size: 16px;
}

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

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.section       { padding: 96px 0; }
.section--cream { background: var(--cream); }
.section--pink  { background: var(--pink-pale); }

/* ============================================================
   Typography
   ============================================================ */
.en-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--pink);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.5;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 15px;
  color: var(--gray);
  line-height: 2;
  max-width: 600px;
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--pink);
  margin: 0 auto 16px;
  border-radius: 2px;
}
.divider--left { margin-left: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--pink);
  color: var(--white);
}
.btn--primary:hover {
  background: #d45e74;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,116,138,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--pink);
  border: 2px solid var(--pink);
}
.btn--outline:hover {
  background: var(--pink);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--pink);
}
.btn--white:hover {
  background: var(--pink-pale);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ============================================================
   Header
   ============================================================ */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
}
.nav-backdrop.is-open { display: block; }

.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo img {
  height: 52px;
  width: auto;
}

@media (max-width: 900px) {
  .site-logo img {
    height: 40px;
  }
}

.site-nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--brown);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--pink);
  transition: width var(--transition);
}
.site-nav a:hover { color: var(--pink); }
.site-nav a:hover::after { width: 100%; }

.site-nav .btn {
  padding: 10px 24px;
  font-size: 13px;
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--brown);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf7f2 0%, #fdf0f2 50%, #f5ebe0 100%);
}

.hero-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--pink);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s ease-in-out infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Hero delayed elements */
.hero-delayed {
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: translateY(12px);
}
.hero-delayed.is-visible {
  opacity: 1 !important;
  transform: translateY(0);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--pink);
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--brown);
  margin-bottom: 24px;
}
.hero-title .tw-pink { color: var(--pink); }
.hero-title .tw-gray { color: var(--gray); }

.hero-sub {
  font-size: 16px;
  color: var(--gray);
  line-height: 2;
  max-width: 520px;
  margin-bottom: 40px;
}

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

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-scroll span {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gray);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--pink), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { opacity: 1; transform: scaleY(1) translateY(0); }
  100% { opacity: 0; transform: scaleY(0.5) translateY(20px); }
}

.hero-image {
  position: absolute;
  right: 0; top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(to right, var(--cream) 0%, transparent 100%);
  z-index: 1;
}

/* ============================================================
   About Split Section
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}

.split-visual {
  position: relative;
  overflow: hidden;
  background: var(--cream-dark);
}
.split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-visual-placeholder {
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 13px;
}

.split-content {
  background: var(--cream);
  display: flex;
  align-items: center;
  padding: 72px 64px;
}

.split-content-inner { max-width: 480px; }

/* ============================================================
   Services Cards
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(61,35,20,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(232,116,138,0.18);
}

.service-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--cream-dark);
}

.service-card-body {
  padding: 28px;
}

.service-icon {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 400;
  color: var(--pink-light);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.service-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 10px;
}

.service-card-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.9;
}

/* ============================================================
   Promises / Features List
   ============================================================ */
.promises-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 48px;
}

.promise-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}

.promise-num {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 400;
  color: var(--pink-light);
  line-height: 1;
}

.promise-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 6px;
}

.promise-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.9;
}

.nav-sns { display: none; }

/* ============================================================
   Flow Steps (services page)
   ============================================================ */
.flow-steps {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin-top: 56px;
}

.flow-step-wrap {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
}

.flow-step {
  background: var(--white);
  border: 1.5px solid var(--pink-light);
  border-radius: var(--radius);
  padding: 32px 20px 28px;
  text-align: center;
  position: relative;
  flex: 1;
  min-width: 0;
  transition: box-shadow var(--transition), transform var(--transition);
}

.flow-step:hover {
  box-shadow: 0 8px 32px rgba(232,116,138,0.14);
  transform: translateY(-4px);
}

.flow-step-num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.flow-step-icon {
  font-size: 32px;
  margin: 8px 0 14px;
  line-height: 1;
}

.flow-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 10px;
}

.flow-step-text {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.85;
}

.flow-step-arrow {
  flex-shrink: 0;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: var(--pink-light);
}


/* ============================================================
   Features Grid (About page)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}

.feature-item {
  background: var(--white);
  padding: 40px 36px;
}

.feature-item-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.feature-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 8px;
}

.feature-item-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.9;
}

/* ============================================================
   CTA Banner
   ============================================================ */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--pink);
  padding: 96px 0;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/photo-cta.jpg') center/cover no-repeat;
  opacity: 0.2;
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
}

.cta-banner-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cta-banner-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(61,35,20,0.07);
  transition: transform var(--transition);
}
.contact-card:hover { transform: translateY(-4px); }

.contact-card-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.contact-card-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 8px;
}

.contact-card-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.9;
}

.contact-card-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  border-radius: 100px;
  background: var(--pink-pale);
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}
.contact-card-link:hover {
  background: var(--pink);
  color: var(--white);
}

/* ============================================================
   Page Hero (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--pink-pale) 100%);
  text-align: center;
}

.page-hero #hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero-label {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.page-hero-title {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.page-hero.is-loaded .page-hero-label,
.page-hero.is-loaded .page-hero-title {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Service detail sections
   ============================================================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-light);
}
.service-detail:last-child { border-bottom: none; }
.service-detail--reverse { direction: rtl; }
.service-detail--reverse > * { direction: ltr; }

.service-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}
.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-num {
  font-family: var(--font-en);
  font-size: 64px;
  font-weight: 400;
  color: var(--pink-light);
  line-height: 1;
  margin-bottom: 8px;
}

/* ============================================================
   Reveal Animations
   ============================================================ */
.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible,
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translate(0);
}

/* stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--brown);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-logo img { height: 40px; filter: brightness(0) invert(1); }

.footer-logo-text {
  font-size: 14px;
  margin-top: 12px;
  color: rgba(255,255,255,0.6);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--pink-light); }

.footer-sns {
  display: flex;
  gap: 12px;
}
.footer-sns a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition);
}
.footer-sns a:hover { background: var(--pink); }

.footer-copy {
  font-size: 12px;
  text-align: center;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .site-nav ul { display: none; }
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(253, 235, 240, 0.88);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 300;
    padding: 88px 32px 40px;
    transition: right var(--transition);
    box-shadow: -4px 0 32px rgba(232,116,138,0.15);
    border-left: 2px solid rgba(232,116,138,0.25);
  }
  .site-nav.is-open { right: 0; }
  .site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .site-nav a { font-size: 16px; }
  .site-nav .btn { width: 100%; justify-content: center; }

  .nav-sns {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(232,116,138,0.2);
  }
  .nav-sns a {
    color: var(--pink);
    opacity: 0.8;
    transition: opacity var(--transition);
  }
  .nav-sns a:hover { opacity: 1; }
  .nav-sns svg { width: 32px; height: 32px; }

  .hero-image { display: none; }
  .hero-content { padding-top: 120px; padding-bottom: 56px; }
  .hero-title { font-size: clamp(28px, 7vw, 44px); }

  .split-section { grid-template-columns: 1fr; }
  .split-content { padding: 56px 32px; }
  .split-visual { min-height: 300px; }

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

  .service-detail { grid-template-columns: 1fr; gap: 32px; }
  .service-detail--reverse { direction: ltr; }

  .footer-inner { flex-direction: column; }
  .flow-steps { flex-direction: column; gap: 40px; }
  .flow-step-arrow { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero-btns { flex-direction: column; }
  .split-content { padding: 40px 20px; }
  .services-grid { gap: 20px; }
}
