/* ===========================================
   Slide-based palette + Flat panel layout (no radius)
   =========================================== */
:root{
  --slide-blue-deep: #2870A8;
  --slide-blue:      #3098D0;
  --slide-ink:       #203040;
  --slide-paper:     #F6F8FB;

  --ink-900:   #0b1220;
  --ink-700:   #243044;
  --muted-600: #556176;

  --surface-0: #ffffff;   /* panel surface */
  --canvas:    #F2F6FB;   /* page background */
  --border-1:  #E6EAF0;

  --shadow-1:  0 10px 28px rgba(11,18,32,.08);
  --shadow-2:  0 18px 44px rgba(11,18,32,.12);

  --radius: 0px;          /* ★角丸なし */
  --panel-gap: 18px;

  /* "濃いめの水色"（ベタ） */
  --aqua-strong: #4FB3E3;
}

:root{
  --bs-body-color: var(--ink-900);
  --bs-body-bg: var(--canvas);

  --bs-border-color: var(--border-1);

  --bs-primary: var(--slide-blue);
  --bs-primary-rgb: 48,152,208;

  --bs-link-color: #287FB0;
  --bs-link-hover-color: #1F6791;

  --bs-font-sans-serif: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", Arial, sans-serif;

  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.7;

  /* Bootstrap radiusもフラット寄せ（保険） */
  --bs-border-radius: 0rem;
  --bs-border-radius-lg: 0rem;
  --bs-border-radius-xl: 0rem;
}

