@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://invest.nonalabo.com/
    Description: ノナラボ｜投資版 — SWELL child theme (domain: invest.nonalabo.com)
    Version: 1.5.5
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

:root {
  --ni-ink: #1a2332;
  --ni-muted: #5a6570;
  --ni-accent: #0f6b5c;
  --ni-accent-soft: #e7f3f0;
  --ni-brand: #04384c;
  --ni-line: #d8dee4;
  --ni-paper: #f7f8fa;
  --ni-surface: #ffffff;

  --adl-ink: var(--ni-ink);
  --adl-muted: var(--ni-muted);
  --adl-accent: var(--ni-accent);
  --adl-line: var(--ni-line);
}

/* メニューの「チャンネル登録」を赤いボタンにする */
.menu-item.menu-subscribe > a {
  display: inline-block;
  padding: .55em 1.1em;
  font-weight: 700;
  border-radius: 9999px;
  line-height: 1;
  text-decoration: none;
  background: #ff0000;
  color: #fff;
}

.menu-item.menu-subscribe > a:hover,
.menu-item.menu-subscribe > a:focus {
  background: #cc0000;
  color: #fff;
  opacity: 1;
}

@media (max-width: 782px) {
  .menu-item.menu-subscribe > a {
    width: 100%;
    text-align: center;
  }
}

/* Lab / 既存ヒーロー互換 */
.ni-hero,
.adl-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--ni-line);
  margin-bottom: 2rem;
}

.ni-hero h1,
.adl-hero h1 {
  color: var(--ni-ink);
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.ni-hero p,
.adl-hero p {
  color: var(--ni-muted);
  font-size: 1.05rem;
  max-width: 36em;
}

.ni-hero a,
.adl-hero a {
  color: var(--ni-accent);
  font-weight: 600;
}

.ni-hero__sub {
  font-size: 0.95rem;
  color: var(--ni-muted);
  margin-top: 0.25rem;
}

/* 全体トップ（サイト型）：ページタイトル非表示・MV直下の余白 */
.ni-home-front .c-pageTitle,
.ni-home-front .p-pageTitle,
.ni-home-front .l-topTitleArea {
  display: none !important;
}

.ni-home-front .ni-bp-wrap--no-header {
  margin-top: 0;
}

.ni-home-front #content.l-content {
  padding-top: 0;
}

/* —— 4つの研究（BasePress KB entry 模写・左サイドバー無し） —— */
/* DOM/CSS values from https://basepresskb.com/docs/knowledge-base/basepress/ */
.ni-home-front .ni-bp-wrap,
.post_content .ni-bp-wrap {
  --ni-bp-accent: #17aacf;
  --ni-bp-header: #232f3e;
  --ni-bp-count: #36444f;
  --ni-bp-crumb: #e0e9eb;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  font-size: 16px;
  box-sizing: border-box;
}

.ni-home-front .ni-bp-wrap *,
.post_content .ni-bp-wrap * {
  box-sizing: border-box;
}

