@charset "utf-8";

:root {
  --base-color: #fffbf6;
  --primary-color: #4C6F9C;

}

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

ol, ul {
  list-style: none;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fefcfc;
}

a {
  text-decoration: none;
}

/* メインレイアウト */
.container {
  display: flex;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  min-height: 100vh;
  /*background-color: #f9fafb;*/
}

/* サイドバー */
.sidebar {
  width: 320px;
  /*background-color: #f9fafb;*/
  background: linear-gradient(90deg, #f9fafb, #f5f7f9);
  border-right: 1px solid #e5e7eb;
  position: fixed;
  height: 100vh;
  z-index: 40;
  transition: transform 0.3s ease;
  order: -1;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  color: #454749;
}

.sidebar-header h1 a {
  color: #454749;
}

.sidebar-header h1 a:hover {
  background-color: #dbeafe;
  margin: -6px;
  padding: 6px;
}

.sidebar-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 4px;
}

.sidebar-subtitle {
  font-size: 14px;
  color: #484B56;
}

.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-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;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

.main-content {
  margin-left: 320px;
  background-color: var(--base-color);;
  /*overflow-y: auto;*/
  padding: 30px;
  padding-bottom: 10px;
  width: 100%;
}

article {
/*  padding-bottom: 20px;*/
}

/* パンくずリスト */
.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 {
  /* max-width: 800px; */
}

.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: 20px;
  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: #3e6589;
  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: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
  background-color: #6b7280;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
  display: none;
}

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

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


/* フッター */
.site-footer {
  margin-top: 0;
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(90deg, transparent, #f1f4fb, transparent);
  flex-shrink: 0;
}

.footer-content {
  padding: 10px;
  text-align: center;
  color: #9098a9;
  font-size: 14px;
  line-height: 1.4;
}

.footer-content a {
    color: #698987;
    text-decoration: none;
    margin: 10px 0;
}


/* Google検索フォーム */
/* 入力欄だけの幅 */
/*
.gsc-input {
  width: 150px !important;
}
*/
/* 入力欄＋ボタンを含む全体の幅 */
/*
.gsc-search-box {
  max-width: 200px !important;
  margin-top: 5px;
  margin-left: 25px;
}

.gsc-search-button-v2 {
    padding: 11px 27px !important;
}
*/

.search-form {
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 5px;
  margin-top: 5px;
}

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

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

.gsc-control-cse {
  border-color: #dddddd !important;
  background-color: var(--base-color); !important;
}

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

/* レスポンシブデザイン */
@media (max-width: 1024px) {
  article {
      margin-top: 40px;
  }

  .breadcrumb-list {
    padding-left: 60px;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    padding: 16px;
  }
  
  .hamburger-menu {
    display: block;
  }
  
  .sidebar-close {
    display: block;
  }
  
  .content {
    max-width: 100%;
  }

  .sidebar {
/*    width: 100%;*/
  }
  
  .main-content {
    padding: 16px;
  }

  .content p {
    margin: 0 0 16px 0;
    line-height: 1.6;
    font-size: 14px;
  }
  
  .content li:not(.breadcrumb-item) {
    margin: 0 0 8px 0;
    padding: 0 0 0 20px;
    line-height: 1.5;
    font-size: 14px;
  }
  
  .content ul li::before {
    top: 7px;
    width: 4px;
    height: 4px;
  }
  
  .content ol:not(.breadcrumb-list) li::before {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  
  .content .intro-text {
    font-size: 15px;
    padding: 14px 16px;
    margin: 0 0 18px 0;
    line-height: 1.6;
  }
  
  .sidebar-header {
    padding: 16px;
  }
  
  .nav-menu {
    padding: 12px;
  }


  .content .table-scroll table {
    width: max-content;
    min-width: 100%;
  }
}

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

.content {
  /*animation: fadeIn 0.3s ease;*/
}


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

.visible {
  display: block !important;
}

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

/* スクロールバーカスタマイズ */
.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: 100;
  /*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 {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(116, 185, 255, 0.5);
}

/* 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;
}


.main-content {
  max-width: 1200px; /* 最大幅を制限 */
}

/* 画面幅が1500px以上の場合の中央寄せ */
@media (min-width: 1500px) {
  .container {
    margin-left: calc((100vw - 1500px) / 2);
  }
}

/* 時計アイコン（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;
}


/* 既存のオーディオ関連CSS（従来のシンプルなスタイル） */
.c-audio {
  text-align: center;
}

.c-audio #playAudio {
  text-align: center;
  font-weight: bold;
  margin: 0px;
  margin-bottom: 10px;
}