html {
  overflow-x: hidden;
}
body {
  color: var(--ink-900);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "Open Sans", "Helvetica Neue", Helvetica, "Arial", "游ゴシック", YuGothic, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* Navbar */
.navbar{
  border-bottom: 1px solid rgba(32,48,64,.08) !important;
  background: var(--slide-blue) !important;
  backdrop-filter: saturate(140%) blur(10px);
}
.navbar-brand,
.navbar-nav .nav-link{
  color: rgba(255,255,255,.95) !important;
}
.navbar-brand:hover,
.navbar-nav .nav-link:hover{
  color: #fff !important;
}
.navbar-toggler{
  border-color: rgba(255,255,255,.3);
}
.navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn{
  border-radius: 999px; /* ボタンは丸いままがSaaSっぽい */
  font-weight: 600;
}
.btn-primary{
  background: var(--slide-blue);
  border-color: var(--slide-blue);
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(48,152,208,.22);
}
.btn-primary:hover{
  background: #287FB0;
  border-color: #287FB0;
  color: #fff !important;
}
.btn-outline-secondary{
  border-color: rgba(32,48,64,.14);
  color: var(--ink-700);
  background: rgba(255,255,255,.55);
}
.btn-outline-secondary:hover{
  background: rgba(11,18,32,.04);
  border-color: rgba(11,18,32,.14);
  color: var(--ink-900);
}

/* Typography helpers */
a{ text-underline-offset: 2px; }
.kicker{
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.78rem;
  color: var(--muted-600);
}
.lead-muted{ color: var(--muted-600); }
.link-muted{ color: var(--muted-600) !important; text-decoration:none; }
.link-muted:hover{ color: var(--ink-900) !important; text-decoration:underline; }

/* ===== Flat Panel Sections ===== */
.panel-wrap{
  padding: 0px 0; /* セクション間の"呼吸" */
}
.panel{
  border-radius: var(--radius);
  border: 1px solid rgba(32,48,64,.08);
  background: var(--surface-0);
  box-shadow: var(--shadow-1);
  padding: 64px 0;
}
.panel .container{ padding-left: 20px; padding-right: 20px; }

.panel-soft{
  background: var(--slide-paper);
  border-color: rgba(32,48,64,.08);
}

/* 濃い水色ベタ（グラデ無し） */
.panel-tint{
  background: var(--aqua-strong);
  border-color: rgba(255,255,255,.28);
  box-shadow: var(--shadow-2);
  color: rgba(255,255,255,.96);
}
.panel-tint .kicker{ color: rgba(255,255,255,.78) !important; }
.panel-tint .lead-muted,
.panel-tint .text-secondary{ color: rgba(255,255,255,.88) !important; }

/* Tint panel内のカードは白で浮かせる */
.panel-tint .card-soft{
  background: #fff !important;
  border-color: rgba(255,255,255,.55) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}
.panel-tint .card-soft .text-secondary{ color: var(--muted-600) !important; }
.panel-tint .btn-primary{
  background: #fff !important;
  border-color: #fff !important;
  color: var(--aqua-strong) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
.panel-tint .btn-primary:hover{
  background: rgba(255,255,255,.9) !important;
  border-color: rgba(255,255,255,.9) !important;
  color: var(--aqua-strong) !important;
}

/* Card */
.card-soft{
  border: 1px solid rgba(32,48,64,.10);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  background: #fff;
}

/* Amazon book partials - match card-soft design */
.panel.panel-default.recommended-book {
  border: 1px solid rgba(32,48,64,.10);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.panel.panel-default.recommended-book .panel-body {
  padding: 0;
}
.panel.panel-default.recommended-book h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.panel.panel-default.recommended-book h4::before {
  content: none !important;
}
.entry-content .panel.panel-default.recommended-book h4::before {
  content: none !important;
}
.single-post .entry-content h4::before {
  content: none !important;
}
.panel.panel-default.recommended-book h4 strong {
  font-weight: 600;
}
.panel.panel-default.recommended-book h4 a {
  color: var(--ink-900);
  text-decoration: none;
  font-weight: 600;
}
.panel.panel-default.recommended-book h4 a:hover {
  color: var(--slide-blue);
  text-decoration: underline;
}
.panel.panel-default.recommended-book ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.panel.panel-default.recommended-book ul li {
  font-size: 0.875rem;
  color: var(--muted-600);
  margin-bottom: 0.25rem;
}
.panel.panel-default.recommended-book .img-thumbnail2 {
  border: 1px solid rgba(32,48,64,.10);
  border-radius: var(--radius);
  width: 100%;
  height: auto;
}

/* Pills / badges */
.pill{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.35rem .65rem;
  border:1px solid rgba(32,48,64,.12);
  border-radius:999px;
  color:var(--muted-600);
  background:#fff;
  font-size:.9rem;
}
.badge.text-bg-light{
  background: #fff !important;
  border: 1px solid rgba(32,48,64,.12) !important;
  color: var(--muted-600) !important;
  border-radius: 999px;
  padding: .45em .75em;
}

/* Hero */
.hero{
  padding: 54px 0 22px;
  background-color: #666666 !important;
  margin-top: 0 !important;
}
.hero h1 {
  color: #ffffff;
}
.hero .lead {
  color: #ffffff;
}
.hero-card{
  border-radius: var(--radius);
  border: 1px solid rgba(32,48,64,.08);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-1);
  padding: 28px;
}

/* Metrics / logos */
.metric{
  border: 1px solid rgba(32,48,64,.10);
  border-radius: var(--radius);
  background:#fff;
  padding: 18px;
  height:100%;
  box-shadow: 0 10px 26px rgba(11,18,32,.08);
}
.metric .num{ font-weight: 800; font-size: 1.4rem; }
.logo{ height: 28px; opacity: .75; filter: grayscale(100%); }

/* Media blocks */
.avatar{
  width:56px; height:56px;
  border-radius: var(--radius);
  border:1px solid rgba(32,48,64,.10);
  background: #fff;
  object-fit: cover;
}
.thumb{
  width:100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid rgba(32,48,64,.10);
  background: linear-gradient(180deg, #fff, #f1f5f9);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted-600);
  font-size: .9rem;
  object-fit: cover;
}
.card-soft .thumb{
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

/* Accordion */
.accordion-item{ border-color: rgba(32,48,64,.10) !important; border-radius: 0 !important; }
.accordion-button{ font-weight: 600; }
.accordion-button:not(.collapsed){
  background: rgba(48,152,208,.10);
  color: var(--ink-900);
}
.accordion, .accordion *{ border-radius: 0 !important; }

/* Footer */
.footer{
  margin-top: 22px;
  padding-top: 34px;
  border-top: 1px solid rgba(32,48,64,.10);
  background: rgba(242,246,251,1);
}

/* Focus ring */
:focus-visible{
  outline: 3px solid rgba(48,152,208,.28);
  outline-offset: 2px;
}

/* Books scroll section */
.books-scroll-wrapper{
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.books-scroll{
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  width: 100%;
}
.books-scroll-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(32,48,64,.15);
  box-shadow: 0 4px 12px rgba(11,18,32,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--ink-900);
  font-size: 1.2rem;
  font-weight: 600;
}
.books-scroll-btn:hover{
  background: #fff;
  box-shadow: 0 6px 16px rgba(11,18,32,.18);
  transform: translateY(-50%) scale(1.05);
}
.books-scroll-btn:active{
  transform: translateY(-50%) scale(0.95);
}
.books-scroll-btn-left{
  left: 20px;
}
.books-scroll-btn-right{
  right: 20px;
}
.books-scroll-btn:disabled{
  opacity: 0.3;
  cursor: not-allowed;
}
.books-scroll-inner{
  display: flex;
  gap: 1rem;
  padding-left: 60px;
  padding-right: 60px;
  padding-bottom: 0.5rem;
}
.book-item{
  flex: 0 0 auto;
  width: 160px;
}
.book-item img{
  width: 100%;
  height: auto;
  border: 1px solid rgba(32,48,64,.10);
}

/* ===========================================
   Original Navbar Styles (from public/index.html)
   =========================================== */

/* Header */
#header {
  position: relative;
  background-color: #FFF;
  border-bottom: none;
}
#header-wrap {
  position: relative;
  width: 100%;
  background-color: #FFF;
}
@media (min-width: 992px) {
  #header-wrap {
    position: fixed;
    height: auto;
    z-index: 299;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
    transition: height .2s ease 0s, background-color .3s ease 0s;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: left, top, transform;
  }
  body.stretched #header.full-header #header-wrap > .container {
    width: 100%;
    max-width: none;
    padding: 0 30px;
  }
}

