:root {
  --bg: #f6f8fc;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --ink: #243247;
  --ink-soft: #33455f;
  --muted: #5d6b81;
  --muted-strong: #48566d;
  --line: #dce5f0;
  --blue: #6ca8dc;
  --blue-strong: #3f87c7;
  --sky: #bfe5f5;
  --lavender: #d9d2f1;
  --pink: #f5cddd;
  --mint: #cdeee4;
  --gold: #f3d37a;
  --gray-blue: #eaf1f8;
  --shadow: 0 18px 50px rgba(81, 103, 134, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(191, 229, 245, 0.7), transparent 34rem),
    radial-gradient(circle at top right, rgba(217, 210, 241, 0.7), transparent 32rem),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 48%, #eef3f9 100%);
}
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 4.8vw, 4rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.02rem; }

.site-header { padding: 34px 24px 22px; }
.header-inner {
  width: min(1220px, calc(100vw - 48px));
  min-height: 300px;
  margin: 0 auto;
  padding: 34px 36px;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(235,244,251,0.82));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 420px);
  gap: 28px;
  align-items: center;
}
.header-inner::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(108,168,220,0.18), rgba(217,210,241,0.28));
  pointer-events: none;
}
.header-copy, .hero-image { position: relative; z-index: 1; }
.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 18px 46px rgba(73, 98, 128, 0.14);
  background: linear-gradient(135deg, #eef7fc, #f2effb);
}
.optional-image:not([src]), .optional-image[src=""] { display: none; }

.eyebrow, .section-kicker, .hero-link-label {
  margin: 0 0 10px;
  color: #6681a0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lead {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--muted-strong);
  line-height: 1.9;
}
.language-switch {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(73, 98, 128, 0.12);
}
.language-switch-button {
  border: 0;
  border-radius: 999px;
  padding: 7px 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}
.language-switch-button.is-active {
  background: linear-gradient(135deg, #6ca8dc, #9b8ee6);
  color: #fff;
}

.hero-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.hero-link-card {
  min-height: 108px;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 12px 30px rgba(73, 98, 128, 0.10);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hero-link-card strong { font-size: 1rem; }
.hero-link-card span:last-child { color: var(--muted-strong); line-height: 1.55; font-size: .9rem; }

main {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto 54px;
}
.library-nav {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.library-tile {
  min-height: 78px;
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 12px 28px rgba(73, 98, 128, 0.10);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.library-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(73, 98, 128, 0.14);
}
.library-tile span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #edf6fc;
  color: #4a83b5;
  font-weight: 900;
}
.library-tile strong { font-size: .87rem; }
.library-tile.is-active {
  background: linear-gradient(135deg, rgba(108,168,220,0.96), rgba(155,142,230,0.9));
  color: #fff;
}
.library-tile.is-active span {
  background: rgba(255,255,255,0.24);
  color: #fff;
}

.toolbar {
  margin: 0 0 22px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 12px 30px rgba(73, 98, 128, 0.09);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.default-note {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
}
.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}
.search-box {
  display: flex;
  gap: 8px;
  align-items: center;
}
.search-box input {
  width: min(38vw, 380px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  background: #fff;
  color: var(--ink);
}
.search-button, .reset-button, .image-search-button, .copy-action, .detail-action, .panel-copy-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.88);
  color: var(--ink);
  font-weight: 800;
}
.search-button, .copy-action.primary, .panel-copy-button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #6ca8dc, #8c7ddd);
  color: #fff;
}
.reset-button, .image-search-button { color: var(--muted-strong); }

.prompt-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 24px 0 14px;
}
.prompt-head p { margin: 0; color: var(--muted); }

