/* @theme custom */
@import 'default';

:root {
  --primary-color: #4a86e8;
  --secondary-color: #ff9900;
  --background-color: #f5f5f5;
  --text-color: #333333;
}

section {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Arial', sans-serif;
  font-size: 36px;
  line-height: 1.5;
  padding: 40px;
}

h1 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 15px;
  font-size: 48px;
  margin-bottom: 30px;
}

h2 {
  font-size: 40px;
  margin-top: 30px;
  margin-bottom: 20px;
}

ul,
ol {
  margin-left: 1em;
  margin-bottom: 20px;
  padding-left: 1em;
}

li {
  margin-bottom: 10px;
  padding-left: 0.5em;
}

/* 番号付きリストのスタイリング改善 */
ol {
  list-style-type: decimal;
  counter-reset: list;
}

ol > li {
  list-style-type: none;
  position: relative;
}

ol > li::before {
  counter-increment: list;
  content: counter(list) '.';
  position: absolute;
  left: -1.5em;
  width: 1.5em;
  text-align: right;
}

/* 箇条書きリストのスタイリング改善 */
ul {
  list-style-type: disc;
}

ul > li {
  list-style-type: none;
  position: relative;
}

ul > li::before {
  content: '•';
  position: absolute;
  left: -1em;
  width: 1em;
  text-align: center;
}

/* ネストされたリストのスタイリング */
ol ol,
ul ul,
ol ul,
ul ol {
  margin-top: 10px;
  margin-bottom: 0;
  margin-left: 1em;
}

img {
  border-radius: 10px;
  max-width: 90%;
  height: auto;
}

.columns {
  display: flex;
  gap: 1rem;
}

.columns > div {
  flex: 1;
}

.columns img {
  max-width: 100%;
  height: auto;
}

section.title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

section.title h1 {
  font-size: 64px;
  text-align: center;
  border: none;
}

section.end {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

section.end h1 {
  font-size: 56px;
  text-align: center;
}

/* ページ番号のスタイル */
section::after {
  content: attr(data-marpit-pagination) '/' attr(data-marpit-pagination-total);
  font-size: 18px;
  color: var(--text-color);
  opacity: 0.5;
  right: 30px;
  bottom: 20px;
}