.header-wrap-clone {
  display: none;
}
@media (min-width: 992px) {
  .header-wrap-clone {
    display: block;
    height: 101px;
  }
  .header-size-sm .header-wrap-clone {
    height: 61px;
  }
  .header-size-sm2 .header-wrap-clone {
    height: 61px;
  }
  .header-size-md .header-wrap-clone {
    height: 81px;
  }
  .header-size-lg .header-wrap-clone {
    height: 121px;
  }
}

.header-row {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
@media (min-width: 992px) {
  .header-row {
    position: initial;
  }
}

/* Logo */
#logo {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: auto;
  max-height: 100%;
}
#logo a {
  color: #000;
  font-family: "Poppins", sans-serif;
  font-size: 36px;
}
#logo a.standard-logo {
  display: flex;
}
#logo a.retina-logo {
  display: none;
}
#logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: 100px;
}
@media (min-width: 992px) {
  #logo img {
    transition: height .4s ease, padding .4s ease, margin .4s ease, opacity .3s ease;
    max-height: 100%;
  }
}
.header-size-sm #header-wrap #logo img {
  height: 60px;
}
.header-size-sm2 #header-wrap #logo img {
  height: 60px;
}
.header-size-sm2 #header-wrap {
  min-height: 61px;
}
.header-size-md #header-wrap #logo img {
  height: 80px;
}
.header-size-lg #header-wrap #logo img {
  height: 120px;
}
@media (min-width: 992px) {
  .full-header #logo {
    padding-right: 30px;
    border-right: 1px solid #eeeeee;
  }
}
.dark .full-header #logo,
#header.dark.full-header #logo,
.dark.full-header #logo {
  border-right-color: rgba(255,255,255,0.05) !important;
  border-right-width: 1px !important;
}

/* Retina Logo */
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
  #logo a.standard-logo {
    display: none;
  }
  #logo a.retina-logo {
    display: flex;
  }
}

/* Primary Menu Trigger */
#primary-menu-trigger {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
  cursor: pointer;
  font-size: 0.875rem;
  width: 50px;
  height: 50px;
  line-height: 50px;
  justify-content: center;
  align-items: center;
  transition: opacity .3s ease;
}
@media (min-width: 992px) {
  #primary-menu-trigger {
    display: none;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
  }
}

