/* ============================================
   Recovery Warm — ainowa-inspired theme CSS
   Mint green × Coral pink × Cream
   ============================================ */

:root {
  --bg: #FFFCF5;
  --bg-cream: #FFF6E8;
  --bg-mist: #F4F8F5;
  --bg-sage: #DDF1E8;
  --bg-peach: #FFE3E2;
  --bg-sky: #E1F0EE;

  --ink: #333130;
  --ink-2: #5C5A57;
  --ink-3: #A29D97;

  --sage: #4DCBA4;
  --sage-deep: #29B391;
  --peach: #FFA8B0;
  --peach-deep: #FF7A8C;
  --gold: #FFC857;
  --sky: #7FC4D2;

  --line: #EFE6D7;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-feature-settings: "palt" 1;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* === Header === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: all .35s ease;
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.site-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.site-logo__mark {
  width: 36px; height: 36px;
  background: var(--sage);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.site-logo__mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--peach);
  border-radius: 50%;
  opacity: 0.85;
  mix-blend-mode: multiply;
}
.site-logo__text { font-size: 14px; line-height: 1.3; }
.site-logo__text small { display: block; font-size: 10px; color: var(--ink-3); letter-spacing: 0.12em; }

.site-nav { display: none; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .site-nav { display: flex; } }
.site-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.site-nav a:hover { color: var(--sage-deep); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--sage-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

.btn-entry {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  background: var(--sage-deep);
  color: #fff;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.btn-entry:hover {
  background: var(--peach-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(92, 124, 86, 0.25);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: transparent; border: 0; cursor: pointer;
  padding: 0;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block; height: 2px; background: var(--ink); width: 22px;
  margin: 0 auto;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg-cream);
  z-index: 90;
  transform: translateY(-100%);
  transition: transform .55s cubic-bezier(.16,1,.3,1);
  padding: 90px 24px 40px;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a { display: block; padding: 18px 0; font-size: 16px; }

/* === Sections === */
.section {
  padding: 96px 0;
  position: relative;
}
@media (max-width: 768px) { .section { padding: 64px 0; } }

.section--mist { background: var(--bg-mist); }
.section--sage { background: var(--bg-sage); }
.section--cream { background: var(--bg-cream); }
.section--peach { background: var(--bg-peach); }

.section-label {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--sage-deep);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}
.section-label::before {
  content: "—";
  display: inline-block;
  margin-right: 8px;
  color: var(--sage);
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.45;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin: 0 0 24px;
}
.section-title em {
  font-style: normal;
  color: var(--sage-deep);
  border-bottom: 3px dotted var(--peach);
  padding-bottom: 2px;
}
.section-lead {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 2.1;
  color: var(--ink-2);
  max-width: 640px;
}

/* === Hero === */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) { .hero { padding: 100px 0 60px; } }

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr 1.2fr; gap: 64px; }
}

.hero__copy {
  position: relative;
  z-index: 2;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--sage-deep);
  font-weight: 700;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin: 0 0 28px;
}
.hero__title em {
  font-style: normal;
  color: var(--sage-deep);
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 4px;
  height: 12px;
  background: var(--bg-peach);
  z-index: -1;
}
.hero__lead {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 2.2;
  color: var(--ink-2);
  margin: 0 0 36px;
  max-width: 480px;
}

.hero__slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(58, 78, 50, 0.15);
}
.hero__slider .slides {
  display: flex;
  transition: transform .9s cubic-bezier(.4,0,.2,1);
}
.hero__slider .slide {
  flex: 0 0 100%;
  aspect-ratio: 16/9;
}
.hero__slider .slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 18px;
}
.hero__dots button {
  width: 8px; height: 8px;
  background: var(--ink-3);
  opacity: 0.4;
  border: 0; padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: all .25s;
}
.hero__dots button.is-active {
  background: var(--sage-deep);
  opacity: 1; width: 24px;
  border-radius: 4px;
}

/* Decorative scroll indicator */
.scroll-indicator {
  position: absolute;
  left: 24px; bottom: 24px;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--ink-3);
  writing-mode: vertical-rl;
  z-index: 5;
}
.scroll-indicator::before {
  content: ""; display: block;
  width: 1px; height: 40px;
  background: var(--sage);
  margin: 0 auto 12px;
}

