/* ============================================
   ちょうちょ旅 — 共通スタイル
   ============================================ */
:root {
  --cream: #fdfaf3;
  --cream2: #f6efe2;
  --ink: #43414e;
  --ink-soft: #6f6c7d;
  --blue: #5b8ed6;
  --blue-deep: #3f6cb0;
  --lav: #a48fd1;
  --lav-soft: #e6def5;
  --gold: #e9b84c;
  --leaf: #8db07a;
  --pink: #e8a2b8;
  --card: #ffffff;
  --shadow: 0 6px 24px rgba(90, 80, 130, 0.10);
  --shadow-sm: 0 3px 10px rgba(90, 80, 130, 0.08);
  --radius: 18px;
  --font-hand: "Shippori Mincho", "Yu Mincho", serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(164, 143, 209, 0.18);
}
.site-header .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.08em;
}
.brand .brand-bf { width: 34px; height: 28px; }
.brand small {
  font-size: 0.62rem;
  color: var(--ink-soft);
  letter-spacing: 0.2em;
  font-family: var(--font-body);
  margin-left: 2px;
}
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: all 0.25s;
}
.site-nav a:hover { background: var(--lav-soft); color: var(--ink); }
.site-nav a.active {
  background: linear-gradient(135deg, var(--blue), var(--lav));
  color: #fff;
}

