.c-page-guide {
  --page-guide-navy: #17284f;
  --page-guide-rose: #bf4651;
  --page-guide-gold: #b9872f;
  --page-guide-bottom: 26px;
  box-sizing: border-box;
}

.c-page-guide *,
.c-page-guide *::before,
.c-page-guide *::after {
  box-sizing: inherit;
}

.c-page-guide__dock {
  position: fixed;
  z-index: 82;
  right: 24px;
  bottom: var(--page-guide-bottom);
  display: grid;
  visibility: hidden;
  min-width: 220px;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 135, 47, 0.32);
  border-radius: 15px;
  color: var(--page-guide-navy);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 32px rgba(23, 40, 79, 0.16);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition:
    opacity 220ms ease,
    transform 280ms ease,
    box-shadow 180ms ease,
    visibility 0s linear 280ms;
  backdrop-filter: blur(10px);
}

.c-page-guide__dock.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.c-page-guide__dock:hover,
.c-page-guide__dock:focus-visible {
  outline: 3px solid rgba(185, 135, 47, 0.42);
  outline-offset: 2px;
  box-shadow: 0 16px 38px rgba(23, 40, 79, 0.22);
}

.c-page-guide__dock-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--page-guide-rose), #d46f68);
  font-size: 0.8rem;
}

.c-page-guide__dock-copy small {
  display: block;
  margin-bottom: 2px;
  color: #6b7380;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.c-page-guide__dock-caption--pointer {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .c-page-guide__dock-caption--touch {
    display: none;
  }

  .c-page-guide__dock-caption--pointer {
    display: inline;
  }
}

.c-page-guide__dock-arrow {
  color: var(--page-guide-gold);
  font-size: 1rem;
  text-align: center;
}

.c-page-guide__overlay {
  position: fixed;
  z-index: 110;
  inset: 0;
}

.c-page-guide__overlay[hidden] {
  display: none;
}

.c-page-guide__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(15, 27, 53, 0.34);
  cursor: default;
  backdrop-filter: blur(3px);
}

.c-page-guide__sheet {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(480px, calc(100% - 36px));
  max-height: min(700px, calc(100dvh - 36px));
  overflow: auto;
  padding: 18px 22px 24px;
  border: 1px solid rgba(23, 40, 79, 0.1);
  border-radius: 26px;
  color: var(--page-guide-navy);
  background:
    linear-gradient(155deg, rgba(255, 242, 237, 0.8), transparent 42%),
    #fffdf8;
  box-shadow: 0 24px 60px rgba(23, 40, 79, 0.24);
}

.c-page-guide__handle {
  width: 44px;
  height: 4px;
  margin: 0 auto 15px;
  border-radius: 99px;
  background: rgba(23, 40, 79, 0.18);
}

.c-page-guide__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.c-page-guide__head p,
.c-page-guide__head h2 {
  margin: 0;
}

.c-page-guide__head p {
  margin-bottom: 4px;
  color: var(--page-guide-rose);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.c-page-guide__head h2 {
  font-family: var(--font-serif, "Yu Mincho", serif);
  font-size: clamp(1.28rem, 4vw, 1.66rem);
  line-height: 1.4;
}

.c-page-guide__close {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(23, 40, 79, 0.12);
  border-radius: 99px;
  color: var(--page-guide-navy);
  background: #fff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.c-page-guide__sheet ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  counter-reset: page-guide;
  list-style: none;
}

.c-page-guide__sheet li {
  counter-increment: page-guide;
}

.c-page-guide__sheet a {
  display: grid;
  min-height: 54px;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(23, 40, 79, 0.1);
  border-radius: 12px;
  color: var(--page-guide-navy);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.c-page-guide__sheet a::before {
  content: counter(page-guide, decimal-leading-zero);
  color: var(--page-guide-rose);
  font-size: 0.58rem;
}

.c-page-guide__sheet a span {
  display: none;
}

.c-page-guide__sheet a:hover,
.c-page-guide__sheet a:focus-visible {
  border-color: rgba(191, 70, 81, 0.34);
  background: #fff8f6;
  outline: 2px solid rgba(185, 135, 47, 0.4);
  outline-offset: 1px;
}

@media (max-width: 760px) {
  .c-page-guide {
    --page-guide-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .c-page-guide__dock {
    right: 14px;
    min-width: 0;
    width: auto;
    max-width: calc(100% - 28px);
    grid-template-columns: 30px minmax(0, 1fr) 20px;
    padding: 8px 10px;
    border-radius: 14px;
    font-size: 0.76rem;
  }

  .c-page-guide__dock-mark {
    width: 30px;
    height: 30px;
  }

  .c-page-guide__sheet {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(76dvh, 640px);
    padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 26px 26px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-page-guide__dock {
    transition: none;
  }
}
