/* trip-shiori 骨格スタイル（デザインシステムは今後ここに集約する） */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --border: #e3ddd2;
  --accent: #2f7d5b;
  --accent-soft: #e7f2ec;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.site-header {
  padding: 24px 16px 8px;
  text-align: center;
}
.site-header h1 { margin: 0; font-size: 28px; letter-spacing: 0.05em; }
.tagline { color: var(--muted); margin: 4px 0 0; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 16px 32px;
}

.tabs { display: flex; gap: 8px; margin: 12px 0; }
.tab {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 15px;
  cursor: pointer;
}
.tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.card h2 { margin-top: 0; font-size: 18px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 13px; color: var(--muted); }
label input, label select, label textarea { margin-top: 4px; }
.check-inline { display: flex; align-items: center; gap: 6px; padding-top: 20px; }

input[type="text"], input[type="date"], input[type="time"],
input[type="search"], input[type="url"], select, textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}

.link-box {
  margin-top: 16px;
  padding: 14px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.link-box label { color: var(--text); font-weight: 600; font-size: 14px; }

.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.status { font-size: 13px; min-height: 1.2em; }

.method {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 10px;
  padding: 0 12px;
}
.method summary {
  cursor: pointer;
  padding: 10px 0;
  font-size: 14px;
  list-style: none;
}
.open-label { color: var(--accent); font-size: 12.5px; margin-left: 6px; }
.method-body { padding: 0 0 12px; }

.saved-tabs { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.saved-tab {
  border: 1px solid var(--border);
  background: var(--surface, #fff);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
}
.saved-tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.saved-plan-list { list-style: none; margin: 0; padding: 0; }
.saved-plan-list li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; font-size: 13.5px; }
.saved-note { color: var(--accent); font-size: 12.5px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.leg {
  color: var(--muted);
  font-size: 13px;
  border-left: 3px dashed var(--border);
  margin-left: 10px;
  padding: 6px 0 6px 14px;
}
.spot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 8px 0;
}
.spot-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.spot-name { font-weight: 700; font-size: 16px; }
.spot-time { color: var(--accent); font-weight: 600; white-space: nowrap; }
.stay-control { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; }
.stay-control button {
  width: 34px; height: 30px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.stay-control select { width: auto; }
.spot textarea { margin-top: 8px; }
.spot .remove {
  border: none; background: none; color: var(--muted);
  cursor: pointer; font-size: 12.5px;
}

.summary { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.actions button {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.actions button[disabled] { opacity: 0.45; cursor: not-allowed; }
#btn-calendar, #btn-share-text { background: #fff; color: var(--accent); }

.blog-preview { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 8px; }
.blog-preview h3 { margin-bottom: 4px; }

.site-footer { text-align: center; color: var(--muted); font-size: 12.5px; padding: 16px; }

/* 天気バナー（§11） */
.weather-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.weather-banner[hidden] { display: none; }
.weather-icon { font-size: 24px; line-height: 1.3; }
.weather-text { margin: 0; font-weight: 600; }
.weather-alert { margin: 4px 0 0; font-size: 13px; color: #a3540a; }

/* スポットカード内の天気・アフィリエイト枠（§9・§11） */
.spot-weather { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.affiliate-slot { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.pr-label {
  border: 1px solid var(--border); border-radius: 4px;
  padding: 0 4px; font-size: 11px;
}

/* フッター（応援ボタン等） */
.footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.support-btn { color: var(--accent); }
