/* PlanePic 共通デザインシステム */

:root {
  --ink: #10151c;
  --ink-soft: #566072;
  --paper: #f5f6f4;
  --surface: #ffffff;
  --border: rgba(16, 21, 28, 0.10);
  --border-strong: rgba(16, 21, 28, 0.18);
  --primary: #16385c;
  --primary-soft: #e7eef5;
  --accent: #dd8a2e;
  --accent-soft: #fbe8cc;
  --danger: #c0392b;
  --danger-soft: #fbe4e1;
  --shadow: 0 1px 2px rgba(16, 21, 28, 0.06), 0 8px 24px rgba(16, 21, 28, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e9edf1;
    --ink-soft: #a6b1bf;
    --paper: #0b0f14;
    --surface: #131a22;
    --border: rgba(233, 237, 241, 0.12);
    --border-strong: rgba(233, 237, 241, 0.22);
    --primary: #7fa8cf;
    --primary-soft: #1b2b3a;
    --accent: #eda245;
    --accent-soft: #3a2c14;
    --danger: #e0685a;
    --danger-soft: #3a1f1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --ink: #e9edf1;
  --ink-soft: #a6b1bf;
  --paper: #0b0f14;
  --surface: #131a22;
  --border: rgba(233, 237, 241, 0.12);
  --border-strong: rgba(233, 237, 241, 0.22);
  --primary: #7fa8cf;
  --primary-soft: #1b2b3a;
  --accent: #eda245;
  --accent-soft: #3a2c14;
  --danger: #e0685a;
  --danger-soft: #3a1f1c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Barlow Condensed", "Hiragino Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 8px;
}

a {
  color: var(--primary);
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

/* ---------- レイアウト ---------- */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ---------- ナビゲーション ---------- */
.pp-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.pp-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.pp-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.pp-nav__brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex: none;
}
.pp-nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pp-nav__search input[type="search"] {
  width: 180px;
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 999px;
}
.pp-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pp-nav__item {
  position: relative;
}
.pp-nav__item > a,
.pp-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.pp-nav__item > a:hover,
.pp-nav__toggle:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.pp-nav__item.is-open > .pp-nav__toggle {
  background: var(--primary-soft);
  color: var(--primary);
}
.pp-nav__caret {
  font-size: 10px;
  transition: transform 0.15s;
}
.pp-nav__item.is-open .pp-nav__caret {
  transform: rotate(180deg);
}
.pp-nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  list-style: none;
  margin: 6px 0 0;
  z-index: 20;
}
.pp-nav__item.is-open .pp-nav__menu {
  display: block;
}
.pp-nav__menu li a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.pp-nav__menu li a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.pp-nav__avatar-toggle {
  padding: 4px;
  border-radius: 50%;
}
.pp-nav__avatar,
.pp-nav__avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.pp-nav__avatar-placeholder {
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.pp-nav__account-menu {
  min-width: 220px;
}
.pp-nav__account-info {
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.pp-nav__account-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}
.pp-nav__account-plan {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.pp-nav__pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37, #a8811a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
}
.pp-nav__account-menu li button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.pp-nav__account-menu li button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

/* ---------- モバイル用ボトムナビ ---------- */
.pp-bottomnav {
  display: none;
}
@media (max-width: 720px) {
  .pp-nav__inner {
    padding: 10px 16px;
  }
  .pp-nav__right {
    justify-content: flex-end;
  }
  .pp-nav__search input[type="search"] {
    width: 150px;
  }
  /* トップナビのメニュー項目はボトムナビに移すので非表示にする。
     ただしランディングページにはボトムナビが無い(未ログイン訪問者向けのため)ので、
     言語切り替え・ログインリンクを隠さないようにする */
  .pp-nav__links {
    display: none;
  }
  .landing-nav .pp-nav__links {
    display: flex;
    gap: 4px;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .pp-bottomnav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  }
  .pp-bottomnav__item {
    flex: 1;
    display: flex;
  }
  .pp-bottomnav__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    cursor: pointer;
  }
  .pp-nav__item.is-open > .pp-bottomnav__link {
    background: var(--primary-soft);
    color: var(--primary);
  }
  .pp-bottomnav__icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }
  .pp-bottomnav__menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    min-width: 180px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 6px;
    list-style: none;
    z-index: 20;
  }
  .pp-nav__item.is-open .pp-bottomnav__menu {
    display: block;
  }
  .pp-bottomnav__menu li a {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
  }
  .pp-bottomnav__menu li a:hover {
    background: var(--primary-soft);
    color: var(--primary);
  }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.1);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.btn-danger:hover {
  filter: brightness(0.97);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* ---------- フォーム ---------- */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 16px 0 6px;
}
input[type="text"],
input[type="email"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.field {
  position: relative;
  max-width: 420px;
}
.field-results {
  list-style: none;
  margin: 4px 0 0;
  padding: 4px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow-y: auto;
  display: none;
  z-index: 30;
}
.field-results li {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.field-results li:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.field-results li.field-results__empty {
  cursor: default;
  color: var(--ink-soft);
}
.field-results li.field-results__empty:hover {
  background: none;
  color: var(--ink-soft);
}
.field-results li.field-results__empty a {
  cursor: pointer;
}
.field-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}
.field-inline input {
  flex: 1;
}
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
}
.spinner:not([hidden]) {
  display: inline-block;
  animation: pp-spin 0.6s linear infinite;
}
@keyframes pp-spin {
  to {
    transform: rotate(360deg);
  }
}
.lookup-status {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- 複数枚アップロードのブロック ---------- */
.upload-block {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 20px;
}
.upload-block__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.upload-block__thumb {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  flex: none;
  background: var(--primary-soft);
}
.upload-block__number {
  font-weight: 600;
  font-size: 14px;
}

/* ---------- 選択モーダル ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 21, 28, 0.45);
  z-index: 100;
}
.modal-overlay:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 360px;
  width: 90%;
}
.modal-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink);
}
.modal-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- 撮影達成率 ---------- */
.progress-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.progress-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 8px;
}
.progress-card__label {
  color: var(--ink-soft);
  font-weight: 600;
}
.progress-card__value {
  font-weight: 700;
  color: var(--ink);
}
.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
}
.progress-card__details {
  margin-top: 12px;
  font-size: 13px;
}
.progress-card__details summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 12px;
  font-family: "IBM Plex Mono", monospace;
}
.chip__muted {
  color: var(--ink-soft);
  font-family: inherit;
}
.chip-btn {
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  padding: 0;
  line-height: 1;
}
/* 「撮影済み」と「未撮影」のうち少ない方(=注目すべき方)だけを目立たせる。
   多い方を塗ってしまうと表全体が同じ色で埋まって逆に見づらくなるため。 */
