@charset "utf-8";

*, ::before, ::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-bottom: 10px;
}

p span {
  font-weight: bold;
}

.webcolor-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f4f4f4;
}


/* ヘッダー */
header {
  width: 100%;
  height: 36px;
  background-color: #666666;
  box-shadow: 0 3px 6px rgba(60, 45, 40, 0.2);
}

.header-logo img {
  height: 22px;
}

.header-logo {
  padding: 7px;
  text-align: center;
}


/* メインメニュー */
nav .main-menu {
  width: 300px;
  margin: 15px auto 10px;
}

nav .main-menu ul {
  display: flex;
  justify-content: space-between;
}

nav .main-menu li span {
  padding: 5px 6px;
}

  /* メインメニュー　情報 */
  .info-main-menu-active span, #select-info span, .info-main-menu:hover span {
    border-bottom: solid 3px #006dbb;
  }

  /* メインメニュー　Web */
  .web-main-menu-active span, #select-web span, .web-main-menu:hover span {
    border-bottom: solid 3px #d93f51;
  }

  /* メインメニュー　COLOR */
  .color-main-menu-active span, #select-color span, .color-main-menu:hover span {
    border-bottom: solid 3px #7a6ec4;
  }

  /* メインメニュー　情報 */
  .info-answer button:hover {
    background-color: #006dbb;
    color: #ffffff;
  }



/* スクロール後のヘッダー＋メインメニュー */
#mainMenuScroll {
  display: none;
}

.main-menu-scroll {
  position: fixed;
  top: 0;
  width: 100%;
  height: 65px;
  background-color: rgb(238, 238, 238, 0.8);
  box-shadow: 0 3px 6px rgba(60, 45, 40, 0.2);
}

.header-scroll {
  width: 100%;
  height: 28px;
  background-color: #666666;
}

.header-scroll img {
  height: 14px;
}

.header-scroll {
  padding-top: 3px;
  text-align: center;
}

.menu-scroll {
  width: 300px;
  margin: 0 auto;
}

.menu-scroll ul {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.menu-scroll li span {
  padding: 5px 8px;
}


/* メインコンテンツ */
.main-content-info, .main-content-web, .main-content-webjs, .main-content-color {
  margin: 10px 10px 30px;
  border-radius: 15px;
  background-color: #ffffff;
}

.main-content-top div.sub-content {
  padding: 16px 30px;
  border-radius: 15px;
  background-color: #ffffff;
}

.info-main-content .update-day, .sub-content-article .update-day {
  margin: 5px 5px 0 0;
  font-size: 12px;
  justify-self: right;
  text-align: right;
}

.info-main-content .update-day::before, .sub-content-article .update-day::before {
  margin-right: 5px;
  padding: 3px;
  content: 'UP';
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  background-color: #f4f4f4;
}

h2 span {
  padding-right: 10px;
  font-size: smaller;
}

h3 {
  padding: 3px 10px;
  font-size: 19px;
}

.sub-content, .info-sub-content, .web-sub-content, .color-sub-content, .web-js-sub-content {
  margin: 5px 10px 50px;
}

.sub-content:last-child {
  margin-bottom: 20px;
}

.sub-content li {
  padding: 5px 10px;
  border-bottom: dotted 1px #aaaaaa;
}

.info-menu, .web-menu, .color-menu {
  margin: 10px 5px 30px 15px;
}

.info-menu ol, .web-menu ol, .color-menu ol {
  list-style: decimal outside;
  margin-left: 20px;
}

.info-menu li, .web-menu li, .color-menu li {
  padding: 10px 0;
}

#infoSubMenu1, #infoSubMenu2, #infoSubMenu3, #webSubMenu1, #webSubMenu2, #colorSubMenu1, #colorSubMenu2 {
  display: none;
}

.info-menu ul, .web-menu ul, .color-menu ul {
  margin-left: 20px;
}

.sub-content-article {
  margin: 20px 0 100px;
  padding: 10px;
}

.sub-content-article-h2 {
  margin: 0 0 50px;
  padding: 10px;
}

