* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef7f8;
  color: #1f2d2f;
}

.app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f8fcfd;
}

.hero {
  padding: 28px 20px 24px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(0, 45, 70, 0.72), rgba(0, 120, 140, 0.36)),
    url("images/sado-hero.png");
  background-size: cover;
  background-position: center;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.location,
.version-badge {
  display: inline-block;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.version-badge {
  margin: 8px 0 0;
}

.prototype-updated {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
}

h1 {
  margin: 18px 0 6px;
  font-size: 34px;
  letter-spacing: 0.04em;
}

.catchcopy {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.hero-lead {
  margin: 10px 0 16px;
  padding: 11px 13px;
  background: rgba(0, 45, 70, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 600;
}

.category-links {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.category-link {
  display: block;
  padding: 14px 15px;
  color: #1f4f5a;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0, 45, 70, 0.14);
}

.category-link:active {
  transform: translateY(1px);
}

.category-title {
  display: block;
  color: #006b75;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
}

.category-text {
  display: block;
  margin-top: 5px;
  color: #4f666b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.search-section {
  margin: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 107, 117, 0.12);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(0, 45, 70, 0.07);
}

.search-box {
  display: block;
  width: 100%;
  padding: 14px 16px;
  color: #1f2d2f;
  background: #f8fcfd;
  border: 1px solid rgba(0, 107, 117, 0.18);
  border-radius: 16px;
  font-size: 14px;
}

.quick-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.quick-buttons button {
  width: 100%;
  min-width: 0;
  padding: 10px 8px;
  border: none;
  border-radius: 999px;
  background: #eef7f8;
  color: #006b75;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.quick-buttons button.active {
  background: #f28c28;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(242, 140, 40, 0.25);
}

.result-count {
  display: inline-block;
  margin: 14px 0 0;
  padding: 6px 12px;
  color: #006b75;
  background: #eef7f8;
  border: 1px solid rgba(0, 107, 117, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.time-label {
  margin: 8px 0 0;
  color: #4f666b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.status-guide {
  margin: 12px 0 0;
  padding: 12px 13px;
  background: #f8fcfd;
  border: 1px solid rgba(0, 107, 117, 0.14);
  border-radius: 16px;
}

.status-guide p {
  margin: 0 0 8px;
  color: #006b75;
  font-size: 12px;
  font-weight: 800;
}

.status-guide-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-guide-items span {
  display: inline-block;
  padding: 5px 8px;
  color: #ffffff;
  background: #007d8a;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.status-guide-items span:nth-child(2) {
  background: #7b4b8f;
}

.status-guide-items span:nth-child(3),
.status-guide-items span:nth-child(4) {
  background: #0f9f6e;
}

.status-guide-items span:nth-child(5) {
  background: #6a7f84;
}

.empty-message {
  display: none;
  margin: 14px 0 0;
  padding: 14px 16px;
  color: #345055;
  background: #ffffff;
  border: 1px solid rgba(0, 107, 117, 0.12);
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
}

.prototype-notice {
  margin: 16px;
  padding: 14px 16px;
  background: #fff7e8;
  border: 1px solid rgba(242, 140, 40, 0.35);
  border-radius: 18px;
  color: #4a3a24;
  box-shadow: 0 8px 20px rgba(0, 45, 70, 0.06);
}

.prototype-notice strong {
  display: block;
  margin-bottom: 6px;
  color: #b85f00;
  font-size: 14px;
}

.prototype-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.category-section {
  margin: 18px 16px;
}

.category-section h2 {
  margin: 0 0 6px;
  color: #1f4f5a;
  font-size: 22px;
  line-height: 1.4;
}

.category-section p {
  margin: 0;
  color: #4f666b;
  font-size: 13px;
  line-height: 1.7;
}

.back-to-top {
  display: inline-block;
  margin: 0 0 10px;
  padding: 7px 11px;
  color: #006b75;
  background: #eef7f8;
  border: 1px solid rgba(0, 107, 117, 0.20);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.facility-list {
  margin-top: 12px;
}

.facility-card {
  margin: 12px 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 107, 117, 0.12);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(0, 78, 112, 0.09);
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.category-pill {
  display: inline-block;
  padding: 5px 9px;
  color: #006b75;
  background: #eef7f8;
  border: 1px solid rgba(0, 107, 117, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.sample-label {
  display: inline-block;
  margin: 0;
  padding: 5px 9px;
  background: #fff7e8;
  color: #b85f00;
  border: 1px solid rgba(242, 140, 40, 0.35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.facility-card h3 {
  margin: 8px 0 10px;
  color: #1f2d2f;
  font-size: 23px;
  line-height: 1.35;
}

.status {
  display: inline-block;
  padding: 7px 13px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.status-open {
  background: #0f9f6e;
}

.status-warning {
  background: #f28c28;
}

.status-busy {
  background: #7b4b8f;
}

.status-stop {
  background: #c94b4b;
}

.status-closed,
.status-phone {
  background: #6a7f84;
}

.facility-description {
  margin: 12px 0;
  color: #334b50;
  font-size: 14px;
  line-height: 1.7;
}

.business-info,
.simple-info {
  margin: 12px 0;
  padding: 12px 14px;
  background: #f0f8f9;
  border: 1px solid rgba(0, 107, 117, 0.12);
  border-radius: 16px;
  font-size: 13px;
}

.business-info p,
.simple-info p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 5px 0;
  color: #243f44;
  line-height: 1.5;
}

.business-info p + p,
.simple-info p + p {
  border-top: 1px solid rgba(0, 107, 117, 0.10);
}

.business-info span,
.simple-info span {
  color: #006b75;
  font-weight: 900;
  white-space: nowrap;
}

.status-note {
  margin: 12px 0;
  padding: 10px 12px;
  background: #fff7e8;
  border: 1px solid rgba(242, 140, 40, 0.25);
  border-radius: 14px;
  color: #5a4328;
  font-size: 12px;
  line-height: 1.6;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.actions a {
  display: block;
  padding: 13px 10px;
  text-align: center;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 900;
  font-size: 14px;
}

.call-button {
  color: #ffffff;
  background: #f28c28;
}

.map-button {
  color: #ffffff;
  background: #007d8a;
}

.actions a.disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.no-category-items {
  margin: 12px 0 0;
  padding: 14px 16px;
  color: #4f666b;
  background: #ffffff;
  border: 1px dashed rgba(0, 107, 117, 0.25);
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.note {
  margin: 20px 16px;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #102033, #283a5a);
  border-radius: 24px;
}

.note h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.contact-box {
  margin: 18px 16px 28px;
  padding: 20px 18px;
  background: linear-gradient(135deg, #006b75, #1f4f5a);
  border-radius: 24px;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 45, 70, 0.18);
}

.contact-box h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.contact-box p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.8;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 8px 18px 28px;
  color: #6a7f84;
  text-align: center;
}

.site-footer p {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.6;
}

input,
button,
a {
  max-width: 100%;
}

.demo-hero-label {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: rgba(255, 247, 232, 0.94);
  color: #7a4200;
  border: 1px solid rgba(242, 140, 40, 0.48);
  border-radius: 15px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.demo-alert {
  margin: 16px;
  padding: 16px;
  background: #ffffff;
  border: 2px solid rgba(242, 140, 40, 0.45);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(0, 45, 70, 0.07);
}

.demo-alert strong {
  display: block;
  margin-bottom: 8px;
  color: #b85f00;
  font-size: 15px;
  line-height: 1.5;
}

.demo-alert p {
  margin: 0;
  color: #3a4c50;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.demo-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.demo-points span {
  display: block;
  padding: 9px 8px;
  color: #006b75;
  background: #eef7f8;
  border: 1px solid rgba(0, 107, 117, 0.18);
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.demo-flow {
  margin: 18px 16px 26px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 107, 117, 0.14);
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0, 45, 70, 0.07);
}

.demo-flow h3 {
  margin: 0 0 12px;
  color: #1f4f5a;
  font-size: 17px;
  line-height: 1.5;
}

.demo-flow ol {
  margin: 0;
  padding-left: 22px;
}

.demo-flow li {
  margin: 0 0 8px;
  color: #334b50;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.demo-flow li:last-child {
  margin-bottom: 0;
}

.site-footer p:last-child {
  color: #8a5b20;
  font-weight: 700;
}

/* ==============================
   佐渡NOW 30秒アンケート
============================== */

.survey-box {
  margin: 18px 16px 24px;
  padding: 20px 18px;
  background: #ffffff;
  border: 2px solid rgba(242, 140, 40, 0.38);
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0, 45, 70, 0.09);
  text-align: center;
}

.survey-box h3 {
  margin: 0 0 10px;
  color: #1f4f5a;
  font-size: 19px;
  line-height: 1.5;
}

.survey-box p {
  margin: 0;
  color: #334b50;
  font-size: 13px;
  line-height: 1.8;
}

.survey-box .survey-note {
  margin-top: 10px;
  padding: 10px 12px;
  color: #5a4328;
  background: #fff7e8;
  border: 1px solid rgba(242, 140, 40, 0.25);
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.7;
}

.survey-button {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  color: #ffffff;
  background: #f28c28;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
  box-shadow: 0 8px 18px rgba(242, 140, 40, 0.28);
}

.survey-button:hover {
  background: #db7515;
}

.survey-button:active {
  transform: translateY(1px);
}

.survey-button:focus-visible {
  outline: 3px solid rgba(0, 125, 138, 0.35);
  outline-offset: 3px;
}

/* ==============================
   状態ガイド 11状態対応
============================== */

.status-guide-items span:nth-child(1) {
  background: #f28c28; /* 営業時間前 */
}

.status-guide-items span:nth-child(2) {
  background: #0f9f6e; /* 通常営業 */
}

.status-guide-items span:nth-child(3) {
  background: #7b4b8f; /* 混雑 */
}

.status-guide-items span:nth-child(4) {
  background: #c94b4b; /* 本日終了 */
}

.status-guide-items span:nth-child(5) {
  background: #6a7f84; /* 定休日 */
}

.status-guide-items span:nth-child(6) {
  background: #c94b4b; /* 臨時休業 */
}

.status-guide-items span:nth-child(7) {
  background: #6a7f84; /* 電話確認推奨 */
}

.status-guide-items span:nth-child(8) {
  background: #0f9f6e; /* 空車あり */
}

.status-guide-items span:nth-child(9) {
  background: #f28c28; /* 残りわずか */
}

.status-guide-items span:nth-child(10) {
  background: #c94b4b; /* 満車 */
}

.status-guide-items span:nth-child(11) {
  background: #6a7f84; /* 営業時間外 */
}

/* =====================================
   フッター｜運営・法務情報
===================================== */

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-legal-links a {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-links a:hover {
  opacity: 0.8;
}

.footer-legal-links a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 3px;
}

.footer-operator {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

@media (max-width: 520px) {
  .footer-legal-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .footer-legal-links a {
    display: block;
    padding: 9px 6px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9px;
    text-decoration: none;
  }
}