/* ============================================
   Peony Bridal Produce - Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #FAF7F2;
  --color-bg-warm: #F5EEE6;
  --color-bg-accent: #EDE4D8;
  --color-bg-rose: #F0E0D8;
  --color-text: #4A3F35;
  --color-text-light: #7A6E62;
  --color-text-muted: #A09488;
  --color-accent: #C9917E;
  --color-accent-light: #D4A89A;
  --color-accent-lighter: #E8C4B0;
  --color-gold: #8B7355;
  --color-gold-light: #A89070;
  --color-white: #FFFBF7;
  --color-border: #E0D5C8;

  --font-serif: 'Cormorant Garamond', 'Noto Serif JP', serif;
  --font-script: 'Great Vibes', cursive;
  --font-jp: 'Noto Serif JP', serif;

  --container-max: 1100px;
  --section-padding: 120px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-jp);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.9;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.7;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.5s ease;
}

.nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 0;
  box-shadow: 0 1px 30px rgba(139, 115, 85, 0.08);
}

/* Sub-pages: nav has background immediately so logo doesn't blend into content */
.page-body .nav {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 0;
  box-shadow: 0 1px 30px rgba(139, 115, 85, 0.08);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

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

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-gold);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-warm) 50%, var(--color-bg-accent) 100%);
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 50%, var(--color-accent) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, var(--color-accent) 1px, transparent 1px),
    radial-gradient(circle at 60% 80%, var(--color-accent) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 80px 80px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 80px 24px;
  max-width: var(--container-max);
  width: 100%;
}

.hero-text {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-illustration {
  flex-shrink: 0;
}

.couple-illustration {
  width: 280px;
  height: auto;
  opacity: 0;
  animation: fadeSlideUp 1.2s ease 0.3s forwards;
  filter: drop-shadow(0 4px 12px rgba(139, 115, 85, 0.1));
}

.hero-logo-area {
  opacity: 0;
  animation: fadeSlideUp 1.2s ease 0.5s forwards;
}

.hero-services {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  line-height: 2;
  margin-bottom: 16px;
}

.hero-logo-text {
  line-height: 1;
}

.hero-logo-img {
  width: 280px;
  height: auto;
}

.hero-catchcopy {
  opacity: 0;
  animation: fadeSlideUp 1.2s ease 0.8s forwards;
}

.hero-tagline {
  font-family: var(--font-jp);
  font-weight: 200;
  font-size: 1.3rem;
  color: var(--color-text-light);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.25em;
  line-height: 2.4;
}

.hero-tagline span {
  display: block;
}

/* Hero CTA */
.hero-cta-area {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeSlideUp 1s ease 1.1s forwards;
  z-index: 2;
}

.hero-cta-btn {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold-light));
  padding: 16px 48px;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(201, 145, 126, 0.3);
}

.hero-cta-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 145, 126, 0.4);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.hero-scroll-indicator span {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

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

/* --- Section Common --- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-label {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.section-title-script {
  font-family: var(--font-script);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--color-gold);
  line-height: 1.2;
}

.section-logo-img {
  height: 56px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* --- About Section --- */
.about {
  background: var(--color-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-services-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}

.about-services-label span {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

.about-heading {
  font-family: var(--font-jp);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}

.about-description {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 2.2;
}

.about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.about-img {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1;
  transition: transform var(--transition);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img:first-child {
  grid-row: 1 / 3;
  aspect-ratio: auto;
}

.about-img:hover {
  transform: scale(1.02);
}

/* --- Service Section --- */
.service {
  background: linear-gradient(180deg, var(--color-bg-warm) 0%, var(--color-bg-rose) 50%, var(--color-bg-warm) 100%);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service-card:nth-child(even) {
  direction: rtl;
}

.service-card:nth-child(even) > * {
  direction: ltr;
}

.service-card-img {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  transition: transform var(--transition);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.service-card-body {
  padding: 20px 0;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 16px;
}

.service-card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.service-card-text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 2.2;
}

/* --- Flow Section --- */
.flow {
  background: var(--color-bg);
}

.flow-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.flow-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-accent-lighter), var(--color-border));
}

.flow-item {
  display: flex;
  gap: 32px;
  padding-bottom: 56px;
  position: relative;
}

.flow-item:last-child {
  padding-bottom: 0;
}

.flow-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--color-accent-light);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.flow-number span {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.flow-content {
  padding-top: 8px;
}

.flow-title {
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.flow-text {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 2;
}

/* --- Contact Section --- */
.contact {
  background: linear-gradient(180deg, var(--color-bg-warm) 0%, var(--color-bg-accent) 100%);
  position: relative;
  overflow: hidden;
}

.contact-bg-img {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-size: cover;
  background-position: center;
}

.contact-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-info {
  max-width: 480px;
  margin: 0 auto;
}

.contact-brand {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 28px;
  letter-spacing: 0.08em;
}

.contact-details {
  margin-bottom: 36px;
}

.contact-item {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-item a {
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.contact-item a:hover {
  opacity: 1;
  border-bottom-color: var(--color-accent);
}

.contact-icon {
  font-size: 1rem;
  color: var(--color-accent-light);
}

.contact-line-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.contact-btn {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold-light));
  padding: 16px 52px;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201, 145, 126, 0.25);
}

.contact-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 145, 126, 0.35);
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  margin: 0 auto;
  filter: brightness(0) invert(0.9);
}