/* ---------- ヒーロー（ガラスの蝶） ---------- */
.hero-glass {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 90px 20px 110px;
  /* 淡い空・遠景・花畑の光（/images/hero-nature-bg.jpg を置くと写真に切り替わる） */
  background:
    radial-gradient(ellipse 55% 38% at 12% 92%, rgba(186, 168, 226, 0.38), transparent 65%),
    radial-gradient(ellipse 45% 32% at 88% 90%, rgba(255, 255, 255, 0.65), transparent 60%),
    radial-gradient(ellipse 60% 36% at 70% 96%, rgba(203, 186, 235, 0.3), transparent 65%),
    radial-gradient(ellipse 90% 42% at 50% 108%, rgba(253, 250, 243, 0.95), transparent 72%),
    radial-gradient(ellipse 70% 45% at 76% 6%, rgba(255, 255, 255, 0.6), transparent 65%),
    radial-gradient(ellipse 80% 30% at 30% 55%, rgba(210, 228, 246, 0.55), transparent 70%),
    linear-gradient(180deg, #cfe2f6 0%, #dde9f7 32%, #e9edf2 55%, #f7f2e9 82%, var(--cream) 100%);
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/hero-nature-bg.jpg");
  background-size: cover;
  background-position: center;
}
.hero-bokeh { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-bokeh .bk {
  position: absolute;
  border-radius: 50%;
  filter: blur(7px);
  animation: bkPulse 9s ease-in-out infinite;
}
.bk1 { width: 130px; height: 130px; left: 6%; bottom: 8%; background: rgba(255, 255, 255, 0.5); }
.bk2 { width: 70px; height: 70px; left: 16%; bottom: 22%; background: rgba(203, 186, 235, 0.5); animation-delay: -3s; }
.bk3 { width: 100px; height: 100px; right: 8%; bottom: 12%; background: rgba(255, 255, 255, 0.55); animation-delay: -5s; }
.bk4 { width: 54px; height: 54px; right: 20%; bottom: 30%; background: rgba(186, 208, 240, 0.55); animation-delay: -7s; }
.bk5 { width: 44px; height: 44px; left: 30%; top: 14%; background: rgba(255, 255, 255, 0.45); animation-delay: -2s; }
.bk6 { width: 60px; height: 60px; right: 32%; top: 10%; background: rgba(255, 255, 255, 0.4); animation-delay: -6s; }
@keyframes bkPulse {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 0.95; transform: translateY(-12px); }
}

/* 中央のガラスカード */
.glass-card {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  padding: clamp(34px, 6vw, 58px) clamp(22px, 5vw, 66px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.22));
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  box-shadow:
    0 24px 60px rgba(100, 120, 170, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.hero-en {
  font-family: var(--font-hand);
  font-size: clamp(0.7rem, 1.8vw, 0.88rem);
  letter-spacing: 0.34em;
  color: #56719f;
}
.hero-title {
  margin-top: 10px;
  font-family: var(--font-hand);
  font-size: clamp(2.7rem, 8vw, 4.7rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(115deg, #29426e 10%, #4a6cae 55%, #263e68 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .accent {
  background: linear-gradient(135deg, #3d5f9e, #7a6cc0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 16px;
  font-family: var(--font-hand);
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: 0.12em;
  color: #35486d;
}
.hero-lead {
  margin: 14px auto 0;
  max-width: 34em;
  font-size: clamp(0.82rem, 2.3vw, 0.94rem);
  line-height: 2;
  color: #556482;
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #33507e;
  box-shadow: 0 8px 22px rgba(100, 120, 170, 0.16);
  min-width: 190px;
  justify-content: center;
}
.btn-glass .arrow { margin-left: 6px; transition: transform 0.25s; }
.btn-glass:hover { background: rgba(255, 255, 255, 0.85); }
.btn-glass:hover .arrow { transform: translateX(4px); }

/* ガラスの蝶：その場でゆっくり羽ばたき＋ふわっと浮遊 */
.hero-bf {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  animation: heroFloat var(--d, 8s) ease-in-out infinite;
  will-change: transform;
}
.hero-bf svg, .hero-bf img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(110, 130, 180, 0.3));
}
.hero-bf .wing { animation-name: flapSoft; animation-duration: 2s; }
/* 実画像（PNG）のときは、ゆるやかな3Dの煽りで羽ばたきを表現 */
.hero-bf img {
  animation: imgFlap 2.2s ease-in-out infinite alternate;
  transform-origin: 50% 55%;
  backface-visibility: visible;
}
@keyframes imgFlap {
  from { transform: perspective(700px) rotateY(-9deg) rotateX(2deg); }
  to   { transform: perspective(700px) rotateY(13deg) rotateX(-3deg); }
}
.hero-bf-1 { width: clamp(110px, 21vw, 250px); left: 2%; top: 5%; --d: 8.5s; }
.hero-bf-2 { width: clamp(120px, 23vw, 280px); right: 1%; top: 36%; --d: 10s; }
.hero-bf-3 { width: clamp(64px, 11vw, 125px); left: 7%; top: 58%; --d: 7s; }
.hero-bf-4 { width: clamp(52px, 8vw, 95px); right: 13%; top: 6%; --d: 6.5s; opacity: 0.88; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-16px) rotate(calc(var(--r, 0deg) + 4deg)); }
}

/* 画面全体を1匹だけ飛ぶ透明な蝶 */
.glass-flyer {
  position: fixed;
  left: 0;
  top: 0;
  width: 84px;
  z-index: 90;
  pointer-events: none;
  opacity: 0.92;
  will-change: transform;
}
.glass-flyer img, .glass-flyer svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(110, 130, 180, 0.3));
  animation: glassFlutter 0.45s ease-in-out infinite alternate;
}
@keyframes glassFlutter {
  from { transform: perspective(500px) rotateY(-22deg); }
  to   { transform: perspective(500px) rotateY(22deg); }
}
@media (max-width: 640px) {
  .glass-flyer { width: 62px; }
}

@media (max-width: 640px) {
  .hero-glass { min-height: 88vh; padding: 60px 16px 90px; }
  .hero-title { font-size: clamp(2rem, 10vw, 2.6rem); white-space: nowrap; }
  .hero-bf-1 { left: -6%; top: 1%; width: 96px; }
  .hero-bf-2 { right: -6%; top: auto; bottom: 4%; }
  .hero-bf-3 { display: none; }
  .btn-glass { min-width: 160px; }
  .brand { font-size: 1.1rem; white-space: nowrap; }
  .brand small { display: none; }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: 999px;
  border: none;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--lav));
  color: #fff;
  box-shadow: 0 6px 18px rgba(91, 142, 214, 0.35);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--blue-deep);
  box-shadow: var(--shadow-sm);
}

