@import url('https://fonts.googleapis.com/css2?family=BIZ+UDGothic&family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');



:root {
  --ios-bg: #F2F2F7;
  --ios-blue: #007AFF;
  --ios-header-bg: rgba(248, 248, 248, 0.9);
  --ios-border: #C6C6C8;
  --ios-cell-bg: #FFFFFF;
}

body, html {
  margin: 0; padding: 0; height: 100%;
  font-family: "Inter Tight", "BIZ UDGothic", sans-serif;
  background-color: var(--ios-bg);
  -webkit-font-smoothing: antialiased;
  color: #000;
  width: 800px;
  margin-left: auto;
  margin-right: auto;
}
/* 追加：フォーム部品にフォントを継承させる */
input, select, button, textarea {
  font-family: inherit;
}
/* 追加：Leafletのデフォルトフォント設定を上書きする */
.leaflet-container {
  font-family: "Inter Tight", "BIZ UDGothic", sans-serif;
}
/* ナビゲーションバー */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 40px;
  padding-top: env(safe-area-inset-top, 20px);
  background: var(--ios-header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--ios-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
}

header h1 {
  font-size: 25px;
  font-weight: 600;
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-btn {
  font-size: 17px;
  color: var(--ios-blue);
  text-decoration: none;
}



.header-btn.back {
  display: flex;
  align-items: center;
}
.header-btn.back::before {
  content: '‹';
  font-size: 26px;
  margin-right: 4px;
  line-height: 1;
}

.header-spacer { width: 50px; } /* レイアウト調整用 */

/* リストフォーム共通 */
main {
  padding-top: calc(64px + env(safe-area-inset-top, 20px));
  padding-bottom: 40px;
}

.section-title {
  font-size: 13px;
  color: #6D6D72;
  text-transform: uppercase;
  margin: 20px 16px 8px;
}

.list-group {
  background: var(--ios-cell-bg);
  border-top: 0.5px solid var(--ios-border);
  border-bottom: 0.5px solid var(--ios-border);
}

.list-cell {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  position: relative;
}

.list-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 0;
  height: 0.5px;
  background-color: var(--ios-border);
}

.list-cell label {
  width: 100px;
  font-size: 17px;
  flex-shrink: 0;
}

.list-cell input, .list-cell select {
  flex-grow: 1;
  border: none;
  background: transparent;
  font-size: 17px;
  color: var(--ios-blue);
  text-align: right;
  outline: none;
  appearance: none;
}

.list-cell input::placeholder { color: #C7C7CC; }
.list-cell select { direction: rtl; }
.list-cell select option { direction: ltr; }

/* ボタン類 */
.btn-container { padding: 24px 16px; }
.submit-btn {
  width: 100%;
  background-color: var(--ios-blue);
  color: white;
  border: none;
  padding: 14px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
}
.submit-btn:disabled { background-color: #A2C8F2; }

/* ポップアップ */
.leaflet-popup-content-wrapper { border-radius: 3px; }
.popup-title { font-weight: bold; font-size: 15px; margin-bottom: 4px; }
.popup-meta { color: #8E8E93; font-size: 13px; margin-bottom: 8px; }
.popup-link { display: block; color: var(--ios-blue); text-decoration: none; font-weight: 500; }


@media screen and (max-width: 600px) {
  body, html {
    width: 95%;
    margin: 0 auto;
  }

  header {
    padding: 0 12px;
  }
  
}

.inter-tight {
  font-family: "Inter Tight", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.biz-udgothic-regular {
  font-family: "BIZ UDGothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}
