html {
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
  max-width: 1600px;
  background-color: #eeee;
  font-family: "Hannari";
}

body {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

main {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.footer {
  width: 100%;
  padding: 0;
  margin: 0;
  margin-top: 60px;
  font-size: 15px;
  color: #eeee;
  background: #232C31;
}

.footer__navi-heading {
  font-weight: 600;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 2rem;
}

.footer__navi li {
  margin-bottom: 0.75rem;
}

footer ul {
  padding: 0;
  list-style: none;
  color: #eeee;
}

header {
  width: 100%;
  height: 150px;
  background-color: #e9e4d4;
  margin: 0 auto;
}

.logo {
  float: left;
  padding-top: 20px;
}

.brand-content {
  height: auto;
  background-color: #e5e7eb;
  width: 100%;
  margin: 0;
  padding: 0;
}

nav {
  float: right;
  font-size: 15px;
  margin: 0;
}

nav ul {
  margin: 30px;
  padding: 0;
}

nav li {
  list-style: none;
  display: inline-block;
  width: 10%;
  min-width: 90px;
}

nav li:not(:last-child) {
  border-right: 2px solid #ddd;
}

nav a {
  text-decoration: none;
  color: #333;
}

nav a.current {
  color: #00B0F0;
  border-bottom: 2px solid #00B0F0;
}

nav a:hover {
  color: #F7CB4D;
  border-bottom: 2px solid #F7CB4D;
}

a {
  color: #eeee;
  text-decoration: none;
}

a:hover {
  color: #436C77;
}

hr {
  height: 1px;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .md-flex {
    display: flex;
  }

  .md-justify-between {
    justify-content: space-between;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.main-image {
  display: flex;
  margin: 0;
  padding-top: 3%;
}

.about-image {
  margin: 0;
  padding-top: 3%;
  width: 40%;
  height: auto;
}

.right-image {
  width: 500px;
  height: auto;
  border-radius: 35px;
  margin: 0;
  margin-left: 2%;
  min-width: 300px;
  min-height: 200px;
}

.news {
  padding-top: 50px;
}

.news-list {
  list-style: none outside;
  margin: 0;
  padding: 0;
}

.news-list .item a {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: nowrap;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #CCC;
  padding: 20px 20px;
}

.news-list .item:first-child a {
  border-top: 1px solid #CCC;
}

.news-list .item .date {
  margin: 0;
  min-width: 120px;
  font-size: 16px;
  color: #999;
  padding: 0 20px 0 0;
}

.news-list .item .title {
  margin: 0;
  width: 80%;
}

.news-list .item a:hover .title {
  color: #00F;
}

@media screen and (max-width: 767px) {
  .news-list .item a {
    flex-wrap: wrap;
  }

  .news-list .item .date {
    min-width: 100px;
  }

  .news-list .item .title {
    margin-top: 10px;
  }
}

.gallery {
  columns: 4;
  padding: 0 15px;
}

.gallery li {
  margin-bottom: 20px;
}

.gallery img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

@media only screen and (max-width: 900px) {
  .gallery {
    columns: 3;
  }
}

@media only screen and (max-width: 768px) {
  .gallery {
    columns: 2;
  }
}

.kaisha {
  width: 100%;
  margin-top: 60px;
  margin-bottom: 60px;
}

.kaisha th,
.kaisha td {
  border: 1px solid #ccc;
  padding: 20px;
  font-size: 20px;
}

.kaisha th {
  font-weight: bold;
  background-color: #dedede;
}

@media (max-width: 767px) {
  body {
    font-size: 14px;
    min-width: 480px;
  }

  .logo {
    width: 200px;
    height: auto;
  }

  .main-image img {
    width: 100%;
    height: auto;
  }

  .news {
    margin-top: 20px;
  }

  .news-list .item {
    margin-bottom: 10px;
  }

  .brand-content img {
    width: 100%;
    height: auto;
  }

  .footer__navi-heading {
    margin-bottom: 5px;
  }

  .kaisha,
  .kaisha tr,
  .kaisha td,
  .kaisha th {
    display: block;
  }

  .kaisha th {
    width: auto;
  }
}

.prodact-wrap {
  color: #232C31;
  margin-top: 20px;
  padding: 0;
}

.prodact-wrap div {
  border-bottom: #232C31 solid 2px;
}

.about-message {
  margin-bottom: 200px;
  font-size: 20px;
}

/* スライドショーのCSS */

#stage {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  background: #eeee;
}

.pic {
  position: absolute;
}

.pic img {
  width: 100%;
  height: auto;
  opacity: 0;
  -moz-animation: imgTrans 40s infinite;
  -webkit-animation: imgTrans 40s ease-in infinite;
  animation: imgTrans 40s infinite;
}

#photo1 img {
  -moz-animation-delay: 0s;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}

#photo2 img {
  -moz-animation-delay: 8s;
  -webkit-animation-delay: 8s;
  animation-delay: 8s;
}

#photo3 img {
  -moz-animation-delay: 16s;
  -webkit-animation-delay: 16s;
  animation-delay: 16s;
}

#photo4 img {
  -moz-animation-delay: 24s;
  -webkit-animation-delay: 24s;
  animation-delay: 24s;
}

@-webkit-keyframes imgTrans {
  0% {
    opacity: 0;
  }
  7% {
    opacity: 1;
  }
  18% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@-moz-keyframes imgTrans {
  0% {
    opacity: 0;
  }
  7% {
    opacity: 1;
  }
  18% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes imgTrans {
  0% {
    opacity: 0;
  }
  7% {
    opacity: 1;
  }
  18% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}






/* iPad向けのCSS */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {

  /* フォントサイズやレイアウトなど、iPad向けのスタイルを追加 */

  body {
    font-size: 16px;
    overflow-x: hidden; /* 横スクロールを禁止 */
    position: relative; /* ナビゲーションメニューの基準をbodyに設定 */
  }

  /* 以下、ナビゲーションメニューの修正 */
  nav {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
  }

  nav ul {
    margin: 0;
    padding: 0;
  }

  nav li {
    list-style: none;
    display: inline-block;
    margin-left: 10px;
  }

  nav li:not(:last-child) {
    border-right: 2px solid #ddd;
  }

  nav a {
    text-decoration: none;
    color: #333;
  }

  nav a.current {
    color: #00B0F0;
    border-bottom: 2px solid #00B0F0;
  }

  nav a:hover {
    color: #F7CB4D;
    border-bottom: 2px solid #F7CB4D;
  }
}

/* iPad向けのCSS */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {

  /* フォントサイズやレイアウトなど、iPad向けのスタイルを追加 */

  body {
    font-size: 16px;
    overflow-x: hidden; /* 横スクロールを禁止 */
    position: relative; /* ナビゲーションメニューの基準をbodyに設定 */
  }

  /* 以下、ナビゲーションメニューの修正 */
  nav {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
    z-index: 10; /* 重なり順序を指定 */
  }

  nav ul {
    margin: 0;
    padding: 0;
  }

  nav li {
    list-style: none;
    display: inline-block;
    margin-left: 10px;
  }

  nav li:not(:last-child) {
    border-right: 2px solid #ddd;
  }

  nav a {
    text-decoration: none;
    color: #333;
  }

  nav a.current {
    color: #00B0F0;
    border-bottom: 2px solid #00B0F0;
  }

  nav a:hover {
    color: #F7CB4D;
    border-bottom: 2px solid #F7CB4D;
  }

  /* ロゴの修正 */
  .logo {
    width: 200px;
    height: auto;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10; /* 重なり順序を指定 */
  }
}

