/* ==================================================
  components.css
  - 共通コンポーネント（形だけ）
================================================== */

/* ---------- Card ---------- */
.card {
  width: 100%;
}

.card-body {
  padding: 16px;
}

@media (min-width: 992px) {
  .card-body {
    padding: 20px;
  }
}

/* ---------- Sidebar Blocks ---------- */
.sidebar-block {
  margin-bottom: 16px;
}

.sidebar-block__title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sidebar-block__body {
  font-size: 0.9rem;
}

/* ---------- Buttons（形のみ） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* ---------- Button Group ---------- */
.btn-group-inline {
  display: flex;
  gap: 8px;
}

@media (max-width: 575.98px) {
  .btn-group-inline {
    flex-direction: column;
  }
}

/* ---------- Lists ---------- */
.list-plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-plain li + li {
  margin-top: 6px;
}

/* ---------- Utility ---------- */
.u-mb-sm { margin-bottom: 8px; }
.u-mb-md { margin-bottom: 16px; }
.u-mb-lg { margin-bottom: 24px; }










/* =========================
   SITE HEADER（最上段）
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* ヘッダー直下に薄い区切りを入れて“媒体感”を出す */
.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0,0,0,.12),
    transparent
  );
}




/* =========================
   HOME SUBHEADER（トップのみ）
   components.css
========================= */

.home-subheader {
  background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* 元の py-3/py-md-4 相当 */
.home-subheader__container {
  padding: 20px 0; /* navより重く */
}
main.main {
  padding-top: 32px; /* subheaderより重く */
}

@media (min-width: 768px) {
  .home-subheader__container {
    padding: 22px 0;
  }
}

.home-subheader__wrap {
  max-width: 720px;
}

.home-subheader__desc {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(0,0,0,.72);
}

/* 補助導線 */
.home-subheader__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* 旧 btn-outline-secondary の代替 */
.subnav-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.15);
  color: rgba(0,0,0,.78);
  background: transparent;
}

.subnav-link:hover {
  background: rgba(0,0,0,.05);
  color: rgba(0,0,0,.92);
}

/* notice */
.home-subheader__note {
  margin-top: 12px; /* 元の mt-3 相当 */
}

.note-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
}






/* =========================
   SITE NAV（共通ヘッダー）
========================= */

.site-nav {
-  position: sticky;
-  top: 0;
   z-index: 100;
   background: rgba(255,255,255,.92);
   backdrop-filter: blur(10px);
   border-bottom: 1px solid rgba(0,0,0,.08);
   height: 72px; /* 64px → 72px */
}


.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative; /* これを追加 */


}

/* ---------- Brand ---------- */
.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-nav__logo {
  height: 22px;
  width: auto;
}

.site-nav__name {
  font-weight: 800;
  font-size: 1rem;
  color: #111;
}

/* ---------- Menu ---------- */
.site-nav__menu {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: inline-block;
  padding: 6px 10px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  color: rgba(0,0,0,.72);
  border-radius: 8px;
  line-height: 1.45;
}

.site-nav__link:hover {
  background: rgba(0,0,0,.05);
  color: #000;
}

/* ---------- Toggle（SP） ---------- */
.site-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.site-nav__toggle span {
  width: 22px;
  height: 2px;
  background: #111;
}

/* ---------- SP ---------- */
@media (max-width: 767px) {

  .site-nav__menu {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: #fff;
    padding: 12px 16px;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }

  .site-nav__menu.is-open {
    display: flex;
  }

  .site-nav__toggle {
    display: flex;
  }
}


/* =========================
   Bootstrap互換（暫定）
   ※ HTML整理後に削除予定
   components.css
========================= */

/* spacing */
.py-3,
.py-md-4 {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

/* flex utilities */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 10px; }
.align-items-center { align-items: center; }

/* btn互換（見た目のみ） */
.btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.15);
  color: rgba(0,0,0,.75);
  background: transparent;
}

.btn:hover {
  background: rgba(0,0,0,.05);
}



/* =========================
   CARD
========================= */
.c-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.c-card__body {
  padding: 16px 18px;
}

/* =========================
   BUTTON
========================= */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s ease, color .15s ease;
}

.c-btn--primary {
  background: #111;
  color: #fff;
}

.c-btn--primary:hover {
  background: #000;
}

.c-btn--ghost {
  background: transparent;
  color: rgba(0,0,0,.75);
  border: 1px solid rgba(0,0,0,.18);
}

.c-btn--ghost:hover {
  background: rgba(0,0,0,.05);
}

.c-btn--sm {
  padding: 6px 12px;
  font-size: .8rem;
}

/* =========================
   BADGE
========================= */
.c-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: .7rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.75);
}



/* =========================
   編集部の宣言（トップ）
========================= */
.editor-note {
  max-width: 720px;
  padding-left: 14px;
  border-left: 3px solid rgba(0,0,0,.08);
}

