/* =============================================
   SIL Components
   デザイン版共通: 複数ページで使い回すコンポーネント
   ============================================= */

/* ============================================================
   PAGE HEADER (lightweight band)
   ============================================================ */
.designLP .phead {
  position: relative;
  padding: 54px 0 6px;
  overflow: hidden;
}
/* --- Eyebrow shared typography --- */
.designLP .eyebrow {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--dlp-primary);
}

.designLP .phead .eyebrow {
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
}

.designLP .hero .eyebrow {
  margin-bottom: 22px;
}
.designLP .phead h1 {
  position: relative;
  z-index: 2;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.designLP .phead h1 .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dlp-primary);
  transform: translateY(-2px);
  flex-shrink: 0;
}
.designLP .phead .lead {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  font-size: var(--dlp-body-fs);
  line-height: 1.95;
  color: var(--dlp-body-color);
  font-weight: 500;
  max-width: 820px;
}
.designLP .phead .catch {
  position: relative;
  z-index: 2;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--dlp-ink);
  margin-top: 20px;
  margin-bottom: 4px;
  letter-spacing: .01em;
}
.designLP .phead .catch .accent { color: var(--dlp-primary); }
.designLP .phead .ph-sphere-1 { width: 124px; height: 124px; top: -20px; right: 24px; opacity: .9; }
.designLP .phead .ph-sphere-2 { width: 58px;  height: 58px;  top: 96px;  right: 156px; opacity: .85; }
.designLP .phead .ph-sphere-3 { width: 34px;  height: 34px;  top: 26px;  right: 4px;   opacity: .8; }

/* ============================================================
   SECTION SCAFFOLD / SECTION HEADING
   Shared across SIL pages
   ============================================================ */

.designLP section.block {
  padding: 104px 0;
  position: relative;
}

.designLP section.block + section.block {
  padding-top: 0;
}

.designLP .sec-head {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 24px;
  padding-top: 14px;
}

.designLP .sec-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 46px;
  font-size: 30px;
  font-weight: 900;
  color: var(--dlp-ink);
  letter-spacing: .02em;
  text-align: left;
}

.designLP .sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: linear-gradient(
    150deg,
    var(--dlp-primary) 0%,
    rgba(220, 112, 88, .78) 100%
  );
  opacity: .9;
  box-shadow: none;
  transform: translateY(-50%);
  transition: opacity .22s ease, filter .22s ease;
}

.designLP .sec-head:hover .sec-title::before {
  opacity: .72;
  filter: saturate(.96) brightness(1.03);
}


/* ============================================================
   SECTION LEAD (shared across SIL pages)
   Standard typography for introductory text below section headings.
   ============================================================ */
.designLP .sec-lead {
  font-size: var(--dlp-body-fs);
  line-height: 1.9;
  color: var(--dlp-body-color);
  font-weight: 500;
  max-width: 820px;
}

.designLP .sec-lead strong {
  color: var(--dlp-ink);
  font-weight: 700;
}

.designLP .sec-head + .sec-lead {
  margin-top: 12px;
}

@media (max-width: 860px) {
  .designLP .sec-lead {
    font-size: 16px;
  }
}

/* --- Link CTA (arrow ring button) --- */
.designLP .link-cta {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 700; color: var(--dlp-ink);
  cursor: pointer; transition: gap .2s;
}
.designLP .link-cta:hover { gap: 20px; }
.designLP .link-cta .ring {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.6px solid var(--dlp-primary); color: var(--dlp-primary);
  display: grid; place-items: center; flex-shrink: 0;
  transition: background .2s, color .2s;
}
.designLP .link-cta:hover .ring { background: var(--dlp-primary); color: #fff; }

/* --- Link Text (inline arrow link) --- */
.designLP .link-text {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 8px;
  font-size: 14px; font-weight: 700; color: var(--dlp-primary);
  transition: gap .2s;
}
.designLP .link-text:hover { gap: 18px; }

/* --- Outline Button --- */
.designLP .btn-out {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  border: 1px solid var(--dlp-line); border-radius: 10px;
  padding: 11px 18px; font-size: 13px; font-weight: 700; color: var(--dlp-ink);
  background: #fff; cursor: pointer; transition: border-color .2s, background .2s;
}
.designLP .btn-out:hover { border-color: var(--dlp-primary); background: var(--dlp-primary-soft); }
.designLP .btn-out svg { color: var(--dlp-primary); }


/* ============================================================
   SHARED LIBRARY / CARD UI
   Reused by Library and Researcher pages
   ============================================================ */

/* --- Badge base --- */
.designLP .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  color: #fff;
}
.designLP .badge svg { width: 11px; height: 11px; }

