@charset "utf-8";

:root {
  --base-color: #fffdfa;
  --primary-color: #567092;

}

/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ol,
ul {
  list-style: none;
}

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  background: #fefcfc;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity=' 0.2'/%3E%3C/svg%3E");
  font-size: 17px;
}

html {
  /* ヘッダーの高さ分、スクロール位置を上に空ける */
  scroll-padding-top: 70px;
  /* スムーススクロールも同時に有効化 */
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

/* メインレイアウト */
/* 中央配置用ラッパー */
.layout-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 94px;
  /* Header(64) + 30px */
  margin-bottom: 30px;
}

.container {
  display: flex;
  min-height: calc(100vh - 210px);
  max-width: 1300px;
  box-sizing: border-box;
  align-items: stretch;

  /* border-radius: 12px; */
  /* box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1); */
  border: 1px solid #dddddd;
  overflow: hidden;
  /* サイドバーとコンテンツを逆順にする。DOM上はコンテンツを先に配置する。 */
  flex-direction: row-reverse;
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(180deg, #fffcfce0, #fcfafaf0);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 16px;
  /* box-shadow: 2px 0 16px rgba(0, 0, 0, 0.2); */
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  margin-left: 12px;
  gap: 10px;
}

.site-branding a {
  color: #454749;
  text-decoration: none;
  margin-right: 12px;
}

.site-branding img {
  margin-right: 8px;
  vertical-align: middle;
}

.site-subtitle {
  font-size: 14px;
  color: #6b7280;
  font-weight: normal;
  margin-top: 4px;
}



/* サイドバー (Unified Card Left Pane) */
.sidebar {
  width: 300px;
  background: linear-gradient(90deg, #f9fafb, #f5f7f9);
  border-right: 1px solid #e5e7eb;

  /* Sticky & Scroll */
  position: sticky;
  top: 0;
  height: auto;
  /* 画面いっぱいの高さ */
  overflow-y: auto;
  /* 内部スクロール */

  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding-top: 15px;
}

.sidebar-label {
  font-size: 21px;
  color: #727986;
  padding-left: 10px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 10px;
}

/* .sidebar-sticky-content 削除 */

/* 検索フォーム (seiho2com仕様) */
.search-form {
  display: flex;
  flex-direction: row;
  gap: 5px;
  margin-top: 5px;
  margin-left: auto;
}

.sidebar .search-form {
  margin: 0 auto;
  display: none;
}

.search-form input {
  max-width: 200px;
  height: 30px;
  padding: 10px;
}

.search-form button {
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid gray;
}

/* サイドバーヘッダー (seiho2com仕様) */
.sidebar-header {
  display: none;
  padding: 14px 28px;
  color: #454749;
}

.sidebar-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

.sidebar-title img {
  /* margin-right: 8px; */
}

.sidebar-title a {
  color: #454749;
}

.sidebar-subtitle {
  font-size: 13px;
  margin: 10px -5px;
}

.sidebar-header-mobile .site-branding {
  margin-left: 0;
  font-size: 16px;
}

/* 閉じるボタン */
.sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  /* background: none; */
  /* border: none; */
  cursor: pointer;
  padding: 8px;
  color: #6b7280;
  display: none;
}

.sidebar-close:hover {
  color: #374151;
}

.sidebar-close svg {
  width: 24px;
  height: 24px;
}


/* ナビゲーションメニュー */
.nav-menu {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 4px 0;
  /*  position: relative;*/
}

.nav-item::before {
  /*  display: none;*/
}

.nav-link {
  display: block;
  padding: 6px 0px;
  color: #6b7280;
  text-decoration: none;
  /*  border-radius: 8px;*/
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 450;
  margin-left: 0;
  padding-left: 10px;
}

.nav-link:hover {
  background-color: #eff6ff;
  color: #2563eb;
}

/* カレントページのスタイル */
.nav-link.current-page {
  background-color: #eff6ff;
  color: #1d4ed8;
  font-weight: 500;
  padding-left: 10px;
}


/* フォルダアイテム */
.folder-item {
  margin-bottom: 6px;
  position: relative;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.folder-item::before {
  display: none;
}

.folder-header {
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  /*border-bottom: 1px solid #e2e8f0;*/
  /*border-radius: 8px;*/
  padding: 2px;
  transition: all 0.2s ease;
  margin-left: 0;
  /*border-bottom: 2px solid red;*/
  position: relative;
}

.folder-header:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #ccced3, #ccced3 10%, transparent);
}

.folder-header:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.folder-toggle {
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 20px;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.folder-toggle::before {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.2s ease;
}

.folder-toggle:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.folder-toggle.rotated::before {
  transform: rotate(90deg);
  border-left-color: #3182ce;
}

.folder-toggle svg {
  display: none;
}

/* .folder-toggle:focus {
  outline: 1px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 20px;
} */

.folder-link {
  /*flex: 1;*/
  padding: 8px 0px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 450;
  transition: all 0.2s ease;
  /*border-radius: 6px;*/
}

.folder-link:hover {
  background-color: #eff6ff;
  color: #2563eb;
}

/* カレントページのスタイル（フォルダヘッダー） */
.folder-header.current-page {
  background-color: #eff6ff;
}

.folder-header.current-page .folder-link {
  color: #1d4ed8;
  font-weight: 500;
}

.folder-content {
  margin-left: 4px;
  margin-top: 6px;
  padding-left: 4px;
  border-left: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.folder-content.hidden {
  display: none;
}

/* フォルダ内のナビゲーション */
.folder-content .nav-list {
  margin-left: 0;
}

.folder-content .nav-item::before {
  /*  display: none;*/
}

.folder-content .nav-link {
  margin-left: 0;
  padding: 6px 12px;
  font-size: 13px;
  color: #64748b;
  /*  border-radius: 6px;*/
  transition: all 0.2s ease;
}

.folder-content .nav-link:hover {
  background-color: #f1f5f9;
  color: #2563eb;
}

/* フォルダ内のカレントページのスタイル */
.folder-content .nav-link.current-page {
  background-color: #eff6ff;
  color: #3730a3;
  font-weight: 500;
}

.file-item {
  display: flex;
  flex-direction: row;
}

.file-item i {
  color: #6b7280;
  font-size: 14px;
  padding-top: 12px;
}


/* ページアイコン用のクラス（余白調整版） */
.page-icon {
  width: 30px;
  height: 30px;
  padding-top: 1px;
  margin-right: -3px;
  /* マイナス指定ってほんとはよくないけど、ひとまず表示を合わせるため */
  margin-left: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-icon::before {
  content: '';
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2364748b' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* メインコンテンツ */

/* メインコンテンツ - ペーパー/カード部分 */
#main-content {
  /* outline: none; */
}

.main-content {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  /* 左右中央寄せ＆はみ出し調整 */
  margin-right: calc(50% - 50vw);
  /* 左右中央寄せ＆はみ出し調整 */

  /* flex: 1; */
  background-color: var(--base-color);
  padding: 40px;

  /* 個別のカードスタイルは廃止（コンテナに統合） */
  /* border-radius: 0; */
  /* box-shadow: none; */
  margin: 0;
  /* このmargin: 0は何故か必要。無いとメインカラムが表示されない */
}

/* パンくずリスト */
.breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
  color: #6b7280;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

ol.breadcrumb-list li+li::before {
  content: ">";
  margin: 0 0.5em;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.breadcrumb-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0px 3px;
}

.breadcrumb-link:hover {
  color: #374151;
}

.breadcrumb-current {
  color: #111827;
  font-weight: 500;
}

.breadcrumb-separator {
  width: 16px;
  height: 16px;
  margin: 0 8px;
  color: #9ca3af;
}

/* コンテンツエリア */
.content h1,
.content_search h1 {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin: 10px 0px;
  padding: 8px;
  background: var(--primary-color);
  position: relative;
  line-height: 1.3;
  letter-spacing: -0.02em;
}


.toc {
  background: #fcfcfc;
  min-width: 50px;
  border-radius: 6px;
  border: 3px double #dddddd;
  padding: 0px 10px;
  margin-bottom: 30px;
}

.toc h2 {
  border-left: 0px;
  margin: 10px !important;
  padding-left: 0px !important;
}

.toc h2::before {
  background: none !important;
}

.toc ul {
  margin: 0px !important;
}

.toc ul li.toc-item {
  text-decoration: underline dotted;
  padding-left: 24px;
}

.toc li.toc-item::before {
  background: none !important;
  box-shadow: none;
  content: "▶";
  /* ▶ */
  display: inline-block;
  margin-left: 6px;
  margin-right: 0.5em;
  /* アイコンと文字の間隔 */
  font-size: 0.6em;
  /* 小さめに調整 */
  color: #3182ce;
  top: 6px;
}

.toc li.toc-item:hover::before {
  box-shadow: none;
}


.toc-indent {
  margin-left: 10px !important;
}

.article-meta {
  margin-top: 30px;
  padding: 4px 0;
  border-top: 1px solid #cccccc;
  text-align: right;
}

.article-meta time {
  font-style: italic;
  color: #666666;
}

.article-meta span {
  font-size: small;
}

.content h2,
.content_search h2 {
  font-size: 22px;
  font-weight: 600;
  color: #2d3748;
  margin: 28px 0 18px 0;
  padding: 8px 0px;
  line-height: 1.4;
  position: relative;
  letter-spacing: -0.015em;
  border-bottom: 2px solid var(--primary-color);
}

.content h3,
.content_search h3 {
  font-size: 19px;
  font-weight: 600;
  color: #4a5568;
  margin: 24px 0 14px 0;
  padding: 8px 0px;
  line-height: 1.4;
  position: relative;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--primary-color);
}


.content h4,
.content_search h4 {
  font-size: 17px;
  font-weight: 600;
  color: #435266;
  margin: 20px 0 12px 0;
  padding: 8px 0px;
  line-height: 1.4;
  border-bottom: 1px solid var(--primary-color);
  position: relative;
  letter-spacing: -0.005em;
}

.content h4::before .content_search h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 1px;
  height: calc(100% - 20px);
  background: linear-gradient(180deg, #3182ce 0%, #63b3ed 100%);
  border-radius: 0.5px;
  opacity: 0.6;
}

.content p {
  margin: 0 0 18px 0;
  line-height: 1.7;
  color: #2d3748;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.content ul {
  list-style: none;
  padding: 4px 0;
  margin: 18px 0;
}

.content ol:not(.breadcrumb-list) {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  counter-reset: list-counter;
}

.content li:not(.breadcrumb-item) {
  margin: 0 0 10px 0;
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
  font-size: 15px;
  color: #2d3748;
}

.content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: #3182ce;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.1);
  transition: all 0.2s ease;
}

.content ul li:hover::before {
  background: #2b6cb0;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

.content ol:not(.breadcrumb-list) li::before {
  counter-increment: list-counter;
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0;
  /*width: 22px;*/
  height: 26px;
  color: #3182ce;
  /*border-radius: 50%;*/
  font-weight: 600;
  /*display: flex;*/
  /*align-items: center;*/
  /*justify-content: center;*/
  /*line-height: 1;*/
  /*transition: all 0.2s ease;*/
}

/* .content ol:not(.breadcrumb-list) li:hover::before {
  background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 100%);
  transform: scale(1.05);
} */

/* 導入テキストのスタイル */
.content .intro-text {
  font-size: 16px;
  color: #2d3748;
  margin: 0 0 20px 0;
  font-weight: 400;
  line-height: 1.7;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(49, 130, 206, 0.03) 0%, rgba(99, 179, 237, 0.03) 100%);
  border-left: 3px solid #3182ce;
  border-radius: 0 6px 6px 0;
  position: relative;
  letter-spacing: 0.01em;
}

.content .intro-text::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #3182ce 0%, #63b3ed 100%);
  border-radius: 2px 0 0 2px;
}

.content blockquote {
  padding: 0px 24px;
  background: linear-gradient(135deg, rgba(49, 130, 206, 0.02) 0%, rgba(99, 179, 237, 0.02) 100%);
  border-left: 3px solid #3182ce;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4a5568;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content blockquote::before {
  content: '"';
  color: #3182ce;
  line-height: -0.5;
  margin-right: 8px;
  font-family: Georgia, serif;
  opacity: 0.7;
}

.content a:not(.breadcrumb-link):not(.box-button a) {
  color: #4A657D;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  /*position: relative;*/
  font-weight: 500;
}

.content a:hover:not(.box-button a) {
  color: #2b6cb0;
  border-bottom-color: #2b6cb0;
  background: rgba(43, 108, 176, 0.05);
  padding: 2px 4px;
  margin: -2px -4px;
  /*border-radius: 4px;*/
}

.content strong {
  color: #2d3748;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.content em {
  color: #4a5568;
  font-style: italic;
  font-weight: 400;
}

.content code {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: #2d3748;
  border: 1px solid #e2e8f0;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

.content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/*
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content table th {
  background: #2563eb;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.content table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.content table tr:nth-child(even) {
  background: #f9fafb;
}

.content table tr:hover {
  background: #f3f4f6;
}

*/
.content .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0px;
  ;
}

.content .table-scroll table {
  /*
  width: max-content;
  min-width: 100%;
*/
  border-collapse: collapse;
}

.content .table-scroll table th,
.content .table-scroll table td {
  border: 1px solid #aaaaaa;
  padding: 10px;
  font-size: small;
}


.content hr {
  border: none;
  height: 2px;
  /*background: linear-gradient(90deg, transparent, #2563eb, transparent);*/
  background: #e2e8f0;
  margin: 16px 0;
}

/* ハンバーガーメニュー (ヘッダー内) */
.hamburger-menu {
  position: static;
  /* ヘッダー内に配置するため */
  background-color: transparent;
  color: #4b5563;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: none;
  /* PCでは非表示 */
}

.hamburger-menu:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.hamburger-menu svg {
  width: 28px;
  height: 28px;
}

/* フッター */
.site-footer {
  width: 100%;
  background-color: #25304e;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity=' 0.3'/%3E%3C/svg%3E");
  border-top: 1px solid #e5e7eb;
  padding: 30px 0;
  text-align: center;
  margin-top: auto;
  color: #cccccc;
  font-size: 14px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.footer-content a {
  /* 白系統背景時 */
  /* color: #698987; */
  /* 黒系統背景時 */
  color: #9fcac7;
  text-decoration: none;
  margin: 0 5px;
}

/* Google検索フォーム */
/* .gsc-control-cse {
  border-color: #dddddd !important;
  background-color: var(--base-color);
}

.gsc-above-wrapper-area {
  border-bottom: 1px solid #dddddd !important;
} */


/* レスポンシブデザイン */

/* 1300px以下（タブレット・スマホ）でサイドバーを隠す */
@media (max-width: 1300px) {

  /* タブレット・スマホ表示時はレイアウトラッパーの上部にヘッダー分ずらす。末端に余白を設けない */
  .layout-wrapper {
    /* display: block; */
    /* margin-top: 70px; */
    margin-bottom: 0px;
  }

  /* タブレット・スマホ表示時はコンテナにボックスシャドウを表示しない */
  .container {
    min-height: calc(100vh - 180px);
    box-shadow: none;
  }

  /* ヘッダー調整 */
  .header-inner {
    padding: 0;
    justify-content: normal;
  }

  /* タブレット・スマホ表示時は検索フォームを非表示 */
  .site-header .search-form {
    display: none;
  }

  /* ハンバーガーメニュー表示 */
  .hamburger-menu {
    display: block;
  }

  /* サイドバー（オーバーレイ化） */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 2;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    /* background-color: #ffffff; */
    /* box-shadow: 2px 0 16px rgba(0, 0, 0, 0.2); */
    /* border-right: none; */

    /* display: flex; */
    /* flex-direction: column; */
    box-shadow: 0px 0 10px #88888810;
    padding-top: 0px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  /* モバイル用サイドバー表示 */
  .sidebar-header {
    display: block;
    /* Flex? Block? Source says padding 24px block-like */
  }

  /* 閉じるボタン（スマホのみ表示） */
  .sidebar-close {
    display: block;
  }

  /* サイドバーラベル「目次」を表示しない */
  .sidebar-label {
    display: none;
  }

  /* サイドバー内の検索フォームを表示 */
  .sidebar .search-form {
    display: block;
  }

  /* メインコンテンツ（全幅） */
  .main-content {
    /* margin: 0; */
    padding: 20px;
    padding-top: 30px;
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
  }

  /* コンテンツ調整 */
  .content p {
    font-size: 15px;
    margin-bottom: 1.2em;
  }

  .breadcrumb-list {
    padding-left: 0;
    /* インデント解除 */
  }
}

/* レスポンシブ対応 (スマホ) */
@media (max-width: 768px) {

  /* スマホ表示時、サイトサブタイトル非表示 */
  .site-subtitle {
    display: none;
  }

  /* スマホ表示時ハンバーガーメニュー表示 */
  /* .hamburger-menu {
    display: block;
  }

  .content-wrapper {
    padding: 16px;
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
    box-shadow: none;
  } */
}

/* スマホ (〜 500px) 微調整 */
@media (max-width: 500px) {
  .main-content {
    padding: 10px;
  }
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ユーティリティクラス */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* フォーカススタイル */
button:focus,
a:focus {
  outline: 1px solid #2563eb;
  outline-offset: 1px;
}

/* スクロールバーカスタマイズ */
/* .sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.sidebar::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
} */


/* Wikipedia風・シンプル・複数行ツールチップ */
.tooltip {
  position: relative;
  cursor: help;
  color: #0645ad;
  text-decoration: underline dotted;
  display: inline-block;
}

.tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  background: #fffbe6;
  color: #000;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 4px;
  width: 250px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  font-weight: normal;
  line-height: 1.4;
  visibility: hidden;
  opacity: 0;
  z-index: 2;
  /*white-space: normal;*/
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  margin-bottom: 10px;
}



.tooltip:hover .tooltip-content,
.tooltip:focus .tooltip-content,
.tooltip.active .tooltip-content {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}


/* カスタムタイポグラフィスタイル */
.content_essay h1,
.content_essay h2,
.content_essay h3,
.content_essay h4,
.content_essay p {
  text-align: center;
}

.content_essay {
  line-height: 1.8;
}

.content_essay p {
  margin-top: 1.5em;
  margin-bottom: 2.4em;
  line-height: 2.0;
}

.content_essay h1 {
  margin-top: 1em;
  margin-bottom: 0.8em;
  font-size: x-large;
  font-weight: bold;
  color: #1f2937;
}

.content_essay h2 {
  margin-top: 2.4em;
  margin-bottom: 0.8em;
  font-size: large;
  font-weight: bold;
  color: #374151;
}

.content_essay h3 {
  margin-top: 1.4em;
  margin-bottom: 0.6em;
  font-weight: bold;
  color: #4b5563;
}

.content_essay h4 {
  margin-top: 1.2em;
  margin-bottom: 0.4em;
  font-weight: bold;
  color: #6b7280;
  padding-bottom: 0.3em;
}

.content_essay p {
  margin: 1.5em 0px;
}

.content img,
.content_essay img {
  display: block;
  margin: 40px auto;
  width: 100%;
  max-width: 600px;
  /* height: 400px; */
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.02);
  border: 3px solid rgba(255, 255, 255, 0.8);
}





.space-line {
  background: none !important;
  margin: 20px 0 !important;
}


.box-button {
  margin-top: 30px;
  margin-bottom: 40px;
  margin-left: 20px;
}

.box-button a {
  color: #3e6589;
  border: 1px solid #cccccc;
  margin: 40px 0;
  padding: 10px 40px;
  border-radius: 5px;
}

.box-button a:hover {
  background: #eff6ff;
  transition: all 0.2s ease;
}

/* sectionショートコード用 */
/*
.hero-section {
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    margin-bottom: 30px;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nomal-section {
    margin: 20px 0;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}


.callout-box {
    max-width: calc(70% - 40px);
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px auto;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.3);
}
  
.quote-section {
    max-width: calc(70% - 40px);
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px auto;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 30px rgba(107, 107, 255, 0.3);
}

.quote-section::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
    line-height: 1;
}

.quote-section p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
    padding-left: 30px;
}

.final-cta {
    background: linear-gradient(135deg, #2d3436, #636e72);
    color: white;
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(45, 52, 54, 0.3);
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.final-cta h2 {
  color: #ffffff;
}


/* --- */





.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #ff7675, #fd79a8);
  color: white;
  padding: 20px 45px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 30px;
  box-shadow: 0 12px 30px rgba(255, 118, 117, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(255, 118, 117, 0.5);
}

.cta-button:hover::before {
  left: 100%;
}

/* 3つのCTAボタンのコンテナ */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-top: 50px;
}