.prompt-list {
  display: grid;
  gap: 14px;
}
.prompt-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1.05fr) minmax(220px, .9fr) 146px;
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.96);
  box-shadow: 0 14px 36px rgba(73, 98, 128, 0.10);
}
.prompt-thumb {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, #eaf6fb, #f5eff9);
  border: 1px solid rgba(255,255,255,0.92);
  cursor: pointer;
}
.prompt-main { min-width: 0; padding: 4px 0; cursor: pointer; }
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 7px;
}
.prompt-title {
  margin: 0 0 9px;
  font-size: 1.02rem;
  line-height: 1.45;
}
.badge-row, .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  background: #edf3f8;
  color: #57718e;
}
.badge.category-fa { background: #ffe8f0; color: #a94f73; }
.badge.category-cb { background: #e8ecff; color: #5560a7; }
.badge.category-ev { background: #e4f7ee; color: #398366; }

.badge.category-fas { background: #ffe8f0; color: #a94f73; }
.badge.category-vis { background: #e8ecff; color: #5560a7; }
.badge.category-ssn { background: #e4f7ee; color: #398366; }
.badge.category-pnf { background: #fff0e2; color: #9a5a20; }
.badge.category-itm { background: #e9f7ff; color: #2f7199; }
.badge.category-job { background: #e6f4ff; color: #356f9a; }
.badge.category-ori { background: #efe8ff; color: #6f55aa; }

.badge.original { background: #efe8ff; color: #6f55aa; }
.badge.featured { background: #fff0bc; color: #8d6612; }
.badge.series { background: #e6f4ff; color: #356f9a; }
.new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #12b76a, #039855);
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 80, 45, 0.28);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82), 0 6px 14px rgba(3, 152, 85, 0.24);
}
.prompt-desc {
  color: var(--muted-strong);
  line-height: 1.75;
  font-size: .9rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}
.prompt-desc p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag {
  color: #5b78a0;
  background: #f0f6fb;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .74rem;
  font-weight: 800;
}
.prompt-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  border-left: 1px solid #e6edf5;
  padding-left: 14px;
}
.copy-action, .detail-action {
  width: 100%;
  min-height: 38px;
  text-align: center;
  font-size: .82rem;
}
.detail-action { background: #f6f9fc; }

.detail-panel {
  margin-top: 18px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.96);
  box-shadow: var(--shadow);
}
.detail-panel.is-hidden { display: none; }
.empty-state { text-align: center; color: var(--muted); padding: 28px; }
.detail-hero {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.detail-hero img {
  width: 100%;
  border-radius: 22px;
  background: linear-gradient(135deg, #eaf6fb, #f5eff9);
  border: 1px solid rgba(255,255,255,0.92);
}
.detail-copy p { color: var(--muted-strong); line-height: 1.85; }
.detail-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e6edf5;
}
.prompt-box {
  white-space: pre-wrap;
  line-height: 1.82;
  background: #f6f9fd;
  border: 1px solid #e4edf7;
  border-radius: 18px;
  padding: 16px;
  color: var(--ink-soft);
  max-height: 320px;
  overflow: auto;
}
.panel-copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 30px 20px 45px;
}

/* Modals */
.image-search-modal, .guide-modal, .image-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}
.image-search-modal.is-open, .guide-modal.is-open, .image-modal.is-open { display: block; }
.image-search-backdrop, .guide-modal-backdrop, .image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 48, 68, 0.45);
  backdrop-filter: blur(8px);
}
.image-search-content, .guide-modal-content, .image-modal-content {
  position: relative;
  width: min(980px, calc(100vw - 36px));
  max-height: min(88vh, 900px);
  overflow: auto;
  margin: 6vh auto;
  border-radius: 28px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 28px 80px rgba(31, 42, 57, 0.28);
}
.image-search-close, .guide-modal-close, .image-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #eef4fa;
  color: var(--ink);
  font-size: 1.35rem;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.guide-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid #e4edf7;
  border-radius: 18px;
  padding: 16px;
  background: #f8fbfe;
}
.guide-visual {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d7eef9, #ebe4ff);
  color: #4a72a0;
  font-weight: 900;
}
.guide-card p { margin: 8px 0 0; color: var(--muted-strong); line-height: 1.75; }
.image-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.image-search-item {
  border: 1px solid #e4edf7;
  border-radius: 18px;
  padding: 10px;
  background: #f8fbfe;
}
.image-search-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  background: #eef5fb;
}
.image-search-item strong {
  display: block;
  margin-top: 8px;
  font-size: .86rem;
}
.image-modal-content {
  width: min(920px, calc(100vw - 36px));
  text-align: center;
}
.image-modal-content img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 18px;
}
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: rgba(36,50,71,0.94);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
  .library-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }
  .hero-image { aspect-ratio: 16 / 9; }
  .hero-links { grid-template-columns: 1fr; }
  .toolbar, .toolbar-actions, .search-box { flex-direction: column; align-items: stretch; }
  .search-box input { width: 100%; }
  .prompt-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  .prompt-thumb { width: 104px; height: 104px; }
  .prompt-desc, .prompt-actions { grid-column: 1 / -1; }
  .prompt-actions {
    border-left: 0;
    border-top: 1px solid #e6edf5;
    padding-left: 0;
    padding-top: 12px;
    flex-direction: row;
  }
  .detail-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { padding: 18px 14px; }
  main { width: calc(100% - 28px); }
  .header-inner { width: 100%; padding: 58px 18px 22px; border-radius: 22px; }
  .library-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prompt-card {
    grid-template-columns: 1fr;
  }
  .prompt-thumb { width: 100%; height: auto; aspect-ratio: 16/10; }
  .prompt-actions { flex-direction: column; }
  .guide-grid { grid-template-columns: 1fr; }
}


/* v68: guide tile is visually separated from filtering tiles */
.library-tile.guide-tile {
  border: 2px dashed rgba(108, 168, 220, 0.58);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(240,247,255,0.88));
  color: #3f75a8;
}
.library-tile.guide-tile span {
  background: #ffffff;
  color: #3f87c7;
  border: 1px solid rgba(108, 168, 220, 0.35);
}
.library-tile.guide-tile:hover {
  background:
    linear-gradient(135deg, rgba(234,246,252,0.98), rgba(242,238,251,0.92));
}


