@charset "UTF-8";

:root {
  --faq-ink: #292e38;
  --faq-muted: #727b89;
  --faq-soft-muted: #929aa7;
  --faq-line: rgba(132, 151, 176, .24);
  --faq-line-strong: rgba(118, 151, 191, .43);
  --faq-surface: rgba(255, 255, 255, .94);
  --faq-surface-soft: rgba(249, 251, 255, .88);
  --faq-focus: rgba(91, 153, 211, .38);
  --faq-shadow: 0 16px 46px rgba(66, 81, 111, .09);
  --faq-shadow-soft: 0 7px 20px rgba(73, 89, 119, .055);
  --faq-pearl: linear-gradient(112deg, rgba(218, 243, 250, .98), rgba(230, 225, 248, .98) 54%, rgba(247, 225, 238, .97));
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f5f7fb;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--faq-ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(201, 238, 248, .36), transparent 30%),
    radial-gradient(circle at 92% 7%, rgba(240, 215, 237, .30), transparent 31%),
    linear-gradient(180deg, #fbfdff 0%, #f4f6fb 58%, #f8f8fc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .025em;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
.qa-block:focus-visible {
  outline: 3px solid var(--faq-focus);
  outline-offset: 2px;
}

.faq-app {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(760px, calc(100% - 24px));
  min-height: 620px;
  margin: 28px auto 56px;
  padding: 0 20px 30px;
  background: rgba(252, 253, 255, .97);
  border: 1px solid rgba(128, 149, 178, .17);
  border-radius: 26px;
  box-shadow: var(--faq-shadow);
}

.faq-header {
  position: relative;
  overflow: hidden;
  margin: 0 -20px 22px;
  padding: 30px 24px 22px;
  background:
    radial-gradient(circle at 16% 24%, rgba(197, 237, 247, .36), transparent 31%),
    radial-gradient(circle at 86% 31%, rgba(239, 214, 235, .31), transparent 34%),
    linear-gradient(128deg, rgba(248, 252, 255, .98), rgba(251, 249, 255, .96));
  border-bottom: 1px solid rgba(132, 151, 176, .14);
  text-align: center;
}

.back-button {
  position: absolute;
  top: 22px;
  left: 20px;
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0 1px 3px 0;
  color: #617487;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(127, 153, 183, .28);
  border-radius: 13px;
  box-shadow: 0 6px 17px rgba(73, 89, 119, .055);
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.back-button.is-visible {
  display: grid;
}

.eyebrow {
  margin: 0 0 5px;
  color: #748295;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.faq-header h1 {
  margin: 0;
  color: #272c35;
  font-size: clamp(25px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .03em;
}

.title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 98px;
  margin: 10px auto 8px;
}

.title-ornament::before,
.title-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(119, 151, 185, .48));
}

.title-ornament::after {
  background: linear-gradient(90deg, rgba(172, 137, 180, .44), transparent);
}

