/* ========================================
   どっか行く? - メインスタイルシート
   ======================================== */

/* --- 基本設定 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #fcfaf2;
  --btn-yellow: #f7f6b9;
  --btn-green: #cfd8a1;
  --card-green: #e8ec98;
  --btn-peach: #f7d9bc;
  --card-orange: #f3bf88;
  --btn-pink: #febec3;
  --text: #00081a;
  --border: #00081a;
  --font-size-base: 18px;
  --font-size-lg: 22px;
  --font-size-xl: 26px;
  --font-size-sm: 16px;
  --radius: 16px;
  --btn-min-h: 46px;
}

html {
  font-size: var(--font-size-base);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* --- 共通 --- */
.screen {
  display: none;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 12px 20px 24px;
  min-height: 100dvh;
}

.screen.active {
  display: block;
}

/* --- ヘルプボタン --- */
.help-btn {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  background: var(--btn-yellow);
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* hidden 属性は常に非表示を優先する */
[hidden] {
  display: none !important;
}

/* ========================================
   カスタムドアちゃん (4-1): くすみグリーンテーマ
   ======================================== */
/* マスコットは専用画像(assets/mascot/door_chan2.svg)を
   色加工(フィルター等)なしでそのまま表示する。画像差し替えは app.js で実施 */

/* --- カスタムドアちゃん: 名称バッジ (4-1) --- */
/* 右寄せ + 白背景(ボタンと見間違えないようにする) */
.op-app-name {
  display: block;
  width: fit-content;
  margin-left: auto;
  background: #fff;
  border: 1px solid #d0d0c8;
  border-radius: 8px;
  padding: 3px 12px;
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 6px;
}

/* --- カスタムドアちゃん: 免責注記 (4-5) --- */
.op-disclaimer {
  font-size: var(--font-size-sm);
  color: #667766;
  margin: 4px 0 8px;
  line-height: 1.5;
}

/* --- カスタムドアちゃん: 大容量版(?opurl=)読み込み失敗の注記 (4-6) --- */
.op-load-error {
  font-size: var(--font-size-sm);
  color: #a05040;
  background: #f6e5dd;
  border: 1px solid #e5b8a8;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 4px 0 8px;
  line-height: 1.5;
}

/* --- マスコットエリア(ホーム・結果共通) --- */
/* ドアちゃん+吹き出しのセットを画面中央に配置する */
.mascot-area,
.result-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.mascot-img {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.speech-bubble {
  position: relative;
  display: inline-block;
  background: #fff;
  border: 2.5px solid var(--border);
  border-radius: 18px;
  padding: 10px 20px;
  font-size: var(--font-size-lg);
  font-weight: 700;
}

/* 吹き出しのしっぽ(左向き・縦中央): ドアちゃんの右端に接続する */
.speech-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 14px solid var(--border);
}

.speech-bubble::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 11px solid #fff;
  z-index: 1;
}

/* --- 入力セクション --- */
.input-section {
  margin-top: 8px;
}

.input-group {
  margin-bottom: 10px;
}

.input-label-group {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 6px;
}

.input-group-time {
  margin-top: 14px;
  margin-bottom: 6px;
}

.input-label-time {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* --- 3択セグメントボタン --- */
.segment-group {
  display: flex;
  gap: 8px;
}

.segment-btn {
  flex: 1;
  min-height: var(--btn-min-h);
  border: none;
  border-radius: 20px;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s;
  position: relative;
  padding: 8px 4px;
  text-align: center;
  line-height: 1.3;
}

.segment-btn:active {
  transform: scale(0.96);
}

.segment-btn.selected {
  transform: translate(-1px, -1px);
}

/* 色分け: 左(屋外寄り/にぎやか/歩く) */
.segment-btn.color-peach {
  background: var(--btn-peach);
}

/* 色分け: 中(どちらでも) */
.segment-btn.color-yellow {
  background: var(--btn-yellow);
}

/* 色分け: 右(屋内寄り/ゆったり/電車) */
.segment-btn.color-green {
  background: var(--btn-green);
}

/* 選択中マーク(画像) */
.segment-btn .selected-mark {
  display: none;
}

.segment-btn.selected .selected-mark {
  display: block;
  position: absolute;
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  pointer-events: none;
  z-index: 1;
  object-fit: contain;
}

/* --- 外出時間ボタン --- */
.time-group {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.time-btn {
  flex: 1;
  min-width: 0;
  min-height: var(--btn-min-h);
  border: none;
  border-radius: 20px;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s;
  padding: 8px 4px;
  text-align: center;
}

.time-btn:active {
  transform: scale(0.96);
}

.time-btn.selected {
  transform: translate(-1px, -1px);
}

.time-btn .selected-mark {
  display: none;
}

.time-btn.selected .selected-mark {
  display: block;
  position: absolute;
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  pointer-events: none;
  z-index: 1;
  object-fit: contain;
}

.time-btn {
  position: relative;
}

.time-btn.color-yellow {
  background: var(--btn-yellow);
}

/* 「もっと」ドロップダウン */
.more-time-wrapper {
  display: none;
  margin-top: 8px;
}

.more-time-wrapper.visible {
  display: block;
}

.more-time-select {
  width: 100%;
  min-height: var(--btn-min-h);
  border: none;
  border-radius: 20px;
  background: var(--btn-yellow);
  font-size: var(--font-size-base);
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  appearance: auto;
}

/* --- CTAボタン --- */
.cta-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 2.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--btn-pink);
  font-size: var(--font-size-lg);
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: 3px 3px 0 var(--border);
}

