@charset "UTF-8";

/* ----------------------------------------------------------
   TOPページ
------------------------------------------------------------- */
/* メニューパネル */
#grand-menu {
  margin: 20px 50px 20px 40px;
  height: 586px;
  position: relative;
}
#grand-menu #site-id {
  margin-right: 0;
}
#grand-menu #site-id img {
  width: 240px;
}
.grid-box > div {
  position: absolute;
  border-radius: 10px;
  background-repeat: no-repeat;
  padding: 42px 30px 30px 30px;
  image-rendering: crisp-edges;
}
.grid-box > div a img {
  border-radius: 10px;
  width: 180px;
  height: 210px;
  object-fit: cover;
  image-rendering: smooth;
}
.grid-box > div > span {
  color: #fff;
  position: absolute;
  top: 6px;
  left: 40px;
  font-family: "じゅん 501", sans-serif;
  font-weight: 600;
}
.grid-box .about {
  top: 0;
  left: 0;
  bottom: 0;
  width: calc(100% - 780px);
  min-width: 330px;
  height: 580px;
  padding: 0;
  background-color: #236bb6;
  text-align: center;
}
.grid-box .about a {
  display: block;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.grid-box .about img {
  width: auto;
  height: auto;
}
.grid-box .event {
  top: 0;
  right: 520px;
  width: 240px;
  height: 280px;
  background-image: url("https://kennet.mhlw.go.jp/slp/images/event/menu-event.png");
  background-size: 35.5px;
  background-color: #fa7337;
}
.grid-box .news {
  top: 0;
  right: 260px;
  width: 240px;
  height: 280px;
  background-image: url("https://kennet.mhlw.go.jp/slp/images/news/menu-news.png");
  background-size: 35.5px;
  background-color: #f29600;
  font-size: 16px;
  font-weight: 600;
  font-family: "じゅん 501", sans-serif;
}
.grid-box .news a {
  color: #fff;
}
.grid-box .news p {
  line-height: 1.6;
  margin: 10px 0;
}
.grid-box .member {
  top: 60px;
  right: 0;
  width: 240px;
  height: 220px;
  background-color: #236bb6;
  text-align: center;
  color: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grid-box .number {
  font-size: 20px;
  letter-spacing: 4px;
  font-weight: 500;
  font-family: "じゅん 501", sans-serif;
}
.grid-box .number span {
  font-size: 34px;
}
.grid-box .update {
  font-size: 12px;
  letter-spacing: 4px;
  margin-bottom: 6px;
  font-family: "じゅん 501", sans-serif;
}
.grid-box .button {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.grid-box .button li {
  width: 49%;
  font-family: "じゅん 501", sans-serif;
}
.grid-box .button li:first-child {
  width: 100%;
  margin-bottom: 4px;
}
.grid-box .button li:last-child {
  width: 100%;
  margin-top: 4px;
}
.grid-box .button a {
  display: block;
  background-color: #fff;
  border-radius: 4px;
  font-size: 12px;
  padding-block: 20px;
}
.grid-box .award {
  top: 300px;
  right: 520px;
  width: 240px;
  height: 280px;
  background-image: url("https://kennet.mhlw.go.jp/slp/images/award/menu-award.png");
  background-size: 35.5px;
  background-color: #f5cf26;
}
.grid-box .tools {
  top: 300px;
  right: 260px;
  width: 240px;
  height: 280px;
  background-image: url("https://kennet.mhlw.go.jp/slp/images/tools/menu-tools.png");
  background-size: 35.5px;
  background-color: #0b793d;
}
.grid-box .minna {
  top: 300px;
  right: 0;
  width: 240px;
  height: 280px;
  background-image: url("https://kennet.mhlw.go.jp/slp/images/minna/menu-minna.png");
  background-size: 35.5px;
  background-color: #ee9bc1;
}
.grid-box .nutrition {
  top: 0;
  right: 260px;
  width: 240px;
  height: 280px;
  background-image: url("https://kennet.mhlw.go.jp/slp/images/nutrition/menu-nutrition.png");
  background-size: 35.5px;
  background-color: #ffe9ab;
  font-size: 16px;
  font-weight: 600;
  font-family: "じゅん 501", sans-serif;
  color: #444;
}

main h1 {
  padding: 20px;
  border-radius: 10px 20px 0 0;
  font-size: 24px;
  color: #fff;
  font-family: "じゅん 501", sans-serif;
}

/* 横幅狭めた時 */
@media screen and (max-width: 1330px) and (min-width: 1300px) {
  .grid-box .event {
    right: 510px;
  }
  .grid-box .news {
    right: 255px;
  }
  .grid-box .award {
    right: 510px;
  }
  .grid-box .tools {
    right: 255px;
  }
  .grid-box .nutrition {
    right: 255px;
  }
}

@media screen and (max-width: 1299px) and (min-width: 1240px) {
  #grand-menu {
    margin: 20px 30px 20px 20px;
  }
  .grid-box .event {
    right: 500px;
  }
  .grid-box .news {
    right: 250px;
  }
  .grid-box .award {
    right: 500px;
  }
  .grid-box .tools {
    right: 250px;
  }
  .grid-box .nutrition {
    right: 250px;
  }
}
@media screen and (max-width: 1239px) and (min-width: 1024px) {
  #grand-menu {
    margin: 20px;
    height: auto;
    margin-bottom: 50px;
  }
  #site-id {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
  }
  .grid-box > div {
    position: relative;
    width: 100%;
    text-align: center;
  }
  .grid-box > div a img {
    border-radius: 10px;
    width: 200px;
    height: 140px;
  }
  .grid-box {
    display: grid;
    grid-template-rows: 240px 200px 200px;
    grid-template-columns: 40% 28% 28%;
    grid-gap: 2%;
  }
  .grid-box .about {
    grid-row: 1 / 4;
    grid-column: 1;
    height: 100%;
    width: 100%;
    background-position: bottom center;
  }
  .grid-box .news {
    width: 100%;
    grid-column: 2 / 3;
    right: auto;
    height: 240px;
    text-align: left;
  }
  .grid-box .member {
    width: 100%;
    grid-column: 3 / 4;
    height: 180px;
    padding: 3px 15px;
  }
  .grid-box .number span {
    font-size: 30px;
  }
  .grid-box .update {
    margin-bottom: 0;
  }
  .grid-box .event {
    width: 100%;
    height: 100%;
    right: auto;
    grid-row: 2 / 3;
    grid-column: 2 / 3;
  }
  .grid-box .award {
    width: 100%;
    height: 100%;
    top: auto;
    right: auto;
    grid-row: 2 / 3;
    grid-column: 3 / 4;
  }
  .grid-box .tools {
    width: 100%;
    height: 100%;
    top: auto;
    right: auto;
    grid-row: 3 / 4;
    grid-column: 2 / 3;
  }
  .grid-box .minna {
    width: 100%;
    height: 100%;
    top: auto;
    right: auto;
    grid-row: 3 / 4;
    grid-column: 3 / 4;
  }
  .grid-box .nutrition {
    width: 100%;
    grid-column: 2 / 3;
    right: auto;
    height: 240px;
    text-align: left;
  }
  .grid-box .button a {
    padding-block: 16px;
  }
}