/* v69: Guide / Community / Tarot are grouped as three hero cards */
.hero-link-card {
  text-align: left;
}
button.hero-link-card {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.9);
  font: inherit;
}
.hero-guide-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.90), rgba(232,244,255,0.82));
  outline: 1px solid rgba(108, 168, 220, 0.22);
}
.hero-guide-card .hero-link-label {
  color: #3f87c7;
}

/* v69: guide tile moved out of the filter tile row */
.library-tile.guide-tile {
  display: none;
}


/* v70: remove hero eyebrow and compact Guide / Community / Tarot cards */
.header-copy {
  padding-top: 18px;
}

.hero-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-link-card {
  min-height: 84px;
  padding: 13px 15px;
  border-radius: 16px;
  gap: 3px;
  justify-content: center;
}

.hero-link-label {
  margin-bottom: 3px;
  font-size: 0.70rem;
  letter-spacing: 0.18em;
}

.hero-link-card strong {
  font-size: 0.92rem;
  line-height: 1.35;
}

.hero-link-card span:last-child {
  font-size: 0.80rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .hero-links {
    grid-template-columns: 1fr;
  }
  .hero-link-card {
    min-height: 74px;
  }
}


/* v71: darker hero panel and compact icon-style link cards */
.header-inner {
  background:
    radial-gradient(circle at 86% 10%, rgba(255,255,255,0.44), transparent 25rem),
    linear-gradient(135deg, rgba(214,232,244,0.98), rgba(225,234,247,0.96) 48%, rgba(232,226,246,0.95));
  border-color: rgba(255,255,255,0.72);
}

.hero-link-card {
  min-height: 72px;
  padding: 12px 14px 12px 62px;
  border-radius: 18px;
  gap: 2px;
  justify-content: center;
  position: relative;
}

.hero-link-card::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(108,168,220,0.18), rgba(155,142,230,0.18));
  border: 1px solid rgba(108,168,220,0.26);
  color: #4d7fb1;
  font-size: 1.05rem;
  font-weight: 900;
}

.guide-card-link::before { content: "📘"; }
.community-card-link::before { content: "💬"; }
.tarot-card-link::before { content: "🔮"; }

.hero-link-card strong {
  font-size: 0.86rem;
  line-height: 1.32;
}