/* アイコンは絶対配置で左側に固定し、文字はアイコンに影響されず中央寄せにする */
.cta-hand-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  pointer-events: none;
}

.cta-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--border);
}

/* --- 読み込み中オーバーレイ --- */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(252, 250, 242, 0.92);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.loading-overlay.visible {
  display: flex;
}

.loading-text {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--btn-green);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- 結果画面 --- */
/* マスコット・吹き出しはホーム画面と共通(サイズ・中央揃え・しっぽ接続) */

/* --- 目的地カード --- */
.destination-card {
  background: var(--card-orange);
  border: 2.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-meta {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text);
  opacity: 0.8;
}

.card-access-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text);
  font-size: var(--font-size-sm);
  font-weight: 600;
  opacity: 0.7;
  padding: 12px 8px;
  margin: -12px -8px -12px 0;
  flex-shrink: 0;
}

.card-access-link:active {
  opacity: 1;
}

.access-link-icon {
  font-size: 14px;
  line-height: 1;
}

.access-link-text {
  font-size: 14px;
  line-height: 1;
}

.pin-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.card-name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.travel-time-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  margin-top: 16px;
}

.travel-time-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: var(--font-size-base);
  font-weight: 700;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
}

.travel-time-label .travel-time-heading {
  line-height: 1.3;
}

.travel-time-label .travel-time-value {
  line-height: 1.3;
  white-space: nowrap;
}

.warning-inline {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.warning-inline .warning-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  min-width: 0;
}

.warning-inline .warning-item.warning-rain {
  background: #d6eaf8;
  border: 1.5px solid #5dade2;
}

.warning-inline .warning-item.warning-heat {
  background: #fdebd0;
  border: 1.5px solid #f0b27a;
}

.warning-inline .warning-icon {
  width: 20px;
  height: 20px;
}

.warning-inline .warning-label {
  font-size: 11px;
  white-space: nowrap;
}

/* --- 途中のおすすめラベル --- */
.section-label {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
}

/* --- 寄り道カード --- */
.stopby-card {
  background: var(--card-green);
  border: 2.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.stopby-card .card-name {
  font-size: var(--font-size-lg);
}

/* --- 操作ボタン群 --- */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.reroll-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 2.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--btn-yellow);
  font-size: var(--font-size-lg);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: 3px 3px 0 var(--border);
}

.reroll-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--border);
}

/* アイコンは絶対配置で左側に固定し、文字はアイコンに影響されず中央寄せにする */
.reroll-hand-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  pointer-events: none;
}

.back-link-btn {
  width: auto;
  align-self: center;
  min-height: 40px;
  padding: 6px 20px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--btn-green);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  opacity: 0.85;
}

.back-link-btn:active {
  opacity: 0.7;
}

.add-home-link {
  display: block;
  text-align: right;
  color: var(--text);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
}

.add-home-link:active {
  opacity: 0.6;
}

/* --- 「出先で困ったら」セクション --- */
.help-section {
  position: relative;
  margin-top: 20px;
  padding: 18px 12px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.help-section-title {
  position: absolute;
  top: -10px;
  left: 16px;
  background: #fff;
  padding: 0 6px;
  font-size: var(--font-size-base);
  font-weight: 700;
}

.help-subtitle {
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.help-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.help-btn-action {
  flex: 1;
  min-height: 64px;
  border: 1.5px solid #ccc;
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  line-height: 1.1;
  padding: 3px 2px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.help-btn-icon {
  width: 40px;
  height: 40px;
}

.help-btn-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}

.help-btn-action:active {
  opacity: 0.7;
}

/* --- ヘルプモーダル --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 8, 26, 0.3);
  z-index: 300;
  align-items: flex-start;
  justify-content: center;
}

.modal-overlay.visible {
  display: flex;
}

.modal-content {
  background: var(--bg);
  border: 2.5px solid var(--border);
  border-radius: var(--radius);
  width: 92%;
  max-width: 400px;
  max-height: 80vh;
  margin-top: 60px;
  padding: 20px;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--btn-yellow);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 10px;
}

.modal-content p, .modal-content li {
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: 8px;
}

.modal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

/* --- エラーポップアップ --- */
.error-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 8, 26, 0.3);
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.error-popup.visible {
  display: flex;
}

.error-popup-content {
  background: var(--bg);
  border: 2.5px solid var(--border);
  border-radius: var(--radius);
  width: 88%;
  max-width: 360px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
}

.error-popup-content .modal-close {
  top: 8px;
  right: 8px;
}

.error-msg {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: 16px;
  margin-top: 36px;
}

.error-popup .back-btn {
  display: inline-block;
  background: var(--btn-peach);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 24px;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
}

/* --- 警告表示 --- */
#warningContainer {
  display: none;
}