/* スマホ
------------------------------------------ */
@media screen and (max-width: 1023px) {
  #grand-menu {
    margin: 3vw;
    height: auto;
  }
  .grid-box {
    margin: 0;
    display: grid;
    grid-gap: 3vw;
  }
  .grid-box > div {
    position: relative;
    text-align: center;
  }
  .grid-box > div a img {
    width: 70vw;
    height: 50vw;
  }
  .grid-box .about {
    width: 100%;
    grid-row: 1;
  }
  .grid-box .member {
    width: 100%;
    top: auto;
    right: auto;
    grid-row: 2;
  }
  .grid-box .news {
    width: 100%;
    height: auto;
    top: auto;
    right: auto;
    grid-row: 3;
    text-align: left;
  }
  .grid-box .event {
    width: 100%;
    height: auto;
    top: auto;
    right: auto;
    grid-row: 4;
  }
  .grid-box .award {
    width: 100%;
    height: auto;
    top: auto;
    right: auto;
    grid-row: 5;
  }
  .grid-box .tools {
    width: 100%;
    height: auto;
    top: auto;
    right: auto;
    grid-row: 6;
  }
  .grid-box .minna {
    width: 100%;
    height: auto;
    top: auto;
    right: auto;
    grid-row: 7;
  }
  .grid-box .nutrition {
    width: 100%;
    height: auto;
    top: auto;
    right: auto;
    grid-row: 3;
    text-align: left;
  }
  .grid-box .button {
    width: 100%;
  }
}