.title-ornament span {
  width: 7px;
  height: 7px;
  margin: 0 8px;
  background: linear-gradient(135deg, #91c7d4, #9b8ec5 55%, #c58ba8);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .66);
}

.top-lead {
  margin: 0 0 18px;
  color: #66717f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.lead,
.section-title {
  display: none;
}

.tab-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 5px;
  background: rgba(255, 255, 255, .63);
  border: 1px solid rgba(137, 155, 181, .20);
  border-radius: 17px;
}

.tab-button {
  min-height: 42px;
  padding: 8px 12px;
  color: #77818e;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .14s ease;
}

.tab-button.is-active {
  color: #34404e;
  background: var(--faq-pearl);
  border-color: rgba(105, 151, 203, .42);
  box-shadow: 0 6px 16px rgba(82, 103, 143, .08);
}

.tab-button:active,
.qa-accordion-button:active,
.category-card:active,
.related-chip:active,
.reserve-fixed-cta:active {
  transform: translateY(1px);
}

.faq-content {
  display: grid;
  gap: 18px;
}

.qa-list {
  display: grid;
  gap: 12px;
}

.qa-block {
  position: relative;
  overflow: hidden;
  background: var(--faq-surface);
  border: 1px solid rgba(135, 156, 184, .27);
  border-radius: 17px;
  box-shadow: var(--faq-shadow-soft);
  scroll-margin-top: 14px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.qa-block.is-open {
  background:
    linear-gradient(rgba(255, 255, 255, .95), rgba(255, 255, 255, .92)) padding-box,
    linear-gradient(118deg, rgba(127, 196, 218, .41), rgba(160, 149, 218, .35), rgba(220, 157, 194, .31)) border-box;
  border-color: transparent;
  box-shadow: 0 11px 30px rgba(69, 84, 114, .09);
}

.qa-block.is-viewed:not(.is-open) {
  background: rgba(247, 249, 252, .92);
  border-color: rgba(140, 157, 180, .20);
}

.qa-block.is-focus {
  outline: 3px solid var(--faq-focus);
  outline-offset: 3px;
}

.qa-accordion-button,
.qa-question-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 32px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "rank meta toggle"
    "title title toggle";
  align-items: center;
  width: 100%;
  min-height: 86px;
  padding: 17px 17px 16px;
  column-gap: 10px;
  row-gap: 7px;
  color: var(--faq-ink);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.rank-badge {
  grid-area: rank;
  display: inline-flex;
  align-items: baseline;
  color: #728ba2;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
}

.rank-badge .rank-num {
  margin-left: 1px;
}

.qa-question-main {
  display: contents;
  min-width: 0;
  width: 100%;
}

.question-statuses {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.question-statuses .viewed-pill {
  margin-left: auto;
}

.question-meta,
.viewed-pill {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
}

.question-meta {
  color: #697b8d;
  background: rgba(231, 243, 248, .78);
  border: 1px solid rgba(118, 168, 194, .20);
}

.viewed-pill {
  display: none;
  color: #7c8490;
  background: rgba(242, 244, 248, .94);
  border: 1px solid rgba(132, 151, 176, .20);
}

.qa-block.is-viewed > .qa-accordion-button .viewed-pill,
.qa-block.is-viewed > .qa-question-row .viewed-pill {
  display: inline-flex !important;
}

.qa-question-title {
  grid-area: title;
  display: block;
  min-width: 0;
  padding-right: 2px;
  color: #303641;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.qa-toggle-ui {
  grid-area: toggle;
  position: relative;
  display: block;
  justify-self: end;
  width: 30px;
  height: 30px;
  background: rgba(237, 243, 249, .96);
  border: 1px solid rgba(124, 151, 181, .26);
  border-radius: 10px;
  color: transparent;
}

.qa-toggle-ui::before,
.qa-toggle-ui::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: #71869a;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.qa-toggle-ui::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity .16s ease, transform .16s ease;
}

.qa-block.is-open .qa-toggle-ui {
  background: var(--faq-pearl);
  border-color: rgba(105, 151, 203, .38);
}

.qa-block.is-open .qa-toggle-ui::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0);
}

.qa-toggle-label {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.qa-toggle-icon {
  display: none;
}

.qa-panel {
  padding: 0 16px 18px;
}

.qa-panel[hidden] {
  display: none;
}

.qa-panel::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 1px 15px;
  background: linear-gradient(90deg, transparent, rgba(132, 151, 176, .36), transparent);
}

.qa-answer-box {
  padding: 17px;
  background:
    linear-gradient(rgba(252, 253, 255, .91), rgba(250, 252, 255, .88)) padding-box,
    linear-gradient(118deg, rgba(127, 196, 218, .34), rgba(160, 149, 218, .29), rgba(220, 157, 194, .27)) border-box;
  border: 1px solid transparent;
  border-radius: 15px;
}

.answer-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #5f7184;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
}

.answer-label span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #687f94;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(112, 155, 190, .34);
  border-radius: 9px;
  font-size: 13px;
}

.answer-text {
  margin: 0;
  color: #424a56;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.95;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.answer-text a {
  color: #536f8a;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(83, 111, 138, .40);
  text-underline-offset: 3px;
}

.qa-related-box {
  margin-top: 17px;
}

.qa-related-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: #7a8491;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.5;
  white-space: nowrap;
}

.qa-related-title::before,
.qa-related-title::after {
  content: "";
  flex: 1;
  min-width: 16px;
  height: 1px;
  background: rgba(132, 151, 176, .24);
}

.related-chip-list {
  display: grid;
  gap: 8px;
}

.related-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--faq-ink);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(135, 156, 184, .24);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
}

