@charset "UTF-8";

/* ===================================================
   Article Decoration Parts
   - Aスリープ トンマナ準拠
   - Color: #0055B8 (brand blue), #58595B (text), #CDD1D9 (border)
   =================================================== */

/* ---------------------------------------------------
   Base: .m-entry overrides for article pages
   --------------------------------------------------- */
.m-entry {
  margin: 0 auto;
  font-size: 1.5rem;
  line-height: 2;
  color: #58595B;
}
.m-entry > *:last-child {
  margin-bottom: 0;
}
.m-entry p {
  margin: 0 0 1.75em;
}
.m-entry img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2em auto;
  border-radius: 4px;
}

/* ---------------------------------------------------
   Headings
   --------------------------------------------------- */
.m-entry h2 {
  position: relative;
  margin: 3em 0 1.25em;
  padding: 0.8em 1em;
  background-color: #0055B8;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  border-radius: 4px;
}
.m-entry h2::before {
  content: none;
}
.m-entry h2::after {
  content: none;
}

.m-entry h3 {
  position: relative;
  margin: 2.5em 0 1em;
  padding: 0.6em 0 0.6em 1em;
  border-left: 4px solid #0055B8;
  border-bottom: 1px solid #CDD1D9;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.m-entry h3::before {
  content: none;
}

.m-entry h4 {
  position: relative;
  margin: 2em 0 0.8em;
  padding-left: 1.2em;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
}
.m-entry h4::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: #0055B8;
  border-radius: 50%;
}

/* ---------------------------------------------------
   Links
   --------------------------------------------------- */
.m-entry a {
  color: #0055B8;
  text-decoration: underline;
  transition: opacity 0.3s;
}
.m-entry a:hover {
  opacity: 0.7;
}

/* ---------------------------------------------------
   Lists
   --------------------------------------------------- */
.m-entry ul {
  margin: 0 0 1.75em;
  padding: 1.2em 1.2em 1.2em 2.4em;
  background-color: #F9FAFC;
  border-radius: 4px;
}
.m-entry ul li {
  margin: 0 0 0.5em;
  list-style: disc;
  line-height: 1.75;
}
.m-entry ul li:last-child {
  margin-bottom: 0;
}

.m-entry ol {
  margin: 0 0 1.75em;
  padding: 1.2em 1.2em 1.2em 2.4em;
  background-color: #F9FAFC;
  border-radius: 4px;
  counter-reset: ol-counter;
}
.m-entry ol li {
  margin: 0 0 0.5em;
  list-style: none;
  line-height: 1.75;
  counter-increment: ol-counter;
}
.m-entry ol li::before {
  content: counter(ol-counter) ".";
  display: inline-block;
  width: 1.8em;
  margin-left: -1.8em;
  color: #0055B8;
  font-family: "EB Garamond", Times New Roman, Times, serif;
  font-weight: 600;
}
.m-entry ol li:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------
   Blockquote
   --------------------------------------------------- */
.m-entry blockquote {
  position: relative;
  margin: 1.75em 0;
  padding: 1.5em 1.5em 1.5em 2em;
  background-color: #F9FAFC;
  border-left: 4px solid #CDD1D9;
  border-radius: 0 4px 4px 0;
  font-size: 1.4rem;
  color: #777;
}
.m-entry blockquote p {
  margin-bottom: 0.5em;
}
.m-entry blockquote p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------
   Table
   --------------------------------------------------- */
.m-entry table {
  width: 100%;
  margin: 1.75em 0;
  border-collapse: collapse;
  font-size: 1.4rem;
  line-height: 1.75;
}
.m-entry thead th {
  padding: 0.8em 1em;
  background-color: #0055B8;
  color: #fff;
  font-weight: 500;
  text-align: left;
  border: 1px solid #004a9f;
}
.m-entry tbody td {
  padding: 0.8em 1em;
  border: 1px solid #CDD1D9;
  vertical-align: top;
}
.m-entry tbody tr:nth-child(even) {
  background-color: #F9FAFC;
}
.m-entry tbody th {
  padding: 0.8em 1em;
  background-color: #F0F2F5;
  font-weight: 500;
  text-align: left;
  border: 1px solid #CDD1D9;
  white-space: nowrap;
}

/* ---------------------------------------------------
   Horizontal Rule
   --------------------------------------------------- */
.m-entry hr {
  margin: 2.5em 0;
  border: none;
  border-top: 1px solid #CDD1D9;
}

/* ---------------------------------------------------
   Strong / Bold
   --------------------------------------------------- */