.ni-home-front .ni-bp-content-wrap,
.post_content .ni-bp-content-wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Page header */
.ni-home-front .ni-bp-page-header,
.post_content .ni-bp-page-header {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 36px 25px 60px;
  background-color: #232f3e;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.ni-home-front .ni-bp-page-title,
.post_content .ni-bp-page-title {
  margin: 0 0 0.4rem;
  color: #f2f2f2;
  font-size: 2em;
  font-weight: 500;
  line-height: 1.25;
}

.ni-home-front .ni-bp-page-title__sub,
.post_content .ni-bp-page-title__sub {
  font-size: 0.72em;
  font-weight: 400;
  opacity: 0.92;
}

.ni-home-front .ni-bp-page-lead,
.post_content .ni-bp-page-lead {
  max-width: 800px;
  margin: 0 auto;
  color: #80919d;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Search */
.ni-home-front .ni-bp-searchbar-wrap,
.post_content .ni-bp-searchbar-wrap {
  position: relative;
  margin-top: 36px;
}

.ni-home-front .ni-bp-search,
.post_content .ni-bp-search {
  position: relative;
  height: 50px;
  max-width: 600px;
  margin: 0 auto;
}

.ni-home-front .ni-bp-search-form,
.post_content .ni-bp-search-form {
  position: relative;
  height: 100%;
  margin: 0;
}

.ni-home-front .ni-bp-search-field,
.post_content .ni-bp-search-field {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 55px 0 25px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-size: 1.15em;
  font-weight: 300;
  outline: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.ni-home-front .ni-bp-search-field::placeholder,
.post_content .ni-bp-search-field::placeholder {
  color: #999;
  font-weight: 300;
}

.ni-home-front .ni-bp-search-submit,
.post_content .ni-bp-search-submit {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  border: 0;
  background: transparent;
  color: #80919d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ni-home-front .ni-bp-search-submit:hover,
.post_content .ni-bp-search-submit:hover {
  color: #17aacf;
}

.ni-home-front .ni-bp-search-submit svg,
.post_content .ni-bp-search-submit svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Crumbs */
.ni-home-front .ni-bp-crumbs-wrap,
.post_content .ni-bp-crumbs-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
  padding: 1em 10px;
  font-size: 0.9em;
  background-color: #e0e9eb;
}

.ni-home-front .ni-bp-crumbs,
.post_content .ni-bp-crumbs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ni-home-front .ni-bp-crumbs li,
.post_content .ni-bp-crumbs li {
  display: inline-block;
  margin: 0;
  padding: 0;
  color: #555;
}

.ni-home-front .ni-bp-crumbs a,
.post_content .ni-bp-crumbs a {
  color: #555;
  text-decoration: none;
}

.ni-home-front .ni-bp-crumbs a:hover,
.post_content .ni-bp-crumbs a:hover {
  color: #17aacf;
}

.ni-home-front .ni-bp-crumb-arrow,
.post_content .ni-bp-crumb-arrow {
  margin: 0 8px;
  color: #17aacf;
}

/* Grid 2 col */
.ni-home-front .ni-bp-grid,
.post_content .ni-bp-grid {
  display: flex !important;
  flex-wrap: wrap;
  margin: 0 -10px 24px;
  padding: 0 0 24px;
  letter-spacing: normal;
}

.ni-home-front .ni-bp-col,
.post_content .ni-bp-col {
  width: 50%;
  padding: 0 10px 20px;
  vertical-align: top;
}

@media (max-width: 767px) {
  .ni-home-front .ni-bp-col,
  .post_content .ni-bp-col {
    width: 100%;
  }
}

/* Section card — exact BasePress values */
.ni-home-front .ni-bp-section,
.post_content .ni-bp-section {
  position: relative;
  height: 100%;
  margin-bottom: 10px;
  padding: 20px 20px 3em;
  border: 1px solid #f2f2f2;
  border-radius: 3px;
  background-color: #fff;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}

.ni-home-front .ni-bp-section:hover,
.post_content .ni-bp-section:hover {
  border: 1px solid #e3e3e3;
}

/* Floating count badge */
.ni-home-front .ni-bp-post-count,
.post_content .ni-bp-post-count {
  display: inline-block;
  position: absolute;
  right: 15px;
  top: -15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #36444f;
  color: #f2f2f2;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  line-height: 30px;
}

/* Section heading */
.ni-home-front .ni-bp-heading,
.post_content .ni-bp-heading {
  position: relative;
  line-height: 1.5;
  color: inherit;
}

.ni-home-front .ni-bp-heading.show-icon,
.post_content .ni-bp-heading.show-icon {
  padding-left: 1.5em;
}

.ni-home-front .ni-bp-heading-icon,
.post_content .ni-bp-heading-icon {
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.4em;
  color: gray;
  line-height: inherit;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ni-home-front .ni-bp-heading-icon.colored,
.post_content .ni-bp-heading-icon.colored {
  color: #17aacf;
}

.ni-home-front .ni-bp-heading-icon svg,
.post_content .ni-bp-heading-icon svg {
  width: 1.05em;
  height: 1.05em;
  display: block;
}

.ni-home-front .ni-bp-heading--section,
.post_content .ni-bp-heading--section {
  font-size: 1.3em;
  font-weight: 700;
  margin: 0 0 0.35rem;
  padding-right: 2rem;
}

.ni-home-front .ni-bp-section-title,
.post_content .ni-bp-section-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.ni-home-front .ni-bp-section-title a,
.post_content .ni-bp-section-title a {
  color: inherit;
  text-decoration: none;
}

.ni-home-front .ni-bp-section-title a:hover,
.post_content .ni-bp-section-title a:hover {
  color: #17aacf;
  text-decoration: none;
}

/* Article list */
.ni-home-front .ni-bp-section-list,
.post_content .ni-bp-section-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ni-home-front .ni-bp-post-link,
.post_content .ni-bp-post-link {
  position: relative;
  margin: 0;
  padding: 10px 5px;
  border-bottom: 1px dashed #ddd;
  list-style-type: none;
  font-size: 1em;
  line-height: 1.5;
}

.ni-home-front .ni-bp-post-link:hover,
.post_content .ni-bp-post-link:hover {
  background-color: #f3f6f7;
}

.ni-home-front .ni-bp-post-link .ni-bp-heading,
.post_content .ni-bp-post-link .ni-bp-heading {
  font-size: 1.05em;
  font-weight: 400;
  margin: 0;
}

.ni-home-front .ni-bp-post-link a,
.ni-home-front .ni-bp-post-link a:hover,
.post_content .ni-bp-post-link a,
.post_content .ni-bp-post-link a:hover {
  text-decoration: none;
  line-height: inherit;
  color: inherit;
}

.ni-home-front .ni-bp-post-link--empty,
.post_content .ni-bp-post-link--empty {
  color: #80919d;
  font-size: 0.95em;
}

.ni-home-front .ni-bp-post-link--empty:hover,
.post_content .ni-bp-post-link--empty:hover {
  background: transparent;
}

/* View all */
.ni-home-front .ni-bp-section a.ni-bp-viewall,
.post_content .ni-bp-section a.ni-bp-viewall {
  display: block;
  position: absolute;
  bottom: 15px;
  left: 20px;
  margin-top: 1em;
  color: #17aacf;
  text-decoration: none;
  font-size: 0.95em;
}

.ni-home-front .ni-bp-section a.ni-bp-viewall:hover,
.post_content .ni-bp-section a.ni-bp-viewall:hover {
  color: #17aacf;
  text-decoration: underline;
}

/* —— トップ記事ハブ —— */
.ni-hub-latest__heading {
  margin: 0 0 0.4rem;
  color: var(--ni-ink);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.ni-hub-latest__lead {
  margin: 0 0 1.5rem;
  color: var(--ni-muted);
  font-size: 0.98rem;
}

.ni-hub-latest__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 782px) {
  .ni-hub-latest__grid {
    grid-template-columns: 1fr;
  }
}

.ni-hub-card {
  background: var(--ni-paper);
  border: 1px solid var(--ni-line);
  padding: 1.1rem 1.15rem 1rem;
}

.ni-hub-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--ni-line);
}

.ni-hub-card__title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ni-ink);
}

.ni-hub-card__more {
  font-size: 0.85rem;
  color: var(--ni-accent);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.ni-hub-card__more:hover,
.ni-hub-card__more:focus {
  text-decoration: underline;
}

.ni-hub-card__empty,
.ni-cpt-list__empty {
  margin: 0;
  color: var(--ni-muted);
  font-size: 0.92rem;
}

.ni-hub-card__items,
.ni-cpt-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ni-hub-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(216, 222, 228, 0.7);
}

.ni-hub-item:last-child {
  border-bottom: 0;
}

.ni-hub-item__link {
  color: var(--ni-ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
}

.ni-hub-item__link:hover,
.ni-hub-item__link:focus {
  color: var(--ni-accent);
  text-decoration: underline;
}

.ni-hub-item__date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--ni-muted);
  font-variant-numeric: tabular-nums;
}