.pp-table tr.highlight {
  background: var(--accent-soft);
}
.pp-table tbody tr:nth-child(even):not(.highlight) {
  background: var(--paper);
}
.fleet-matrix-details {
  margin: 20px 0;
}
.fleet-matrix-details table.fleet-matrix,
.fleet-matrix-details .table-scroll {
  margin-top: 10px;
}

.record-card--selectable {
  position: relative;
}
.record-card__select {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: var(--surface);
  border-radius: 6px;
  padding: 4px 6px;
  box-shadow: var(--shadow);
}
.view-toggle .btn.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.fleet-matrix-details > summary {
  cursor: pointer;
}
.fleet-matrix-details > summary::-webkit-details-marker {
  margin-right: 4px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
  color: var(--ink);
}
.checkbox-row label {
  margin: 0;
  font-weight: 400;
  color: var(--ink);
}

/* ---------- カード類 ---------- */
.stats-bar {
  display: flex;
  gap: 14px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.stat-tile {
  flex: 1;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.stat-tile .stat-value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-tile .stat-label {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

#photo-map {
  height: 320px;
  margin: 24px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.pin-count-icon {
  background: var(--accent);
  color: #1a1200;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  font-family: "IBM Plex Mono", monospace;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.chart-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
}
.founder-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.chart-card canvas {
  max-height: 260px;
}
.chart-empty {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 8px 0 0;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.record-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
  display: flex;
  flex-direction: column;
}
.record-card:hover {
  transform: translateY(-2px);
}
.record-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--primary-soft);
}
.record-card__body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.record-card h2 {
  font-size: 20px;
  margin: 0;
}
.record-card__meta {
  font-size: 13px;
  color: var(--ink-soft);
}
.record-card__meta b {
  color: var(--ink);
  font-weight: 600;
}
.record-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ---------- テーブル ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: var(--surface);
  margin: 20px 0;
}
table.pp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.pp-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
table.pp-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
table.pp-table tr:hover td {
  background: var(--primary-soft);
}
table.pp-table button {
  font-family: inherit;
}

