body {
  margin: 0;
  font-family: Roboto, "Helvetica Neue", sans-serif;
}

.v-application {
  height: 100vh;
}

.page-selector {
  position: sticky;
  top: 52px;
  height: 42px;
}

.page-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-card-left {
  max-height: calc(100dvh - 150px);
  overflow-y: auto;
  scroll-behavior: smooth;
  position: relative;
  display: flex;
  flex-direction: column;
}

.page-card-right {
  height: calc(100dvh - 82px);
  overflow-y: auto;
  scroll-behavior: smooth;
  position: relative;
  display: flex;
  flex-direction: column;
}
.scroll-wrapper {
  overflow-y: auto;
  flex: 1;
  /* ← これが効く！ */
  padding: 8px 16px;
}

.shadow-top,
.shadow-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  pointer-events: none;
  z-index: 2;
}

.shadow-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
}

.shadow-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
}

.v-card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

pre.hljs {
  background: #f6f8fa;
  border-left: 4px solid #1976d2;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.875rem;
  overflow-x: auto;
  font-family: "Fira Code", monospace;
}

/* YAMLコードブロックだけをダークテーマに */
pre code.language-yaml {
  padding: 1em;
  font-weight: 500;
  border-radius: 5px;
  display: block;
  overflow-x: auto;
  font-family: "Fira Code", "Source Code Pro", Consolas, Menlo, monospace;
}

h2 {
  margin-top: 16px;
  /* 上に余白を追加 */
  margin-bottom: 8px;
  /* 下の余白も調整 */
  font-size: 1.5em;
  font-weight: bold;
}

h3 {
  margin-top: 16px;
  /* 上に余白を追加 */
  margin-bottom: 8px;
  /* 下の余白も調整 */
  font-size: 1.2em;
  font-weight: bold;
}

h4 {
  margin-top: 16px;
  /* 上に余白を追加 */
  margin-bottom: 8px;
  /* 下の余白も調整 */
  font-size: 1em;
  font-weight: bold;
}

h1 button,
h2 button,
h3 button,
h4 button {
  font-size: 0.8em; /* 小さめに */
  padding: 3px 3px; /* ボタン内余白 */
  cursor: pointer; /* クリックできる見た目 */
  border-radius: 5px; /* 角丸 */
}

h1 button:hover,
h2 button:hover,
h3 button:hover,
h4 button:hover {
  background: #ddd; /* hover で色を変える */
}

.copy-btn {
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 12px;
  padding: 2px 4px;
}

.copy-btn .tooltip {
  visibility: hidden;
  background-color: #777;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;

  position: absolute;
  top: 30px; /* 通常位置 */
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;

  opacity: 0;
  transition: opacity 0.2s, top 0.2s; /* top もアニメーション */
  pointer-events: none;
}

.copy-btn:hover .tooltip,
.copy-btn.show-tooltip .tooltip {
  /* クリック時も表示させる */
  visibility: visible;
  opacity: 1;
}

p {
  text-indent: 0em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.5;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 16px;
  /* 上に余白を追加 */
  margin-bottom: 8px;
  /* 下の余白も調整 */
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px;
}

th {
  background: #f0f4f8;
  font-weight: 600;
  text-align: left;
}

th:empty {
  display: none;
}

td:empty {
  background: #f0f0f0;
}

ul,
ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
  line-height: 1.5;
}

ul li,
ol li {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
  /* liごとの下の余白 */
}

.md-btn {
  color: white;
  border: none;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  /* アイコンとテキストの間隔 */
  margin-right: 8px;
  /* ボタン間の間隔 */
  transition: background-color 0.2s;
}

.md-btn:last-child {
  margin-right: 0;
  /* 最後のボタンは余計な余白なし */
}

.md-btn:hover {
  filter: brightness(0.9);
}

.md-btn i.mdi {
  font-size: 16px;
  /* アイコンサイズ調整 */
}

.page-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.page-toc li {
  margin-bottom: 2px;
}

.page-toc a {
  color: #1976d2;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  padding: 2px 4px;
  border-radius: 4px;
}

.page-toc a:hover {
  background: #e3f2fd;
}

.page-toc a.active {
  font-weight: 600;
  background: #bbdefb;
}

.page-toc .toggle-btn {
  cursor: pointer;
  margin-right: 4px;
  font-weight: bold;
}

.page-toc {
  position: sticky;
  top: 16px;
}

.v-field--variant-filled .v-field__overlay {
  background-color: transparent !important;
}

.v-select .v-field__input {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
  min-height: 24px !important;
  height: 24px !important;
}

.v-main {
  padding-top: 52px !important;
}

img {
  display: block;
  margin: auto;
}

img.size-small {
  width: 200px;
  height: auto;
}

.admonition {
  padding: 10px;
  margin: 8px 0;
  border-left: 4px solid;
  border-radius: 6px;
  background: #fafafa;
  color: #000;
  /* 本文は黒 */
}

.admonition-title {
  font-weight: bold;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* アイコンサイズ調整 */
.admonition-title .mdi {
  font-size: 14px;
}

/* 各タイプ */
.warning {
  border-color: #f44336;
  background: #ffecec;
}

.warning .admonition-title {
  color: #d32f2f;
}

.info {
  border-color: #2196f3;
  background: #e7f3fe;
}

.info .admonition-title {
  color: #1976d2;
}

.success {
  border-color: #4caf50;
  background: #e8f5e9;
}

.success .admonition-title {
  color: #2e7d32;
}

.note {
  border-color: #ff9800;
  background: #fff8e1;
}

.note .admonition-title {
  color: #ef6c00;
}

.tip {
  border-color: #009688;
  background: #e0f2f1;
}

.tip .admonition-title {
  color: #00695c;
}

.important {
  border-color: #9c27b0;
  background: #f3e5f5;
}

.important .admonition-title {
  color: #6a1b9a;
}
