/* ========================================
   天界コールセンター
======================================== */

:root {
  --call-paper: #fffaf2;
  --call-ink: #3b3630;
  --call-muted: #756d64;
  --call-gold: #b99a57;
  --call-line: rgba(134, 112, 73, 0.22);
  --call-blue-1: #315f91;
  --call-blue-2: #4f82b7;
  --call-blue-3: #dbe9f6;
  --call-red-1: #9a4552;
  --call-red-2: #c86772;
  --call-red-3: #f6dfe2;
}

* {
  box-sizing: border-box;
}

body.heaven-call-page {
  margin: 0;
  background-color: #fffaf2;
  background-image:
    linear-gradient(rgba(255, 252, 245, 0.08), rgba(255, 252, 245, 0.08)),
    url("../images/heaven-call-bg.png");
  background-repeat: no-repeat, repeat-y;
  background-position: center top, center top;
  background-size: 100% 100%, 100% auto;
  background-attachment: scroll;
  color: var(--call-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Noto Sans JP", sans-serif;
}

.heaven-call-header {
  border-bottom: 1px solid rgba(133, 111, 71, 0.14);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(12px);
}

.heaven-call-header-inner {
  width: min(1040px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.heaven-call-logo {
  color: #62533d;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  text-decoration: none;
  letter-spacing: 0.12em;
}

.heaven-call-header nav a {
  color: #72675b;
  font-size: 0.88rem;
  text-decoration: none;
}

.call-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.call-hero {
  padding: 92px 0 56px;
}

.call-hero-inner {
  text-align: center;
}

.call-kicker {
  margin: 0 0 12px;
  color: #92794a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
}

.call-hero h1,
.call-result-head h2,
.call-prayer-section h2,
.call-step-heading h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
}

.call-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: 0.12em;
}

.call-hero-copy {
  margin: 18px 0 0;
  color: #8b7054;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.call-intro-card {
  max-width: 760px;
  margin: 38px auto 0;
  padding: 28px 32px;
  border: 1px solid var(--call-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 20px 50px rgba(82, 67, 43, 0.07);
  text-align: left;
}

.call-intro-card p {
  margin: 0;
  line-height: 2;
}

.call-intro-card p + p {
  margin-top: 14px;
}

.call-section {
  padding: 54px 0;
}

.call-step-heading {
  text-align: center;
}

.call-step-number {
  display: inline-block;
  margin-bottom: 10px;
  color: #a1844f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.call-step-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  letter-spacing: 0.08em;
}

.call-section-copy {
  margin: 12px 0 30px;
  color: var(--call-muted);
  text-align: center;
}

.call-question-box {
  max-width: 680px;
  margin: 28px auto 0;
  padding: 28px;
  border: 1px dashed rgba(154, 126, 74, 0.45);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.call-question-icon {
  margin-bottom: 10px;
  font-size: 1.7rem;
}

.call-question-box p {
  margin: 0;
  line-height: 1.9;
}

.call-question-note {
  margin-top: 10px !important;
  color: #857b70;
  font-size: 0.85rem;
}

.call-card-grid {
  display: grid;
  gap: 14px;
  justify-content: center;
}

.call-card-grid-blue {
  grid-template-columns: repeat(7, minmax(72px, 92px));
}

.call-card-grid-red {
  grid-template-columns: repeat(6, minmax(72px, 92px));
}

.call-card {
  position: relative;
  min-height: 118px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  perspective: 900px;
  background: transparent;
}

.call-card-inner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
}

.call-card.is-selected .call-card-inner {
  transform: rotateY(180deg);
}

.call-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  backface-visibility: hidden;
  box-shadow: 0 12px 25px rgba(50, 42, 32, 0.13);
}

.call-card-front {
  overflow: hidden;
}

.call-card-front::before {
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  content: "";
}

.call-card-front::after {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    18px -20px rgba(255, 255, 255, 0.33),
    -20px 17px rgba(255, 255, 255, 0.28),
    21px 21px rgba(255, 255, 255, 0.24);
  content: "";
}

.call-card-blue .call-card-front {
  border: 1px solid rgba(45, 87, 133, 0.55);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(145deg, var(--call-blue-2), var(--call-blue-1));
}

.call-card-red .call-card-front {
  border: 1px solid rgba(133, 49, 62, 0.48);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(145deg, var(--call-red-2), var(--call-red-1));
}

.call-card-back {
  border: 1px solid rgba(136, 114, 77, 0.24);
  background: #fffdf9;
  color: #463f35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  transform: rotateY(180deg);
}

.call-card-blue .call-card-back {
  box-shadow: inset 0 0 0 5px var(--call-blue-3);
}

.call-card-red .call-card-back {
  box-shadow: inset 0 0 0 5px var(--call-red-3);
}

.call-card:not(.is-selected):hover .call-card-inner,
.call-card:not(.is-selected):focus-visible .call-card-inner {
  transform: translateY(-5px);
}

.call-card-grid.has-selection .call-card:not(.is-selected) {
  opacity: 0.35;
  pointer-events: none;
}

.call-selection {
  width: fit-content;
  margin: 24px auto 0;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.call-selection strong {
  margin-left: 8px;
  font-size: 1rem;
}

.call-selection-blue {
  background: var(--call-blue-3);
  color: #315f91;
}

.call-selection-red {
  background: var(--call-red-3);
  color: #8e3d49;
}

.call-connection-section {
  padding-top: 64px;
}

.call-connection-panel {
  max-width: 560px;
  margin: 0 auto;
  padding: 42px 28px;
  border: 1px solid rgba(133, 111, 71, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 25px 65px rgba(67, 54, 35, 0.1);
  text-align: center;
}

.call-phone-mark {
  font-size: 2rem;
}

.call-connection-small {
  margin: 14px 0 2px;
  color: #7e7469;
  font-size: 0.86rem;
}

.call-extension-number {
  margin: 0;
  color: #80642c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 10vw, 4rem);
  letter-spacing: 0.08em;
}

.call-connect-copy {
  margin: 8px 0 0;
  color: #685f55;
}

.call-connecting {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}

.call-connecting span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b79a63;
  animation: callBlink 1.1s infinite ease-in-out;
}

.call-connecting span:nth-child(2) {
  animation-delay: 0.18s;
}

.call-connecting span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes callBlink {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.call-result-section {
  padding-top: 70px;
}

.call-result-head {
  text-align: center;
}

.call-result-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2.2rem);
  letter-spacing: 0.08em;
}

.call-result-combination {
  margin: 12px 0 0;
  color: #9a7945;
  font-size: 1.05rem;
}

.call-result-grid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.call-result-card {
  padding: 26px 28px;
  border: 1px solid var(--call-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 35px rgba(71, 57, 37, 0.06);
}

.call-result-label {
  margin: 0 0 9px;
  color: #987b47;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.call-result-card h3 {
  margin: 0 0 10px;
  font-size: 1.13rem;
}

.call-result-card > p:last-child {
  margin-bottom: 0;
  line-height: 1.9;
}

.call-result-question-card {
  border-left: 4px solid #b8995b;
  background: rgba(255, 252, 244, 0.82);
}

.call-result-question {
  margin: 0;
  color: #433a2d;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.08rem, 3.5vw, 1.28rem);
  line-height: 1.9;
}

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

.call-staff-item {
  padding: 16px 18px;
  border-radius: 16px;
  background: #faf7f0;
}

.call-staff-item strong {
  display: block;
  margin-bottom: 5px;
  color: #57482f;
}

.call-staff-item p {
  margin: 0;
  color: #6f675d;
  font-size: 0.9rem;
  line-height: 1.7;
}



.call-staff-guide {
  margin: 0 0 4px;
  color: #746b60;
  font-size: 0.9rem;
  line-height: 1.8;
}

.call-staff-select {
  width: 100%;
  border: 1px solid rgba(151, 126, 78, 0.2);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.call-staff-select:hover,
.call-staff-select:focus-visible {
  border-color: rgba(145, 111, 53, 0.46);
  background: #fffaf0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(72, 56, 34, 0.08);
}

.call-staff-item.is-selected {
  border: 1px solid rgba(145, 111, 53, 0.48);
  background: #fff7e7;
  box-shadow: inset 0 0 0 2px rgba(185, 154, 87, 0.09);
}

.call-staff-item.is-selected strong::before {
  margin-right: 0.45em;
  color: #a08045;
  content: "✓";
}


.call-prayer-section {
  margin-top: 58px;
  padding: 42px 28px;
  border-top: 1px solid rgba(155, 128, 78, 0.26);
  text-align: center;
}

.call-prayer-section h2 {
  margin: 0;
  font-size: 1.65rem;
}

.call-prayer-lead {
  max-width: 620px;
  margin: 14px auto 0;
  color: #756c62;
  line-height: 1.9;
}

.call-prayer-box {
  max-width: 620px;
  margin: 28px auto 0;
  padding: 26px;
  border: 1px solid rgba(151, 126, 78, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  text-align: left;
}

.call-prayer-box p {
  margin: 0;
  white-space: pre-line;
  line-height: 2;
}

.call-finish-button,
.call-restart-button {
  margin-top: 28px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.call-finish-button {
  border: 1px solid #866d3f;
  background: #866d3f;
  color: #fff;
}

.call-restart-button {
  border: 1px solid #a48958;
  background: transparent;
  color: #705d3d;
}

.call-finished-message {
  margin: 26px auto 0;
  color: #665d52;
  line-height: 1.9;
}

.heaven-call-footer {
  padding: 60px 20px 32px;
  color: #9a9288;
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 760px) {
  .call-hero {
    padding-top: 68px;
  }

  .call-intro-card {
    padding: 24px 22px;
  }

  .call-card-grid-blue {
    grid-template-columns: repeat(4, minmax(62px, 1fr));
  }

  .call-card-grid-red {
    grid-template-columns: repeat(4, minmax(62px, 1fr));
  }

  .call-card {
    min-height: 104px;
  }
}

@media (max-width: 480px) {
  .call-shell {
    width: min(100% - 22px, 920px);
  }

  .call-section {
    padding: 44px 0;
  }

  .call-card-grid {
    gap: 10px;
  }

  .call-card-grid-blue,
  .call-card-grid-red {
    grid-template-columns: repeat(3, 1fr);
  }

  .call-card {
    min-height: 100px;
  }

  .call-result-card {
    padding: 22px 20px;
  }

  .call-prayer-section {
    padding-inline: 10px;
  }
}


@media (max-width: 760px) {
  html {
    background: #fffaf2;
  }

  body.heaven-call-page {
    background-color: #fffaf2;
    background-image:
      linear-gradient(rgba(255, 252, 245, 0.28), rgba(255, 252, 245, 0.28)),
      url("../images/heaven-call-bg.png");
    background-repeat: repeat-y, repeat-y;
    background-position: center top, center top;
    background-size: 100% auto, 760px auto;
    background-attachment: scroll, scroll;
  }
}

@media (max-width: 480px) {
  body.heaven-call-page {
    background-image:
      linear-gradient(rgba(255, 252, 245, 0.30), rgba(255, 252, 245, 0.30)),
      url("../images/heaven-call-bg.png");
    background-repeat: repeat-y, repeat-y;
    background-position: center top, center top;
    background-size: 100% auto, 620px auto;
    background-attachment: scroll, scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  .call-card-inner,
  .call-connecting span {
    transition: none;
    animation: none;
  }
}