/* --- Content Filter base --- */
.designLP .lib-filter__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.designLP .lib-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1.5px solid var(--dlp-line);
  border-radius: 100px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--dlp-ink-2);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.designLP .lib-filter__btn:hover {
  border-color: var(--_fc);
  color: var(--_fc);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.designLP .lib-filter__btn.is-active {
  background: var(--_fc);
  border-color: var(--_fc);
  color: #fff;
}
.designLP .lib-filter__btn[data-filter="all"] { --_fc: var(--dlp-primary); }
.designLP .lib-filter__count {
  font-size: 12px;
  font-weight: 800;
  opacity: .6;
}
.designLP .lib-filter__btn.is-active .lib-filter__count { opacity: .85; }

/* A filter bar immediately followed by a content block owns the transition spacing. */
.designLP .lib-filter + .block { padding-top: 0; }

/* --- Card scaffold shared by Library and Researcher pages --- */
.designLP .wp-grid { display: grid; }
.designLP .wp-card { display: flex; }
.designLP .wp-go {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--dlp-line);
  display: grid;
  place-items: center;
  color: var(--dlp-primary);
  flex-shrink: 0;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.designLP .wp-go svg { width: 15px; height: 15px; }

/* --- Side Nav (左追従メニュー) --- */
.designLP .sideNav {
  position: fixed;
  left: 0;
  z-index: 5;
  width: 210px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--dlp-line-2);
  border-left: none;
  border-radius: 0 18px 18px 0;
  box-shadow: 2px 4px 24px rgba(27,36,48,.08);
  padding: 0;
  overflow: hidden;
  transition: opacity .3s;
}

.designLP .sideNav__head {
  display: none;
}

/* --- Side Nav Item --- */
.designLP .sideNav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  text-decoration: none;
  color: var(--dlp-ink);
  border-bottom: 1px solid var(--dlp-line-2);
  border-left: 3px solid transparent;
  transition: background .2s, border-color .2s;
  cursor: pointer;
}

.designLP .sideNav__item:last-child {
  border-bottom: none;
}

.designLP .sideNav__icon {
  display: block;
  order: -1;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
  background: transparent;
}

.designLP .sideNav__text {
  flex: 1;
  min-width: 0;
}

.designLP .sideNav__title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  transition: color .2s;
}

/* 説明文は全画面幅で非表示 */
.designLP .sideNav__desc {
  display: none;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--dlp-ink-3);
}

/* --- Side Nav Item States --- */
.designLP .sideNav__item:hover {
  background: var(--dlp-primary-soft);
  border-left-color: var(--dlp-primary);
}

.designLP .sideNav__item:hover .sideNav__title {
  color: var(--dlp-primary);
}

.designLP .sideNav__item--current {
  border-left-color: transparent;
  background: var(--dlp-primary);
  pointer-events: none;
}

.designLP .sideNav__item--current .sideNav__title {
  color: #fff;
}

.designLP .sideNav__item--current .sideNav__desc {
  color: rgba(255,255,255,.7);
}

/* --- Side Nav Groups (2つずつグルーピング + ラベル上配置) --- */
.designLP .sideNav__group {
  display: flex;
  flex-direction: column;
}

.designLP .sideNav__group + .sideNav__group {
  border-top: none;
}

.designLP .sideNav__groupLabel {
  font-size: 13.5px;
  font-weight: 600;
  color: rgb(86, 97, 111);
  letter-spacing: 0.06em;
  padding: 10px 14px 5px;
  background: var(--dlp-bg-soft);
  border-top: 1px solid var(--dlp-line-2);
  border-bottom: 1px solid var(--dlp-line-2);
  white-space: nowrap;
}

.designLP .sideNav__groupItems {
  flex: 1;
  min-width: 0;
}

.designLP .sideNav__group .sideNav__item:last-child {
  border-bottom: none;
}

/* --- Side Nav Top Link --- */
.designLP .sideNav__topLink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dlp-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.designLP .sideNav__topLink:hover {
  color: var(--dlp-primary-deep);
}

/* --- Compact Side Nav (narrow desktop) --- */
@media (max-width: 1300px) and (min-width: 961px) {
  .designLP__body {
    padding-left: 179px;
  }

  .designLP .sideNav {
    width: 155px;
    border-radius: 0 14px 14px 0;
  }

  .designLP .sideNav__icon {
    display: none;
  }

  .designLP .sideNav__item {
    padding: 9px 14px;
  }

  .designLP .sideNav__title {
    font-size: 13.5px;
  }

  .designLP .sideNav__groupLabel {
    font-size: 12.5px;
    padding: 8px 14px 4px;
  }
}

