@charset "utf-8";
/*ボディセンター*/
body {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/*ヘッダー*/
header {
  background-color: #665144;
  display: flex;
  h1 {
    color: #ffffff;
    font-size: 1.5rem;
    font-family: "Kaisei Opti", serif;
    margin: 10px 0 10px 20px;
  }
}
/*グローバルナビ*/
nav {
  ul {
    display: flex;
    justify-content: center;
    padding-top: 5px;
    padding-bottom: 5px;
    li {
      font-size: 1.2rem;
      font-family: "Oswald", serif;
      list-style: none;
      flex: 1;
      a {
        color: #665144;
        text-decoration: none;
        &:hover {
          opacity: 0.7;
        }
      }
    }
  }
}
/*テーブル*/
table,
th,
td {
  color: #665144;
  border: 3px solid#665144;
  border-collapse: collapse;

  margin: 0px 10px;
}
th,
td {
  width: 250px;
  padding: 5px;
  img {
    border-radius: 20px;
    width: 100%;
    min-width: 200px;
    box-shadow: 0 0 10px #ccc;
  }
}
/*テーブル色付け*/
th {
  background: rgb(221, 246, 123);
}
.even {
  background: #f8fafa;
}
.odd {
  background: rgb(241, 247, 233);
}

.class {
  background-color: rgb(251, 241, 228);
  padding: 0 0 30px 0;
  h2 {
    color: #665144;
    font-size: 3rem;
    font-family: "Kaisei Opti", serif;
    padding-top: 50px;
  }
  h3 {
    color: #665144;
    font-size: 1.5rem;
    margin-top: 10px;
    font-family: "Oswald", serif;
  }
  .class-text {
    color: #665144;
    padding: 20px 0;
    font-weight: bold;
    a {
      color: #665144;
      font-size: 1.1rem;
      font-weight: bold;
    }
    a:hover {
      color: rgba(166, 151, 151, 0.611);
      text-decoration: underline;
    }
  }
}

.more {
  display: flex;
  background-color: rgb(221, 246, 123);
  padding: 10px 0;
  border-radius: 9999px;
  border: 2px solid #ffffff;
  width: 400px;
  margin: 30px auto;
  /*メニューをもっと見るリンク＆位置*/
  a {
    color: #665144;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    margin: auto;
    font-weight: bold;
  }
}

.contact {
  background-color: #ffffff;
  h2 {
    color: #665144;
    font-size: 3rem;
    font-family: "Kaisei Opti", serif;
    padding-top: 50px;
  }
  h3 {
    color: #665144;
    font-size: 1.5rem;
    margin-top: 10px;
    font-family: "Oswald", serif;
  }
}

.toiawase {
  margin-top: 20px;
  font-weight: bold;
  color: #665144;
  margin-bottom: 20px;
  a {
    color: #665144;
    font-size: 1.1rem;
    font-weight: bold;
  }
  a:hover {
    color: rgba(166, 151, 151, 0.611);
    text-decoration: underline;
  }
}

.contact_btn {
  margin: 30px auto;
  a {
    background-color: #665144;
    padding: 15px 30px;
    border-radius: 9999px;
    outline: 3px solid white; /*outlineでドットの線を追加*/
    outline-offset: -5px; /*outline-offsetの値を-15pxにして内側に調整*/
    color: white;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    margin: auto;
    font-weight: bold;
  }
  a:hover {
    color: rgba(166, 151, 151, 0.611);
    text-decoration: underline;
  }
}

.top {
  margin: 20px auto;
  font-weight: bold;
  a {
    color: #665144;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    font-style: italic;
  }
  a:hover {
    color: rgba(166, 151, 151, 0.611);
    text-decoration: underline;
  }
}

/*フッダー文字*/
footer {
  background-color: #665144;
  color: #ffffff;
  text-align: center;
  padding: 10px 0;
  margin-top: 0px;
}

/*レスポンシブ対応480*/
@media (max-width: 850px) {
  header {
    h1 {
      margin: 10px auto;
    }
  }
}

/*レスポンシブ対応500*/
@media (max-width: 500px) {
  nav {
    ul {
      display: flex;
      flex-direction: column;
      text-align: center;
      margin: 10px 20px 10px 0;
    }
  }
}
/*レスポンシブ対応550ナビ変更*/
/*Aタグ＆装飾＆display: block; でボタン揃える*/
@media (max-width: 550px) {
  nav {
    background-image: url(../img/footprints.png);
    background-size: contain;
    color: #665144;
    ul {
      display: flex;
      flex-direction: column;
      font-size: 1rem;
      text-align: center;
    }
    li {
      margin: 3px auto;
      a {
        border: 2px solid #665144;
        background-color: rgb(251, 241, 228);
        border-radius: 10px;
        color: #665144;
        text-decoration: none;
        display: block;
        width: 150px;
      }
      a:hover {
        background-color: rgb(221, 246, 123);
      }
    }
  }
}

/*問い合わせ対応850*/
@media (max-width: 850px) {
  .contact {
    h2 {
      font-size: 2rem;
      margin-top: 5px;
    }
    h3 {
      font-size: 1rem;
      margin-top: 10px;
    }
  }
}

/*クラス見出し対応850*/
@media (max-width: 850px) {
  .class {
    h2 {
      font-size: 2rem;
      margin-top: 5px;
    }
    h3 {
      font-size: 1rem;
      margin-top: 10px;
    }
  }
}

/*メニュースクロール850*/
/*メニュースクロール850*/
@media (max-width: 850px) {
  .table-wrap {
    overflow-x: scroll;
    max-width: 100%;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
  }
}
@media (max-width: 850px) {
  table,
  th,
  td {
    width: 250px;
    padding: 5px;
    img {
      border-radius: 20px;
      width: 100%;
      min-width: 130px;
      box-shadow: 0 0 10px #ccc;
    }
  }
}
/*スクロール850オプション：バーの色が反映されていない*/
@media (max-width: 850px) {
  .table-wrap::-webkit-scrollbar {
    height: 8px; /* 横スクロールの高さ */
  }
  .table-wrap::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
  }
  .table-wrap::-webkit-scrollbar-track {
    background-color: #f5f5f5;
  }
}
