/* 西条ほほえみ介護ステーション — shared styles beyond Tailwind utilities (安心・上品・読みやすさ優先) */

html {
  scroll-behavior: smooth;
  /* 高齢のご本人・ご家族にも読みやすいよう、基準フォントサイズをやや大きめに設定 */
  font-size: 107.5%;
}

body {
  font-family: "Noto Sans JP", "M PLUS Rounded 1c", "Hiragino Sans", sans-serif;
  line-height: 1.85;
}

.font-heading {
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", "Hiragino Maru Gothic ProN", sans-serif;
}

section[id] {
  scroll-margin-top: 88px;
}

p {
  line-height: 1.9;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #FAF6ED;
}
::-webkit-scrollbar-thumb {
  background: #9CCEC5;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #468A80;
}

.card-lift {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-lift:hover {
  transform: translateY(-6px);
}

/* Section eyebrow with a soft dot */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: #FF8F73;
  margin-right: 8px;
  vertical-align: middle;
}

#mobile-nav {
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-nav.open {
  max-height: 700px;
  opacity: 1;
}

.spinner {
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 9999px;
  width: 16px;
  height: 16px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Soft irregular blob frame, used for gentle decorative accents */
.blob-shape {
  border-radius: 58% 42% 50% 50% / 46% 41% 59% 54%;
}

/* Floating blurred color blobs for hero / section backdrops (控えめな彩度) */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(46px);
  opacity: 0.35;
  z-index: 0;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-16px) translateX(8px); }
}
@keyframes float-slower {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(14px) translateX(-12px); }
}
.float-slow { animation: float-slow 8s ease-in-out infinite; }
.float-slower { animation: float-slower 10s ease-in-out infinite; }

/* Soft dot texture, used sparingly instead of confetti for a calmer tone */
.dot-bg {
  background-image: radial-gradient(circle, currentColor 2.5px, transparent 2.5px);
  background-size: 26px 26px;
}

/* Accessible focus ring for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #5EAA9E;
  outline-offset: 2px;
}
