@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Lato', sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #F5F5F5;
  background-color: #20201D;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  color: inherit;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 1rem 0;
}
h2 {
  font-size: 2rem;
  line-height: 1.6;
  margin: 0.5rem 0;
}
h3 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 0.25rem 0;
}
.main-heading {
  text-align: center;
  border-bottom: 1px solid gray;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
}
p {
  margin: 0.75rem 0;
}
ul {
  list-style-type: disc;
}
.bullet-list {
  margin: 0;
  padding-left: 1.2rem;
  text-align: left;
  list-style-type: disc;
}
.tall-lines {
  line-height: 37px;
}
.italic-bold {
  color: gray;
  font-style: italic;
  font-weight: bold;
}
.section-spacing {
  padding-top: 1.6rem;
}
code {
  background: #242429;
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
}
details summary {
  cursor: pointer;
  font-size: 1.1em;
  font-weight: normal;
  margin-top: 10px;
  list-style: none;
}
details[open] summary {
  color: #4CAF50;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
th, td {
  border: 1px solid #30363d;
  padding: 0.5em;
  text-align: left;
}
th {
  background-color: #21262d;
}
td {
  background-color: #161b22;
}
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.side-content {
  max-width: 1000px;
  padding-left: 15rem;
  padding-top: 0.5rem;
}
.brand-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding-left: 3rem;
  margin-top: 1.5rem;
}
.home-link {
  font-size: 2.5rem;
  font-weight: 200;
  color: #a0a0a0;
  font-family: 'Raleway', sans-serif;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.home-link::after {
  content: "   -   /root ツ";
  opacity: 0;
  margin-left: 8px;
  transition: opacity 0.3s ease;
  font-size: 1rem;
  color: #888;
  white-space: nowrap;
}
.home-link:hover::after {
  opacity: 1;
}
.home-link:hover,
.home-link:focus,
.home-link:active {
  color: #ffffff;
  transform: translateY(-2px);
}
.back-button {
  font-size: 1.6rem;
  font-weight: 200;
  color: #a0a0a0;
  font-family: 'Raleway', sans-serif;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  padding-bottom: 0.5rem;
}
.back-button:hover,
.back-button:focus,
.back-button:active {
  color: #ffffff;
  transform: translateY(-2px);
}
img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1em 0;
}
.centered-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}
.caption {
  color: gray;
  font-size: 1.2rem;
  text-align: left;
}
.footer {
  text-align: center;
  padding-top: 3rem;
}
.signature {
  font-style: italic;
  font-size: 0.9em;
  color: gray;
}
.steps pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
  overflow-x: auto;
}
.combined {
  margin-top: 0.5rem;
  font-family: 'Fira Code', Consolas, Monaco, 'Courier New', monospace;
  font-weight: bold;
  background: #272727;
  color: #ffffff;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  display: inline-block;
}
.code-box {
  display: inline-block;
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 0.7rem 5rem;
  border-radius: 5px;
  font-size: 1.1rem;
  line-height: 1;
  border: 2px solid #333;
  white-space: pre;
}
.toc {
  position: absolute;
  top: 25px;
  left: calc(49% - 350px - 2rem - 220px);
  width: 230px;
  background: #1e1e1e;
  border: 1px solid #333;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #f5f5f5;
  z-index: 2;
}
.blog-wrapper {
  position: relative;
}
.toc h2 {
  margin-top: 0;
  font-size: 1rem;
  color: #ccc;
}
.toc a {
  text-decoration: none;
  color: #B5B5B5;
}
.toc a:hover {
  text-decoration: none;
  color: #fff;
}
.toc ol {
  padding-left: 1.2rem;
}
.layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (max-width: 900px) {
  .toc {
    position: static;
    width: auto;
    margin: 1rem 0 2rem;
  }
}
.post-date {
  font-family: 'Geist Mono', monospace;
  font-size: 1rem;
  font-style: italic;
  color: gray;
  text-align: left;
  margin-bottom: 12px;
  margin-left: 0px;
}
.toc details {
  margin-bottom: 0.6rem;
}
.toc summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  padding: 0.35rem 0.3rem;
  border-radius: 4px;
  font-weight: normal;
  line-height: 1.2;
  whitespace: normal;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary::before {
  content: "▸";
  margin-right: 0.5rem;
  transition: transform 0.2s;
}
.toc details[open] summary::before {
  transform: rotate(90deg);
}
.toc summary:hover {
  background: rgba(0, 0, 0, 0.05);
}
.toc ol li a {
  display: block;
  padding: 0.25rem 0;
  line-height: 1.6;
  text-decoration: none;
  color: inherit;
}
.toc ol li a:hover {
  text-decoration: underline;
}
html {
   scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.component-list {
  list-style-type: disc;
  margin: 0;
  padding-left: 1.2rem;
}
.component-list > li {
  margin-bottom: 1.2rem;
}
.component-title {
  font-weight: bold;
  display: inline;
}
.component-title .caption {
  font-weight: normal;
  font-style: normal;
  color: #666;
  margin-left: 0.25rem;
}
.detail-list {
  list-style-type: disc;
  margin: 0.7rem 0 0 1.5rem;
  padding-left: 1rem;
}
.detail-list li {
  font-weight: normal;
  margin-bottom: 0.25rem;
}
.lined {
  display: inline-block;
  position: relative;
  padding-bottom: 11px;
}
.lined::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(100% + 22px);
  height: 1px;
  background: #444;
}
@media (max-width: 800px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }
  h1 {
    font-size: 1.9rem;
    text-align: center;
  }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.2rem; }
  p, li {
    font-size: 1rem;
    line-height: 1.6;
    word-break: break-word;
  }
  .container {
    padding: 0 1rem;
    max-width: 100%;
  }
   .toc{
     position:static;
     width:90%;
     margin:1rem auto 2rem auto;
   }
  .toc h2 {
    font-size: 1.1rem;
    text-align: center;
  }
  .code-box {
    display: block;
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 2px solid #333;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 1rem 0;
  }
  code, pre {
    white-space: pre-wrap !important;
    word-wrap: break-word;
    overflow-x: auto;
  }
  [style*="display: flex"] {
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.5rem !important;
  }
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    text-align: center;
    margin: 0 auto 1rem;
  }
  th, td {
    font-size: 0.9rem;
    padding: 0.5rem;
    word-break: keep-all;
  }
  table thead tr th,
  table tbody tr td {
    text-align: center;
  }
  details summary {
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-word;
  }
  .bullet-list {
    padding-left: 1.2rem;
    line-height: 1.6;
    margin: 0.5rem 0 1rem;
  }
  hr {
    margin: 1.5rem 0;
  }
  .signature {
    font-size: 0.85rem;
  }
  img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
  }
.brand-column {
      flex-direction: row;
      justify-content: center;
      align-items: center;
      padding: 1rem 0;
      gap: 1rem;
      margin-top: 0;
      position: relative;
      justify-content: space-between; 
    }
    .home-link {
      font-size: 1.8rem;
      margin-right: auto; 
      padding-left: 1.5rem; 
    }
    .back-button {
      font-size: 1.2rem;
      padding-bottom: 0;
    }
    .brand-column .back-button {
      margin-left: 0.2rem; 
    }
    .brand-column .back-button:last-of-type {
      margin-right: 1.2rem; 
    }
}
