@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600&family=Noto+Sans+JP:wght@400;500;700&family=Playfair+Display:wght@400;500&display=swap');

:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #8a8a8a;
  --text-muted: #b0b0b0;
  --border: #e8e8e6;
  --border-strong: #d8d8d6;
  --primary: #1a1a1a;
  --primary-hover: #333;
  --accent: #c0743a;
  --accent-soft: #faf3ec;
  --success: #34c759;
  --danger: #e85d5d;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.18);
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
          "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-hero: 'Josefin Sans', 'Playfair Display', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: all .15s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: #fafafa; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.toggle {
  position: relative; width: 48px; height: 28px; border-radius: 999px;
  background: #d8d8d6; transition: background .2s ease; flex: none;
}
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease;
}
.toggle.on { background: var(--primary); }
.toggle.on::after { transform: translateX(20px); }

.field { margin-bottom: 22px; }
.field label, .field-label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 8px;
}
.input, select.input {
  width: 100%; padding: 13px 15px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); appearance: none;
}
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px;
}
.input:focus, select.input:focus { outline: none; border-color: var(--primary); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px; animation: fade .15s ease;
}
.modal {
  background: #fff; border-radius: var(--radius-lg); padding: 32px;
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: pop .18s ease;
}
.modal h2 { font-size: 22px; margin-bottom: 26px; }
.modal-divider { height: 1px; background: var(--border); margin: 22px 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

#toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a1a1a; color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: all .25s ease; z-index: 2000;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.admin-header {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 16px 32px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.admin-brand { font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.admin-brand span { color: var(--text-muted); font-weight: 400; }
.admin-wrap { max-width: 1140px; margin: 0 auto; padding: 36px 32px 80px; }
.admin-title { font-size: 26px; font-weight: 700; }
.admin-sub { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 22px; gap: 16px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 8px; }
.filter-tabs button {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: #fff; border: 1px solid var(--border-strong); color: var(--text-secondary);
}
.filter-tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.album-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.album-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.album-card .thumb { aspect-ratio: 16/10; background: #eee center/cover; position: relative; }
.album-card .badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; backdrop-filter: blur(6px);
}
.badge.pub { background: rgba(52,199,89,.92); color: #fff; }
.badge.draft { background: rgba(0,0,0,.55); color: #fff; }
.badge.exp { background: rgba(232,93,93,.92); color: #fff; }
.album-card .body { padding: 16px; }
.album-card .name { font-weight: 700; font-size: 15px; }
.album-card .meta { color: var(--text-secondary); font-size: 12.5px; margin-top: 4px; }
.album-card .links { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip-link {
  font-size: 12px; padding: 5px 11px; border-radius: 999px; background: #f3f3f1;
  color: var(--text); display: inline-flex; gap: 4px; align-items: center;
}
.chip-link:hover { background: #e9e9e7; }
.card-add {
  display: flex; align-items: center; justify-content: center; min-height: 240px;
  border: 2px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-muted);
  font-size: 40px; background: #fcfcfb; transition: all .2s;
}
.card-add:hover { border-color: var(--primary); color: var(--primary); background: #fff; }

.stats { display: flex; gap: 48px; margin-bottom: 30px; }
.stat .num { font-size: 32px; font-weight: 700; }
.stat .lbl { color: var(--text-secondary); font-size: 13px; }

.seg { display: inline-flex; background: #f0f0ee; border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { padding: 7px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.seg button.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; max-height: 50vh; overflow-y: auto; }
.pick-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer; border: 3px solid transparent; }
.pick-grid img.sel { border-color: var(--primary); }

.dropzone {
  border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 32px 20px;
  text-align: center; cursor: pointer; background: #fcfcfb; transition: all .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: #fff; }
.up-row { padding: 8px 0; border-bottom: 1px solid var(--border); }
.up-row:last-child { border-bottom: none; }
.up-name { font-size: 13.5px; }
.up-name .admin-sub { display: inline; }
.up-bar { height: 5px; background: #eee; border-radius: 999px; margin-top: 6px; overflow: hidden; }
.up-bar-fill { height: 100%; background: var(--primary); width: 0; transition: width .2s; }

.dl-opt {
  display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); margin-bottom: 12px; cursor: pointer; transition: all .15s;
}
.dl-opt:hover { border-color: var(--primary); background: #fafafa; }
.dl-opt-ic { font-size: 26px; flex: none; }
.dl-opt-t { font-weight: 700; font-size: 15px; }
.dl-opt-d { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }

.hero {
  position: relative; height: 100vh; min-height: 560px;
  background: #222 center/cover no-repeat; color: #fff; overflow: hidden;
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.05) 40%, rgba(0,0,0,.35)); }
.hero-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
}
.hero-logo { font-size: 14px; letter-spacing: .08em; font-weight: 300; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-logo b { font-weight: 600; }
.hero-share {
  display: inline-flex; gap: 6px; align-items: center; font-size: 13px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
}
.hero-center {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2;
}
.hero-text {
  font-family: var(--font-hero); font-weight: 300; letter-spacing: .22em;
  font-size: clamp(34px, 7vw, 76px); text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0,0,0,.45); text-indent: .22em;
}
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 11px; letter-spacing: .3em; writing-mode: vertical-rl; opacity: .85;
  animation: floaty 1.8s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateX(-50%) translateY(8px); } }

.album-info { background: #fff; padding: 26px 28px 22px; border-bottom: 1px solid var(--border); }
.album-info h1 { font-size: 22px; font-weight: 700; }
.album-info .meta { color: var(--text-secondary); font-size: 13.5px; margin-top: 5px; }

.gallery-bar {
  position: sticky; top: 0; z-index: 41; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 28px; height: 58px;
}
.gallery-bar .ttl { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-bar .ttl small { display: block; color: var(--text-secondary); font-weight: 400; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.gallery-bar .actions { display: flex; gap: 10px; position: relative; flex: none; }

.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  width: 260px; overflow: hidden; z-index: 60; animation: pop .15s ease;
}
.dropdown button {
  display: block; width: 100%; text-align: left; padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}
.dropdown button:last-child { border-bottom: none; }
.dropdown button:hover { background: #f7f7f5; }
.dropdown .dt { font-weight: 600; font-size: 14px; }
.dropdown .dd { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.section-wrap { max-width: 1280px; margin: 0 auto; padding: 18px 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.photo-cell { position: relative; aspect-ratio: 1; cursor: pointer; overflow: hidden; background: #eee; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-cell:hover img { transform: scale(1.04); }
.photo-cell .check {
  position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(0,0,0,.2); display: none; align-items: center; justify-content: center;
  color: #fff; font-size: 13px;
}
.photo-grid.selecting .photo-cell .check { display: flex; }
.photo-cell.selected .check { background: var(--primary); border-color: var(--primary); }
.photo-cell .tags { position: absolute; top: 0; left: 0; right: 0; display: flex; flex-direction: column; gap: 0; }
.photo-cell .tag-cover {
  background: rgba(220,50,50,.88); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 0; text-align: center; letter-spacing: .05em;
}
.photo-cell .tag-inside {
  background: rgba(40,100,220,.88); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 0; text-align: center; letter-spacing: .05em;
}
.photo-cell .tag-fav {
  position: absolute; top: 6px; right: 6px; font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}
.photo-cell.sel-cover { box-shadow: inset 0 0 0 3px rgba(220,50,50,.9); }
.photo-cell.sel-inside { box-shadow: inset 0 0 0 3px rgba(40,100,220,.9); }
.photo-cell.sel-fav { box-shadow: inset 0 0 0 3px rgba(220,180,30,.9); }

.block-title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; padding: 0 14px; margin: 30px 0 14px; }
.video-row {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; margin: 0 14px 10px;
}
.video-row .vthumb { width: 84px; height: 56px; border-radius: 8px; object-fit: cover; background:#333; }
.video-row .vname { font-weight: 600; font-size: 14px; word-break: break-all; }
.video-row .vsize { color: var(--text-secondary); font-size: 12px; }
.video-row .play {
  margin-left: auto; width: 44px; height: 44px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center; flex: none;
}

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1500;
  display: flex; flex-direction: column; animation: fade .2s ease;
}
.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; color: #fff; }
.lightbox .lb-name { font-size: 14px; color: #ddd; }
.lightbox .lb-close { font-size: 26px; color: #fff; line-height: 1; }
.lightbox .lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px; overflow: hidden; }
.lightbox .lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 40px; color: #fff; opacity: .7; padding: 0 18px; }
.lightbox .lb-nav:hover { opacity: 1; }
.lb-prev { left: 0; } .lb-next { right: 0; }
.lightbox .lb-foot { padding: 14px 18px; background: #fff; }
.lb-tag-row {
  display: flex; align-items: center; justify-content: space-between; padding: 13px 6px;
  border-bottom: 1px solid var(--border); font-size: 15px; cursor: pointer;
}
.lb-tag-row:last-child { border-bottom: none; }
.lb-tag-row .cnt { font-size: 12px; color: var(--text-secondary); background: #f0f0ee; border-radius: 999px; padding: 3px 12px; }
.lb-tag-row.active .cnt { background: var(--primary); color: #fff; }

.select-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.select-head .ttl { font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-head .ttl span { color: var(--text-secondary); font-weight: 400; }
.select-banner { background: #eafaef; color: #1c7a3e; font-size: 13px; padding: 10px 22px; display: flex; gap: 8px; align-items: center; }
.select-modes { display: flex; gap: 10px; padding: 12px 22px; flex-wrap: wrap; align-items: center; }
.mode-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border-strong); font-size: 13px; font-weight: 500;
}
.mode-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.mode-pill .c { font-size: 11px; opacity: .75; }
.select-foot {
  position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; z-index: 40;
}

.center-page {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px;
}
.center-page .emoji { font-size: 54px; margin-bottom: 18px; }
.center-page h1 { font-size: 26px; margin-bottom: 10px; }
.center-page p { color: var(--text-secondary); margin-bottom: 28px; }
.center-card {
  background: #faf8f5; border: 1px solid #efe9e2; border-radius: var(--radius);
  padding: 22px 30px; max-width: 480px;
}
.center-card .lead { font-weight: 700; }
.center-card a { color: var(--accent); text-decoration: underline; }

.pw-box { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 38px 34px; width: 100%; max-width: 380px; }
.pw-box .lock { font-size: 40px; text-align: center; margin-bottom: 14px; }
.pw-box h1 { font-size: 19px; text-align: center; margin-bottom: 6px; }
.pw-box p { font-size: 13px; }

.guide { background: #fff; border-top: 8px solid var(--bg); padding-bottom: 50px; }
.guide-tabs { display: flex; border-bottom: 1px solid var(--border); }
.guide-tabs button {
  flex: 1; padding: 18px 6px; text-align: center; color: var(--text-secondary); font-weight: 500;
  border-bottom: 3px solid transparent; position: relative;
}
.guide-tabs button .ic { font-size: 22px; display: block; margin-bottom: 4px; }
.guide-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.guide-body { max-width: 920px; margin: 0 auto; padding: 26px 22px; }
.guide-body h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.guide-card { background: #fafafa; border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.guide-card .gc-head { background: #f0eeec; padding: 14px 20px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.guide-step { display: flex; gap: 16px; padding: 14px 20px; }
.guide-step .n {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex: none;
}
.guide-step .st { font-weight: 700; font-size: 15px; }
.guide-step .sd { color: var(--text-secondary); font-size: 13px; margin-top: 2px; }
.guide-tip { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 20px; font-size: 13.5px; display: flex; gap: 10px; }

@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-wrap, .admin-header { padding-left: 16px; padding-right: 16px; }
  .album-grid { grid-template-columns: 1fr; }
  .stats { gap: 30px; }
  .album-info { padding-left: 16px; padding-right: 16px; }
  .album-info h1 { font-size: 19px; }
  /* アルバム名は直上の album-info に出ているため、固定バーではボタンのみ表示 */
  .gallery-bar { padding: 0 12px; height: 52px; }
  .gallery-bar .ttl { display: none; }
  .gallery-bar .actions { flex: 1; justify-content: space-between; gap: 6px; }
  .gallery-bar .actions .btn { padding: 6px 10px; font-size: 12px; }
  .info-tabs { top: 52px; }
  .select-head, .select-foot, .select-modes, .select-banner { padding-left: 12px; padding-right: 12px; }
  .select-foot { flex-wrap: wrap; gap: 8px; }
  .modal { padding: 24px; }
}

/* Loading spinner overlay */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 3000; animation: fade .1s ease;
}
.spinner {
  width: 36px; height: 36px; border: 3px solid #e0e0e0;
  border-top-color: #1a1a1a; border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Button loading state */
.btn.is-loading { opacity: .7; pointer-events: none; }

/* ===== Info Tabs (album page) ===== */
.info-tabs {
  display: flex; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 58px; z-index: 39;
}
.info-tab {
  flex: 1; text-align: center; padding: 13px 8px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  border-bottom: 3px solid transparent; transition: all .15s;
}
.info-tab.active { color: var(--text); border-bottom-color: var(--primary); }
.info-tab:hover { color: var(--text-secondary); }
.tab-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  background: var(--danger); color: #fff; border-radius: 999px;
  padding: 2px 7px; margin-left: 4px; vertical-align: middle;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge { 0%,100% { opacity: 1; } 50% { opacity: .6; } }

/* ===== Photobook Nudge Bar ===== */
.pb-nudge {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 12px 22px; background: linear-gradient(90deg, #faf3ec, #f5efe8);
  border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text);
  flex-wrap: wrap;
}

/* ===== Photobook Banner ===== */
.pb-banner {
  background: linear-gradient(135deg, #faf8f5 0%, #f5efe8 100%);
  border-top: 8px solid var(--bg);
  padding: 48px 22px;
}
.pb-banner-inner {
  max-width: 640px; margin: 0 auto; text-align: center;
}
.pb-banner-icon { font-size: 48px; margin-bottom: 16px; }
.pb-banner-title { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.pb-banner-text {
  font-size: 14.5px; line-height: 2; color: var(--text); margin-bottom: 24px;
}
.pb-banner-price {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 12px;
}
.pb-price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.pb-price-now { font-size: 28px; font-weight: 700; color: var(--accent); }
.pb-price-now small { font-size: 14px; font-weight: 400; }
.pb-banner-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 28px; }
.pb-banner-cta { padding: 14px 32px; font-size: 16px; border-radius: 999px; }
.pb-banner-specs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-bottom: 24px; font-size: 13px; color: var(--text-secondary);
}
.pb-banner-specs span {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 14px;
}

/* ===== Photobook Step Bar ===== */
.pb-step-bar { display: flex; gap: 0; border-bottom: 1px solid var(--border); background: #fff; }
.pb-step {
  flex: 1; text-align: center; padding: 14px 8px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  border-bottom: 3px solid transparent;
}
.pb-step.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== Photobook Instruction ===== */
.pb-instruction {
  background: #fff; padding: 20px 22px;
  font-size: 14px; line-height: 1.9; color: var(--text-secondary);
  border-bottom: 1px solid var(--border); text-align: center;
}

/* ===== Photobook Counter ===== */
.pb-counter {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  padding: 12px 22px; font-size: 14px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.pb-counter-warn { color: var(--text-secondary); }
.pb-counter-ok { color: var(--success); }
.pb-counter-full { color: var(--accent); }

/* ===== Photobook Omakase Button ===== */
.pb-omakase {
  text-align: center; padding: 16px 22px; background: #fff;
  border-bottom: 1px solid var(--border);
}

/* ===== Photobook Confirm Specs ===== */
.pb-confirm-specs { margin-bottom: 8px; }
.pb-spec-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.pb-spec-row:last-child { border-bottom: none; }
.pb-spec-row span:first-child { color: var(--text-secondary); font-weight: 500; min-width: 80px; }

@media (max-width: 640px) {
  .pb-banner { padding: 36px 16px; }
  .pb-banner-text { font-size: 13.5px; }
  .pb-banner-text br { display: none; }
  .pb-price-now { font-size: 24px; }
  .pb-banner-cta { width: 100%; justify-content: center; }
  .pb-spec-row { flex-direction: column; gap: 4px; }
}

/* ===== 管理画面ナビ（アルバム / サービス / ニュース） ===== */
.admin-nav {
  display: flex; gap: 4px; padding: 0 32px; background: #fff;
  border-bottom: 1px solid var(--border);
}
.admin-nav-item {
  padding: 12px 18px; font-size: 14px; font-weight: 500; color: var(--text-secondary);
  border-bottom: 2px solid transparent; text-decoration: none;
}
.admin-nav-item.active { color: var(--text); border-bottom-color: var(--primary); }
.admin-nav-item:hover { color: var(--text); }

/* ===== ステータスピル ===== */
.status-pill { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.st-public  { background: #eafaef; color: #1c7a3e; }
.st-coming  { background: #fff4e5; color: #b45f06; }
.st-private { background: #f0f0ee; color: #8a8a8a; }
.st-trash   { background: #fdeaea; color: #c0392b; }

/* ===== コンテンツ管理一覧（サービス / ニュース共通） ===== */
.content-rows { display: flex; flex-direction: column; gap: 10px; }
.content-row {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px;
}
.content-row-img {
  width: 64px; height: 48px; border-radius: 8px; background: #f0f0ee; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden;
}
.content-row-img img { width: 100%; height: 100%; object-fit: cover; }
.content-row-main { flex: 1; min-width: 0; }
.content-row-name { font-weight: 700; font-size: 14.5px; }
.content-row-meta { display: flex; gap: 6px; align-items: center; margin-top: 5px; flex-wrap: wrap; }
.content-row-actions { display: flex; gap: 6px; flex: none; flex-wrap: wrap; }
.content-empty {
  text-align: center; color: var(--text-muted); font-size: 13.5px;
  padding: 48px 20px; background: #fcfcfb; border: 1px dashed var(--border-strong); border-radius: var(--radius);
}

/* ===== サービスカード（おすすめタブ） ===== */
.svc-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; max-width: 1000px; margin: 0 auto; padding: 26px 18px 10px;
}
.svc-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.svc-img { aspect-ratio: 16/9; background: #f4f2ef; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 44px; background: linear-gradient(135deg, #f6f1ea, #ece4d8); }
.svc-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.svc-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.svc-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: #f0ede8; color: #7a6a55;
}
.svc-tag.coming { background: #fff4e5; color: #b45f06; }
.svc-name { font-weight: 700; font-size: 16.5px; margin-top: 10px; }
.svc-desc { color: var(--text-secondary); font-size: 13px; line-height: 1.7; margin-top: 6px; flex: 1; }
.svc-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.svc-detail-body { white-space: pre-line; font-size: 14px; line-height: 1.9; color: var(--text); }

/* ===== ニュースカード（ニュースタブ） ===== */
.news-list { max-width: 720px; margin: 0 auto; padding: 26px 18px 10px; display: flex; flex-direction: column; gap: 16px; }
.news-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.news-img { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.news-body { padding: 18px 20px; }
.news-tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f0f0ee; color: #666; }
.news-tag.campaign { background: #fdeef0; color: #c2426a; }
.news-tag.event    { background: #e9f2fd; color: #2b6cb0; }
.news-tag.trend    { background: #eafaef; color: #1c7a3e; }
.news-date { font-size: 11.5px; color: var(--text-muted); }
.news-title { font-weight: 700; font-size: 16px; margin-top: 10px; }
.news-text { white-space: pre-line; color: var(--text-secondary); font-size: 13.5px; line-height: 1.8; margin-top: 8px; }

/* ===== その他 ===== */
.chip-danger { color: var(--danger); }
.guide-modal .guide { border-top: none; }
.guide-modal .guide-body { padding: 20px 4px 0; }

@media (max-width: 640px) {
  .admin-nav { padding: 0 12px; overflow-x: auto; }
  .admin-nav-item { padding: 12px 12px; white-space: nowrap; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; padding-bottom: 4px; }
  .filter-tabs button { white-space: nowrap; flex: none; }
  .content-row { flex-wrap: wrap; }
  .content-row-actions { width: 100%; justify-content: flex-end; }
  .svc-list { grid-template-columns: 1fr; }
}

/* ===== アルバム写真タブ: ワイド表示 =====
   PCはブラウザ幅いっぱい・タイル大きめ、スマホは1カラム縦スクロール（原寸比率） */
.gallery-wrap { max-width: none; padding: 18px 18px; }
.gallery-photos { grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (min-width: 1800px) {
  .gallery-photos { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
  .gallery-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gallery-wrap { padding: 10px 10px; }
  .gallery-photos { grid-template-columns: 1fr; gap: 10px; }
  .gallery-photos .photo-cell { aspect-ratio: auto; border-radius: 6px; }
  .gallery-photos .photo-cell img { height: auto; display: block; }
}

/* ===== アルバムページPC改善（タイトル重複解消・タブ拡大・カード全幅・ニュース刷新） ===== */
/* 固定バーのタイトルはスクロールでアルバム情報が隠れてからフェードイン（重複回避） */
.gallery-bar .ttl { opacity: 0; transition: opacity .25s ease; }
.gallery-bar.show-ttl .ttl { opacity: 1; }

/* タブを大きく・読みやすく（全幅に間延びしないよう中央寄せ） */
.info-tabs { justify-content: center; }
.info-tab { flex: 0 1 300px; padding: 16px 12px; font-size: 15px; }

/* おすすめ（サービス）カード: ブラウザ幅を活用、サービス増加に自動対応 */
.svc-list { max-width: none; padding: 30px 28px 14px; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }

/* ニュース: 読み物らしい横組み記事カード（PC） */
.news-list { max-width: 1100px; padding: 30px 24px 14px; gap: 20px; }
.news-card { display: flex; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-img { width: 320px; max-height: none; object-fit: cover; flex: none; }
.news-body { padding: 24px 28px; flex: 1; min-width: 0; }
.news-title { font-size: 19px; margin-top: 12px; line-height: 1.5; }
.news-text { font-size: 14.5px; line-height: 2.0; margin-top: 10px; }
.news-date { font-size: 12px; }

@media (max-width: 640px) {
  .info-tab { flex: 1; padding: 13px 8px; font-size: 13px; }
  .svc-list { grid-template-columns: 1fr; padding: 26px 18px 10px; gap: 20px; }
  .news-list { padding: 26px 18px 10px; gap: 16px; }
  .news-card { flex-direction: column; }
  .news-img { width: 100%; max-height: 240px; }
  .news-body { padding: 18px 20px; }
  .news-title { font-size: 16px; }
  /* モバイルはアルバム情報側に表示するため固定バーのタイトルは常に非表示 */
  .gallery-bar .ttl { display: none; }
}

/* ===== ヒーローのパララックス（PCのみ。iOS Safariはfixed背景が壊れるため除外） ===== */
@media (min-width: 900px) {
  .hero { background-attachment: fixed; }
}

/* ===== 管理画面改善（ナビ中央寄せ・プレビューカード） ===== */
.admin-nav { justify-content: center; gap: 10px; }
.admin-nav-item { padding: 15px 30px; font-size: 15px; font-weight: 600; border-bottom-width: 3px; }

.admin-card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.admin-card-actions {
  display: flex; gap: 8px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.admin-news-card { flex-direction: column; }
.admin-news-card .news-img { width: 100%; max-height: 200px; }
.admin-news-card .news-body { padding: 18px 20px; }
.admin-news-card .news-title { font-size: 16.5px; }
.admin-news-card .news-text { font-size: 13.5px; line-height: 1.8; }
.admin-url-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; word-break: break-all; }

@media (max-width: 640px) {
  .admin-nav-item { padding: 13px 16px; font-size: 14px; }
  .admin-card-list { grid-template-columns: 1fr; }
}