.svg-trigger {
  width: 30px;
  height: 30px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 400ms;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.svg-trigger path {
  fill: none;
  transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
  stroke: #333;
  stroke-width: 5;
  stroke-linecap: round;
}
.svg-trigger path:nth-child(1) {
  stroke-dasharray: 40 160;
}
.primary-menu-open .svg-trigger path:nth-child(1) {
  stroke-dashoffset: -64px;
}
.svg-trigger path:nth-child(2) {
  stroke-dasharray: 40 142;
  transform-origin: 50%;
  transition: transform 400ms;
}
.primary-menu-open .svg-trigger path:nth-child(2) {
  transform: rotate(90deg);
}
.svg-trigger path:nth-child(3) {
  stroke-dasharray: 40 85;
  transform-origin: 50%;
  transition: transform 400ms, stroke-dashoffset 400ms;
}
.primary-menu-open .svg-trigger path:nth-child(3) {
  stroke-dashoffset: -64px;
}
.primary-menu-open .svg-trigger {
  transform: rotate(45deg);
}

/* Header Misc */
.header-misc {
  position: initial;
  display: flex;
  align-items: center;
  margin-left: 15px;
}
@media (min-width: 992px) {
  .header-misc {
    order: 13;
  }
}
.header-misc-element, .header-misc-icon {
  margin: 0 8px;
}
.header-misc-icon > a {
  display: block;
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.25rem;
  text-align: center;
  color: #333333;
  transition: color .3s ease-in-out;
}

/* Primary Menu */
.primary-menu {
  display: flex;
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}
@media (min-width: 992px) {
  .primary-menu {
    flex: 0 0 auto;
    flex-grow: 0;
  }
}

.menu-container {
  display: none;
  list-style: none;
  margin: 0;
  width: 100%;
  padding: 0;
}
@media (min-width: 992px) {
  .menu-container {
    display: flex !important;
  }
  .full-header .primary-menu .menu-container {
    padding-right: 0.5rem;
    margin-right: 0.5rem;
    border-right: 1px solid #EEE;
  }
}
@media (max-width: 991.98px) {
  .primary-menu-open .menu-container {
    display: block !important;
  }
}

.menu-item {
  position: relative;
}
.menu-item:not(:first-child) {
  border-top: 1px solid #eeeeee;
}
@media (min-width: 992px) {
  .menu-item:not(:first-child) {
    border-top: 0;
  }
  .menu-container > .menu-item:not(:first-child) {
    margin-left: 2px;
  }
}
.menu-item:hover > .menu-link, .menu-item.current > .menu-link {
  color: #1ABC9C;
}

.menu-link {
  display: block;
  line-height: 22px;
  padding: 14px 5px;
  color: #444;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
}
.menu-link:hover {
  text-decoration: none;
}
@media (min-width: 992px) {
  .menu-link {
    padding: 39px 15px;
    transition: margin .4s ease, padding .4s ease, color .3s ease;
  }
  .header-size-sm .menu-container > .menu-item > .menu-link {
    padding-top: 19px;
    padding-bottom: 19px;
  }
  .header-size-sm2 .menu-container > .menu-item > .menu-link {
    padding-top: 19px;
    padding-bottom: 19px;
    line-height: 22px;
  }
  .header-size-md .menu-container > .menu-item > .menu-link {
    padding-top: 29px;
    padding-bottom: 29px;
  }
  .header-size-lg .menu-container > .menu-item > .menu-link {
    padding-top: 49px;
    padding-bottom: 49px;
  }
}
.menu-link div > i.icon-angle-down {
  display: none;
}

/* Sub Menu */
.sub-menu-container {
  position: relative;
  padding-left: 15px;
  border-top: 1px solid #eeeeee;
  list-style: none;
  margin-bottom: 0;
}
@media (min-width: 992px) {
  .sub-menu-container {
    position: absolute;
    visibility: hidden;
    width: 220px;
    background-color: #FFF;
    box-shadow: 0px 13px 42px 11px rgba(0, 0, 0, 0.05);
    border: 1px solid #eeeeee;
    border-top: 2px solid #1ABC9C;
    z-index: 399;
    top: 100%;
    left: 0;
    padding: 10px;
    opacity: 0;
    margin-top: 15px;
    pointer-events: none;
    transition: opacity .3s ease, margin .25s ease;
  }
  .primary-menu:not(.on-click) .menu-item:hover > .sub-menu-container {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    z-index: 399;
    pointer-events: auto;
  }
}

.sub-menu-container .menu-item:not(:first-child) {
  border-top: 1px solid #eeeeee;
}
.sub-menu-container .menu-item > .menu-link {
  position: relative;
  padding: 11px 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #666666;
  letter-spacing: 0;
  font-family: "Lato", sans-serif;
}
.sub-menu-container .menu-item:hover > .menu-link {
  font-weight: 700;
}

/* Mobile Menu */
@media (max-width: 991.98px) {
  .primary-menu {
    max-width: 100%;
  }
  .menu-container {
    max-height: 60vh;
    margin: 1rem 0;
    overflow-x: hidden;
    overflow-y: scroll;
  }
  .primary-menu-open .menu-container {
    display: block;
  }
}

/* Hide sub-menu triggers */
.sub-menu-trigger {
  display: none !important;
}

/* Hide sub-menu triggers */
.sub-menu-trigger {
  display: none !important;
}

/* Dark Theme */
.dark #header {
  background-color: #333 !important;
  border-bottom: none !important;
}
.dark #header-wrap {
  background-color: #333 !important;
}
.dark .primary-menu + .primary-menu,
.dark .menu-item:not(:first-child),
.dark .sub-menu-container,
.dark .sub-menu-container .menu-item:not(:first-child) {
  border-top-color: rgba(255,255,255,0.15);
}
.dark .svg-trigger path {
  stroke: #FFF !important;
}
.dark .menu-link {
  color: #F7F7F7 !important;
}
.dark .menu-item:hover > .menu-link,
.dark .menu-item.current > .menu-link {
  color: #1ABC9C !important;
}
.dark .header-misc-icon > a {
  color: #F7F7F7 !important;
}
.dark.full-header .primary-menu .menu-container,
.dark .full-header .primary-menu .menu-container,
#header.dark.full-header .primary-menu .menu-container {
  border-right-color: rgba(255,255,255,0.05) !important;
}
@media (min-width: 992px) {
  .dark .primary-menu:not(.not-dark) .sub-menu-container {
    background-color: #333;
    border-color: rgba(255,255,255,0.05);
    border-top-color: #1ABC9C;
  }
  .dark .primary-menu:not(.not-dark) .sub-menu-container .menu-item > .menu-link {
    color: #999;
  }
  .dark .primary-menu:not(.not-dark) .sub-menu-container .menu-item:hover > .menu-link {
    background-color: rgba(0,0,0,0.1);
    color: #1ABC9C;
  }
}