/* --- SP: Side Nav → Bottom Sheet --- */
.designLP .sideNav__trigger,
.designLP .sideNav__overlay,
.designLP .sideNav__close { display: none; }

@media (max-width: 960px) {
  /* Trigger button — fixed bottom-right */
  .designLP .sideNav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 110;
    padding: 12px 20px;
    background: var(--dlp-primary);
    color: #fff;
    border: none;
    border-radius: 40px;
    font-family: var(--dlp-font);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255,73,50,.35);
    transition: transform .2s, box-shadow .2s;
  }
  .designLP .sideNav__trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255,73,50,.45);
  }
  .designLP .sideNav__trigger svg { flex-shrink: 0; }

  /* Overlay */
  .designLP .sideNav__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 119;
    background: rgba(27,36,48,.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .designLP .sideNav__overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Bottom Sheet */
  .designLP .sideNav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto !important;
    width: 100%;
    height: auto;
    max-height: 80dvh;
    overflow-y: auto;
    transform: translateY(100%);
    z-index: 120;
    border-radius: 18px 18px 0 0;
    border: none;
    border-top: 1px solid var(--dlp-line-2);
    box-shadow: 0 -8px 40px rgba(27,36,48,.12);
    transition: transform .35s cubic-bezier(.32,.72,.32,1);
    -webkit-overflow-scrolling: touch;
  }
  .designLP .sideNav.is-open {
    transform: translateY(0);
  }

  /* Close button */
  .designLP .sideNav__close {
    display: block;
    width: 100%;
    padding: 16px;
    background: none;
    border: none;
    border-top: 1px solid var(--dlp-line-2);
    font-family: var(--dlp-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--dlp-ink-3);
    cursor: pointer;
    transition: color .2s, background .2s;
  }
  .designLP .sideNav__close:hover {
    color: var(--dlp-primary);
    background: var(--dlp-primary-soft);
  }

  /* Hide trigger when sheet is open */
  .designLP .sideNav__trigger.is-hidden { display: none; }
}
@media (max-width: 860px) {
  .designLP .phead h1 {
    font-size: 30px;
  }

  .designLP .phead .catch {
    font-size: 18px;
  }

  .designLP section.block {
    padding: 48px 0;
  }

  .designLP section.block + section.block {
    padding-top: 0;
  }

  .designLP .sec-title {
    font-size: 24px;
  }
}

/* ============================================================
   PAGE TOC (page table of contents)
   Shared across pages
   ============================================================ */
.designLP .lib-toc {
  position: relative;
  z-index: 2;
  margin-top: 36px;
}

.designLP .lib-toc__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--dlp-ink-2);
  margin-bottom: 10px;
  letter-spacing: .14em;
}

.designLP .lib-toc__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.designLP .lib-toc__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.designLP .lib-toc__grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

.designLP .lib-toc__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--dlp-bg-soft);
  border: 1px solid var(--dlp-line-2);
  border-radius: 12px;
  padding: 16px 20px;
  min-height: 72px;
  transition:
    background .2s,
    transform .2s,
    box-shadow .2s,
    border-color .2s;
}

.designLP .lib-toc__item::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--dlp-primary);
  opacity: .85;
  box-shadow: none;
}

.designLP .lib-toc__item:hover {
  background: var(--dlp-primary-soft);
  border-color: var(--dlp-primary);
  transform: translateY(-2px);
  box-shadow: var(--dlp-shadow-sm);
}

.designLP .lib-toc__item:hover .txt {
  color: var(--dlp-primary);
}

.designLP .lib-toc__item .txt {
  font-size: 16px;
  font-weight: 700;
  color: var(--dlp-ink);
  line-height: 1.4;
}

/* --- SP TOC --- */
@media (max-width: 860px) {
  .designLP .lib-toc__grid,
  .designLP .lib-toc__grid--3,
  .designLP .lib-toc__grid--5 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .designLP .lib-toc__item {
    min-height: auto;
    padding: 12px 16px;
    border-radius: 8px;
  }

  .designLP .lib-toc__item::before {
    width: 8px;
    height: 8px;
  }

  .designLP .lib-toc__item .txt {
    font-size: 14px;
    line-height: 1.4;
  }
}