.search-input {
  max-width: 320px;
  margin: 16px 0;
}

/* ---------- ログインページ ---------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0c2038 0%, #16385c 40%, #2f6a9c 75%, #6fa3c9 100%);
}
.sky-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cloud {
  position: absolute;
  width: 140px;
  height: 46px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  filter: blur(1px);
  animation: drift-cloud linear infinite;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}
.cloud::before {
  width: 70px;
  height: 70px;
  top: -34px;
  left: 15px;
}
.cloud::after {
  width: 50px;
  height: 50px;
  top: -22px;
  right: 20px;
}
.cloud--1 { top: 12%; left: -200px; opacity: 0.5; animation-duration: 38s; animation-delay: 0s; }
.cloud--2 { top: 30%; left: -200px; opacity: 0.35; transform: scale(0.7); animation-duration: 52s; animation-delay: 8s; }
.cloud--3 { top: 62%; left: -200px; opacity: 0.3; transform: scale(0.9); animation-duration: 46s; animation-delay: 3s; }
.cloud--4 { top: 78%; left: -200px; opacity: 0.4; transform: scale(0.6); animation-duration: 60s; animation-delay: 16s; }
@keyframes drift-cloud {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 300px)); }
}
.flying-plane {
  position: absolute;
  font-size: 28px;
  left: -60px;
  transform: rotate(20deg);
  animation: fly-across linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.plane-icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: rgba(255, 255, 255, 0.9);
}
.flying-plane::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 50px;
  height: 3px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.6), transparent);
  transform: translateY(-50%);
}
.flying-plane--1 { top: 22%; font-size: 30px; animation-duration: 11s; animation-delay: 0.5s; }
.flying-plane--2 { top: 55%; font-size: 22px; opacity: 0.85; animation-duration: 16s; animation-delay: 4s; }
.flying-plane--3 { top: 70%; font-size: 34px; animation-duration: 13s; animation-delay: 8s; }
.flying-plane--4 { top: 38%; font-size: 18px; opacity: 0.7; animation-duration: 19s; animation-delay: 2s; }
.flying-plane--5 { top: 12%; font-size: 24px; opacity: 0.8; animation-duration: 14s; animation-delay: 10s; }
.flying-plane--6 { top: 85%; font-size: 20px; opacity: 0.65; animation-duration: 21s; animation-delay: 6s; }
@keyframes fly-across {
  from { transform: translate(0, 0) rotate(20deg); }
  to { transform: translate(calc(100vw + 120px), -14vh) rotate(20deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud,
  .flying-plane {
    animation: none;
  }
}
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 32px 28px;
}
.auth-card__mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.message {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 12px;
}
.message.info {
  background: var(--primary-soft);
  color: var(--primary);
}
.message.error {
  background: var(--danger-soft);
  color: var(--danger);
}
/* ---------- プロフィールページ ---------- */
.profile-shell {
  max-width: 480px;
  margin: 40px auto;
  padding: 0 20px 60px;
}
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-soft);
  border: 1px solid var(--border);
}
.profile-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  border: 1px solid var(--border);
}
/* ---------- レコード詳細ページ ---------- */
.record-detail {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 20px 60px;
}
.record-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.record-detail__header h1 {
  margin: 0;
}
.share-menu {
  position: relative;
  flex: none;
}
.share-menu__panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 14px;
  z-index: 30;
}
.share-menu.is-open .share-menu__panel {
  display: block;
}
.share-menu__section {
  margin-bottom: 14px;
}
.share-menu__section:last-child {
  margin-bottom: 0;
}
.share-menu__label {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
.record-detail img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 16px 0;
}
.record-detail dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  font-size: 14px;
  margin: 20px 0;
}
.record-detail dt {
  color: var(--ink-soft);
  font-weight: 600;
}
.record-detail dd {
  margin: 0;
}