/* === Numbers section === */
.numbers {
  display: grid; gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .numbers { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
@media (min-width: 1024px) { .numbers { grid-template-columns: repeat(6, 1fr); gap: 24px; } }

.number-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 18px;
  text-align: center;
  border: 1px solid var(--line);
}
.number-card__value {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--sage-deep);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.number-card__value sup { font-size: 0.5em; color: var(--peach-deep); }
.number-card__label {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 8px;
  letter-spacing: 0.1em;
}
.number-card__jp { font-size: 13px; margin-top: 4px; color: var(--ink-2); }

/* === Values === */
.values { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .values { grid-template-columns: repeat(3, 1fr); } }

.value-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  transition: transform .4s ease, box-shadow .4s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -16px rgba(58, 78, 50, 0.18);
}
.value-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 16px;
  margin-bottom: 18px;
}
.value-card__num {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--peach-deep);
  font-weight: 700;
}
.value-card__title { font-size: 22px; margin: 8px 0 12px; font-weight: 700; }
.value-card__body { font-size: 14px; color: var(--ink-2); line-height: 2; }

/* === People (interview cards) === */
.people {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .people { grid-template-columns: repeat(3, 1fr); } }

.person-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .4s ease;
  display: block;
}
.person-card:hover { transform: translateY(-4px); }
.person-card__img {
  aspect-ratio: 3/4;
  background: var(--bg-mist);
  overflow: hidden;
}
.person-card__img img { width: 100%; height: 100%; object-fit: cover; }
.person-card__body { padding: 22px 22px 26px; }
.person-card__role { font-size: 11px; color: var(--peach-deep); letter-spacing: 0.16em; font-weight: 700; }
.person-card__quote { font-size: 17px; font-weight: 700; line-height: 1.7; margin: 10px 0 16px; }
.person-card__name { font-size: 13px; color: var(--ink-2); }

/* === News === */
.news-list { background: #fff; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; }
.news-list li { list-style: none; }
.news-list li + li { border-top: 1px solid var(--line); }
.news-list a {
  display: grid;
  grid-template-columns: 100px 80px 1fr;
  gap: 16px; align-items: center;
  padding: 18px 24px;
  transition: background .25s;
}
.news-list a:hover { background: var(--bg-cream); }
.news-list .news-date { font-size: 13px; color: var(--ink-3); letter-spacing: 0.06em; }
.news-list .news-tag {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-sage); color: var(--sage-deep); font-weight: 700;
  text-align: center;
}
.news-list .news-title { font-size: 14px; }
@media (max-width: 640px) {
  .news-list a { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
}

/* === CTA === */
.cta {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: 80px 24px;
  text-align: center;
  margin: 0 24px;
  background-image: url("../images/recruit-bg.jpg");
  background-size: cover; background-position: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(251,248,242,0.55), rgba(251,248,242,0.85));
}
.cta > * { position: relative; }
.cta__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.5; font-weight: 700;
  margin: 0 0 12px;
}
.cta__lead { color: var(--ink-2); margin: 0 auto 32px; max-width: 480px; }
.cta__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; background: var(--sage-deep);
  color: #fff; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.1em;
  font-size: 14px;
  transition: all .3s ease;
  box-shadow: 0 6px 0 rgba(31, 42, 27, 0.2);
}
.cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(31, 42, 27, 0.25);
}