/* --- PWAインストール説明 --- */
.pwa-hint {
  display: none;
  background: var(--btn-yellow);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 8px;
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.pwa-hint.visible {
  display: block;
}

/* --- フッタ著作権 --- */
.copyright {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: 16px;
  padding-bottom: 12px;
}

/* --- データの出典リンク --- */
.credits-link {
  display: block;
  margin: -4px auto 0;
  background: none;
  border: none;
  padding: 0;
  color: #3a6ea5;
  text-decoration: underline;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.credits-link:active {
  opacity: 0.7;
}

/* --- データの出典モーダル --- */
.modal-credits-content h3 {
  padding-right: 48px;
}

.modal-credits-content .credit-section {
  margin-top: 20px;
}

.modal-credits-content .credit-section h4 {
  font-size: var(--font-size-base);
  margin-bottom: 10px;
}

.modal-credits-content ul {
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.modal-credits-content ul ul {
  margin-bottom: 0;
}

.modal-credits-content p {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --- レスポンシブ --- */
@media (max-width: 360px) {
  :root {
    --font-size-base: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
  }

  .segment-btn, .time-btn {
    font-size: 15px;
    padding: 6px 2px;
  }
}

/* ========================================
   運営者用 作成画面 (operator.html)
   ======================================== */

.operator-page {
  background: #fff;
}

.operator-screen {
  max-width: 560px;
}

.op-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 4px;
  padding-right: 76px;
}

.op-mascot-img {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

.op-header-text {
  flex: 1;
}

.op-header h1 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 6px;
}

.op-sub {
  font-size: var(--font-size-sm);
  color: #666;
  line-height: 1.6;
}

.op-section {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.op-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.op-text-input {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid #999;
  border-radius: 10px;
  font-size: var(--font-size-base);
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #fff;
}

.op-spot-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fafaf5;
  padding: 12px;
  margin-bottom: 12px;
}

.op-spot-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.op-spot-label {
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  width: 44px;
}

.op-coord-input {
  min-width: 0;
  margin-bottom: 0;
}

.op-place-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.op-place-btn {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--btn-yellow);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
}

.op-place-btn:active {
  opacity: 0.7;
}

.op-apply-btn {
  background: var(--btn-green);
  flex: 0 0 auto;
}

.op-map-import {
  display: none;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.op-map-import .op-text-input {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
}

.op-error {
  color: #c0392b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin: 8px 0;
}

.op-del-btn {
  display: block;
  margin-left: auto;
  border: none;
  background: none;
  color: #c0392b;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

.op-add-btn {
  width: 100%;
  min-height: 46px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: var(--font-size-base);
  font-weight: 700;
  cursor: pointer;
}

.op-add-btn:active {
  opacity: 0.7;
}

.op-add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.op-url-input {
  margin-top: 10px;
}

.op-data-bar-wrap {
  height: 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 4px 0 8px;
}

.op-data-bar {
  height: 100%;
  width: 0%;
  background: var(--btn-green);
  transition: width 0.15s, background-color 0.15s;
}

.op-data-bar.warn {
  background: #f0b27a;
}

.op-data-bar.full {
  background: #e74c3c;
}

.op-data-status {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.op-qr-preview {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  min-height: 40px;
}

.op-qr-preview img, .op-qr-preview svg {
  width: 220px;
  height: 220px;
  image-rendering: pixelated;
}

.op-note {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-top: 10px;
  white-space: pre-line;
  word-break: break-all;
}

.op-note-error {
  color: #c0392b;
  font-weight: 600;
}



/* --- 公式情報リンク（開館情報が重要な施設のみ） --- */
.card-link-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.card-link-group .card-access-link {
  margin: -12px 0;
  padding: 12px 4px;
}

.card-link-group .card-access-link:last-child {
  margin-right: -8px;
}

.card-official-link {
  opacity: 0.78;
}


/* --- 結果画面：最新情報確認の短い注記 --- */
.result-disclaimer {
  margin: 0;
  padding: 1px 4px 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.4;
  color: #666;
}

/* --- ホーム画面：PWA追加は補助導線としてフッタへ --- */
.add-home-link-footer {
  text-align: center;
  margin: 7px auto 0;
  padding: 2px 0;
  font-size: 13px;
}


/* --- クーリング系寄り道：カテゴリだけ水色マーカー + 3行固定 --- */
.stopby-card-cooling .card-name {
  margin-bottom: 6px;
}

.cooling-meta-row {
  display: block;
  min-width: 0;
  line-height: 1.5;
}

.cooling-category-marker {
  display: inline-flex;
  align-items: center;
  opacity: 0.82;
  padding: 3px 6px;
  border-radius: 6px;
  background: #cfeef7;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.cooling-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin-top: 3px;
}

.cooling-status-row .card-link-group {
  margin-left: auto;
}

/* クーリング系では3行目として独立しているため、
   通常カード用の大きな負マージンを弱める。 */
.cooling-status-row .card-link-group .card-access-link {
  margin: -6px 0;
  padding: 8px 4px;
}

.cooling-link-row .card-link-group .card-access-link:last-child {
  margin-right: -8px;
}
