/* 配色（--city-* / --tint-*）は tailwind.config.js に定義。ここには置かない */

html {
  scroll-behavior: smooth;
}

/* 固定バー分のスクロールオフセット（ページ内リンクの着地点がバーに隠れないように）
   SP: h-14(56px)+余白 / PC: h-16(64px)+余白。id付き要素全般に適用 */
[id] {
  scroll-margin-top: 72px;
}
@media (min-width: 1024px) {
  [id] {
    scroll-margin-top: 96px;
  }
}

body {
  font-family: 'Noto Sans JP', sans-serif;
}

/* ============================================================ */
/* 固定バー・ハンバーガーメニュー（開閉は js/site.js の initSiteMenu） */
/* ============================================================ */
#site-menu-backdrop {
  opacity: 0;
  transition: opacity 0.2s ease;
}
#site-menu-backdrop.is-open {
  opacity: 1;
}
#site-menu {
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
#site-menu.is-open {
  transform: translateX(0);
}
#site-menu a[aria-current='page'] {
  position: relative;
  font-weight: 700;
  color: #692a62; /* theme トークンと同色 */
}
#site-menu li a[aria-current='page']::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #692a62; /* theme トークンと同色 */
}
@media (prefers-reduced-motion: reduce) {
  #site-menu-backdrop,
  #site-menu {
    transition: none;
  }
}

/* Material Icons のベースライン調整 */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  -webkit-font-smoothing: antialiased;
}

/* ヘッダー背景（ストライプ＋光＋紫オーバーレイ）。中間色変更時は端色も調整 */
.hero-pattern {
  position: relative;
  background-image: linear-gradient(100deg, #c98abd 0%, #a266a0 45%, #9a5a96 100%);
  overflow: hidden;
}
.hero-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      -20deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 3%,
      rgba(255, 255, 255, 0.28) 3%,
      rgba(255, 255, 255, 0.28) 9%,
      rgba(255, 255, 255, 0) 9%,
      rgba(255, 255, 255, 0) 15%,
      rgba(255, 255, 255, 0.16) 15%,
      rgba(255, 255, 255, 0.16) 18%,
      rgba(255, 255, 255, 0) 18%,
      rgba(255, 255, 255, 0) 29%,
      rgba(255, 255, 255, 0.24) 29%,
      rgba(255, 255, 255, 0.24) 40%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0) 45%,
      rgba(255, 255, 255, 0.14) 45%,
      rgba(255, 255, 255, 0.14) 49%,
      rgba(255, 255, 255, 0) 49%,
      rgba(255, 255, 255, 0) 59%,
      rgba(255, 255, 255, 0.26) 59%,
      rgba(255, 255, 255, 0.26) 63%,
      rgba(255, 255, 255, 0) 63%,
      rgba(255, 255, 255, 0) 71%,
      rgba(255, 255, 255, 0.18) 71%,
      rgba(255, 255, 255, 0.18) 80%,
      rgba(255, 255, 255, 0) 80%,
      rgba(255, 255, 255, 0) 86%,
      rgba(255, 255, 255, 0.22) 86%,
      rgba(255, 255, 255, 0.22) 90%,
      rgba(255, 255, 255, 0) 90%,
      rgba(255, 255, 255, 0) 100%
    );
  pointer-events: none;
}

/* ロゴ・フォント準備までヘッダー演出を一時停止（initHeroAnimation が js-hero-wait を外す） */
.js-hero-wait .hero-fade-in,
.js-hero-wait .hero-light::before {
  animation-play-state: paused;
}