.c-audio audio {
  width: 100%;
  max-width: 400px;
}

.c-audio audio .fallback {
  font-size: 0.8em;
  color: gray;
}

.c-audio figcaption {
  font-size: 0.9em;
  margin-top: 0.4em;
}

/* リッチオーディオコントローラー（新しいスタイル） */
.c-audio {
  position: relative;  /* 疑似要素の絶対配置のため必要 */
  overflow: hidden;  /* はみ出した部分を隠す */
  --gap: .5rem;
  font: 14px/1.2 system-ui, sans-serif;
  margin: 1rem auto;
  padding: .75rem;
  border-radius: 12px;
  max-width: 800px;
  background: #fafafa;
  border-right: 1px solid #c0c0c0;
  border-bottom: 1px solid #c0c0c0;
  box-shadow: 0 20px 20px 2px rgba(0, 0, 0, 0.02);
}

.c-audio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(100deg,
      transparent 0%,
      transparent 20%, 
      rgba(200, 200, 200, 0.1) 40%, 
      rgba(255, 255, 255, 0.5) 50%, 
      transparent 80%,
      transparent 100%
    );
    transition: left 0.6s ease;
    pointer-events: none;  /* マウスイベントを妨げない */
}

.c-audio:hover {
    transition: background 0.3s ease;
    box-shadow: 0 18px 40px rgba(200, 200, 200, 0.5);
}

.c-audio:hover::before {
    left: 100%;  /* 完全に右端まで移動（overflow: hiddenで制御） */
}



.c-audio__bar {
  display: flex;
  align-items: center;
  gap: var(--gap);
  flex-wrap: wrap;
}

/* 各段のスタイル */
.c-audio__row {
  display: flex;
  align-items: center;
  gap: var(--gap);
}

/* 再生コントロール段を中央寄せ */
.c-audio__row--controls {
  justify-content: center;
}

/* シークバー段の特別なスタイル */
.c-audio__row--seek {
  flex: 1;
  min-width: 200px;
}

/* 時間表示のスタイル調整 */
.c-audio__row--seek .ap-time {
  min-width: 2.5em;
  font-size: 0.9em;
}

/* 設定ボタン段のスタイル */
.c-audio__row--settings {
  gap: 0.5rem;
}

/* スマホ用：縦並びに変更 */
@media (max-width: 768px) {
  .c-audio__bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;  /* 段間の間隔を少し広げる */
  }
  
  .c-audio__row--seek {
    min-width: auto;
    gap: 0.75rem;  /* シークバー段の間隔を調整 */
  }
  
  .c-audio__row--settings {
    justify-content: center;
    gap: 1rem;  /* 設定ボタン間の間隔を広げる */
  }
  
  /* スマホ用のボタンサイズ調整 */
  .ap-btn {
    padding: 0.5rem 1rem;  /* ボタンを少し大きく */
    font-size: 1em;
  }
  
  /* スマホ用のシークバー調整 */
  .ap-seek {
    height: 10px;  /* シークバーを少し太く */
  }
}

.ap-btn {
  border: 1px solid #ddd;
  background: #f8f8f8;
  padding: .4rem .8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9em;
  min-width: 2.5em;
  text-align: center;
}

.ap-btn:active {
  transform: translateY(1px);
}

.ap-seek {
  flex: 1;
  height: 8px;
  min-width: 150px;
}

.ap-time {
  min-width: 3.4em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.c-audio__title {
  opacity: .7;
  margin-top: .4rem;
}

@media (prefers-reduced-motion: no-preference) {
  .ap-btn {
    transition: background .2s;
  }
  
  .ap-btn:hover {
    background: #f0f0f0;
  }
}


/* 疑似要素で小さなアイコン */
#site-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-right: -13px;
  position: relative;
  top: -4px;
  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;
}

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

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