/* === Three feature cards === */
.feature-cards { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .feature-cards { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: #fff; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .4s ease;
  display: flex; flex-direction: column;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card__img { aspect-ratio: 4/3; }
.feature-card__img img { width: 100%; height: 100%; object-fit: cover; }
.feature-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.feature-card__en { font-size: 11px; letter-spacing: 0.18em; color: var(--peach-deep); font-weight: 700; }
.feature-card__title { font-size: 20px; margin: 6px 0 12px; font-weight: 700; }
.feature-card__body p { font-size: 13px; color: var(--ink-2); line-height: 2; flex: 1; }
.feature-card__more {
  margin-top: 14px;
  font-size: 12px; color: var(--sage-deep); font-weight: 700;
  letter-spacing: 0.08em;
}

/* === Wave divider === */
.wave-divider {
  display: block; width: 100%;
  height: 60px;
  background: url("../images/wave-divider.jpg") center/cover;
  opacity: 0.35;
  margin: 0;
}

/* === Footer === */
.site-footer {
  background: var(--bg-sage);
  padding: 60px 0 32px;
  margin-top: 0;
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
}
.site-footer h4 { font-size: 12px; letter-spacing: 0.16em; color: var(--sage-deep); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; font-size: 13px; color: var(--ink-2); }
.site-footer li a:hover { color: var(--sage-deep); }
.copyright {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(58,78,50,0.15);
  font-size: 11px; color: var(--ink-3);
  text-align: center;
}

/* === Reveal animations === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* === Contact Form 7 === */
.wpcf7 { font-size: 15px; }
.wpcf7 p { margin: 0 0 22px; }
.wpcf7 label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 8px;
}
.wpcf7-form-control:not([type=checkbox]):not([type=radio]):not([type=submit]) {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-cream);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color .25s, background .25s;
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7-form-control:focus {
  outline: none;
  border-color: var(--sage-deep);
  background: #fff;
}
.wpcf7 input[type=checkbox], .wpcf7 input[type=radio] {
  accent-color: var(--sage-deep);
  margin-right: 6px;
}
.wpcf7-list-item { margin-right: 18px; }
.wpcf7 input[type=submit] {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  background: var(--sage-deep);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(31, 42, 27, 0.18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.wpcf7 input[type=submit]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(31, 42, 27, 0.22);
}
.wpcf7-not-valid-tip { color: #c0392b; font-size: 12px; margin-top: 4px; }
.wpcf7-response-output {
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  padding: 12px 16px !important;
  font-size: 13px;
}

/* Pagination */
.pagination, .nav-links {
  display: flex; gap: 6px; justify-content: center; margin-top: 32px;
}
.pagination a, .pagination span, .nav-links a, .nav-links span {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; color: var(--ink-2);
}
.pagination .current, .nav-links .current {
  background: var(--sage-deep); color: #fff; border-color: var(--sage-deep);
}

/* ============================================
   ENHANCED ANIMATIONS
   ============================================ */

/* Direction reveals */
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
}
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-left.is-visible,
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-zoom {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
}
.reveal-zoom.is-visible { opacity: 1; transform: scale(1); }

/* Stagger items */
[data-stagger-item] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
[data-stagger-item].is-visible { opacity: 1; transform: translateY(0); }

/* Hero title char split */
[data-split] .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50%);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
[data-split].is-shown .char { opacity: 1; transform: translateY(0); }

/* Card lift transitions */
[data-tilt] {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}

/* Hero slider current image gentle ken-burns */
.hero__slider .slide img {
  transition: transform 7s ease-out;
  transform: scale(1);
}
.hero__slider .slide.is-current img {
  transform: scale(1.06);
}

/* Floating decorations */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float-y-rev {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(8px, -6px) rotate(2deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
.float-y { animation: float-y 4.5s ease-in-out infinite; }
.float-y-slow { animation: float-y 7s ease-in-out infinite; }
.float-y-rev { animation: float-y-rev 5.5s ease-in-out infinite; }
.drift { animation: drift 8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .float-y, .float-y-slow, .float-y-rev, .drift { animation: none; }
}

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
.blob--sage { background: var(--bg-sage); }
.blob--peach { background: var(--bg-peach); }
.blob--cream { background: var(--bg-cream); }
.blob--sky { background: var(--bg-sky); }

/* Section title underline draw-in */
.section-title em::after {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(.16,1,.3,1) .25s;
}
.is-visible .section-title em::after,
.section-title.is-visible em::after { transform: scaleX(1); }

/* Hero title underline */
.hero__title em::after {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.5s cubic-bezier(.16,1,.3,1) 1.2s;
}
.is-shown ~ * .hero__title em::after,
[data-split].is-shown em::after,
.hero__title em.is-visible::after { transform: scaleX(1); }
.hero__copy.reveal.is-visible .hero__title em::after { transform: scaleX(1); }

/* Buttons subtle pulse on hover */
.btn-entry::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 999px;
  border: 1px solid var(--sage-deep);
  opacity: 0;
  transform: scale(1);
  transition: opacity .3s, transform .6s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.btn-entry { position: relative; }
.btn-entry:hover::after { opacity: 1; transform: scale(1.18); }

/* Number cards hover lift */
.number-card { transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .4s; }
.number-card:hover { transform: translateY(-4px); border-color: var(--sage); }

/* Card image subtle zoom on hover */
.value-card img,
.feature-card__img img,
.person-card__img img {
  transition: transform 1.6s cubic-bezier(.16,1,.3,1);
}
.value-card:hover img,
.feature-card:hover .feature-card__img img,
.person-card:hover .person-card__img img { transform: scale(1.05); }

/* Marquee */
.marquee {
  overflow: hidden;
  background: var(--sage-deep);
  color: #fff;
  padding: 14px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
}
.marquee__inner span { display: inline-flex; align-items: center; gap: 14px; }
.marquee__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--peach);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* Scroll-driven section background fade-in */
.section { transition: background-color .8s ease; }

/* Header scrolled */
.site-header.is-scrolled {
  padding: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 18px rgba(58, 78, 50, 0.06);
}

/* Reveal cancellation for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-zoom,
  [data-stagger-item], [data-split] .char {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================
   AINOWA STYLE — Scalloped circle frames + decorations
   ============================================ */

/* Scalloped circle photo frame (SVG mask) */
.scalloped {
  --scallop-color: var(--sage);
  position: relative;
  display: inline-block;
  border-radius: 50%;
  isolation: isolate;
}
.scalloped::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: var(--scallop-color);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 0 C 53 5 58 5 60 0 L62 1 C 60 6 64 9 68 6 L70 8 C 65 11 67 16 72 14 L74 17 C 68 19 70 24 75 23 L77 27 C 70 27 71 33 76 33 L77 38 C 70 36 70 42 75 43 L75 48 C 68 45 67 51 71 53 L70 58 C 64 53 62 59 65 62 L62 67 C 58 60 54 65 53 68 L50 71 C 47 65 43 65 41 71 L38 67 C 41 60 36 58 33 65 L30 58 C 36 53 32 47 28 53 L24 48 C 30 47 30 41 25 39 L23 33 C 30 33 28 27 23 26 L23 23 C 30 24 28 19 23 17 L25 14 C 30 16 32 11 27 8 L29 5 C 33 9 38 6 36 1 L38 0 C 40 5 47 5 50 0 Z' fill='black' transform='translate(0, 14) scale(1, 0.72)'/></svg>") center/100% 100% no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 0 C 53 5 58 5 60 0 L62 1 C 60 6 64 9 68 6 L70 8 C 65 11 67 16 72 14 L74 17 C 68 19 70 24 75 23 L77 27 C 70 27 71 33 76 33 L77 38 C 70 36 70 42 75 43 L75 48 C 68 45 67 51 71 53 L70 58 C 64 53 62 59 65 62 L62 67 C 58 60 54 65 53 68 L50 71 C 47 65 43 65 41 71 L38 67 C 41 60 36 58 33 65 L30 58 C 36 53 32 47 28 53 L24 48 C 30 47 30 41 25 39 L23 33 C 30 33 28 27 23 26 L23 23 C 30 24 28 19 23 17 L25 14 C 30 16 32 11 27 8 L29 5 C 33 9 38 6 36 1 L38 0 C 40 5 47 5 50 0 Z' fill='black' transform='translate(0, 14) scale(1, 0.72)'/></svg>") center/100% 100% no-repeat;
  z-index: -1;
}
/* Simpler reliable SVG-based scalloped frame using clip-path */
.scallop-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
}
.scallop-frame__bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--scallop-color, var(--sage));
  -webkit-mask: var(--scallop-mask);
          mask: var(--scallop-mask);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