.hero-link-card span:last-child {
  font-size: 0.74rem;
  line-height: 1.35;
}

.hero-link-label {
  margin-bottom: 1px;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
}

/* v71: open article details in a modal instead of jumping to the bottom */
.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  background: rgba(34, 48, 68, 0.45);
  backdrop-filter: blur(8px);
}

.detail-backdrop.is-open {
  display: block;
}

.detail-panel {
  position: fixed;
  z-index: 46;
  left: 50%;
  top: 50%;
  width: min(1040px, calc(100vw - 36px));
  max-height: min(88vh, 900px);
  overflow: auto;
  transform: translate(-50%, -50%);
  display: none;
  margin: 0;
}

.detail-panel.is-open {
  display: block;
}

.detail-close {
  position: sticky;
  float: right;
  top: 0;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #eef4fa;
  color: var(--ink);
  font-size: 1.35rem;
  margin: -10px -8px 6px 10px;
}

.detail-hero {
  clear: both;
}

/* v71: make enlarged images fit inside the modal without inner scrolling/cropping */
.image-modal-content {
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.image-modal-content img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: calc(88vh - 100px) !important;
  object-fit: contain !important;
}

.image-modal-content p {
  margin: 12px 0 0;
}

@media (max-width: 980px) {
  .hero-link-card {
    padding-left: 62px;
  }
  .hero-links {
    grid-template-columns: 1fr;
  }
}


/* v72: dark translucent hero style */
.header-inner {
  background:
    radial-gradient(circle at 78% 8%, rgba(132, 160, 204, 0.22), transparent 24rem),
    radial-gradient(circle at 10% 12%, rgba(132, 207, 230, 0.16), transparent 20rem),
    linear-gradient(135deg, rgba(31, 43, 58, 0.92), rgba(42, 55, 74, 0.88) 45%, rgba(29, 33, 46, 0.92));
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 22px 70px rgba(30, 42, 58, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.header-inner::after {
  background: linear-gradient(135deg, rgba(126, 182, 230, 0.16), rgba(217,210,241,0.14));
}

.header-copy h1,
.header-copy .lead {
  color: rgba(255, 255, 255, 0.94);
}

.header-copy .lead {
  color: rgba(239, 246, 255, 0.84);
}

.language-switch {
  background: rgba(255, 255, 255, 0.86);
}

/* v72: use real 128x128 icon images in Guide / Community / Tarot cards */
.hero-link-card {
  min-height: 70px;
  padding: 11px 14px 11px 64px;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(255,255,255,0.62);
  box-shadow: 0 16px 34px rgba(15, 27, 42, 0.18);
}

.hero-link-card::before {
  display: none;
}

.hero-link-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  object-fit: contain;
  border-radius: 12px;
  background: rgba(232, 242, 250, 0.88);
  padding: 4px;
  border: 1px solid rgba(108,168,220,0.26);
}

.hero-link-label {
  color: #5076a3;
}

.hero-link-card strong {
  color: #1e2f46;
}

.hero-link-card span:last-child {
  color: #425774;
}

@media (max-width: 980px) {
  .header-copy h1,
  .header-copy .lead {
    color: rgba(255, 255, 255, 0.95);
  }
}


/* v73: glass-like hero background and larger icons */
.header-inner {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 27, 41, 0.78), rgba(40, 53, 74, 0.62) 34%, rgba(84, 111, 151, 0.34) 62%, rgba(19, 25, 37, 0.72)),
    radial-gradient(circle at 14% 16%, rgba(166, 220, 255, 0.18), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(210, 225, 255, 0.15), transparent 18%),
    radial-gradient(circle at 70% 68%, rgba(132, 176, 231, 0.10), transparent 24%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 28px 80px rgba(18, 26, 39, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  backdrop-filter: blur(14px) saturate(118%);
}

.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 18%, rgba(255,255,255,0.00) 34%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.00) 36%);
  mix-blend-mode: screen;
}

.header-inner::after {
  background:
    radial-gradient(circle at 88% 8%, rgba(255,255,255,0.16), transparent 22%),
    linear-gradient(135deg, rgba(151, 208, 255, 0.07), rgba(255,255,255,0.01) 50%, rgba(207,195,255,0.08));
  opacity: 1;
}

