/* ライトモード（default）のフッター背景と文字色を強制上書き */
/* フッター背景を白、文字を黒に強制 */
.md-footer,
.md-footer * {
  background-color: #ffffff !important;
  color: #000000 !important;
  text-align: center !important;
}

/* --- h1: ページタイトル用（太めの帯） --- */

.md-main__inner { margin-top: 0 !important;}
.md-content .md-typeset h1 {
  position: relative;
  margin: 0.75rem 0 !important; 
  font-size: x-large;
  color: black;
  font-weight: bolder;
}
.md-content .md-typeset h1 + * { margin-top: 1rem !important; }

/* ====== パターン①：背景色＋左ラインのカード風見出し ====== */
/* --- h2（セクション） --- */
.md-typeset h2 {
  /* background: var(--md-default-bg-color); */
  background: var(--md-accent-fg-color);
  padding: 0.6rem 1rem;
  /* border-left: 4px solid var(--md-accent-fg-color); */
  border-radius: 6px;
  box-shadow: var(--md-shadow-z1);
  margin-top: 2rem;
  font-weight: bolder;
  color:white;
}
/* --- h3（小見出し） --- */
.md-typeset h3 {
  background: var(--md-accent-fg-color);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  margin-top: 2rem;
  color:white;
  font-weight: bold;
}

.md-typeset h4 {
  border-bottom: 1px solid var(--md-accent-fg-color);
  margin-right: 0.5em;
}
.md-typeset h5 {
  border-bottom: dashed 1px;
  margin: 1.5em 1em 0.5em 1em;
  font-weight: bold;
  color: #000000;
  font-size: 1em;
}

.img-bordered {
  border: 2px solid #ccc;
  border-radius: 4px;
  padding: 4px;
  max-width: 250px !important; 
  height: auto !important;
  display: block;
  margin: 0 auto;
}

.img-bordered_s {
  border: 2px solid #ccc;
  border-radius: 4px;
  padding: 4px;
  max-width: 75px !important; 
  height: auto !important;
  display: block;
  margin: 0 auto;
}

p.small {  /*注釈用*/
  font-size: 0.8em;
}
p.center {
  text-align: center;
}

.center-v {
  height: 1.8em !important;
  vertical-align: middle;
  border: 1px solid #ccc;
  margin:0 0.1em;
}

.md-typeset table td {
  vertical-align: middle !important;
  font-size: 1.1em !important;
}
.md-typeset table th { 
  background-color: #e3f2fd;
  font-size: 1.1em !important;
  font-weight: bold;
 }

.md-typeset .step-container {
    max-width: 600px;
    margin: 2em 0 0 0;
}

.md-typeset .step-item {
    display: flex;
    position: relative;
    padding-bottom: 1.5em; /* ステップ間の距離 */
}

/* 縦線の表現 */
.md-typeset .step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 30px; /* 番号の下から開始 */
    left: 30px; /* 番号の中央に合わせる */
    bottom: 0;
    border-left: 2px dotted #ccc; /* 点線 */
}

/* ステップ番号のデザイン */
.md-typeset .step-number {
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    background: var(--md-accent-fg-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    flex-direction: column; /* 文字を縦に並べる */
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    line-height: 1.2;
    z-index: 1;
}

.md-typeset .step-label {
    font-size: 0.5rem;
    letter-spacing: 0.05rem;
    margin-bottom: -0.1rem;
}

.md-typeset .step-count {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Arial', sans-serif; /* 数字を際立たせる */
}

.md-typeset .step-content {
    margin-left: 15px;
    padding-top: 5px;
}

.md-typeset .step-title {
    margin: 0 0 0 0;
    font-size: 1rem;
    font-weight: bold;
    /* color: #333; */
    color: var(--md-default-fg-color);
    padding-bottom: 5px;
}

.md-typeset .admonition,
.md-typeset details {
  font-size: 0.8rem;
}

.btn-line { display:inline-block; padding:14px 24px; background:#00c300; color:#fff !important; text-decoration:none !important; 
  border-radius:6px; line-height: 1.2;font-size: 1em;font-weight: bold; letter-spacing:0.1em}



/* ====== パターン②：ミニマル下線見出し ====== */

/* --- h1（太めの下線） --- */
/* .md-typeset h1 {
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--md-accent-fg-color);
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}

/* --- h2（中くらいの下線） --- */
/* .md-typeset h2 {
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--md-accent-fg-color);
  margin-top: 2rem;
} */

/* --- h3（細い下線） --- */
/* .md-typeset h3 {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--md-default-fg-color--light);
  margin-top: 1.6rem;
} */ */

/* Backup */
/* .md-typeset h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 6px;
  height: 1.6em;
  background: var(--md-accent-fg-color);
  border-radius: 3px;
} */

/* --- h2: セクション見出し（中くらいの帯） --- */
/* .md-typeset h2 {
  position: relative;
  padding-left: 0.75rem;
  margin-top: 2.2rem;
}

.md-typeset h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 4px;
  height: 1.4em;
  background: var(--md-accent-fg-color);
  border-radius: 2px;
} */

/* --- h3: 小見出し（細い帯） --- */
/* .md-typeset h3 {
  position: relative;
  padding-left: 0.6rem;
  margin-top: 1.8rem;
}

.md-typeset h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 3px;
  height: 1.2em;
  background: var(--md-default-fg-color--light);
  border-radius: 2px;
} */


/* Step コンテナ
.md-typeset .steps {
  counter-reset: step-counter;
  margin: 1.5em 0;
  padding: 0;
  list-style: none;
}

/* 各 Step */
/* .md-typeset .steps li {
  counter-increment: step-counter;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 1rem 1.2rem 1rem 3.5rem;
  margin-bottom: 1rem;
  position: relative;
  box-shadow: var(--md-shadow-z1); */
/* } */

/* 左側の丸い番号バッジ */
/* .md-typeset .steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--md-accent-fg-color);
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--md-shadow-z2); */
/* } */
/* Step タイトル */
/* .md-typeset .steps li strong {
  font-size: 1.05rem;
  color: var(--md-default-fg-color);
}  */

