/* layout.css ── ページ構造（ロビー・ヒーロー・ピル・セクション・フッター・トップイントロ・固定ページリンクカード） */

/* =========================================================
   10 Lobby Wrapper
========================================================= */
.library-lobby {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 78px clamp(24px, 4vw, 48px) 104px clamp(56px, 8vw, 108px);
  display: block;
  position: relative;
  overflow: hidden;
  background: transparent; /* bodyの背景に統一 */
}

.library-lobby::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 0, rgba(255,255,255,0) 14%, rgba(255,255,255,0) 86%, rgba(255,255,255,.06) 100%);
  mix-blend-mode: soft-light;
}

.library-lobby::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .20;
  background-image:
    radial-gradient(circle, rgba(200,170,60,.14) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* =========================================================
   11 Hero
========================================================= */
.hero {
  position: relative;
  text-align: center;
  margin: 0 auto 54px;
  max-width: var(--maxw);
  z-index: 1;
}

.hero__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 38px 36px 28px;
  border: 1.5px solid rgba(210,185,100,.40);
  border-radius: 36px;
  background:
    linear-gradient(160deg, rgba(255,255,248,.98) 0%, rgba(255,252,228,.96) 100%);
  box-shadow:
    0 2px 0 rgba(255,255,255,.95) inset,
    var(--shadow-sm);
  backdrop-filter: blur(6px);
}

.hero__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin-bottom: 10px;
}

.hero__label:empty::before {
  content: "LIBRARY";
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(200,175,80,.30);
  background: rgba(255,238,160,.14);
  color: #8c7020;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
}

.site-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.42;
  letter-spacing: .08em;
  margin: 0 0 16px;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}

.subtitle {
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.95;
  letter-spacing: .01em;
  max-width: 44em;
  margin: 0 auto;
}

.hero__lead {
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: clamp(18px, 2.25vw, 22px);
  line-height: 1.95;
  letter-spacing: .01em;
  margin: 0;
}

.hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* =========================================================
   12 Pills
========================================================= */
.pill,
.lb-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(210,190,100,.30);
  background:
    linear-gradient(160deg, rgba(255,255,248,.97) 0%, rgba(255,251,220,.98) 100%);
  box-shadow: var(--shadow-xs);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .10em;
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    color .18s ease,
    background .18s ease;
}

.pill:hover,
.lb-pill:hover {
  transform: translateY(-2px);
  color: var(--ink);
  border-color: rgba(190,165,60,.48);
  box-shadow: var(--shadow-sm), 0 0 0 3px rgba(200,175,80,.10);
}

.pill--ghost,
.lb-pill--ghost {
  background: transparent;
  box-shadow: none;
  border-color: rgba(0,0,0,.10);
}

.pill--ghost:hover,
.lb-pill--ghost:hover {
  background: rgba(255,255,255,.65);
}

/* =========================================================
   13 Section
========================================================= */
.section {
  width: 100%;
  max-width: var(--maxw);
  margin: 84px auto 0;
  position: relative;
  z-index: 1;
}

.section__head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section__title {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--muted);
  letter-spacing: .12em;
  padding-bottom: 12px;
}

.section__title::before,
.section__title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(20px, 5vw, 60px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.section__title::before {
  right: calc(100% + 14px);
}

.section__title::after {
  left: calc(100% + 14px);
}

.section__desc {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 2.0;
  letter-spacing: .01em;
}

/* =========================================================
   16 Utilities
========================================================= */
.lb-link {
  display: inline-block;
  color: var(--muted);
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(111,103,93,.34);
  padding-bottom: 1px;
  transition: color .16s ease, border-color .16s ease;
}

.lb-link:hover {
  color: var(--ink);
  border-color: rgba(45,42,38,.54);
}

.lb-footnote {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: .06em;
}

.lb-pre {
  overflow: auto;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, #fffdfa 0%, #f8f3eb 100%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  box-shadow: var(--shadow-xs);
}

.lb-box,
.lb-note,
.lb-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(250,246,239,.96) 100%);
  box-shadow: var(--shadow-xs);
}

.lb-note {
  padding: 18px 20px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: .01em;
}

.lb-box {
  padding: 18px 20px;
}

.lb-card {
  overflow: hidden;
}

.lb-card__body {
  padding: 18px 20px;
}

.lb-template__heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
  margin-bottom: 10px;
}

/* =========================================================
   17 Footer
========================================================= */
.lobby-links {
  max-width: var(--maxw);
  margin: 84px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.footer-note {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  opacity: .66;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .05em;
  border-bottom: 1px solid rgba(111,103,93,.28);
  padding-bottom: 1px;
  transition: color .16s ease, border-color .16s ease;
}

.footer-links a:hover {
  color: var(--ink);
  border-bottom-color: rgba(45,42,38,.50);
}

/* =========================================================
   26b 固定ページ（カテゴリ入口など）のリンクカード
   /management/ のように entry-content > p > a で構成されているページ
========================================================= */
.page .entry-content > p:has(> a:only-child) {
  margin-bottom: 0;
}

/* p > a 一本のシリーズリンクをカード状に */
.page .entry-content > p > a:only-child {
  display: block;
  padding: 18px 22px;
  margin-bottom: 14px;
  border: 1.5px solid rgba(210,185,100,.38);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(255,255,248,.98) 0%, rgba(255,252,228,.97) 100%);
  box-shadow:
    0 2px 0 rgba(255,255,255,.92) inset,
    var(--shadow-xs);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .01em;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
  position: relative;
}

.page .entry-content > p > a:only-child::after {
  content: "→";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  transition: transform .2s ease, color .2s ease;
}

.page .entry-content > p > a:only-child:hover {
  transform: translateY(-2px);
  border-color: rgba(190,165,60,.50);
  box-shadow:
    0 2px 0 rgba(255,255,255,.92) inset,
    var(--shadow-sm);
  text-decoration: none;
}

.page .entry-content > p > a:only-child:hover::after {
  transform: translateY(-50%) translateX(3px);
  color: var(--ink);
}

/* =========================================================
   Top Intro
========================================================= */
.top-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: left;
}

.top-intro__lead {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.95;
  letter-spacing: .01em;
  word-break: normal;
  overflow-wrap: break-word;
}

.top-intro__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}

/* トップだけ旧heroの影響を切る */
.home .hero,
.home .hero__inner,
.home .subtitle,
.home .hero__lead,
.home .hero__nav {
  all: unset;
  display: revert; /* displayだけ復元してレイアウトが壊れないように */
}

/* WordPressのページタイトル */
.home .entry-title,
.home h1.entry-title {
  text-align: center;
  padding-left: 0;
  margin: 0 0 36px;
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.35;
  letter-spacing: .08em;
}

/* SP */
@media (max-width: 680px) {
  .top-intro {
    margin: 0 auto 34px;
  }

  .top-intro__lead {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 18px;
  }

  .top-intro__nav {
    gap: 10px;
  }

  .home .entry-title,
  .home h1.entry-title {
    font-size: 28px;
    margin-bottom: 24px;
    letter-spacing: .06em;
  }
}
/* 記事ページ：左右paddingを均等に */
.single .library-lobby {
  padding-left: clamp(24px, 4vw, 48px);
}