.scallop-frame__inner {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  overflow: hidden;
}
.scallop-frame__inner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Generate a scalloped circle via clip-path with a wavy SVG mask
   Use a simpler approach: an SVG element behind the image */
.scallop-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}
.scallop-card svg.scallop-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.08));
}
.scallop-card .scallop-img {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
}
.scallop-card .scallop-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s cubic-bezier(.16,1,.3,1);
}
.scallop-card:hover .scallop-img img { transform: scale(1.06); }

/* Hand-drawn outline circles (decorative) */
.sketchy-circle {
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
}
.sketchy-circle::before, .sketchy-circle::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px dashed currentColor;
  opacity: 0.3;
}

/* Speech bubble */
.speech {
  position: relative;
  display: inline-block;
  padding: 10px 22px;
  background: #fff;
  color: var(--sage-deep);
  border: 2px solid var(--sage);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.speech::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-style: solid;
  border-width: 10px 8px 0 8px;
  border-color: var(--sage) transparent transparent transparent;
}
.speech::before {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 6px 0 6px;
  border-color: #fff transparent transparent transparent;
  z-index: 1;
}

/* Override hero title to use brand colors */
.hero__title em { color: var(--sage-deep); }
.hero__title em::after { background: var(--bg-peach); }

/* Header & buttons rebrand to mint */
.btn-entry {
  background: var(--sage-deep);
}
.btn-entry:hover {
  background: var(--peach-deep);
}
.cta__btn {
  background: var(--sage-deep);
}