.main-article {
  margin-left: 10px;
}


  /* メインコンテンツ　　　サブメニューへ */
  #menuLink {
    display: none;
    position: fixed;
    margin-right: 10px;
    top: 75px;
  }

  #menuLink span {
    padding: 8px 10px;
  }



  /* メインコンテンツ　　　章タイトル */
  .info-h2, .web-h2, .color-h2 {
    display: flex;
    align-items: baseline;
    font-weight: bold;
  } 

  .article01::before {
    content: '１.';
  }

  .article02::before {
    content: '２.';
  }

  .article03::before {
    content: '３.';
  }


  /* メインコンテンツ　　　サブコンテンツ */
  .h3-list ul {
    margin: 10px 0 30px 30px;
    list-style: circle;
  }

  .h3-list li {
    padding: 5px 0;
  }

  h4 {
    margin: 20px 0 10px;
    font-size: 18px;
  }

  h4 span {
    padding: 3px 8px;
  }

  .h3-content, .h4-content {
    margin: 10px 0 50px;
  }

  .h4-list {
    margin-top: 20px;
  }

  .h4-list p::before, .h4-list-style li span::before {
    padding-right: 3px;
    content: '■';
  }

  .h4-list ul {
    margin-left: 25px;
    list-style: disc;
  }

  .h4-list li {
    padding: 5px;
  }

  .h4-list ul {
    list-style: none;
  }

  .h4-list-style ul {
    margin-top: 30px;
  }

  .h4-list-style li {
    margin-bottom: 20px;
  }

  .h4-list-style span {
    font-weight: bold;
  }

  .h4-list-content {
    padding-left: 20px;
  }

  .h4-list-content img {
    width: 300px;
  }

  .h5::before, .h5a::before {
    padding-right: 3px;
    content: '■';
  }

  .h5, .h5a, .h5-content p span {
    font-weight: bold;
  }

  .h5-content p span {
    padding: 0 3px;
  }

  .h5a {
    margin-top: 20px;
  }

  .h5-content {
    margin-bottom: 30px;
    padding: 5px 0 0 20px;
  }


  /* メインコンテンツ　　　定義語 */
  .definition-word div {
    margin-bottom: 20px;
  }

  .info-main-content .definition-word div, .web-main-content div.definition-word {
    margin-bottom: 0;
  }

  .definition-word th dt {
    text-align: left;
    color: #ffffff;
  }

  .definition-word rt {
    padding: 2px 0;
  }

  dt span {
    margin-left: 5px;
    padding: 5px;
    font-weight: bold;
  }

  dd {
    margin-top: 2px;
    padding: 5px 0;
  }

  .an-definition-word {
    display: none;
    margin-left: 5px;
  }

  .qu-definition-word button {
    width: 100px;
    border-radius: 5px;
    border: solid 1px #666666;
    font-size: large;
  }


  /* メインコンテンツ　　　テーブル */
  caption {
    margin: 5px;
    text-align: left;
  }

  caption::before {
    padding-right: 5px;
    width: 80%;
    content: '●';
  }

  caption::after {
    padding-left: 5px;
    width: 80%;
    content: '●';
  }

  .infosyutsudai table, .h4-content table, .definition-word table {
    margin: 20px 30px;
    width: 600px;
    border-collapse: collapse;
    border: solid 1px #666666;
    font-size: 15px;
  }

  .h4-content table {
    margin-left: 0;
  } 

  .infosyutsudai th, .infosyutsudai td, .h4-content th, .h4-content td, .definition-word th, .definition-word td {
    padding: 4px 8px;
    border: solid 1px #666666;
  }

  .infosyutsudai th, .infosyutsudai td, .h4-content th, table .t-center {
    text-align: center;
  }

  table .table-th, .h4-content th {
    background-color: #eeeeee;
  }

  tr .th-title {
    background-color: #666666;
    text-align: left;
    font-weight: normal;
    color: #ffffff;
  }

  tr .th-sub-title {
    padding-left: 20px;
    text-align: left;
  }

  tr .td-title {
    padding-left: 20px;
    text-align: left;
  }

  td .t-flex {
    display: flex;
  }

  .th-100 th, tr .th-100 {
    width: 100px;
    text-align: left;
    vertical-align: top;  
  }

  tr .th-150 {
    width: 150px;
    text-align: left;
    vertical-align: top;  
  }

  tr .th-175 {
    width: 175px;
    text-align: left;
    vertical-align: top;  
  }

  .th-c-120 th {
    padding-left: 15px;
    width: 120px;
    text-align: left;
  }


  .table-dashed th {
    text-align: left;
  }

  .table-dashed td, .h5-content-table td {
    border: dashed 1px #666666;
    padding-left: 20px;
  }

  .td-center td {
    text-align: center;
  }


  /* メインコンテンツ　トップ */
  .main-content #menuLink span {
    background-color: #666666;
    color: #ffffff;
  }

  #updateInfo, #updateWeb, #updateWebJs, #updateColor {
    padding-bottom: 20px;
  }

  #updateInfo .info-h2, #updateWeb .web-h2, #updateWebJs .web-js-h2, #updateColor .color-h2 {
    margin-bottom: 20px;
    font-size: 24px;
  }



  /* メインコンテンツ　情報 */
  .info-main-content #menuLink span {
    background-color: #006dbb;
    color: #ffffff;
  }

  #updateInfo, .main-content-info {
    border: solid 2px #006dbb;
  }

  .info-h2, .info-main-content h3::before, .info-sub-content h4, .info-sub-content .h4-list p::before, .info-sub-content caption::before, .info-sub-content caption::after, .info-sub-content .h4-list-style span::before, .info-sub-content .h5::before, .info-sub-content .h5a::before {
    color: #006dbb;
  }

  .info-main-content h3 {
    border-bottom: solid 3px #006dbb;
  }

  .info-main-content dt span {
    border-bottom: dotted 1px #006dbb;
  }

  .info-main-content .definition-word th {
    background-color: #006dbb;
    color: #ffffff;
  }

  .info-answer {
    display: flex;
    justify-content: space-between;
    margin: 20px auto;
    width: 320px;
  }

  .info-answer button {
    padding: 3px 15px;
    border: solid 1px #006dbb;
    border-radius: 5px;
    font-size: 16px;
    background-color: #eeeeee;
  }

  .definition-word button {
    background-color: #eeeeee;
    color: #000000;
  }

  .info-main-content .h5-content img {
    margin: 10px 0 30px;
    width: 400px;
    text-align: center;
  }

  .info-hardware {
    margin-top: 20px;
  }



  /* メインコンテンツ　Web */
  .web-main-content #menuLink span {
    background-color: #d93f51;
    color: #ffffff;
  }

  #updateWeb, .main-content-web {
    border: solid 2px #d93f51;
  }

  .web-h2, .web-main-content h3::before, .web-sub-content h4, .web-main-content .h4-list-style span::before {
    color: #d93f51;
  }

  .web-main-content h3 {
    border-bottom: solid 3px #d93f51;
  }

  .web-main-content th {
    background-color: #d93f51;
  }



  /* メインコンテンツ　Web --JavaScript-- */
  #updateWebJs, .main-content-webjs {
    border: solid 2px #2181BF;
  }

  .web-js-h2 {
    color: #2181BF;
  }


  
  /* メインコンテンツ　COLOR */
  .color-main-content #menuLink span {
    background-color: #7a6ec4;
    color: #ffffff;
  }

  #updateColor, .main-content-color {
    border: solid 2px #7a6ec4;
  }

  .color-h2, .color-main-content h4, caption::before, caption::after {
    color: #7a6ec4;
  }

  .color-main-content h3 {
    border-bottom: solid 3px #7a6ec4;
  }

  .color-main-content .definition-word th {
    background-color: #7a6ec4;
  }

  .chromatic-color, .achromatic-color {
    display: flex;
    margin-left: 30px;
  }

  .color-wavelength-s img {
    padding-top: 6px;
    width: 148px;
  }

  .color-wavelength img {
    padding-top: 6px;
    width: 85px;
  }

  .color-rainbow img {
    width: 300px;
  }

  .chromatic-color div, .achromatic-color div {
    margin: 0;
    width: 30px;
    height: 30px;
  }

  .color-wheel img {
    margin-top: 20px;
    margin-left: 40px;
    width: 250px;
  }

  .color-lightness img {
    margin: 20px 0 20px 20px;
    width: 300px;
  }

  .color-saturation img {
    margin: 20px 50px;
    width: 200px;
  }

  .color-red {
    background-color: #da404a;
  }

  .color-orange {
    background-color: #ef8614;
  }

  .color-yellow {
    background-color: #fcd300;
  }

  .color-green {
    background-color: #009d59;
  }

  .color-blue {
    background-color: #0074b1;
  }

  .color-indigo {
    background-color: #2a313f;
  }

  .color-violet {
    background-color: #734f9c;
  }

  .color-black {
    background-color: black;
  }

  .color-gray {
    background-color: gray;
  }

  .color-lightgray {
    background-color: lightgray;
  }

  .color-white {
    border: solid 1px lightgrey;
    background-color: white;
  }

  .img-rgb img {
    margin: 10px 50px;
    width: 300px;
  }

  .img-example {
    margin: 10px 70px;
    width: 300px;
  }

  .img-example div {
    margin: 10px 0 0 30px;
  }

  .img-example span {
    font-weight: bold;
  }