.footer-copy {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: rgba(245, 238, 230, 0.5);
  letter-spacing: 0.1em;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 0 0 6px 6px;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  opacity: 1;
}

/* --- Nav CTA Link --- */
.nav-cta-link {
  color: var(--color-accent) !important;
  font-weight: 500 !important;
}

/* --- Section Subtitle --- */
.section-subtitle {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-top: 12px;
  letter-spacing: 0.06em;
}

/* --- About Inline CTA --- */
.about-cta {
  display: inline-block;
  margin-top: 28px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--color-accent-lighter);
  padding-bottom: 4px;
  transition: all var(--transition);
}

.about-cta:hover {
  opacity: 1;
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* --- Service Inline CTA --- */
.service-cta {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--color-accent-lighter);
  padding-bottom: 4px;
  transition: all var(--transition);
}

.service-cta:hover {
  opacity: 1;
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* --- Flow CTA Area --- */
.flow-cta-area {
  text-align: center;
  margin-top: 60px;
}

.flow-cta-btn {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold-light));
  padding: 16px 48px;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(201, 145, 126, 0.3);
}

.flow-cta-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 145, 126, 0.4);
}

/* --- Voice Section (Testimonials) --- */
.voice {
  background: linear-gradient(180deg, var(--color-bg-warm) 0%, var(--color-bg) 100%);
}

.voice-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.voice-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 20px rgba(139, 115, 85, 0.06);
}

.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(139, 115, 85, 0.1);
}