/* Section title em color */
.section-title em {
  color: var(--sage-deep);
  border-bottom-color: var(--peach);
}

/* Hero badge */
.hero__badge {
  background: #fff;
  color: var(--sage-deep);
  border-color: var(--sage);
}

/* Number values */
.number-card__value {
  color: var(--sage-deep);
}
.number-card__value sup {
  color: var(--peach-deep);
}

/* News tag */
.news-list .news-tag {
  background: var(--bg-sage);
  color: var(--sage-deep);
}

/* Logo mark — keep but make brand */
.site-logo__mark {
  background: var(--sage);
}
.site-logo__mark::after {
  background: var(--peach);
}

/* Section--sage tweak for new bg */
.section--sage { background: var(--bg-sage); }

/* CTA button shadow color */
.cta__btn {
  box-shadow: 0 6px 0 rgba(41, 179, 145, 0.25);
}
.cta__btn:hover {
  box-shadow: 0 8px 0 rgba(41, 179, 145, 0.3);
}
.wpcf7 input[type=submit] {
  background: var(--sage-deep);
  box-shadow: 0 6px 0 rgba(41, 179, 145, 0.18);
}
.wpcf7 input[type=submit]:hover {
  box-shadow: 0 8px 0 rgba(41, 179, 145, 0.22);
}
.btn-entry::after {
  border-color: var(--sage-deep);
}

/* Marquee rebrand */
.marquee { background: var(--sage-deep); }
.marquee__dot { background: var(--peach); }

/* Header link hover */
.site-nav a:hover { color: var(--sage-deep); }
.site-nav a::after { background: var(--sage-deep); }

/* Hero slide image transition */
.hero__dots button.is-active { background: var(--sage-deep); }

/* Pagination */
.pagination .current, .nav-links .current {
  background: var(--sage-deep); border-color: var(--sage-deep);
}

/* CF7 focus */
.wpcf7-form-control:focus { border-color: var(--sage-deep); }
.wpcf7 input[type=checkbox], .wpcf7 input[type=radio] { accent-color: var(--sage-deep); }

/* Section label */
.section-label { color: var(--sage-deep); }
.section-label::before { color: var(--sage); }

/* Person card role text */
.person-card__role { color: var(--peach-deep); }

/* Scroll indicator line */
.scroll-indicator::before { background: var(--sage); }

/* Feature card */
.feature-card__en { color: var(--peach-deep); }
.feature-card__more { color: var(--sage-deep); }

/* Value card num */
.value-card__num { color: var(--peach-deep); }

/* "Read more / back" links */
[style*="color:var(--sage-deep)"] { color: var(--sage-deep) !important; }

/* Decorative outlines (ainowa-style hand-drawn circles) */
.deco-ring {
  position: absolute;
  border: 2px solid var(--sage);
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}
.deco-ring--pink { border-color: var(--peach); }
.deco-ring--dashed { border-style: dashed; }


/* Scallop variant of values: cards become transparent, image is scalloped circle */
.values--scallop .value-card {
  background: transparent !important;
  border: 0 !important;
  padding: 0;
  text-align: center;
}
.values--scallop .value-card .scallop-card {
  margin: 0 auto 24px;
  max-width: 320px;
}
.values--scallop .value-card__num {
  margin-top: 8px;
}
.values--scallop .value-card__title {
  margin: 6px 0 14px;
}
.values--scallop .value-card__body {
  max-width: 320px;
  margin: 0 auto;
}