/* ===========================================
   Blog Article Page Styles (for single.html)
   =========================================== */

/* Page Title Section */
#page-title {
  position: relative;
  padding: 5rem 0;
  background:
    linear-gradient(135deg, rgba(85, 85, 85, 0.7) 0%, rgba(102, 102, 102, 0.7) 50%, rgba(85, 85, 85, 0.7) 100%),
    url('https://www.ryuzee.com/images/background-3.webp') center/cover no-repeat;
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
#page-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 0;
}
#page-title.dark {
  background:
    linear-gradient(135deg, rgba(85, 85, 85, 0.7) 0%, rgba(102, 102, 102, 0.7) 50%, rgba(85, 85, 85, 0.7) 100%),
    url('https://www.ryuzee.com/images/background-3.webp') center/cover no-repeat;
  border-bottom: none;
}
#page-title.dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 0;
}
#page-title h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
#page-title span {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
#page-title.dark h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
#page-title.dark span {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
#page-title .breadcrumb > .active {
  color: rgba(255, 255, 255, 0.6);
}
#page-title .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}
#page-title .breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.95);
}
#page-title .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}
#page-title.dark .breadcrumb > .active {
  color: rgba(255, 255, 255, 0.6);
}
#page-title.dark .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}
#page-title.dark .breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.95);
}
#page-title.dark .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}
#page-title .container {
  position: relative;
  z-index: 1;
}
#page-title h1 {
  padding: 0;
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 2px;
  color: #ffffff;
  font-size: 2.25rem;
  text-transform: uppercase;
}
#page-title span {
  display: block;
  margin-top: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.125rem;
  letter-spacing: 0.5px;
}

/* Breadcrumb */
#page-title .breadcrumb {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}
.breadcrumb {
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  font-size: 0.875rem;
}
@media (max-width: 991.98px) {
  #page-title .breadcrumb {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 1rem;
    margin-bottom: 0;
  }
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--muted-600);
  padding: 0 0.5rem;
}
.breadcrumb-item a {
  color: var(--muted-600);
  text-decoration: none;
}
.breadcrumb-item a:hover {
  color: var(--slide-blue);
}
.breadcrumb-item.active {
  color: var(--ink-900);
}

/* Content Wrap */
.content-wrap {
  position: relative;
  padding: 64px 0;
  background: var(--canvas);
}
#content {
  background: var(--canvas);
}
#content .container {
  padding-left: 20px;
  padding-right: 20px;
}
.gutter-40 {
  margin-left: -20px;
  margin-right: -20px;
}
.gutter-40 > .col,
.gutter-40 > [class*="col-"] {
  padding-left: 20px;
  padding-right: 20px;
}
.col-mb-80 {
  margin-bottom: 0;
}
.col-mb-80 > .col,
.col-mb-80 > [class*="col-"] {
  margin-bottom: 0;
}

/* Post Content */
.postcontent {
  position: relative;
}
.single-post {
  position: relative;
  background: var(--surface-0);
  border: 1px solid rgba(32,48,64,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 2.5rem;
  margin-bottom: 0;
}
.entry {
  position: relative;
  margin-bottom: 0;
}
.entry-title h2,
.entry-title h3,
.entry-title h4 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-900);
  line-height: 1.3;
}
.entry-title h2 a,
.entry-title h3 a,
.entry-title h4 a {
  color: var(--ink-900);
  text-decoration: none;
}
.entry-title h2 a:hover,
.entry-title h3 a:hover,
.entry-title h4 a:hover {
  color: var(--slide-blue);
}