/* 上段の2つのボタン */
.cta-top-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

/* ボタンの基本スタイル */
.cta-button {
  margin-top: 0;
  text-align: center;
  width: 300px;
}

/* 情報系ボタン（青系） */
.cta-button-info {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  box-shadow: 0 12px 30px rgba(116, 185, 255, 0.4);
}

.cta-button-info:hover {
  box-shadow: 0 18px 40px rgba(116, 185, 255, 0.5);
}

/* CTAボタン：PC表示時上段2つ横並び */
@media (min-width: 769px) {
  .cta-top-row {
    flex-direction: row;
    gap: 20px;
  }
}



/* ハイライト：黄色の下線マーカー */
.highlight-yellow {
  background: linear-gradient(transparent 60%, #fff88c 60%);
}

/* 赤太字 */
.bold-red {
  color: #c00;
  font-weight: bold;
}

/* ノート：左縦棒、背景グレー */
.note {
  background: #f0f0f0;
  padding: 0.3em 0.6em;
  border-left: 4px solid #ccc;
  font-size: 0.95em;
}

/* ノート２：グレー、斜体 */
.inline-note {
  font-size: 0.9em;
  color: #555;
  font-style: italic;
}

/* 引用：グレー、斜体 */
.quote {
  color: #444;
  font-style: italic;
  border-left: 3px solid #ddd;
  padding-left: 0.6em;
}

/* 優しい：薄深緑、斜体 */
.gentle {
  color: #5a8c7b;
  font-weight: normal;
  font-style: italic;
}

/* 警告: 赤文字、ピンクの下線マーカー */
.warning {
  color: #b00020;
  background: linear-gradient(transparent 60%, #ffcccc 60%);
}

/* キーワード：グレーっぽい赤字 */
.keywaord {
  color: #cc6666;

}

/* 重要：下線 */
.important {
  background: linear-gradient(transparent 90%, #ccaaaa 90%);
}


/* 強調テキスト（重要なポイント） */
.emphasis {
  color: #2b5e47;
  font-weight: 600;
}

/* アンダーライン強調（キーフレーズ） */
.underline {
  border-bottom: 2px solid #b4cae4;
  padding-bottom: 1px;
}

/* 背景ハイライト（特に重要な概念） */
.highlight {
  background: linear-gradient(transparent 60%, #ffeeb9 60%);
  padding: 0 2px;
}

/* 柔らかい強調（問いかけや心に響く言葉） */
.soft-accent {
  color: #c04022;
  font-style: italic;
  font-weight: 500;
}


/* 時計アイコン（Font Awesome far fa-clock相当） */
.clock-icon {
  width: 16px;
  height: 16px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clock-icon::before {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' stroke-width='1.5'/%3E%3Cpath d='M12 6v6l4 2' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  top: 2px;
}

/* 履歴ーアイコン（Font Awesome fa fa-history相当） */
.history-icon {
  width: 16px;
  height: 16px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.history-icon::before {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9c-2.52 0-4.8 1.03-6.45 2.7L3 8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3 3v5h5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 7v5l3 2' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  top: 2px;
}


.content_search article {
  margin: 20px 0px;
}

.content_search h1 {
  margin: 10px 0px;
}

.content_search h1 a {
  margin: 10px 0px;
}

.content_search h3 {
  font-weight: 450;
}

.content_search h3 a {
  color: #6b61d9;
}

.content_search h3 a:visited {
  color: #8350bd;
}

.content_search small {
  color: #888888;
}





/* 疑似要素で小さなアイコン */
#site-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-right: -7px;
  position: relative;
  top: -2px;
  left: -9px;
  /* cursor: pointer; */
  vertical-align: middle;
}


/* モーダル用 */
#logo-modal.hidden {
  display: none;
}

#logo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

#logo-modal {
  animation: emerge 3s 1;
}

@keyframes emerge {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#logo-modal figcaption {
  animation: emerge_speech 3s 1;
}

@keyframes emerge_speech {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#logo-modal img {
  max-width: 80%;
  max-height: 80%;
  position: absolute;
}


figcaption.logo-caption {
  position: absolute;
  bottom: 5vh;
  font-size: larger;
  background: var(--base-color);
  ;
  margin: 20px;
  padding: 20px;
  border-radius: 20px;
  font-weight: 700;
}

p.lead {
  margin-top: 24px;
}

/* サイドバーローディング表示 */
.sidebar-loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.sidebar-close {
  border-radius: 6px;
  border: 1px solid #cccccc;
  padding: 0px;
  margin: 6px 0px;
}