/* 共通フッタ（グリーン → ベージュのグラデーション） */
.salon-footer {
  --sf-green: #cfe0d4;
  --sf-beige: #ebe4da;
  --sf-text: #234e3a;
  --sf-muted: #5f6f62;
  --sf-closed: #e08a32;
  --sf-holiday: #f0b8c4;
  --sf-today: #3db7d4;
  --sf-cal-bg: #fbfaf7;
  --sf-cal-line: #d4cfc6;
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 2.4rem 1.15rem 1.15rem;
  background-color: var(--sf-green);
  background-image: linear-gradient(
    90deg,
    #c9ddcf 0%,
    #e4ede6 22%,
    #ebe4da 50%,
    #e4ede6 78%,
    #c9ddcf 100%
  );
  background-size: 280% 100%;
  background-position: 0% 50%;
  animation: salon-footer-grad 36s ease-in-out infinite alternate;
  color: var(--sf-text);
  border-top: 1px solid rgba(35, 78, 58, 0.12);
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.65;
}

body.brand-tone--indiba .salon-footer,
body.brand-tone--yomogi .salon-footer {
  background-color: var(--sf-green);
  color: var(--sf-text);
}

@keyframes salon-footer-grad {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .salon-footer {
    animation: none;
    background-position: 40% 50%;
  }
}

.salon-footer a {
  color: var(--sf-text);
  text-decoration: none;
}

.salon-footer a:hover {
  color: #1e3326;
  text-decoration: underline;
}

.salon-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 2rem 1.75rem;
  align-items: start;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.salon-footer__heading {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #3d5c48;
}

.salon-footer-cal {
  color: #222;
}

.salon-footer-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.salon-footer-cal__month {
  margin: 0;
  color: var(--sf-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.salon-footer-cal__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #6a7a6c;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.salon-footer-cal__nav:hover {
  color: var(--sf-text);
}

.salon-footer-cal__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--sf-cal-bg);
  font-size: 0.7rem;
}

.salon-footer-cal__table th,
.salon-footer-cal__table td {
  width: 14.28%;
  border: 1px solid var(--sf-cal-line);
  text-align: center;
  vertical-align: middle;
}

.salon-footer-cal__table th {
  padding: 0.28rem 0;
  background: #ececec;
  color: #444;
  font-weight: 700;
}

.salon-footer-cal__table th.is-sun {
  color: #c43c3c;
}

.salon-footer-cal__table th.is-sat {
  color: #2a5f9e;
}

.salon-footer-cal__day {
  height: 1.85rem;
  padding: 0;
  background: #fff;
  color: #222;
}

.salon-footer-cal__day span,
.salon-footer-cal__day a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 1.85rem;
  color: inherit;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.salon-footer-cal__day.is-adjacent {
  color: #bbb;
  background: #f3f3f3;
}

.salon-footer-cal__day.is-closed {
  background: var(--sf-closed);
  color: #fff;
  font-weight: 700;
}

.salon-footer-cal__day.is-holiday {
  background: var(--sf-holiday);
  color: #5a3038;
  font-weight: 700;
}

.salon-footer-cal__day.is-closed.is-holiday {
  background: var(--sf-holiday);
  color: #5a3038;
}

.salon-footer-cal__day.is-today span,
.salon-footer-cal__day.is-today a {
  box-shadow: inset 0 0 0 2px var(--sf-today);
  font-weight: 800;
}

.salon-footer-cal__day.has-event a::after,
.salon-footer-cal__day.has-event span::after {
  content: "";
  position: absolute;
  bottom: 0.18rem;
  left: 50%;
  width: 0.28rem;
  height: 0.28rem;
  margin-left: -0.14rem;
  border-radius: 50%;
  background: #2f6b4f;
}

.salon-footer-cal__day.is-closed.has-event a::after,
.salon-footer-cal__day.is-closed.has-event span::after {
  background: #fff;
}

.salon-footer-cal__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0.55rem 0 0;
  color: var(--sf-muted);
  font-size: 0.72rem;
}

.salon-footer-cal__legend .swatch {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  margin-right: 0.28rem;
  vertical-align: -0.08rem;
  border: 1px solid rgba(35, 78, 58, 0.18);
}

.salon-footer-cal__legend .swatch--closed {
  background: var(--sf-closed);
}

.salon-footer-cal__legend .swatch--holiday {
  background: var(--sf-holiday);
}

.salon-footer__shop {
  margin: 0 0 0.12rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sf-text);
}

.salon-footer__shop-sub {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sf-muted);
}

.salon-footer__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #2c3a30;
  font-size: 0.84rem;
}

.salon-footer__meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 0.28rem;
}

