/* ==========================================================
   Pattern B: 「寄り添いの温もり」 ─ Warm & Card-based
   ========================================================== */

/* --- Custom Properties --- */
:root {
  --color-bg-primary: #F5F0E8;
  --color-bg-secondary: #FFFFFF;
  --color-bg-accent: #EDE7DA;
  --color-text: #2C2C2C;
  --color-text-light: #5A5A5A;
  --color-text-on-dark: #FFFFFF;
  --color-accent: #2D5A3D;
  --color-accent-light: #3A7550;
  --color-cta: #C77B2E;
  --color-cta-hover: #B06A20;
  --color-cta-gradient: linear-gradient(135deg, #D4893A 0%, #B06A20 100%);
  --color-border: #D9D0C1;
  --color-card-shadow: rgba(45, 40, 30, 0.08);
  --color-overlay: rgba(30, 25, 18, 0.55);
  --color-placeholder: #D6CFC3;
  --font-primary: "Noto Sans JP", sans-serif;
  --font-accent: "Noto Serif JP", serif;
  --radius: 12px;
  --radius-sm: 8px;
  --container-max: 920px;
  --section-padding: 80px 0;
  --section-padding-sp: 56px 0;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  transition: font-size 0.3s ease;
}

html.font-large {
  font-size: 18px;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.9;
  color: var(--color-text);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; font-weight: 500; color: var(--color-accent); }

.sp-only { display: none; }
@media (max-width: 768px) { .sp-only { display: inline; } }

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

.section {
  padding: var(--section-padding);
}
@media (max-width: 768px) {
  .section { padding: var(--section-padding-sp); }
}

.section__title {
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 0.6rem + 2.5vw, 1.625rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: 32px;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.title-sub {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-light);
}

.section__text {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 32px;
  line-height: 2;
}

.section__highlight {
  text-align: center;
  font-weight: 500;
  font-size: 1.05rem;
  margin-top: 24px;
  line-height: 2;
}

.section__message {
  text-align: center;
  line-height: 2.1;
  margin-top: 32px;
}

.section__note {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 2;
  margin-top: 20px;
}

.section__image-wrap {
  margin-top: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section__image-wrap img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* --- Placeholder Images --- */
.placeholder-image {
  position: relative;
  width: 100%;
  min-height: 280px;
  background: var(--color-placeholder);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.placeholder-image::before {
  content: "PHOTO";
  font-size: 0.65rem;
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 0.2em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
  opacity: 0.3;
  color: #7A7060;
}

.placeholder-image::after {
  content: attr(data-photo);
  display: block;
  padding: 16px 24px;
  padding-top: 40px;
  font-size: 0.8rem;
  color: #7A7060;
  text-align: center;
  line-height: 1.6;
  max-width: 400px;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 200vh;
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg .placeholder-image {
  min-height: 100%;
  border-radius: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero__overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
  -webkit-mask-image: radial-gradient(
    circle at 50% 46%,
    black var(--mask-r, 140px),
    rgba(0,0,0,0.15) calc(var(--mask-r, 140px) + 120px)
  );
  mask-image: radial-gradient(
    circle at 50% 46%,
    black var(--mask-r, 140px),
    rgba(0,0,0,0.15) calc(var(--mask-r, 140px) + 120px)
  );
}

.hero__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5),
               0 0 40px rgba(255, 255, 255, 0.3),
               0 0 80px rgba(255, 255, 255, 0.15);
}

.hero__label-region {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: #fff;
}

.hero__label-brand {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
}

.hero__title {
  font-family: var(--font-accent);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-text-on-dark);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.hero__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.8;
  opacity: 0.3;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero .cta-button {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease,
              box-shadow 0.2s ease;
}

.hero__sub.is-revealed,
.hero .cta-button.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scroll hint (arrow + microcopy) --- */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.hero__scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero__scroll-hint__text {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.hero__scroll-hint__chevron {
  width: 24px;
  height: 24px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  animation: scrollBounce 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* --- Background vignette (below text) --- */
.hero__mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 46%,
    rgba(30, 25, 18, 0.50) var(--mask-r, 140px),
    rgba(10, 8, 5, 0.88) calc(var(--mask-r, 140px) + 120px)
  );
}

@media (max-width: 768px) {
  .hero__title { font-size: 1.5rem; }
  .hero__sub { font-size: 0.95rem; }
  .hero__mask {
    background: radial-gradient(
      circle at 50% 44%,
      rgba(30, 25, 18, 0.50) var(--mask-r, 100px),
      rgba(10, 8, 5, 0.88) calc(var(--mask-r, 100px) + 90px)
    );
  }
  .hero__overlay {
    -webkit-mask-image: radial-gradient(
      circle at 50% 44%,
      black var(--mask-r, 100px),
      rgba(0,0,0,0.15) calc(var(--mask-r, 100px) + 90px)
    );
    mask-image: radial-gradient(
      circle at 50% 44%,
      black var(--mask-r, 100px),
      rgba(0,0,0,0.15) calc(var(--mask-r, 100px) + 90px)
    );
  }
}

/* --- CTA Button --- */
.cta-button {
  display: inline-block;
  padding: 16px 48px;
  background: var(--color-cta-gradient);
  color: var(--color-text-on-dark);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 60px;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(199, 123, 46, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(199, 123, 46, 0.4);
}

.cta-button--large {
  padding: 20px 56px;
  font-size: 1.125rem;
}

@media (max-width: 768px) {
  .cta-button { padding: 14px 36px; font-size: 0.95rem; }
  .cta-button--large { padding: 16px 40px; font-size: 1rem; }
}

/* --- Section: Empathy --- */
.section--empathy {
  background: var(--color-bg-secondary);
  text-align: center;
  padding-top: 96px;
  padding-bottom: 72px;
}
@media (max-width: 768px) {
  .section--empathy {
    padding-top: 68px;
    padding-bottom: 48px;
  }
}

.section__lead {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: var(--color-text-light);
}

.concern-list {
  display: inline-block;
  text-align: left;
  margin-bottom: 32px;
}

.concern-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 1rem;
  color: var(--color-text-light);
}

.concern-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--color-cta);
  font-weight: 700;
}