/* フッター */
footer {
  margin-top: auto;
  width: 100%;
  background-color: #666666;
}

.footer {
  margin: 0 auto;
  padding: 10px;
  width: 800px;
  color: #ffffff;
  text-align: center;
}

footer img {
  width: 130px;
}

.footer-menu {
  display: flex;
  justify-content: space-between;
  margin: 10px 5px 20px;
  text-align: left;
}

.footer-sub-menu {
  width: 180px;
  font-size: 14px;
}

.footer-sub-menu li {
  margin-left: 10px;
  padding-top: 8px;
}

.copy {
  padding-right: 3px;
  font-size: larger;
}



/* 画面が1200pxより大きい時 */
@media (min-width: 1200px) {

  .main-content-top, .main-content-info, .main-content-web, .main-content-webjs, .main-content-color {
    width: 1000px;
    margin: 10px auto 50px;
    padding: 10px 20px;
  }


  /* メインコンテンツ */
  .info-menu ol, .web-menu ol, .color-menu ol {
    margin-left: 30px;
  }
  
  .info-menu li, .web-menu li, .color-menu li {
    padding: 5px 0;
  }

    /* サブメニューへ */
    #menuLink {
      left: 70%;
    }

    #menuLink span:hover {
      background-color: rgb(244, 244, 244, 1);
      color: #000000;
    }

    .info-main-content #menuLink span:hover {
      border-bottom: solid 3px #006dbb;
    }

    .web-main-content #menuLink span:hover {
      border-bottom: solid 3px #d93f51;
    }

    .color-main-content #menuLink span:hover {
      border-bottom: solid 3px #7a6ec4;
    }
  
}