.salon-footer__meta .sf-ico {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  margin-top: 0.22rem;
  fill: none;
  stroke: #5a6e5e;
  stroke-width: 1.7;
}

.salon-footer__reservia {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.7rem 0 0.45rem;
  color: var(--sf-text);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.salon-footer__mail,
.salon-footer__sitemap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sf-text);
  font: inherit;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.salon-footer__mail {
  margin: 0 0 0.45rem;
}

.salon-footer__sitemap {
  margin: 0 0 1rem;
}

.salon-footer__mail:hover,
.salon-footer__mail:focus-visible,
.salon-footer__sitemap:hover,
.salon-footer__sitemap:focus-visible {
  color: #1e3326;
  text-decoration: underline;
}

.salon-footer__mail .sf-ico,
.salon-footer__sitemap .sf-ico,
.salon-footer__reservia .sf-ico {
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.salon-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-top: 0.35rem;
}

.salon-footer__logo {
  display: block;
  height: 2.4rem;
  width: auto;
  max-width: 10.5rem;
}

.salon-footer__sns {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.salon-footer__sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid color-mix(in srgb, var(--sf-text) 35%, transparent);
  border-radius: 50%;
  color: var(--sf-text);
  text-decoration: none;
}

.salon-footer__sns a:hover {
  border-color: var(--sf-text);
  text-decoration: none;
  background: rgba(35, 78, 58, 0.08);
}

.salon-footer__sns svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.salon-footer__map-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f4efe8;
  border: 1px solid rgba(35, 78, 58, 0.14);
}

.salon-footer__map-frame iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.salon-footer__copy {
  width: min(1100px, 100%);
  margin: 1.75rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(35, 78, 58, 0.16);
  color: var(--sf-muted);
  font-size: 0.75rem;
  text-align: center;
}

.salon-footer__copy a {
  color: var(--sf-text);
}

@media (max-width: 900px) {
  .salon-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .salon-footer__map-frame iframe {
    height: 240px;
  }
}

#reserve-modal.reserve-modal:not([hidden]) {
  z-index: 430;
}

.sitemap-modal .sitemap-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-modal .sitemap-toc > ul > li {
  margin: 0 0 0.85rem;
}

.sitemap-modal .sitemap-toc a,
.sitemap-modal .sitemap-toc button {
  color: #234e3a;
  text-decoration: none;
}

.sitemap-modal .sitemap-toc a:hover,
.sitemap-modal .sitemap-toc a:focus-visible,
.sitemap-modal .sitemap-toc button:hover,
.sitemap-modal .sitemap-toc button:focus-visible {
  color: #8d6a45;
}

.sitemap-modal .sitemap-toc > ul > li > a,
.sitemap-modal .sitemap-toc > ul > li > button {
  font-weight: 700;
}

.sitemap-modal .sitemap-toc > ul > li > button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.sitemap-modal .sitemap-toc a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.35em;
  vertical-align: -0.08em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sitemap-modal .sitemap-toc ul ul {
  margin: 0.2rem 0 0.1rem 0.35rem;
  padding-left: 0;
}

.sitemap-modal .sitemap-toc ul ul li {
  position: relative;
  margin: 0;
  padding: 0.22rem 0 0.22rem 1rem;
}

.sitemap-modal .sitemap-toc ul ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 1px solid #9aaf9e;
}

.sitemap-modal .sitemap-toc ul ul li:last-child::before {
  bottom: auto;
  height: 0.95em;
}

.sitemap-modal .sitemap-toc ul ul li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.7rem;
  border-top: 1px solid #9aaf9e;
}

.sitemap-modal .sitemap-toc ul ul ul {
  margin-top: 0.1rem;
}

/* ページトップ（右下。ある程度スクロールしてから表示） */
.pagetop-fab {
  position: fixed;
  z-index: 60;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #d4cfc6;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 28px rgba(45, 74, 51, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
  color: #2d4a33;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  opacity: 0;
  transform: translateY(0.65rem);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pagetop-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .pagetop-fab {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  }

  .pagetop-fab:not(.is-visible) {
    transform: none;
  }
}

.pagetop-fab__icon {
  display: block;
  font-size: 0.7rem;
  transform: translateY(-1px);
}

.pagetop-fab:hover,
.pagetop-fab:focus-visible {
  color: #1e3326;
  background: #fbfaf7;
  border-color: #b7c4b4;
  box-shadow: 0 4px 28px rgba(45, 74, 51, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 2px rgba(45, 74, 51, 0.22);
}

.pagetop-fab:focus {
  outline: none;
}

.pagetop-fab:focus-visible {
  outline: 2px solid #2d4a33;
  outline-offset: 3px;
}