.m-entry strong {
  color: #333;
  font-weight: 600;
  background: linear-gradient(transparent 60%, rgba(0, 85, 184, 0.12) 60%);
}
.m-entry strong.u-txt-red {
  background: none;
}

/* ---------------------------------------------------
   Code
   --------------------------------------------------- */
.m-entry code {
  padding: 0.15em 0.4em;
  background-color: #F0F2F5;
  border-radius: 3px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
  color: #d63384;
}
.m-entry pre {
  margin: 1.75em 0;
  padding: 1.2em 1.5em;
  background-color: #2d2d2d;
  border-radius: 4px;
  overflow-x: auto;
}
.m-entry pre code {
  padding: 0;
  background: none;
  color: #f8f8f2;
  font-size: 1.3rem;
  line-height: 1.7;
}

/* ===================================================
   Custom Decoration Boxes
   - Use as raw HTML in .md files
   =================================================== */

/* ---------------------------------------------------
   Point Box (ポイント・まとめ)
   --------------------------------------------------- */
.box-point {
  position: relative;
  margin: 2em 0;
  padding: 2em 1.5em 1.5em;
  background-color: #F9FAFC;
  border: 1px solid #CDD1D9;
  border-radius: 6px;
}
.box-point::before {
  content: "POINT";
  position: absolute;
  top: -0.8em;
  left: 1em;
  padding: 0.15em 1em;
  background-color: #0055B8;
  color: #fff;
  font-family: "EB Garamond", Times New Roman, Times, serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 3px;
}
.box-point ul,
.box-point ol {
  background: none;
  padding-left: 1.6em;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ---------------------------------------------------
   Alert / Warning Box (注意)
   --------------------------------------------------- */
.box-alert {
  position: relative;
  margin: 2em 0;
  padding: 2em 1.5em 1.5em;
  background-color: #FFF8F6;
  border: 1px solid #E8846A;
  border-radius: 6px;
}
.box-alert::before {
  content: "注意";
  position: absolute;
  top: -0.8em;
  left: 1em;
  padding: 0.15em 1em;
  background-color: #E8846A;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 3px;
}
.box-alert ul,
.box-alert ol {
  background: none;
  padding-left: 1.6em;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ---------------------------------------------------
   Memo Box (メモ・補足)
   --------------------------------------------------- */
.box-memo {
  position: relative;
  margin: 2em 0;
  padding: 2em 1.5em 1.5em;
  background-color: #F6FAEE;
  border: 1px solid #8DB255;
  border-radius: 6px;
}
.box-memo::before {
  content: "MEMO";
  position: absolute;
  top: -0.8em;
  left: 1em;
  padding: 0.15em 1em;
  background-color: #8DB255;
  color: #fff;
  font-family: "EB Garamond", Times New Roman, Times, serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 3px;
}
.box-memo ul,
.box-memo ol {
  background: none;
  padding-left: 1.6em;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ---------------------------------------------------
   Summary Box (まとめ)
   --------------------------------------------------- */
.box-summary {
  position: relative;
  margin: 2em 0;
  padding: 2em 1.5em 1.5em;
  background-color: #F0F5FA;
  border: 2px solid #0055B8;
  border-radius: 6px;
}
.box-summary::before {
  content: "まとめ";
  position: absolute;
  top: -0.8em;
  left: 1em;
  padding: 0.15em 1em;
  background-color: #0055B8;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 3px;
}
.box-summary ul,
.box-summary ol {
  background: none;
  padding-left: 1.6em;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ---------------------------------------------------
   Step Flow (ステップ)
   --------------------------------------------------- */
.box-steps {
  margin: 2em 0;
  padding: 0;
}
.box-steps .step-item {
  position: relative;
  padding: 0 0 2em 3.5em;
  border-left: 2px solid #CDD1D9;
  margin-left: 1em;
}
.box-steps .step-item:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}
.box-steps .step-item::before {
  content: attr(data-step);
  position: absolute;
  top: 0;
  left: -1.2em;
  width: 2.4em;
  height: 2.4em;
  background-color: #0055B8;
  color: #fff;
  font-family: "EB Garamond", Times New Roman, Times, serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 2.4em;
  text-align: center;
  border-radius: 50%;
}
.box-steps .step-item .step-title {
  margin: 0 0 0.5em;
  font-size: 1.6rem;
  font-weight: 500;
  color: #333;
  line-height: 2.4em;
}
.box-steps .step-item .step-body {
  font-size: 1.4rem;
  line-height: 1.75;
}

/* ---------------------------------------------------
   Q&A
   --------------------------------------------------- */
.box-qa {
  margin: 2em 0;
  border: 1px solid #CDD1D9;
  border-radius: 6px;
  overflow: hidden;
}
.box-qa .qa-question {
  position: relative;
  padding: 1em 1.5em 1em 4.5em;
  background-color: #F9FAFC;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
}
.box-qa .qa-question::before {
  content: "Q";
  position: absolute;
  left: 1.5em;
  top: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  background-color: #0055B8;
  color: #fff;
  font-family: "EB Garamond", Times New Roman, Times, serif;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 50%;
  line-height: 1;
}
.box-qa .qa-answer {
  position: relative;
  padding: 1em 1.5em 1em 4.5em;
  font-size: 1.4rem;
  line-height: 1.75;
}
.box-qa .qa-answer::before {
  content: "A";
  position: absolute;
  left: 1.5em;
  top: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  background-color: #E8846A;
  color: #fff;
  font-family: "EB Garamond", Times New Roman, Times, serif;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 50%;
  line-height: 1;
}

/* ---------------------------------------------------
   Balloon / Callout (吹き出し)
   --------------------------------------------------- */
.balloon {
  display: flex;
  align-items: flex-start;
  margin: 2em 0;
  gap: 16px;
}
.balloon.is-right {
  flex-direction: row-reverse;
}
.balloon-icon {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
}
.balloon-icon img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
}
.balloon-icon span {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
  color: #999;
  line-height: 1.3;
}
.balloon-text {
  position: relative;
  max-width: 75%;
  padding: 1em 1.2em;
  background-color: #F0F5FA;
  border-radius: 12px;
  font-size: 1.4rem;
  line-height: 1.75;
}
.balloon-text::before {
  content: "";
  position: absolute;
  top: 16px;
  left: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 8px 6px 0;
  border-color: transparent #F0F5FA transparent transparent;
}
.balloon.is-right .balloon-text {
  background-color: #FFF8F6;
}
.balloon.is-right .balloon-text::before {
  left: auto;
  right: -8px;
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent #FFF8F6;
}

/* ---------------------------------------------------
   Table of Contents (目次)
   --------------------------------------------------- */
.box-toc {
  margin: 2em 0;
  padding: 1.5em 2em;
  background-color: #F9FAFC;
  border: 1px solid #CDD1D9;
  border-radius: 6px;
}
.box-toc .toc-title {
  margin: 0 0 0.8em;
  font-family: "EB Garamond", Times New Roman, Times, serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #58595B;
  text-align: center;
  letter-spacing: 0.08em;
}
.box-toc ol {
  background: none;
  padding: 0 0 0 1.6em;
  margin: 0;
  counter-reset: toc-counter;
}
.box-toc ol li {
  margin: 0 0 0.4em;
  padding: 0.2em 0;
  border-bottom: 1px dotted #CDD1D9;
  list-style: none;
  counter-increment: toc-counter;
}
.box-toc ol li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.box-toc ol li::before {
  content: counter(toc-counter) ".";
  margin-left: -1.6em;
  margin-right: 0.4em;
  color: #0055B8;
  font-family: "EB Garamond", Times New Roman, Times, serif;
  font-weight: 600;
}
.box-toc ol li a {
  color: #58595B;
  text-decoration: none;
  transition: color 0.3s;
}
.box-toc ol li a:hover {
  color: #0055B8;
}

/* ---------------------------------------------------
   CTA Button (記事内ボタン)
   --------------------------------------------------- */
.btn-cta {
  display: block;
  max-width: 400px;
  margin: 2em auto;
  padding: 1em 2em;
  background-color: #0055B8;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
  letter-spacing: 0.04em;
}
.btn-cta:hover {
  background-color: #004399;
  color: #fff;
  text-decoration: none;
}

/* ---------------------------------------------------
   Number Highlight (数字の強調)
   --------------------------------------------------- */
.num-highlight {
  font-family: "EB Garamond", Times New Roman, Times, serif;
  font-size: 1.3em;
  font-weight: 600;
  color: #0055B8;
}

/* ---------------------------------------------------
   Responsive
   --------------------------------------------------- */
@media (max-width: 767px) {
  .m-entry {
    font-size: 1.4rem;
  }
  .m-entry h2 {
    font-size: 1.6rem;
    padding: 0.7em 0.8em;
  }
  .m-entry h3 {
    font-size: 1.5rem;
  }
  .m-entry h4 {
    font-size: 1.4rem;
  }
  .m-entry table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .balloon-icon {
    width: 48px;
  }
  .balloon-icon img {
    width: 48px;
    height: 48px;
  }
  .balloon-text {
    max-width: 80%;
  }
  .box-toc {
    padding: 1.2em 1.2em;
  }
  .box-steps .step-item {
    padding-left: 2.8em;
  }
}