.header-copy h1,
.header-copy .lead {
  text-shadow: 0 2px 18px rgba(7, 14, 26, 0.20);
}

.hero-link-card {
  min-height: 92px;
  padding: 14px 16px 14px 86px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,250,255,0.84));
  border: 1px solid rgba(255,255,255,0.74);
  box-shadow:
    0 14px 28px rgba(22, 36, 58, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.74);
}

.hero-link-icon {
  left: 16px;
  width: 54px;
  height: 54px;
  padding: 5px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(236,244,255,0.98), rgba(224,236,252,0.86));
  box-shadow:
    0 8px 18px rgba(80, 118, 163, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

.hero-link-card strong {
  font-size: 1.02rem;
}

.hero-link-card span:last-child {
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .hero-link-card {
    min-height: 84px;
    padding-left: 82px;
  }

  .hero-link-icon {
    width: 48px;
    height: 48px;
  }
}


/* v74: make copy target clearer in article rows */
.copy-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.copy-group-label {
  width: 100%;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f2f6fb;
  border: 1px solid #dfe8f2;
  color: #405771;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.copy-lang-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.prompt-actions .copy-action {
  min-height: 34px;
  padding: 8px 10px;
}

.prompt-actions .detail-action {
  margin-top: 2px;
}

/* v74: force enlarged image to fit fully inside viewport */
.image-modal-content {
  width: auto !important;
  max-width: calc(100vw - 48px) !important;
  height: auto !important;
  max-height: calc(100vh - 48px) !important;
  overflow: visible !important;
  padding: 20px !important;
}

.image-modal-content img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 96px) !important;
  max-height: calc(100vh - 112px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 14px;
}

.image-modal-close {
  right: 12px;
  top: 12px;
  z-index: 5;
}

@media (max-width: 980px) {
  .copy-lang-row {
    grid-template-columns: 1fr 1fr;
  }
}


/* v75: simplify search toolbar */
.search-button {
  min-width: 104px;
  padding-left: 24px;
  padding-right: 24px;
}

.toolbar-actions {
  flex: 1;
}

.search-box {
  width: min(720px, 100%);
  margin-left: auto;
}

.search-box input {
  flex: 1;
  width: auto;
}

/* v75: make prompt-copy label read as a heading, not a button */
.copy-group {
  gap: 9px;
}

.copy-group-label {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f2f45;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.copy-lang-row {
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6edf5;
}

.prompt-actions .copy-action {
  min-height: 40px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 900;
}

.prompt-actions .detail-action {
  margin-top: 8px;
  min-height: 44px;
  border-radius: 999px;
}

@media (max-width: 980px) {
  .search-box {
    width: 100%;
  }
}


/* v77: make JP/EN prompt copy buttons the same intermediate color */
.prompt-actions .copy-action,
.prompt-actions .copy-action.primary {
  border-color: rgba(121, 151, 205, 0.38);
  background: linear-gradient(135deg, #dbe9fb, #e8e3fb) !important;
  color: #2c415f !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.prompt-actions .copy-action:hover,
.prompt-actions .copy-action.primary:hover {
  background: linear-gradient(135deg, #cfdef6, #ded8f7) !important;
}

/* v77: restore guide policy image block */
.guide-policy {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #e4edf7;
  border-radius: 20px;
  background: #f8fbfe;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px;
  align-items: center;
}

.guide-policy-copy p {
  color: var(--muted-strong);
  line-height: 1.8;
}

.guide-policy-image-wrap {
  margin: 0;
}

.guide-policy-image {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid #e1ebf5;
  background: #eef5fb;
}

.guide-policy-image-wrap figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 760px) {
  .guide-policy {
    grid-template-columns: 1fr;
  }
}


/* v78: 100職 is displayed as 職業 / Jobs for readability */


/* v80: JOB category is now an independent prompt section */
.library-tile[data-filter="JOB"] span {
  letter-spacing: 0.02em;
  font-size: 0.78rem;
}