/* 舞う蝶 */
.bf-stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bf-fly { position: absolute; will-change: transform; }
.bf-fly svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 8px rgba(80, 70, 120, 0.18)); }
.wing { transform-box: view-box; transform-origin: 50% 54%; }
/* 左右の翅は同じ位相で同時に開閉（パタパタ） */
.wing-l, .wing-r { animation: flap 0.8s ease-in-out infinite alternate; }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(0.4); } }
/* ヒーローのガラスの蝶は、ほぼ開いたまま静かに羽ばたく */
@keyframes flapSoft { from { transform: scaleX(1); } to { transform: scaleX(0.72); } }

/* 波の区切り */
.divider { display: block; width: 100%; height: 60px; margin-top: -1px; }

/* ---------- セクション ---------- */
.section { padding: 56px 0; }
.section-title {
  text-align: center;
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin-bottom: 8px;
}
.section-title-en {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  color: var(--lav);
  text-transform: uppercase;
  margin-bottom: 34px;
}
.section-more { text-align: center; margin-top: 30px; }

/* ---------- 統計カード ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 12px;
  text-align: center;
}
.stat-card .num {
  font-family: var(--font-hand);
  font-size: 2.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-deep), var(--lav));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.3;
}
.stat-card .label { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.1em; }

/* ---------- 日本タイルマップ ---------- */
.jp-map-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 16px 22px;
  overflow-x: auto;
}
.jp-map {
  --ts: clamp(26px, 6.6vw, 44px);
  display: grid;
  grid-template-columns: repeat(12, var(--ts));
  grid-auto-rows: var(--ts);
  gap: 4px;
  justify-content: center;
}
.jp-tile {
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--ts) * 0.30);
  color: #b9b3c6;
  background: #f1edf7;
  position: relative;
  transition: transform 0.2s;
  cursor: default;
  line-height: 1.1;
  text-align: center;
}
.jp-tile.visited {
  background: linear-gradient(135deg, var(--blue), var(--lav));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(91, 142, 214, 0.35);
}
.jp-tile.visited:hover { transform: scale(1.12); z-index: 2; }
.jp-tile.visited::after {
  content: attr(data-count) "枚";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.jp-tile.visited:hover::after { opacity: 1; }
.jp-map-legend {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.jp-map-legend .chip {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  vertical-align: -2px;
  margin: 0 4px 0 12px;
}

/* ---------- 写真グリッド ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.photo-card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  border: none;
  padding: 0;
  text-align: left;
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.photo-card .ph {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--cream2);
}
.photo-card .meta { padding: 9px 12px 11px; }
.photo-card .sp { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.photo-card .sub { font-size: 0.72rem; color: var(--ink-soft); }

/* ---------- フィルター ---------- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}
.filters select {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--lav-soft);
  background: #fff;
  color: var(--ink);
  outline: none;
}
.filters select:focus { border-color: var(--lav); }
.filter-count { align-self: center; font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- ライトボックス ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(40, 35, 60, 0.88);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lb-inner { max-width: 900px; width: 100%; text-align: center; }
.lb-img-box { position: relative; }
.lb-img {
  max-width: 100%;
  max-height: 72vh;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  background: #222;
}
.lb-spin {
  color: #fff;
  padding: 60px 0;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}
.lb-caption { color: #fff; margin-top: 16px; }
.lb-caption .sp { font-family: var(--font-hand); font-size: 1.3rem; letter-spacing: 0.1em; }
.lb-caption .sub { font-size: 0.85rem; opacity: 0.85; margin-top: 2px; }
.lb-caption .note { font-size: 0.88rem; opacity: 0.92; margin-top: 8px; white-space: pre-wrap; }
.lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  line-height: 1;
  opacity: 0.85;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background 0.2s;
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ---------- 日記 ---------- */
.diary-list { max-width: 760px; margin: 0 auto; display: grid; gap: 26px; }
.diary-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
}
.diary-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--lav), var(--pink), var(--gold));
}
.diary-date {
  display: inline-block;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--lav));
  padding: 3px 14px;
  border-radius: 999px;
  letter-spacing: 0.1em;
}
.diary-title {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 12px 0 10px;
  letter-spacing: 0.06em;
}
.diary-body { font-size: 0.95rem; white-space: pre-wrap; }
.diary-photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.diary-photos button {
  border: none;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  width: 104px;
  height: 78px;
  box-shadow: var(--shadow-sm);
}
.diary-photos img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 空メッセージ・ローディング ---------- */
.empty-msg {
  text-align: center;
  color: var(--ink-soft);
  padding: 50px 20px;
  font-size: 0.95rem;
}
.loading-msg { text-align: center; color: var(--lav); padding: 50px 20px; letter-spacing: 0.2em; }

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 60px;
  padding: 36px 20px 30px;
  text-align: center;
  background: linear-gradient(180deg, transparent, var(--lav-soft));
  color: var(--ink-soft);
  font-size: 0.8rem;
}
.site-footer .foot-bf { width: 40px; height: 34px; margin: 0 auto 8px; opacity: 0.9; }
.admin-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  color: #b9b3c6;
}
.admin-link:hover { color: var(--lav); }