.voice-card-inner {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.voice-text {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 2.1;
  flex-grow: 1;
  margin-bottom: 24px;
}

.voice-meta {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.voice-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.voice-detail {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* --- FAQ Section --- */
.faq {
  background: var(--color-bg);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.04em;
  line-height: 1.8;
  list-style: none;
  transition: color var(--transition);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  display: none;
  content: '';
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  margin-left: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.faq-icon::before {
  width: 14px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 8px 24px;
}

.faq-answer p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 2.1;
}

/* --- Contact Updates --- */
.contact-free-note {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-btn-icon {
  font-size: 1.1rem;
}

.contact-btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #06C755, #04a847) !important;
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.25) !important;
}

.contact-btn-line:hover {
  box-shadow: 0 8px 30px rgba(6, 199, 85, 0.35) !important;
}

.line-icon {
  flex-shrink: 0;
}

/* --- Footer Nav --- */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(245, 238, 230, 0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-nav a:hover {
  opacity: 1;
  color: rgba(245, 238, 230, 0.9);
}

/* --- Footer back-of-house mark (Design Studio) --- */
/* "Design & Consulting" 表示。控えめだが何のリンクか分かるラベル。
   通常時は透明度低、ホバー/フォーカスでふわっと現れる。 */
.footer-mark {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: lowercase;
  color: rgba(245, 238, 230, 0.62);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(245, 238, 230, 0.22);
  transition: color 0.5s ease, border-color 0.5s ease, transform 0.5s ease;
}

.footer-mark:hover,
.footer-mark:focus-visible {
  opacity: 1;
  color: rgba(245, 238, 230, 0.95);
  border-bottom-color: rgba(245, 238, 230, 0.7);
  transform: translateY(-1px);
  outline: none;
}

/* --- Mobile Sticky CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 12px 16px;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -2px 20px rgba(139, 115, 85, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  display: none;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-btn {
  display: block;
  text-align: center;
  font-family: var(--font-jp);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold-light));
  padding: 14px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(201, 145, 126, 0.3);
  transition: all var(--transition);
}

.sticky-cta-btn:hover {
  opacity: 1;
  box-shadow: 0 6px 24px rgba(201, 145, 126, 0.4);
}

/* --- Animations --- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.3);
    transform-origin: top;
  }
}

/* Scroll-triggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 900px) {
  :root {
    --section-padding: 80px;
  }

  /* Mobile-style nav on tablet too (prevents crowding with 7 links + larger logo) */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    padding: 120px 40px 40px;
    gap: 32px;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .sticky-cta {
    display: block;
  }

  .hero {
    flex-direction: column;
    padding-bottom: 100px;
  }

  .hero-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding: 100px 24px 60px;
  }

  .hero-text {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-tagline {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    text-align: center;
    line-height: 2;
  }

  .hero-cta-area {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 32px;
  }

  .hero-cta-btn {
    white-space: nowrap;
  }

  .hero-logo-img {
    width: 220px;
  }

  .couple-illustration {
    width: 200px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text {
    text-align: center;
  }

  .about-services-label {
    align-items: center;
  }

  .service-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card:nth-child(even) {
    direction: ltr;
  }

  .service-card-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .service-card-body {
    text-align: center;
  }

  .section-title-script {
    font-size: 2.8rem;
  }

  .section-logo-img {
    height: 44px;
  }

  .voice-list {
    grid-template-columns: 1fr;
    max-width: 540px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --section-padding: 64px;
  }

  .hero-logo-img {
    width: 180px;
  }

  .couple-illustration {
    width: 160px;
  }

  .nav-logo-img {
    height: 52px;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-cta-btn {
    font-size: 0.85rem;
    padding: 14px 40px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .section-logo-img {
    height: 36px;
  }

  .about-heading {
    font-size: 1.3rem;
  }

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

  .flow-timeline::before {
    left: 20px;
  }

  .flow-number {
    width: 40px;
    height: 40px;
  }

  .flow-number span {
    font-size: 0.9rem;
  }

  .flow-item {
    gap: 20px;
    padding-bottom: 40px;
  }

  .flow-cta-btn {
    font-size: 0.85rem;
    padding: 14px 36px;
    white-space: nowrap;
  }

  .flow-cta-area {
    margin-top: 40px;
  }

  .voice-card-inner {
    padding: 24px 20px;
  }

  .faq-question {
    padding: 20px 4px;
    font-size: 0.85rem;
  }

  .contact-btn {
    padding: 14px 40px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .contact-buttons {
    width: 100%;
    padding: 0 16px;
  }

  .footer-nav {
    gap: 16px;
  }

  .footer-nav a {
    font-size: 0.72rem;
  }

  /* Sticky CTA padding to prevent content overlap */
  .sticky-cta {
    display: block;
    padding: 10px 12px;
  }

  body {
    padding-bottom: 70px;
  }
}

/* --- Utility --- */
.overlay-open {
  overflow: hidden;
}

/* --- Sub Page Header (non-home pages) --- */
.page-header {
  position: relative;
  min-height: 42vh;
  padding: 180px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-warm) 60%, var(--color-bg-accent) 100%);
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 50%, var(--color-accent) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, var(--color-accent) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px;
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
}

.page-header-label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.page-header-title {
  font-family: var(--font-script);
  font-size: 4.5rem;
  font-weight: 400;
  color: var(--color-gold);
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-header-subtitle {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .page-header {
    min-height: auto;
    padding: 120px 24px 52px;
  }

  .page-header-title {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  .page-header {
    padding: 100px 20px 44px;
  }

  .page-header-title {
    font-size: 2.4rem;
  }

  .page-header-subtitle {
    font-size: 0.9rem;
  }
}

/* --- Active nav link (per-page highlight) --- */
.nav-links a.is-active {
  color: var(--color-accent);
}

.nav-links a.is-active::after {
  width: 100%;
}

/* --- Sub-page top spacing (when no hero) --- */
.page-body .section:first-of-type {
  padding-top: 80px;
}

/* --- Hero logo alignment + prevent small collapse --- */
.hero-logo-area {
  text-align: center;
}

.hero-logo-text {
  display: flex;
  justify-content: center;
}

/* --- Home Sections Grid (navigation to sub-pages) --- */
.home-sections {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-warm) 100%);
}

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

.home-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(139, 115, 85, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}

.home-card:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(139, 115, 85, 0.12);
}

.home-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.home-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.home-card:hover .home-card-img img {
  transform: scale(1.05);
}

.home-card-body {
  padding: 20px 24px 24px;
}

.home-card-label {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.home-card-title {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- Contact button width fix (both buttons equal) --- */
@media (min-width: 601px) {
  .contact-buttons .contact-btn {
    min-width: 280px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
  }
}