.editor-note__label {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(0,0,0,.45);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.editor-note__text {
  margin: 0;
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(0,0,0,.75);
}



/* =========================
  Sidebar blocks（カード禁止）
  file: public/assets/css/components.css
========================= */

.sidebar-wrap{ padding-top: 4px; }

/* ブロックは線で区切る：サイドは“補助”に見せる */
.sb{
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.sb:first-child{ padding-top: 0; }
.sb:last-child{ border-bottom: 0; padding-bottom: 0; }

.sb__head{ margin-bottom: 10px; }
.sb__title{
  margin: 0;
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .01em;
  color: rgba(0,0,0,.86);
}
.sb__lead{
  margin: 6px 0 0;
  font-size: .8rem;
  color: rgba(0,0,0,.48);
  line-height: 1.4;
}

/* 検索は“軽いパネル”に：カードではなくフォームだけ整える */
.sb-search{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
}

.sb-search__icon{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.05);
  flex: 0 0 auto;
}

.sb-search__input{
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: .9rem;
  font-weight: 800;
  color: rgba(0,0,0,.76);
}
.sb-search__input::placeholder{
  color: rgba(0,0,0,.36);
  font-weight: 700;
}

.sb-search__btn{
  flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,.16);
  background: #fff;
  color: rgba(0,0,0,.82);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .8rem;
  font-weight: 900;
  cursor: pointer;
}
.sb-search__btn:hover{ background: rgba(0,0,0,.04); }

/* チップ（Bootstrapなし） */
.sb-chips{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sb-chip{
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  color: rgba(0,0,0,.70);
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
}
.sb-chip:hover{
  background: rgba(0,0,0,.04);
  color: rgba(0,0,0,.90);
}



/* 新着（外枠カードなし） */
.posts-latest{
  padding-top: 2px;
}

/* “セクションっぽさ”は線で出す（カードより軽い） */
.posts-latest + .posts-latest{
  border-top: 1px solid rgba(0,0,0,.08);
  margin-top: 14px;
  padding-top: 14px;
}




/* =========================
   POST（記事ページ）
========================= */

.post__inner{
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

@media (min-width: 992px){
  .post__inner{ padding: 26px 0 56px; }
}

/* breadcrumb */
.p-bc{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size: 12px;
  color: rgba(0,0,0,.55);
  margin: 6px 0 14px;
}
.p-bc__a{ color: rgba(0,0,0,.65); text-decoration:none; }
.p-bc__a:hover{ text-decoration:underline; }
.p-bc__sep{ opacity:.6; }
.p-bc__cur{ color: rgba(0,0,0,.7); }

/* head */
.p-head{ padding: 6px 0 6px; }
.p-title{
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: .2px;
  margin: 0 0 10px;
  font-weight: 900;
}
@media (min-width: 992px){
  .p-title{ font-size: 34px; }
}
.p-meta{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 13px;
  color: rgba(0,0,0,.55);
  margin-bottom: 12px;
}
.p-meta__cat{ color: rgba(0,0,0,.65); text-decoration:none; }
.p-meta__cat:hover{ text-decoration:underline; }
.p-meta__dot{ opacity:.6; }

.p-desc{
  font-size: 15px;
  line-height: 1.8;
  color: rgba(0,0,0,.7);
  margin: 0 0 14px;
}

/* tags */
.p-tags{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin: 10px 0 6px;
}

/* TOC */
.p-toc{
  margin: 16px 0 22px;
  padding: 14px 14px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: rgba(0,0,0,.02);
}
.p-toc__title{
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
  color: rgba(0,0,0,.75);
}
.p-toc__list{
  margin: 0;
  padding-left: 18px;
}
.p-toc__item{ margin: 6px 0; }
.p-toc__a{
  color: rgba(0,0,0,.7);
  text-decoration:none;
  font-size: 14px;
  line-height: 1.6;
}
.p-toc__a:hover{ text-decoration:underline; }

/* body typography */
.p-bodywrap{ margin-top: 10px; }

.p-lead{
  font-size: 16px;
  line-height: 1.95;
  color: rgba(0,0,0,.78);
  margin: 0 0 18px;
}

.p-h2{
  margin: 26px 0 12px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 900;
  padding-left: 12px;
  border-left: 4px solid rgba(0,0,0,.12);
}
.p-h3{
  margin: 18px 0 10px;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 850;
}

.p-body{
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.95;
  color: rgba(0,0,0,.78);
}

/* note */
.p-note{
  margin: 18px 0;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255, 255, 255, .9);
}
.p-note__label{
  font-weight: 900;
  font-size: 12px;
  color: rgba(0,0,0,.6);
  margin-bottom: 6px;
}
.p-note__text{
  font-size: 14px;
  line-height: 1.85;
  color: rgba(0,0,0,.78);
}

/* CTA */
.p-cta{
  margin: 24px 0 6px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}
.p-cta__title{
  font-weight: 900;
  margin-bottom: 6px;
  font-size: 14px;
}
.p-cta__text{
  font-size: 14px;
  line-height: 1.85;
  color: rgba(0,0,0,.75);
  margin-bottom: 12px;
}
.p-cta__btn{ width:100%; display:block; }

/* footer */
.p-foot{
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.08);
}

/* =========================
   UI Components（btn / chip）
========================= */

.c-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,.14);
  color: rgba(0,0,0,.78);
  background: #fff;
}
.c-btn:hover{ background: rgba(0,0,0,.04); }

.c-btn--primary{
  border-color: rgba(0,0,0,.12);
  background: #111;
  color: #fff;
}
.c-btn--primary:hover{ opacity: .92; }

.c-btn--ghost{
  background: transparent;
}

.c-chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  text-decoration:none;
  font-size: 12px;
  font-weight: 800;
  color: rgba(0,0,0,.72);
  background: #fff;
}
.c-chip:hover{ background: rgba(0,0,0,.04); }