/* ---------- 管理ページ ---------- */
.admin-wrap { max-width: 860px; margin: 30px auto 60px; padding: 0 20px; }
.admin-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 24px;
}
.admin-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-tabs button {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--lav-soft);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.admin-tabs button.active {
  background: linear-gradient(135deg, var(--blue), var(--lav));
  border-color: transparent;
  color: #fff;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.form-row input[type="text"],
.form-row input[type="date"],
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1.5px solid #e3ddf0;
  border-radius: 10px;
  background: #fdfcff;
  outline: none;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--lav); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.dropzone {
  border: 2.5px dashed var(--lav);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-soft);
  background: #fbfaff;
  cursor: pointer;
  transition: background 0.2s;
}
.dropzone:hover, .dropzone.over { background: var(--lav-soft); }
.pending-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed #e3ddf0;
}
@media (max-width: 560px) { .pending-item { grid-template-columns: 1fr; } }
.pending-item .prev { width: 130px; height: 98px; object-fit: cover; border-radius: 10px; }
.pending-item .rm {
  background: none; border: none; color: #c66; font-size: 0.78rem; margin-top: 4px;
}
.attach-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.attach-thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; }

.manage-list { display: grid; gap: 10px; }
.manage-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #eee7f8;
  border-radius: 12px;
  background: #fff;
}
.manage-item img { width: 74px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.manage-item .info { flex: 1; min-width: 0; font-size: 0.85rem; }
.manage-item .info .t { font-weight: 700; }
.manage-item .info .s { color: var(--ink-soft); font-size: 0.76rem; }
.manage-item .acts { display: flex; gap: 6px; flex-shrink: 0; }
.mini-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--lav-soft);
  background: #fff;
  font-size: 0.78rem;
  color: var(--ink);
}
.mini-btn.danger { border-color: #f3d3d3; color: #c05555; }
.mini-btn:hover { background: var(--lav-soft); }
.mini-btn.danger:hover { background: #fdeaea; }

.status-msg {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin: 14px 0;
  display: none;
}
.status-msg.show { display: block; }
.status-msg.ok { background: #e8f5e2; color: #4a7a38; }
.status-msg.err { background: #fdeaea; color: #b04a4a; }
.status-msg.busy { background: #eef2fc; color: var(--blue-deep); }

/* 編集モーダル */
.modal {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(40, 35, 60, 0.6);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
}
.modal-box h3 { font-family: var(--font-hand); margin-bottom: 18px; letter-spacing: 0.08em; }
.modal-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* 動きを減らす設定の人向け */
@media (prefers-reduced-motion: reduce) {
  .wing-l, .wing-r, .bf-fly, .hero-bf, .hero-bf img, .hero-bokeh .bk,
  .glass-flyer, .glass-flyer img, .glass-flyer svg { animation: none !important; }
}