.entry-meta {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  row-gap: 0.5rem;
}
.entry-meta .tagcloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.entry-meta .tagcloud:last-child {
  margin-bottom: 0;
}
.entry-meta-tags {
  flex-wrap: wrap !important;
}
.entry-meta .tagcloud:not(.entry-meta-tags) {
  flex-wrap: wrap;
}
.entry-meta .tagcloud a {
  font-size: 0.875rem;
  color: var(--muted-600);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--border-1);
  border-radius: 0;
  background: var(--slide-paper);
  transition: all 0.2s ease;
  font-weight: 500;
}
.entry-meta .tagcloud a:hover {
  color: var(--slide-blue);
  border-color: var(--slide-blue);
  background: var(--surface-0);
}
.entry-meta .tagcloud a[style*="border:0px"] {
  border: 1px solid var(--border-1) !important;
  background: var(--slide-paper);
  color: var(--muted-600);
}
.entry-meta .tagcloud a[style*="border:0px"]:hover {
  color: var(--slide-blue);
  border-color: var(--slide-blue);
  background: var(--surface-0);
}

.entry-content {
  margin-top: 0;
  position: relative;
  line-height: 1.8;
  color: var(--ink-900);
}
.entry-content p {
  margin-bottom: 1.5rem;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.4;
}
.entry-content h2 {
  font-size: 1.375rem;
  border-bottom: 2px solid var(--border-1);
  padding-bottom: 0.75rem;
  margin-top: 3rem;
}
.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
.entry-content h4 {
  font-size: 1.125rem;
}
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}
/* ネストしたリストのマージンを調整 */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-left: 1.5rem;
}
.entry-content li {
  margin-bottom: 0.75rem;
}
.entry-content a {
  color: var(--slide-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.entry-content a:hover {
  color: #287FB0;
}
.entry-content strong,
.entry-content b {
  font-weight: 600;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border: 1px solid var(--border-1);
}
/* Card image links */
.card a img.thumb {
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.card a:hover img.thumb {
  opacity: 0.9;
}
/* Blockquote styles - override old CSS */
.entry-content blockquote,
.entry-content .quote,
#content blockquote,
section#content blockquote,
.single-post blockquote,
.single-post .quote {
  border-left: 4px solid var(--slide-blue) !important;
  background: rgba(14, 99, 196, 0.05) !important;
  padding: 1.5rem 1.5rem 1.5rem 2rem !important;
  margin: 2rem 0 !important;
  color: var(--ink-700) !important;
  font-style: normal !important;
  border-radius: var(--radius) !important;
  position: relative !important;
  border-right: none !important;
  box-shadow: none !important;
  text-align: left !important;
  font-size: inherit !important;
}
.entry-content blockquote::before,
.entry-content .quote::before,
#content blockquote::before,
section#content blockquote::before,
.single-post blockquote::before,
.single-post .quote::before {
  content: none !important;
  display: none !important;
}
.entry-content blockquote::after,
.entry-content .quote::after,
#content blockquote::after,
section#content blockquote::after,
.single-post blockquote::after,
.single-post .quote::after {
  content: none !important;
  display: none !important;
}
.entry-content blockquote p,
.entry-content .quote p,
#content blockquote p,
section#content blockquote p,
.single-post blockquote p,
.single-post .quote p {
  margin-bottom: 0.75rem !important;
  line-height: 1.7 !important;
  font-style: normal !important;
  position: relative !important;
  font-size: inherit !important;
  color: var(--ink-700) !important;
}
.entry-content blockquote p:last-child,
.entry-content .quote p:last-child,
#content blockquote p:last-child,
section#content blockquote p:last-child,
.single-post blockquote p:last-child,
.single-post .quote p:last-child {
  margin-bottom: 0 !important;
}
.entry-content blockquote ul,
.entry-content blockquote ol,
.entry-content .quote ul,
.entry-content .quote ol,
#content blockquote ul,
#content blockquote ol,
section#content blockquote ul,
section#content blockquote ol,
.single-post blockquote ul,
.single-post blockquote ol,
.single-post .quote ul,
.single-post .quote ol {
  margin-top: 0.75rem !important;
  margin-bottom: 0.75rem !important;
  padding-left: 1.5rem !important;
}
.entry-content blockquote li,
.entry-content .quote li,
#content blockquote li,
section#content blockquote li,
.single-post blockquote li,
.single-post .quote li {
  margin-bottom: 0.5rem !important;
  font-size: inherit !important;
  line-height: 1.7 !important;
  font-style: normal !important;
  color: var(--ink-700) !important;
}
.entry-content blockquote ol,
.entry-content .quote ol,
#content blockquote ol,
section#content blockquote ol,
.single-post blockquote ol,
.single-post .quote ol {
  list-style-type: decimal !important;
}
.entry-content blockquote ul,
.entry-content .quote ul,
#content blockquote ul,
section#content blockquote ul,
.single-post blockquote ul,
.single-post .quote ul {
  list-style-type: disc !important;
}

/* Blog Share Buttons */
.entry-meta .tagcloud:has(.btn-blog-share) {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
}
.btn-blog-share {
  display: inline-block;
  padding: 6px 12px;
  margin: 0;
  border-radius: 0 !important;
  font-size: 0.875rem !important;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.5;
}
.btn-blog-share:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}

/* Tag Cloud */
.tagcloud {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.25rem 0.375rem;
}
/* サイドバーのショートカット部分の行間を狭く */
.sidebar-widgets-wrap .tagcloud {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.25rem 0.375rem !important;
  margin: 0 !important;
}
.sidebar-widgets-wrap .tagcloud a {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}
.tagcloud a {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-700);
  background: transparent;
  border: 1px solid var(--border-1);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
}
.tagcloud a:hover {
  color: var(--slide-blue);
  border-color: var(--slide-blue);
  background: var(--surface-0);
}

/* Post Navigation */
.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-1);
}
.post-nav-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: stretch;
}
.post-nav-item {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}
.post-nav-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface-0);
  border: 1px solid var(--border-1);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink-900);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-1);
  flex: 1;
}
.post-nav-prev a {
  flex-direction: row;
  text-align: left;
}
.post-nav-next a {
  flex-direction: row;
  text-align: right;
  justify-content: flex-end;
}
.post-nav-prev a,
.post-nav-next a {
  flex-wrap: wrap;
}
.post-nav-arrow {
  font-size: 1rem;
  color: var(--slide-blue);
  font-weight: bold;
  flex-shrink: 0;
  width: 1.2em;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.post-nav-label {
  font-size: 0.7rem;
  color: var(--muted-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.post-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-900);
  flex: 1;
  word-wrap: break-word;
  line-height: 1.5;
}
.post-nav-item a:hover {
  border-color: var(--slide-blue);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.post-nav-item a:hover .post-nav-arrow {
  color: var(--slide-blue-deep);
}
.post-nav-item a:hover .post-nav-title {
  color: var(--slide-blue);
}
/* 片方しかない場合の中央寄せ */
.post-nav-wrapper:has(.post-nav-prev:empty) .post-nav-next,
.post-nav-wrapper:has(.post-nav-next:empty) .post-nav-prev {
  margin-left: auto;
  margin-right: auto;
  max-width: 400px;
}
/* モバイル対応 */
@media (max-width: 767.98px) {
  .post-nav-wrapper {
    flex-direction: column;
  }
  .post-nav-item {
    min-width: 100%;
  }
  .post-nav-next a {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
  }
  .post-nav-next a .post-nav-arrow {
    order: 2;
    margin-left: auto;
  }
}

/* Sidebar */
.sidebar {
  position: relative;
}
/* スマホ表示でサイドバーが本文の下に来た時の余白 */
@media (max-width: 991.98px) {
  .sidebar {
    margin-top: 2rem;
  }
}
.sidebar-widgets-wrap {
  margin-bottom: 1.5rem !important;
  background: var(--surface-0);
  border: 1px solid rgba(32,48,64,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 1.5rem;
}
.sidebar-widgets-wrap:last-child {
  margin-bottom: 0 !important;
}
/* Bootstrap mb-2クラスを上書き */
.sidebar-widgets-wrap.mb-2 {
  margin-bottom: 1.5rem !important;
}
.sidebar-widgets-wrap h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--ink-900);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-1);
  letter-spacing: 0.5px;
}
.sidebar-widgets-wrap .card {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  margin-bottom: 0;
}
.sidebar-widgets-wrap .card-body {
  padding: 0;
  color: var(--ink-900);
}
.sidebar-widgets-wrap .card-body a {
  color: var(--slide-blue);
  text-decoration: none;
}
.sidebar-widgets-wrap .card-body a:hover {
  color: #287FB0;
  text-decoration: underline;
}
/* FAQ検索コンテナ */
.search-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.search-container .form-control {
  flex: 1;
  min-width: 200px;
}
.search-container .btn-reset {
  white-space: nowrap;
  margin-top: 0 !important;
}
.search-container #faq_count {
  margin-top: 0 !important;
  white-space: nowrap;
}

