html, body {
  margin: 0;
  padding: 0;
  
}
.clearfix:after {
  content: "";
  clear: both;
  display: block;
}
.app-header {
  padding: 0px 10px 20px;
}
.home-header {
  padding: 30px 0 0px;
}
.category-header {
  padding: 30px 0;
}
.affiliate-header {
  margin-bottom: 20px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.affiliate-footer {
  text-align: center;
  margin-bottom: 30px;
}
main {
  background: rgb(241, 241, 241);
}
footer {
  padding-top: 30px;
}
.footer {
  text-align: center;
}
.footer h1 {
  font-size: 1.2rem;
}
h1, h2, h3, h4, h5, h6, p, nav, ul, li, a {
  line-height: 1.5;
}
h1 {
  font-size: 2.2rem;
}
h2 {
  font-size: 2.0rem;
}
h3 {
  font-size: 1.8rem;
}
h4 {
  font-size: 1.6rem;
}
h5 {
  font-size: 1.4rem;
}
h6 {
  font-size: 1.2rem;
}
p, ul, li, a, ol {
  font-size: 1.0rem;
}
li a:visited{
  color : #1a0dab;
}
li a:hover {
  color: #1558d6;
  text-decoration: underline;
  /* text-underline-offset: 3px; */
}
summary {
  cursor: pointer;
}
dl {
  margin-bottom: 10px;
}
dt {
  margin-bottom: 4px;
}
ol {
  margin-left: 20px;
  list-style: decimal;
}
/* パーツ */
.english-words {
  display: inline-block;
  border: 1px solid gray;
  border-radius: 4px;
  padding: 4px 8px;
}
span.tm::before {
  content: "「 ";
}
span.tm::after {
  content: " 」";
}
span.tmred {
  color:rgb(255, 0, 140);
}
span.tmred::before {
  content: "「 ";
  color: gray;
}
span.tmred::after {
  content: " 」";
  color: gray;
}
/* ディレクトリ　ファイル　構成 */
.dir-composition-box h2 {
  font-size: 1.2rem;
  border-left: 4px solid rgb(177, 177, 177);
  padding-left: 8px;
  margin-bottom: 0;
}
.dir-composition {
  margin: 0;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 10px;  
}
.dir-composition ul {
  margin: 0;
  padding: 0;
  margin-left: -2px;
}
.dir-composition li {
  margin: 0;
  padding: 0;
}
.dir-composition .dir {
  background-size: 16px;
  background-image: url(./../images/dir.svg);
  background-repeat: no-repeat;
  background-position: 0px 5px;
  padding-left: 20px;
  list-style: none;
  margin: 4px 0;
}
.dir-composition .file {
  background-size: 16px;
  background-image: url(./../images/file.svg);
  background-repeat: no-repeat;
  background-position: 0px 5px;
  padding-left: 20px;
  list-style: none;
  margin: 4px 0;
}
.dir-composition .pack {
  background-size: 16px;
  background-image: url(./../images/package.svg);
  background-repeat: no-repeat;
  background-position: 0px 5px;
  padding-left: 20px;
  list-style: none;
  margin: 4px 0;
}
/* エラー翻訳 */
.error-sentence {
  margin: 30px 0;
  padding: 2px 20px;
  background-color: #ececec;
}
.error-sentence p:nth-of-type(2) {
  border-top: 1px dotted black;
  padding-top: 10px;
}
/* テーブル */
.table-box {
  overflow-x: scroll;
}
.tegata-table {
  width: 100%;
  margin-bottom: 10px;
}
/* 画像 */
.img-box {
  margin-top: 20px;
  margin-bottom: 20px;
}
.img-box img {
  max-width: 100%;
  height: auto;
  border: 1px solid gray;
}
/* リンク */
.external-link {
  margin: 10px 0;
  padding: 0 10px;
}
.external-link li {
  background-repeat: no-repeat;
	background-image: url("./../images/link_icon.svg");
  background-size: 14px;
  padding-left: 20px;
  background-position: 0px 6px; 
}
/* ページ内リンク */
#in-page-link ul li span {
  cursor: pointer;
}
/* スクロールボタン */
#jewelry {
  position: fixed;
  right: 30px;
  bottom: 10px;
  display: table;
  border-collapse: separate;
}
#scroll_btn_box {
  display: table-cell;
  margin-right: 20px;
  border-spacing: 20px 0;
}
#scroll_btn_box p {
  font-weight: bold;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  border-radius: 60px;
  width: 60px;
  height: 60px;
  background-color: rgb(120, 60, 180);
  color: 	white;
  font-size: 18px;
  cursor: pointer;
}
#modal p {
  font-weight: bold;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  border-radius: 60px;
  width: 60px;
  height: 60px;
  background-color: rgb(120, 60, 180);
  color: 	white;
  font-size: 18px;
  cursor: pointer;
}
/*  */
#logo > a {
  font-size: 2.2rem;
}
.contents {
  width: 65%;
  margin: 0 auto;
  overflow: hidden;
}
.contents h1 {
  font-size: 1.6rem;
}
.contents section {
  margin-bottom: 20px;
}
article {
  padding: 30px 20px;
  background-color: white;
  margin-bottom: 50px;
  border-radius: 4px;
}
.view-area p {
  margin: 16px 0;
}
.article-header, .category-header {
  background: rgb(241, 241, 241);
}