.related-chip:hover {
  background: rgba(239, 246, 251, .84);
  border-color: rgba(112, 153, 195, .38);
}

.related-chip > span {
  display: none;
}

.related-chip b {
  min-width: 0;
  overflow: hidden;
  color: #454d59;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-chip::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #8291a3;
  border-right: 1.5px solid #8291a3;
  transform: rotate(45deg);
}

.related-chip .viewed-pill {
  display: none;
  max-width: 72px;
  justify-self: end;
  font-size: 9px;
}

.related-chip.is-viewed .viewed-pill {
  display: inline-flex;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.category-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 14px;
  color: var(--faq-ink);
  background: var(--faq-surface);
  border: 1px solid rgba(135, 156, 184, .27);
  border-radius: 16px;
  box-shadow: var(--faq-shadow-soft);
  text-align: left;
  cursor: pointer;
  transition: transform .14s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.category-card:hover {
  background: linear-gradient(112deg, rgba(230, 247, 251, .74), rgba(239, 235, 250, .72) 54%, rgba(251, 236, 244, .68));
  border-color: rgba(105, 151, 203, .44);
  box-shadow: 0 9px 23px rgba(82, 103, 143, .08);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #687f94;
  background: linear-gradient(145deg, rgba(227, 244, 249, .96), rgba(234, 231, 248, .94));
  border: 1px solid rgba(124, 159, 191, .20);
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
}

.category-title {
  margin: 0 0 3px;
  color: #343b46;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.category-count {
  color: var(--faq-muted);
  font-size: 11px;
  font-weight: 600;
}

.chevron {
  width: 8px;
  height: 8px;
  color: transparent;
  border-top: 1.5px solid #8291a3;
  border-right: 1.5px solid #8291a3;
  transform: rotate(45deg);
}

.category-head {
  padding: 2px 2px 6px;
  text-align: center;
}

.category-head .category-label {
  margin: 0 0 5px;
  color: #74879a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}

.category-head h2 {
  margin: 0;
  color: #303641;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.category-head p:last-child {
  display: none;
}

.empty {
  padding: 28px 18px;
  color: var(--faq-muted);
  background: var(--faq-surface-soft);
  border: 1px solid var(--faq-line);
  border-radius: 16px;
  text-align: center;
}

.bottom-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(245, 247, 251, 0), rgba(245, 247, 251, .95) 32%, #f5f7fb);
}

.reserve-fixed-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 20px;
  color: #34404e;
  background: var(--faq-pearl);
  border: 1px solid rgba(105, 151, 203, .42);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(82, 103, 143, .12);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}

.reserve-fixed-cta span::before {
  content: "ご予約・空き情報はコチラ";
  display: block;
  text-align: center;
}

.reserve-fixed-cta b {
  font-size: 20px;
  font-weight: 400;
}

@media (max-width: 640px) {
  .faq-app {
    width: calc(100% - 24px);
    margin-top: 12px;
    margin-bottom: 32px;
    padding: 0 16px 24px;
    border-radius: 22px;
  }

  .faq-header {
    margin-right: -16px;
    margin-left: -16px;
    padding: 27px 18px 20px;
  }

  .back-button {
    top: 19px;
    left: 15px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 374px) {
  .faq-app {
    width: calc(100% - 16px);
    padding-right: 12px;
    padding-left: 12px;
  }

  .faq-header {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .back-button {
    left: 11px;
    width: 36px;
    height: 36px;
  }

  .tab-button {
    min-height: 40px;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 12px;
  }

  .qa-accordion-button,
  .qa-question-row {
    grid-template-columns: auto minmax(0, 1fr) 30px;
    min-height: 82px;
    padding: 15px 13px 14px;
    column-gap: 7px;
  }

  .rank-badge {
    font-size: 16px;
  }

  .question-meta,
  .viewed-pill {
    min-height: 19px;
    padding: 3px 6px;
    font-size: 9px;
  }

  .qa-question-title {
    font-size: 14px;
  }

  .qa-panel {
    padding-right: 12px;
    padding-left: 12px;
  }

  .qa-answer-box {
    padding: 15px 13px;
  }

  .answer-text {
    font-size: 13px;
  }

  .qa-related-title {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tab-button,
  .category-card,
  .qa-toggle-ui::after {
    transition: none;
  }
}