/* FAQ一覧のリンクスタイル */
.faq-list-container {
  max-height: 60rem;
  overflow-y: auto;
  padding-right: 1.5rem;
  margin-right: -1.0rem;
}
/* サイドバー以外では最大高さを制限しない */
.entry-content .faq-list-container {
  max-height: none;
  overflow-y: visible;
  padding-right: 0;
  margin-right: 0;
}
.faq-item {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-1);
  padding-right: 1.5rem;
}
.entry-content .faq-item {
  padding-right: 0;
}
.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.faq-item a {
  color: var(--ink-900);
  text-decoration: none;
  display: block;
}
.faq-item a:hover {
  color: var(--slide-blue);
  text-decoration: underline;
}
.faq-item a.fw-bold {
  color: var(--ink-900);
  font-weight: 600 !important;
}

/* Author Image */
.author-image {
  float: left;
  width: 64px;
  height: 64px;
  margin-right: 15px;
  margin-bottom: 15px;
}
.author-image img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border-1);
}

/* Posts Small (Sidebar) */
.posts-sm {
  margin: 0;
}
.posts-sm .entry {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-1);
}
.posts-sm .entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.posts-sm .entry-image {
  width: 64px;
  flex-shrink: 0;
}
.posts-sm .entry-image img {
  width: 64px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-1);
}
.posts-sm .entry-title {
  margin-top: 0;
}
.posts-sm .entry-title h4 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
.posts-sm .entry-title h4 a {
  color: var(--ink-900);
  text-decoration: none;
}
.posts-sm .entry-title h4 a:hover {
  color: var(--slide-blue);
}