.link-area {
  background-color: white;
  padding: 30px 20px;
  margin-bottom: 50px;
}
.link-area h1 {
  font-size: 1.2rem;
}
.link-area nav {
  margin-left: 20px;
}
.link-area a {
  color: rgb(61, 61, 61);
}
.link-area a:visited {
  color: rgb(61, 61, 61);
}
.article-header {
  text-align: center;
  padding: 30px 0;
}
.article-header h1 {
  margin-bottom: 10px;
}
.view-area h1 {
  border-bottom: 1px solid rgb(197, 197, 197);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.view-area section {
  margin-bottom: 50px;
}
.sub-section {
  margin-left: 40px;
  margin-right: 40px;
}
.sub-section h2 {
  font-size: 1.2rem;
  border-left: 4px solid rgb(177, 177, 177);
  padding-left: 8px;
  margin-bottom: 0;
}
.sub-section table {
  margin-top: 10px;
}
.sub-section-noindent {
  margin-left: 0;
}
.sub-section-noindent h2 {
  font-size: 1.2rem;
  border-left: 4px solid rgb(177, 177, 177);
  padding-left: 8px;
  margin-bottom: 10px;
}
.sub-section-noindent-box {
  margin-left: 20px;
}
.date li {
  font-size: 0.9rem;
}
.main-link {
  margin-bottom: 40px;
}
.main-link li {
  background-color: white;
  border-radius: 4px;
  margin-bottom: 10px;
  color: gray;
}
.main-link a {
  font-size: 1.8rem;
  padding: 2px 20px;
  display: block;
  color: rgb(61, 61, 61);
}
.main-link a:visited {
  color: rgb(61, 61, 61);
}
.main-link li:hover {
  background-color: rgb(255, 47, 161);
}
.main-link a:hover {
  text-decoration: none;
  color: white;
}
.code {
  margin: 20px 0;
}
.code-index {
  font-size: 1.0rem;
}
.list {
  margin: 20px 30px;
  list-style: disc;
}
.portal-nav h1 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}
.portal-nav #update-view {
  background-color: white;
  padding: 8px 10px;
  border-radius: 4px;
}

.update-list table {
  border-collapse: separate;
  border-spacing: 10px 0px;
  width: 100%;
}
.update-list table tr td:nth-of-type(1) {
  text-align: center;
}
.update-list table tr td:nth-of-type(2) {
  width: 70%;
}
.update-list table tr td:nth-of-type(3) {
  text-align: center;
}
.update-list table tr td:nth-of-type(4) {
  text-align: center;
}
.update-list table td {
  border-bottom: 1px solid gray;
  padding: 0px 8px;
  padding-top: 6px;
}
.pagination {
  margin-bottom: 10px;
  text-align: center;
}
.pagination li {
  display: inline-block;
  margin: 0 0.5em;
  cursor: pointer;
}

/* .portal-nav li {
  border-bottom: 1px dotted rgb(177, 177, 177);
  margin-bottom: 4px;
}
.portal-nav li a {
  display: block;
  color: gray;
}
.portal-nav li a:visited {
  color: gray;
} */

/* table */
.tbl {
  border-collapse: separate;
  border-spacing: 10px 0px;
}
.tbl th {
  border-bottom: 1px solid gray;
  padding: 0px 10px 4px;
  text-align: center;
}
.tbl td {
  border-bottom: 1px solid gray;
  padding: 4px 10px;
}

