
/* Service landing pages */
.service-menu-page {
  min-height: 100vh;
  margin: 0;
  color: #132238;
  font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  background:
    radial-gradient(circle at 14% 16%, var(--service-glow-1, rgba(255, 255, 255, 0.32)) 0%, rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 84% 12%, var(--service-glow-2, rgba(255, 255, 255, 0.24)) 0%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(135deg, var(--service-bg-start, #23c3df) 8%, var(--service-bg-end, #1f27c7) 100%);
  background-attachment: fixed;
}

.service-menu-page * {
  box-sizing: border-box;
}

.service-menu-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.service-shell {
  position: relative;
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-shell > * {
  position: relative;
  z-index: 1;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.service-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.9rem;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-hero__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.service-hero__description {
  margin: 14px 0 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.75;
}

.service-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.service-hero__tag {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.92rem;
}

.service-hero__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(88px, 14vw, 132px);
  min-height: clamp(88px, 14vw, 132px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: clamp(2.25rem, 5vw, 3.3rem);
}

.service-main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-menu-page .menu-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.service-menu-page .menu-card {
  max-width: none;
  min-height: 270px;
  aspect-ratio: auto;
  margin: 0;
  padding: 28px 24px 24px;
  text-align: left;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-menu-page .menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
  border-color: var(--service-accent-soft, rgba(20, 70, 180, 0.2));
}

.service-menu-page .menu-card i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--service-accent-soft, rgba(20, 70, 180, 0.12)), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: var(--service-accent, #1f3fcf);
  font-size: 1.45rem;
}

.service-menu-page .menu-card h3 {
  margin: 0 0 10px;
  color: #18212f;
  font-size: 1.4rem;
}

.service-menu-page .menu-card p {
  margin: 0 0 22px;
  color: #526072;
  font-size: 0.98rem;
  line-height: 1.75;
  flex-grow: 1;
}

.service-menu-page .menu-card a,
.service-menu-page .menu-create-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  margin-top: auto;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--service-accent, #1f3fcf), var(--service-accent-strong, #132e9d));
  box-shadow: 0 12px 24px var(--service-accent-shadow, rgba(19, 46, 157, 0.22));
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-menu-page .menu-create-button {
  width: auto;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

/* Quick-create form inside a menu card: keeps the card's pill buttons at the bottom. */
.service-menu-page .menu-card .room-quick-create {
  width: 100%;
  margin-top: auto;
}

.service-menu-page .menu-card .room-access-help {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.6;
}

.service-menu-page .menu-card .room-quick-create__actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 0;
}

.service-menu-page .menu-card a.room-quick-create__advanced,
.service-menu-page .menu-card a.room-quick-create__advanced:hover {
  min-width: 0;
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--service-link, var(--service-accent, #1f3fcf));
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transform: none;
}

.service-menu-page .menu-card a:hover,
.service-menu-page .menu-create-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px var(--service-accent-shadow, rgba(19, 46, 157, 0.22));
}

.service-menu-page .content-section {
  padding: clamp(24px, 4vw, 34px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.service-menu-page .section-title {
  margin: 0 0 20px;
  color: #1c2635;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: left;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.service-menu-page .section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--service-accent, #1f3fcf), var(--service-accent-strong, #132e9d));
}

.service-menu-page .faq-list,
.service-menu-page .howto-steps {
  display: grid;
  gap: 14px;
}

.service-menu-page .faq-item,
.service-menu-page .howto-step {
  position: relative;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.92));
  border: 1px solid rgba(219, 227, 235, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.service-menu-page .faq-item {
  border-left: none;
}

.service-menu-page .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: #1d2735;
  font-weight: 700;
  list-style: none;
}

.service-menu-page .faq-item summary::-webkit-details-marker {
  display: none;
}

.service-menu-page .faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--service-accent-soft, rgba(20, 70, 180, 0.12));
  color: var(--service-accent, #1f3fcf);
  font-size: 1.05rem;
  font-weight: 700;
}

.service-menu-page .faq-item[open] summary::after {
  content: "-";
}

.service-menu-page .faq-item p {
  margin: 14px 0 0;
  color: #526072;
  line-height: 1.75;
}

.service-menu-page .howto-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}

.service-menu-page .howto-step {
  padding-top: 30px;
}

.service-menu-page .howto-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 18px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--service-accent, #1f3fcf), var(--service-accent-strong, #132e9d));
  box-shadow: 0 10px 20px var(--service-accent-shadow, rgba(19, 46, 157, 0.22));
  color: #ffffff;
  font-weight: 700;
}

.service-menu-page .howto-step h3 {
  margin: 0 0 10px;
  color: #1d2735;
  font-size: 1.15rem;
}

.service-menu-page .howto-step p {
  margin: 0;
  color: #526072;
  line-height: 1.75;
}

.service-footer {
  padding: 20px 18px;
  margin-top: 0;
  border-radius: 22px;
  background: rgba(13, 24, 44, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.24);
  color: #ffffff;
}

.service-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.service-footer a {
  display: inline-flex;
  margin-bottom: 0;
}

.service-footer nav a,
.service-footer nav .footer-link-button {
  display: inline-flex;
  margin: 0;
  text-decoration: none;
}

.service-footer nav a:hover,
.service-footer nav .footer-link-button:hover {
  text-decoration: underline;
}

/* Simple footer with text-only links */
.simple-footer {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  margin-bottom: calc(2rem + env(safe-area-inset-bottom));
}

.simple-footer a {
  display: block;
  color: inherit;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.simple-footer a:hover {
  text-decoration: underline;
}

.service-footer small {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
}

.service-menu-page a:focus-visible,
.service-menu-page summary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .service-menu-page .menu-container,
  .service-menu-page .howto-steps {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (min-width: 992px) {
  .service-menu-page .howto-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .service-hero {
    grid-template-columns: 1fr !important;
  }

  .service-hero__panel {
    width: 84px !important;
    min-height: 84px !important;
  }

  .service-menu-page .menu-container {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 575.98px) {
  .service-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .service-hero,
  .service-menu-page .content-section {
    border-radius: 24px;
  }

  .service-menu-page .menu-card {
    min-height: auto;
  }
}