/* --- Section: Solution --- */
.section--solution {
  background: var(--color-bg-primary);
  text-align: center;
}

.section__intro {
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 2;
}

.check-list {
  display: inline-block;
  text-align: left;
  margin-bottom: 32px;
}

.check-list li {
  position: relative;
  padding: 10px 0 10px 36px;
  font-size: 1rem;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Carousel (Solution section) --- */
.carousel {
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 16px;
  padding: 8px 8% 8px;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 82%;
  scroll-snap-align: center;
  aspect-ratio: 1 / 1;
  background: #1a1a1a;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(45, 40, 30, 0.12);
  transform: scale(0.92);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s ease;
  will-change: transform;
}

.carousel__slide.is-center {
  transform: scale(1);
  box-shadow: 0 8px 32px rgba(45, 40, 30, 0.18);
}

.carousel__video,
.carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .carousel__track { gap: 12px; padding: 8px 6% 8px; }
  .carousel__slide { flex: 0 0 84%; }
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carousel__dot--active {
  background: var(--color-accent);
  transform: scale(1.2);
}

.carousel__dot:hover {
  background: var(--color-accent-light);
}

/* --- Section video embed --- */
.section__video-wrap {
  margin-top: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section__video {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* --- Section: Stability --- */
.section--stability {
  background: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
}

/* --- Sakura petals --- */
.sakura-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.sakura-petal {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 12px;
  background: radial-gradient(ellipse at 30% 30%, #fcd5d5 0%, #f4a7b0 50%, #e891a0 100%);
  border-radius: 50% 0 50% 50%;
  opacity: 0;
  will-change: transform, opacity;
  animation: sakuraFall var(--fall-duration, 6s) var(--fall-delay, 0s) ease-in-out forwards;
}

.sakura-petal:nth-child(odd) {
  border-radius: 0 50% 50% 50%;
  background: radial-gradient(ellipse at 70% 30%, #fde0e0 0%, #f0b5bd 50%, #eca0af 100%);
}

@keyframes sakuraFall {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) rotate(0deg) scale(0.6);
  }
  10% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.7;
    transform: translateY(45vh) translateX(var(--sway, 40px)) rotate(180deg) scale(1);
  }
  80% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateY(95vh) translateX(var(--sway-end, -20px)) rotate(360deg) scale(0.8);
  }
}

.section--stability .container {
  position: relative;
  z-index: 2;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .two-column { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-bg-primary);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px var(--color-card-shadow);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.card__icon {
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.card__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.section__summary {
  text-align: center;
  line-height: 2.1;
}

/* --- Section: Support --- */
.section--support {
  background: var(--color-bg-primary);
}

.support-list {
  max-width: 480px;
  margin: 0 auto 24px;
}

.support-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 1rem;
  color: var(--color-text-light);
}

.support-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* --- Section: Relationship --- */
.section--relationship {
  background: var(--color-bg-secondary);
  text-align: center;
}

.section__quote {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
  padding: 24px 0;
  border-left: none;
  line-height: 2;
}

/* --- Section: Income --- */
.section--income {
  background: var(--color-bg-accent);
}

.income-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

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

.income-card {
  background: var(--color-bg-secondary);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  box-shadow: 0 2px 12px var(--color-card-shadow);
}

.income-card--mid {
  border: 2px solid var(--color-accent);
}

.income-card--top {
  background: var(--color-accent);
  color: var(--color-text-on-dark);
}

.income-card__label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.income-card--top .income-card__label {
  color: rgba(255, 255, 255, 0.8);
}

.income-card__amount {
  font-size: 1rem;
}

.income-card__amount strong {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.income-card--top .income-card__amount strong {
  color: var(--color-text-on-dark);
}

.income-card__amount span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.income-card--top .income-card__amount span {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Section: Welcome --- */
.section--welcome {
  background: var(--color-bg-secondary);
  text-align: center;
}

.welcome-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto 32px;
}

.welcome-card {
  background: var(--color-bg-primary);
  border-radius: var(--radius);
  padding: 20px 28px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.8;
  position: relative;
  padding-left: 44px;
  box-shadow: 0 2px 10px var(--color-card-shadow);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease;
}

.welcome-card::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.welcome-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .welcome-card { padding: 18px 24px 18px 40px; }
  .welcome-card::before { left: 16px; }
}

/* --- Section: Contribution --- */
.section--contribution {
  background: var(--color-bg-primary);
  text-align: center;
}

.contribution__detail-card {
  margin-top: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  background: var(--color-bg-secondary);
  border-radius: var(--radius);
  padding: 28px 32px;
  border-left: 3px solid var(--color-accent);
  box-shadow: 0 2px 10px var(--color-card-shadow);
}

.contribution__detail {
  text-align: left;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 2.1;
  margin: 0;
}

.contribution__badge {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contribution__badge img {
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease;
}

.contribution__badge a:hover img {
  opacity: 0.8;
}

.contribution__badge-text {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.contribution__badge-text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

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

.faq-item summary {
  display: flex;
  align-items: center;
  padding: 20px 40px 20px 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__body {
  padding: 0 0 20px;
  color: var(--color-text-light);
  line-height: 2;
  font-size: 0.95rem;
}

/* --- Section: Closing --- */
.section--closing {
  position: relative;
  min-height: 80vh;
  min-height: 80dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.closing__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.closing__bg .placeholder-image {
  min-height: 100%;
  border-radius: 0;
}

.closing__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.closing__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  backdrop-filter: blur(var(--closing-blur, 0px));
  -webkit-backdrop-filter: blur(var(--closing-blur, 0px));
  min-height: 80vh;
  min-height: 80dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-overlay);
  text-align: center;
  padding: 60px 0;
}

.closing__lead {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 16px rgba(0, 0, 0, var(--closing-shadow, 0));
  margin-bottom: 24px;
  line-height: 2;
}

.closing__text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 2.1;
  text-shadow: 0 1px 16px rgba(0, 0, 0, var(--closing-shadow, 0));
}

.closing__message {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-on-dark);
  margin-bottom: 16px;
  line-height: 2;
  text-shadow: 0 1px 16px rgba(0, 0, 0, var(--closing-shadow, 0));
}

.closing__cta-lead {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  line-height: 2;
  text-shadow: 0 1px 16px rgba(0, 0, 0, var(--closing-shadow, 0));
}

.closing__footer-text {
  margin-top: 24px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .section--closing { min-height: 90vh; min-height: 90dvh; }
  .closing__overlay { min-height: 90vh; min-height: 90dvh; }
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 40px 0;
  font-size: 0.85rem;
  line-height: 2;
}

.footer__brand {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-on-dark);
  margin-bottom: 4px;
}

.footer__copy {
  margin-top: 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Scroll Fade-in Animation --- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.fade-up-image {
  opacity: 0;
  transform: translateY(48px) scale(0.97);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-image.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Font-size toggle button --- */
.font-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(45, 40, 30, 0.1);
  cursor: pointer;
  font-family: var(--font-primary);
  color: var(--color-text);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.font-toggle:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 14px rgba(45, 40, 30, 0.16);
}

.font-toggle__icon {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.font-toggle__label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-accent);
}

html.font-large .font-toggle {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

html.font-large .font-toggle__label {
  color: rgba(255, 255, 255, 0.8);
}

html.font-large .font-toggle:hover {
  background: var(--color-accent-light);
}

/* --- CTA supplementary note --- */
.cta-note {
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.cta-note--on-dark {
  color: rgba(255, 255, 255, 0.6);
}

/* --- Mid CTA section --- */
.section--mid-cta {
  background: var(--color-bg-accent);
  text-align: center;
  padding: 56px 0;
}

.mid-cta__text {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 28px;
  line-height: 2;
}

/* --- Footer extras --- */
.footer__spacer {
  height: 1em;
}

.footer__link a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer__link a:hover {
  color: rgba(255, 255, 255, 1);
}

/* --- Accessibility: Focus styles --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.cta-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(199, 123, 46, 0.5);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.font-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* --- Accessibility: Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-up,
  .fade-up-image {
    opacity: 1;
    transform: none;
  }

  .hero__sub,
  .hero .cta-button {
    opacity: 1;
    transform: none;
  }
}