.ni-cpt-list {
  margin: 0.75rem 0 1.5rem;
}

.ni-cpt-list__items .ni-hub-item {
  padding: 0.65rem 0;
}

/* —— 研究系シングル —— */
.ni-research-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ni-muted);
}

.ni-research-nav__hub {
  color: var(--ni-accent);
  font-weight: 600;
  text-decoration: none;
}

.ni-research-nav__hub:hover,
.ni-research-nav__hub:focus {
  text-decoration: underline;
}

.ni-research-nav__type {
  color: var(--ni-ink);
  font-weight: 600;
}

.ni-research-disclaimer {
  margin: 2rem 0 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--ni-accent-soft);
  border-left: 3px solid var(--ni-accent);
  color: var(--ni-ink);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ni-research-disclaimer p {
  margin: 0 0 0.5rem;
}

.ni-research-disclaimer p:last-child {
  margin-bottom: 0;
}

.ni-research-disclaimer a {
  color: var(--ni-accent);
  font-weight: 600;
}

/* —— トップ：研究テーマ — SWELLボックスメニュー（矩形カード＋円アイコン） —— */
.ni-home-circle-wrap {
  margin: 1.5rem auto 0;
  max-width: 1200px;
}

.ni-home-circle-wrap .swell-block-box-menu {
  --the-box-width--pc: 25%;
  --the-box-width--tab: 50%;
  --the-box-width--mb: 50%;
}