/* 画面が1000pxより小さい時 */
@media (max-width: 1000px) {

  /* サブメニューへ */
  #menuLink {
    left: 85%;
  }


  /* フッター */
  .footer {
    width: 750px;
  }

  .footer-sub-menu li {
    padding-top: 10px;
  }

}


/* 画面が820pxより小さい時 */
@media (max-width: 820px) {

  /* サブメニューへ */
  #menuLink {
    left: 80%;
  }


  /* メインコンテンツ　　　テーブル */
  .infosyutsudai table, .h4-content table, .definition-word table {
    width: 500px;
  }


  /* メインコンテンツ　COLOR */
  .color-rainbow, .color-wavelength {
    justify-content: center;
    margin-left: 0;
  }


  /* フッター */
  .footer {
    width: 600px;
  }

}


/* 画面が600pxより小さい時 */
@media (max-width: 600px) {

  /* サブメニューへ */
  #menuLink {
    left: 75%;
  }


  /* メインコンテンツ */
  .main-content-top, .main-content-info, .main-content-web, .main-content-webjs, .main-content-color {
    margin: 10px 10px 30px;
  }

  h2, h3 {
    padding: 3px 5px;
  }

  .info-menu ul, .web-menu ul, .color-menu ul {
    margin-left: 5px;
  }

  .sub-content-article {
    padding: 0;
  }

  .h4-content {
    margin: 10px 0 50px;
  }


  /* メインコンテンツ　　　テーブル */
  .infosyutsudai table, .h4-content table, .definition-word table {
    margin: 20px auto;
    width: 100%;
  }

  .definition-word table {
    margin-bottom: 40px;
  }

  tr .td-title {
    padding-left: 10px;
  }

  td .t-flex {
    display: block;
  }


  /* フッター */
  .footer {
    width: 100%;
  }

}


/* 画面が500pxより小さい時 */
@media (max-width: 500px) {

  /* メインコンテンツ */
  .main-content-top div.sub-content {
    padding: 10px 15px;
  }

  /* メインコンテンツ　　　サブコンテンツ */
  .h3-list ul {
    margin-left: 20px;
  }

  /* メインコンテンツ　COLOR */

  .img-rgb img, .img-example {
    margin: 20px auto;
  }
  
  .img-rgb {
    text-align: center;
  }

  .info-main-content .h5-content img {
    width: 310px;
  }


  /* フッター */
  .footer-menu {
    display: block;
    margin-left: 30px;
  }

  .footer-sub-menu {
    margin-bottom: 40px;
    width: 100%;
    font-size: medium;
  }

}


/* 画面が390pxより小さい時 */
@media (max-width: 390px) {

  /* サブメニューへ */
  #menuLink {
    left: 75%;
  }


  /* メインコンテンツ */
  .main-content-top, .main-content-info, .main-content-web, .main-content-webjs, .main-content-color {
    margin: 10px 8px 30px;
  }


.main-content-top div.sub-content {
  padding: 10px;
}

  .sub-content-article-h2 {
    padding: 10px 0;
  }

  .main-article {
    margin-left: 0;
  }


  /* メインコンテンツ　　　テーブル */
  .infosyutsudai th, .infosyutsudai td, .h4-content th, .h4-content td, .definition-word th, .definition-word td {
    padding: 4px 10px;
    
  }
}