/* 読み込み時1回のみの光スイープ（常時ループなし） */
@keyframes hero-light-sweep {
  0% { transform: translate(23.3%, 23.3%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(-23.3%, -23.3%); opacity: 0; }
}
.hero-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    -20deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 3%,
    rgba(255, 255, 255, 1) 3%,
    rgba(255, 255, 255, 1) 9%,
    rgba(255, 255, 255, 0) 9%,
    rgba(255, 255, 255, 0) 15%,
    rgba(255, 255, 255, 1) 15%,
    rgba(255, 255, 255, 1) 18%,
    rgba(255, 255, 255, 0) 18%,
    rgba(255, 255, 255, 0) 29%,
    rgba(255, 255, 255, 1) 29%,
    rgba(255, 255, 255, 1) 40%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 255, 255, 1) 45%,
    rgba(255, 255, 255, 1) 49%,
    rgba(255, 255, 255, 0) 49%,
    rgba(255, 255, 255, 0) 59%,
    rgba(255, 255, 255, 1) 59%,
    rgba(255, 255, 255, 1) 63%,
    rgba(255, 255, 255, 0) 63%,
    rgba(255, 255, 255, 0) 71%,
    rgba(255, 255, 255, 1) 71%,
    rgba(255, 255, 255, 1) 80%,
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, 0) 86%,
    rgba(255, 255, 255, 1) 86%,
    rgba(255, 255, 255, 1) 90%,
    rgba(255, 255, 255, 0) 90%,
    rgba(255, 255, 255, 0) 100%
  );
  mask-image: linear-gradient(
    -20deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 3%,
    rgba(255, 255, 255, 1) 3%,
    rgba(255, 255, 255, 1) 9%,
    rgba(255, 255, 255, 0) 9%,
    rgba(255, 255, 255, 0) 15%,
    rgba(255, 255, 255, 1) 15%,
    rgba(255, 255, 255, 1) 18%,
    rgba(255, 255, 255, 0) 18%,
    rgba(255, 255, 255, 0) 29%,
    rgba(255, 255, 255, 1) 29%,
    rgba(255, 255, 255, 1) 40%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 255, 255, 1) 45%,
    rgba(255, 255, 255, 1) 49%,
    rgba(255, 255, 255, 0) 49%,
    rgba(255, 255, 255, 0) 59%,
    rgba(255, 255, 255, 1) 59%,
    rgba(255, 255, 255, 1) 63%,
    rgba(255, 255, 255, 0) 63%,
    rgba(255, 255, 255, 0) 71%,
    rgba(255, 255, 255, 1) 71%,
    rgba(255, 255, 255, 1) 80%,
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, 0) 86%,
    rgba(255, 255, 255, 1) 86%,
    rgba(255, 255, 255, 1) 90%,
    rgba(255, 255, 255, 0) 90%,
    rgba(255, 255, 255, 0) 100%
  );
}
.hero-light::before {
  content: '';
  position: absolute;
  inset: -100%;
  background-image: linear-gradient(-20deg, transparent 44%, rgba(255, 255, 255, 0.7) 50%, transparent 56%);
  animation: hero-light-sweep 2s linear 0.3s 1 both;
}
@media (prefers-reduced-motion: reduce) {
  .hero-light {
    display: none;
  }
}

/* 右下ほど濃くなる紫オーバーレイ（光より前面） */
.hero-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    160deg,
    rgba(201, 138, 189, 0) 0%,
    rgba(172, 103, 168, 0.55) 35%,
    rgba(154, 90, 150, 1) 70%
  );
}

/* ヘッダー要素の順番フェードイン（1回のみ） */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-fade-in {
  opacity: 0;
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-fade-in-1 { animation-delay: 0.15s; }
.hero-fade-in-2 { animation-delay: 0.4s; }
.hero-fade-in-3 { animation-delay: 0.65s; }
.hero-fade-in-4 { animation-delay: 0.85s; }
.hero-fade-in-5 { animation-delay: 1.05s; }
@media (prefers-reduced-motion: reduce) {
  .hero-fade-in {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

/* 電話番号リンク：タップ可能な端末でのみクリック可能にする */
.tel-link {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}
@media (any-pointer: coarse) {
  .tel-link {
    pointer-events: auto;
    cursor: pointer;
    text-decoration: underline;
  }
}