.ni-home-circle-wrap .swell-block-box-menu__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.75rem 1rem;
}

@media (min-width: 960px) {
  .ni-home-circle-wrap .swell-block-box-menu__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ni-home-circle-wrap .swell-block-box-menu__item {
  width: auto !important;
  max-width: none;
  margin: 0 !important;
  border: 0;
  background: transparent;
}

.ni-home-circle-wrap .swell-block-box-menu__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 8.5rem;
  margin: 0;
  padding: 1.35rem 0.75rem 1.2rem;
  box-sizing: border-box;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--ni-line);
  box-shadow: none;
  color: var(--ni-ink);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ni-home-circle-wrap .swell-block-box-menu__link:hover,
.ni-home-circle-wrap .swell-block-box-menu__link:focus {
  color: var(--ni-ink);
  text-decoration: none;
  border-color: #c5d0d8;
  box-shadow: 0 4px 14px rgba(4, 56, 76, 0.08);
  transform: translateY(-2px);
}

.ni-home-circle-wrap .swell-block-box-menu__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--ni-accent-soft);
  color: var(--ni-brand);
}

.ni-home-circle-wrap .swell-block-box-menu__figure svg {
  width: 1.45em;
  height: 1.45em;
}

.ni-home-circle-wrap .swell-block-box-menu__text {
  flex: 0 1 auto;
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ni-ink);
}

.ni-home-front .post_content .swell-block-fullWide__inner > p {
  text-align: center;
  color: var(--ni-muted);
  margin: 0.35rem auto 1.25rem;
  max-width: 36em;
}

.ni-home-front .post_content .p-postListWrap > p,
.ni-home-front .p-postListWrap > p,
.ni-home-front .ni-postlist-empty,
.ni-postlist-empty,
.ni-home-front .ni-home-section__empty,
.ni-home-front .ni-cpt-list__empty,
.ni-home-front .ni-hub-card__empty {
  text-align: center;
}

.ni-home-front .post_content h2.is-style-section_ttl {
  color: var(--ni-brand);
}

.ni-home-front .post_content h2.is-style-section_ttl .mininote {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.ni-home-footer-links {
  margin: 0;
  color: var(--ni-muted);
  font-size: 0.92rem;
}

.ni-home-footer-links a {
  color: var(--ni-brand);
  font-weight: 600;
  text-decoration: none;
}

.ni-home-footer-links a:hover,
.ni-home-footer-links a:focus {
  text-decoration: underline;
}

.ni-home-section__empty {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  background: var(--ni-paper);
  border: 1px solid var(--ni-line);
  border-radius: 10px;
  color: var(--ni-muted);
  font-size: 0.92rem;
}

@media (min-width: 768px) {
  .ni-home-circle-wrap .swell-block-box-menu__link {
    min-height: 9.25rem;
    padding: 1.5rem 1rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ni-home-circle-wrap .swell-block-box-menu__link {
    transition: none;
  }

  .ni-home-circle-wrap .swell-block-box-menu__link:hover,
  .ni-home-circle-wrap .swell-block-box-menu__link:focus {
    transform: none;
  }
}