/* モーダルウィンドウ */
.question {
  width: 20px;
  cursor: pointer;
}
html.over, body.over {
  overflow: hidden;
}
#modal_wrapper {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  transition: 0.25s ease-out;
  text-align: left;
}
#modal_wrapper h1 {
  margin-bottom: 20px;
}
#modal_wrapper ul {
  margin-left: 20px;
}
#modal_wrapper ul li {
  list-style-type: disc;
}
#modal_wrapper.show {
  opacity: 1;
  pointer-events: all;
}
#explain {
  position: absolute;
  width: 80%;
  height: 80%;
  padding: 10px 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  transition: 0.5s ease-out;
  background: white;
  overflow-y: scroll;
}
.list-sub {
  margin-left: 10px;
}
.comparison-box {
  border: 1px solid gray;
  border-radius: 4px;
  display: flex;
  margin-top: 20px;
}
.compare-left {
  padding: 10px;
  flex-grow: 1;
  overflow-wrap: break-word; 
}
.compare-right {
  padding: 10px;
  flex-grow: 1;
  overflow-wrap: break-word; 
}
.compare-left h3, .compare-right h3 {
  padding: 0px 8px 8px 8px;
  border-bottom: 1px dotted gray;
  text-align: center;
}
.compare-dl dt, .compare-dl dd {
  margin: 0;
  padding: 0;
}
.term {
  margin: 25px 0;
  padding: 10px;
  border: 1px solid rgb(255, 3, 171);
  border-radius: 4px;
}
.term > h2 {
  font-size: 1.0rem;
  padding-left: 10px;
  border-left: 4px solid rgb(255, 3, 171);
}
/* リナックスコマンド一覧 */
.linux_cmd_item {
  border-bottom: 1px solid gray;
  margin-bottom: 20px;
}
.linux_cmd_item dt {
  border-left: 4px solid rgb(255, 105, 188);
  padding-left: 8px;
  margin-bottom: 10px;
  font-size: 1.4rem;
}
.linux_cmd_item dd {
  margin: 0;
}
.linux_cmd_item dd.meaning {
  margin-bottom: 10px;
  font-size: 20px;
}
.linux_cmd_item dd h2 {
  font-weight: bold;
  margin-bottom: 4px;
  color:rgb(255, 105, 188);
  font-size: 1.0rem;
}
.linux_cmd_item dd ul {
  margin-bottom: 10px;
  margin-left: 10px;
}
.linux_cmd_item dd ul li {
  line-height: 1.6em;
}
.linux_cmd_item .op {
  margin-right: 10px;
}

.notice-box {
  border: 1px solid gray;
  padding: 8px;
  border-radius: 4px;
}
.notice-header {
  color: red;
  font-size: 1.2rem;
}
.notes {
  border: 1px solid rgb(255, 3, 171);
  border-radius: 4px;
  padding: 4px 10px;
}
.notes h2 {
  font-size: 1.1rem;
  color: rgb(255, 3, 171);
  border-bottom: 1px dotted gray;
}
.notes p {
  margin: 4px 0;
}
.option-box {
  border: 1px solid gray;
  padding: 8px 12px;
  border-radius: 8px;
  .table-box {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}
.option {
  margin-bottom: 16px;
  dt {
    border-bottom: 1px dotted gray;
    margin-bottom: 8px;
    padding-bottom: 4px;
    padding-left: 4px;
  }
  dd {
    margin-left: 16px;
    p {
      margin: 2px 0;
    }
  }
}
.translation-box {
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid gray;
  border-radius: 8px;
  padding: 12px 8px;
  background-color: rgb(250, 250, 250);
  .en {
    border-bottom: 1px dotted gray;
    padding-bottom: 10px;
    ul {
      margin-left: 30px;
      list-style: disc;
    }
  }
  .ja {
    margin-top: 10px;
    ul {
      margin-left: 30px;
      list-style: disc;
    }
  }
}
/* highlight.js 行番号の拡張 */
pre.line-numbers {
  position: relative;
  padding-left: 3em; /* 行番号分の余白 */
}
.line-numbers-rows {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5em;
  text-align: right;
  padding-right: 0.5em;
  color: #555; /* 色を少し濃くする */
  border-right: 1px solid #ccc;
  user-select: none;
  padding: 1em 0;
}
.line-number {
  display: block; /* 各行に縦並びで揃える */
  font-size: 16px;
  padding-right: 0.5em; /* 行番号の余白 */
}
@media screen and (width > 700px) {
  .affiliate-section-item-small {
    display: none;
  }
}
@media screen and (width < 700px) {
  .contents {
    width: 85%;
    margin: 0 auto;
    overflow: hidden;
  }
  .affiliate-header {
    margin-bottom: 20px;
    display:block;
  }
  .affiliate-header .affiliate-item:nth-of-type(1){
    margin-bottom: 20px;
  }
  .affiliate-section-item-big {
    display: none;
  }
}
@media screen and (width < 1100px) {
  
}