/* --- Sticky TOC ---
   z-index をヘッダーより下に設定し、
   ヘッダーの裏からスライドして出現する演出。
   ============================================================ */
.designLP .sticky-toc {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  background: rgba(246,247,249,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dlp-line-2);
  transform: translateY(0);
  transition: transform .3s ease, visibility .3s;
  pointer-events: none;
  visibility: hidden;
  padding: 6px 0;
}

.designLP .sticky-toc.is-visible {
  transform: translateY(var(--sticky-toc-top, 0px));
  pointer-events: auto;
  visibility: visible;
}

.designLP .sticky-toc__inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 calc(var(--dlp-pad) + 20px);
}

.designLP .sticky-toc__inner::-webkit-scrollbar {
  display: none;
}

.designLP .sticky-toc__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: calc(100vw - 2 * var(--dlp-pad) - 40px);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dlp-ink);
  line-height: 1.4;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--dlp-line-2);
  border-radius: 10px;
  flex-shrink: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition:
    background .2s,
    border-color .2s,
    color .2s;
}

.designLP .sticky-toc__item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--dlp-primary);
  opacity: .85;
  box-shadow: none;
}

.designLP .sticky-toc__item:hover {
  background: var(--dlp-primary-soft);
  border-color: var(--dlp-primary);
  color: var(--dlp-primary);
}

.designLP .sticky-toc__item.is-current {
  background: var(--dlp-primary-soft);
  border-color: var(--dlp-primary);
}

@media (min-width: 1101px) {
  .designLP .sticky-toc {
    left: 0;
  }

  .designLP .sticky-toc__inner {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 30px;
  }

  .designLP .sticky-toc__item {
    min-width: auto;
  }
}

/* --- Feature Grid (r3-grid) — shared component --- */
.designLP .r3-grid {
  display: grid; grid-template-columns: 0.82fr 2fr; gap: 0; margin-top: 36px;
}
.designLP .r3-left { padding-right: 48px; }
.designLP .r3-left h2 {
  font-size: 30px; font-weight: 900; line-height: 1.45;
  letter-spacing: .02em; color: var(--dlp-ink);
}
.designLP .r3-left p {
  margin-top: 20px; font-size: 14px; line-height: 2;
  color: var(--dlp-ink-2); font-weight: 500;
}
.designLP .r3-right {
  border-left: 1px solid var(--dlp-line);
  padding-left: 48px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.designLP .feature .ficon {
  position: relative; width: 78px; height: 78px; margin: 0 auto 20px;
  display: grid; place-items: center;
}
.designLP .feature h4 {
  font-size: 15px; font-weight: 800; text-align: center;
  line-height: 1.45; letter-spacing: .01em;
  min-height: calc(15px * 1.45 * 2);
  display: flex; align-items: center; justify-content: center;
}
.designLP .feature p {
  margin-top: 14px; font-size: 12.5px; line-height: 1.85;
  color: var(--dlp-ink-2); font-weight: 500;
}

/* --- Photo Strip --- */
.designLP .photo-strip {
  display: grid; grid-template-columns: 1.15fr 1.3fr 1fr; gap: 36px;
  margin-top: 64px; position: relative;
}
.designLP .photo-strip .img-placeholder,
.designLP .photo-strip img {
  position: relative; z-index: 2;
  width: 100%; height: 190px; object-fit: cover; border-radius: 14px;
}
.designLP .photo-strip__item {
  position: relative; overflow: visible;
}
.designLP .photo-strip__item .dot-shadow {
  position: absolute;
  top: 16px; left: 16px;
  width: 100%; height: 190px;
  z-index: 1;
  border-radius: 14px;
}

@media (max-width: 1100px) {
  .designLP .r3-grid { grid-template-columns: 1fr; }
  .designLP .r3-right { border-left: none; padding-left: 0; margin-top: 36px; }
}
@media (max-width: 860px) {
  .designLP .r3-right { grid-template-columns: repeat(2, 1fr); }
  .designLP .photo-strip { grid-template-columns: 1fr; }
}

/* --- Back to Top --- */
body.pageLaboratory-typeA .footerToTop { display: none; }
.designLP .back-to-top {
  display: flex;
  justify-content: center;
  padding: 32px 0 48px;
}
.designLP .back-to-top a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--dlp-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--dlp-ink-2);
  letter-spacing: .02em;
  transition: border-color .2s, color .2s;
}
.designLP .back-to-top a:hover {
  border-color: var(--dlp-ink-3);
  color: var(--dlp-ink-2);
}
.designLP .back-to-top svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