/* ---------- 航空会社別ページ: infobox・Fleet Matrix ---------- */
.infobox-card {
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 20px 0;
}
table.infobox {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.infobox th {
  background: var(--primary);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  letter-spacing: 0.02em;
  padding: 12px;
}
table.infobox td {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  color: var(--ink);
}
table.infobox td:first-child {
  color: var(--ink-soft);
  white-space: nowrap;
  width: 40%;
}
table.infobox .airline-logo__container {
  background: var(--primary-soft);
  text-align: center;
}
table.infobox .airline-logo__img {
  max-height: 90px;
  width: auto !important;
  margin: 0 auto;
}
table.infobox ul {
  margin: 0;
  padding: 0;
}

.fleet-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 20px 0;
}
.fleet-matrix th {
  background: var(--primary-soft);
  color: var(--primary);
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fleet-matrix td {
  padding: 8px 14px;
  border-top: 1px solid var(--border);
}
.pp-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  padding: 24px 20px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.pp-tabs {
  display: flex;
  gap: 4px;
  margin: 16px 0;
  border-bottom: 1px solid var(--border);
}
.pp-tabs__item {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.pp-tabs__item:hover {
  color: var(--ink);
}
.pp-tabs__item.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.pp-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}
.pp-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.fleet-matrix tr.total td {
  font-weight: 700;
  background: var(--primary-soft);
}

/* ---------- ランディングページ ---------- */
.landing-hero {
  background: linear-gradient(180deg, var(--primary-soft), transparent 70%);
  padding: 56px 20px 48px;
  text-align: center;
}
.landing-hero__inner {
  max-width: 640px;
  margin: 0 auto;
}
.landing-hero__promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.landing-hero__promo:hover {
  transform: translateY(-1px);
}
.landing-hero__promo-text s {
  color: var(--ink-soft);
  font-weight: 400;
  margin-right: 2px;
}
.landing-hero h1 {
  font-size: 40px;
  line-height: 1.25;
  margin: 0 0 16px;
}
.landing-hero__subtitle {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 28px;
}
.landing-hero__cta {
  font-size: 16px;
  padding: 14px 32px;
}
.landing-hero__note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--ink-soft);
  opacity: 0.7;
}

.landing-page {
  max-width: 960px;
}
.landing-section {
  margin: 64px 0;
}
.landing-section__title {
  text-align: center;
  font-size: 28px;
  margin: 0 0 8px;
}
.landing-section__subtitle {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.landing-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.landing-why-card {
  text-align: center;
  padding: 8px;
}
.landing-why-card__icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.landing-why-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.landing-why-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.landing-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.landing-mock-map {
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
}
.landing-mock-map svg {
  width: 100%;
  height: 100%;
  display: block;
}
.landing-mock-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.landing-mock-pie {
  width: 100px;
  height: 100px;
  margin: 8px auto 0;
  display: block;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.landing-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.landing-feature-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.landing-feature-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.landing-final-cta {
  text-align: center;
  padding: 48px 20px;
  background: var(--primary-soft);
  border-radius: 16px;
}
.landing-final-cta h2 {
  margin: 0 0 20px;
  font-size: 24px;
}

@media (max-width: 640px) {
  .landing-hero h1 {
    font-size: 30px;
  }
}