/* Sidebar Box */
.sidebar-box {
  position: relative;
}

/* Clearfix */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Single post card styling */
.single-post .card {
  border: 1px solid rgba(32,48,64,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  background: var(--slide-paper);
  margin-bottom: 2rem;
}
.single-post .card-body {
  padding: 1.5rem;
}
.single-post .card.bg-warning {
  background: #ffc107 !important;
  border-color: rgba(0,0,0,.1);
}

/* Contact Form Styles */
.form-label {
  color: var(--ink-900);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}
.form-control {
  border: 1px solid rgba(32,48,64,.14);
  border-radius: 4px;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
  border-color: var(--slide-blue);
  box-shadow: 0 0 0 0.2rem rgba(48,152,208,.15);
  outline: 0;
}
.form-check {
  padding-left: 1.75rem;
  margin-bottom: 0;
}
.form-check-input {
  margin-top: 0.25rem;
  margin-left: -1.75rem;
  border: 1px solid rgba(32,48,64,.14);
  border-radius: 4px;
}
.form-check-input:checked {
  background-color: var(--slide-blue);
  border-color: var(--slide-blue);
}
.form-check-input:focus {
  border-color: var(--slide-blue);
  box-shadow: 0 0 0 0.2rem rgba(48,152,208,.15);
}
.form-check-label {
  color: var(--ink-900);
  font-size: 0.9375rem;
  cursor: pointer;
}
.alert-info {
  background-color: rgba(48,152,208,.1);
  border: 1px solid rgba(48,152,208,.2);
  border-radius: 4px;
  color: var(--ink-900);
  padding: 1rem;
}
.text-danger {
  color: #dc3545;
}

/* Certified ScrumMaster Page Styles */
.btn-outline-dark {
  border-color: rgba(32,48,64,.14);
  color: var(--ink-700);
  background: rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn-outline-dark:hover {
  background: var(--slide-blue);
  border-color: var(--slide-blue);
  color: #fff;
}
.btn-group {
  gap: 0.5rem;
}
.btn-group .btn {
  margin: 0;
}
.entry-content h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding: 0;
  padding-bottom: 0.75rem;
  background: none !important;
  text-align: left !important;
  border-bottom: 2px solid var(--border-1);
}
.entry-content h2:first-of-type {
  margin-top: 0;
}
.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.entry-content ul {
  margin-bottom: 1.5rem;
}
.entry-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.entry-content .row {
  margin-bottom: 1.5rem;
}
.entry-content img {
  border-radius: 4px;
}
.modal-content {
  border-radius: 8px;
}
.modal-body img {
  border-radius: 8px;
}
.btn-warning {
  background: #ffc107;
  border-color: #ffc107;
  color: var(--ink-900);
  font-weight: 600;
}
.btn-warning:hover {
  background: #ffb300;
  border-color: #ffb300;
  color: var(--ink-900);
}

/* Badge Styles */
.sa-badge {
  border: none !important;
  box-shadow: none !important;
}
