/* closing.css - ROOM SERVICE Footer & Final CTA */

/* =========================================================
   CLOSING CTA (§11)
   ========================================================= */
.closing-cta {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 100px 24px 120px;
  position: relative;
}

.closing-heading {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.3;
}

.closing-lead {
  font-size: 20px;
  font-weight: var(--fw-b);
  margin-bottom: 48px;
}

.qr-block {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 48px 40px;
  max-width: 360px;
  margin: 0 auto 40px;
  color: var(--text);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: #f0f0f0;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-weight: 900;
  border: 4px solid var(--border-light);
  border-radius: var(--r-sm);
}

.qr-block p {
  font-size: 20px;
  font-weight: 900;
  margin: 0;
  color: var(--accent);
}

.closing-cta .btn-cta {
  background: var(--cta);
  color: var(--text);
  border-color: var(--cta);
  font-size: 22px;
  padding: 24px 64px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.closing-cta .btn-cta:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* =========================================================
   FOOTER (§12) — site-footer（DMM形式：ダーク／左ロゴ・右リンク／下段コピーライト）
   ========================================================= */
.site-footer {
  background: #333;
  color: #fff;
  padding: 52px 0 28px;
}

.site-footer .footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .footer-brand-block {
  flex: 0 1 auto;
  min-width: 0;
}

.site-footer .footer-brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
}

.site-footer .footer-company {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.65;
}

.site-footer .footer-nav {
  flex: 1 1 240px;
  max-width: 420px;
  margin-left: auto;
}

.site-footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.site-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: color var(--tr), opacity var(--tr);
}

.site-footer .footer-links a::before {
  content: '>';
  font-size: 0.82em;
  opacity: 0.75;
  font-weight: 700;
}

.site-footer .footer-links a:hover {
  color: #fff;
}

.site-footer .footer-copyright {
  text-align: center;
  margin: 0;
  padding-top: 20px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 40px 0 calc(28px + env(safe-area-inset-bottom));
  }

  .site-footer .footer-main {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding-bottom: 24px;
  }

  .site-footer .footer-nav {
    margin-left: 0;
    max-width: none;
  }

  .site-footer .footer-links {
    align-items: flex-start;
  }

  .site-footer .footer-brand {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  body:has(.fixed-mobile-cta.visible) {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

/* 固定下部CTA（モバイル）— DOM末尾ブロック問題の解消 */
.fixed-mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  box-sizing: border-box;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
  justify-content: center;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.1);
}

.fixed-mobile-cta.visible {
  display: flex;
}

.fixed-cta-btn {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  max-width: 180px;
  transition: opacity var(--tr);
}

.fixed-cta-btn:active {
  opacity: 0.88;
}

.fixed-cta-phone {
  color: var(--accent);
  border-color: var(--accent);
  background: #fff;
}

.fixed-cta-line {
  background: var(--line);
  color: #fff;
}

@media (min-width: 769px) {
  .fixed-mobile-cta {
    display: none !important;
    position: absolute;
    visibility: hidden;
  }
}

/* 旧クラス（未使用HTMLだが残骸互換のため下部に残す） */

.footer {
  background: #111;
  color: #fff;
  padding: 80px 24px 40px;
  text-align: center;
}

.footer-brand {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 32px;
  letter-spacing: 0.1em;
  color: #fff;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--fw-b);
  transition: color var(--tr);
}

.footer-links .footer-link-muted {
  color: #777;
  font-size: 14px;
  font-weight: var(--fw-b);
  cursor: default;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 12px;
  color: #666;
  border-top: 1px solid #333;
  padding-top: 32px;
  max-width: 800px;
  margin: 0 auto;
}

/* Modal styles (Modals were originally mentioned here) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Hack to show modal without JS for now via :target */
.modal-overlay:target {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg);
  border-radius: var(--r-md);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  text-decoration: none;
}
.modal-close:hover {
  color: var(--accent);
}

.modal-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 32px;
  text-align: center;
  color: var(--text);
}

/* Form Group overrides */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}
.form-group label {
  display: block;
  font-weight: 900;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 8px;
}
.form-group .required {
  background: #E53935;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Formspree スパム対策（honeypot）— 画面上は隠す */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 16px;
  background: #fff;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.contact-form .form-honeypot {
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.form-group-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  font-size: 14px;
}

/* =========================================================
   CONTACT CARDS (Closing Section)
   ========================================================= */
.closing-cta-section {
  background: var(--bg-alt);
  padding: 100px 0;
  text-align: center;
}

.contact-methods {
  display: flex;
  flex-direction: row;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.contact-methods::-webkit-scrollbar {
  display: none;
}

.contact-card {
  flex: 1 1 0;
  min-width: 260px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 40px 24px;
  text-align: center;
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 24px;
}

/* Provide width control on these specific buttons */
.contact-card .btn-lg {
  margin-bottom: 16px;
}

.contact-phone-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  margin-top: 24px;
  margin-bottom: 8px;
}

.contact-phone-hours {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 900;
  margin: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width: 768px) {
  .closing-cta {
    padding: 80px 24px;
  }
  .closing-heading {
    font-size: 32px;
  }
  .closing-lead {
    font-size: 18px;
  }
  .closing-cta .btn-cta {
    font-size: 18px;
    padding: 20px 40px;
  }
}

@media(max-width: 480px) {
  .closing-cta {
    padding: 60px 20px;
  }
  .closing-heading {
    font-size: 28px;
  }
  .qr-block {
    padding: 32px 24px;
  }
  .qr-placeholder {
    width: 160px;
    height: 160px;
  }
  .qr-block p {
    font-size: 18px;
  }
  .closing-cta .btn-cta {
    width: 100%;
    padding: 16px 20px;
  }
  .modal-content {
    padding: 32px 20px;
  }
}
