@charset "UTF-8";
body {
  font-family: "Noto Sans JP", sans-serif;
  min-width: 1280px;
}

.pagetop {
  display: none;
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 10000;
}

.pagetop a {
  display: block;
  text-indent: -9999px;
  width: 70px;
  height: 70px;
  background: url(../img/page_top.png);
  background-size: 70px;
}

.pagetop a:hover {
  opacity: 0.6;
  filter: alpha(opacity=60);
}

header {
  background-image: url(../img/main_pt.png), url(../img/main_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover, 100% auto;
  background-position: center top;
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
}
header::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url(../img/main_foods.png);
  background-repeat: no-repeat;
  background-size: 87% auto;
  background-position: center 25px;
}
header .logo {
  position: absolute;
  right: 50px;
  top: 50px;
  width: calc(218px / 2);
}
header .logo img {
  width: 100%;
}
header h1 {
  width: calc(880 / 2 / 1440 * 100%);
  margin: 0 auto 50px;
  position: relative;
}
header h1 img {
  width: 100%;
}
header p {
  font-size: 18px;
  font-weight: 500;
  line-height: 2;
  text-align: center;
}

main {
  width: 1180px;
  margin: 0 auto;
  padding: 50px 0 100px;
}

ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 50px;
}
ul li {
  width: calc((100% - 50px * 2) / 3);
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 50px 0;
  border-bottom: 1px solid #ddd;
}
ul .block {
  position: relative;
}
ul .block a {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
}
@media (hover: hover) {
  ul .block h2 {
    transition: background-position 0.3s;
  }
  ul .block .ph img {
    transition: transform 0.3s;
  }
  ul .block:hover h2 {
    background-position: right 5px center;
  }
  ul .block:hover .ph img {
    transform: scale(1.075);
  }
}
ul h2 {
  display: flex;
  align-items: center;
  position: relative;
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  min-height: 50px;
  padding-left: 60px;
  margin-bottom: 10px;
  background-image: url(../img/arrow_right.svg);
  background-repeat: no-repeat;
  background-size: 12px auto;
  background-position: right 10px center;
}
ul h2::before {
  content: attr(data-rank);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 50px;
  height: 50px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  font-family: "Dancing Script", cursive;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  border-radius: 50%;
}
ul .ph {
  width: 100%;
  aspect-ratio: 360 / 240;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
ul .ph::after {
  content: attr(data-style);
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  height: 28px;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  border-radius: 0 5px;
}
ul .ph[data-style="和風"]::after {
  background-color: #7c3c00;
}
ul .ph[data-style="洋風"]::after {
  background-color: #009528;
}
ul .ph[data-style="韓国風"]::after {
  background-color: #001995;
}
ul .ph[data-style="中華風"]::after {
  background-color: #e12900;
}
ul .ph[data-style="アジアン"]::after {
  background-color: #ce2900;
}
ul .ph[data-style="デザート"]::after {
  background-color: #ff7b00;
}
ul .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
ul .recommend {
  display: flex;
  align-items: center;
  gap: 10px;
}
ul .recommend .heading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background-color: #000;
  border-radius: 5px;
}
ul .recommend a {
  font-size: 12px;
  line-height: 1.4;
  text-decoration: underline;
}
ul.banner {
  margin-top: 50px;
  padding: 50px;
  background-color: #f2f2f2;
  justify-content: center;
  border-radius: 10px;
  gap:50px;
}
ul.banner li {
  width: calc((100% - 50px * 2) / 3);
  padding: 0;
  border-bottom: none;
}
ul.banner li img {
  width: 100%;
}
ul.banner li a {
  transition: 0.3s;
}
ul.banner li a:hover {
  opacity: 0.6;
  filter: alpha(opacity=60);
}
@media (hover: hover) {
  ul .recommend a:hover {
    text-decoration: none;
  }
  ul.banner li a:hover {
  opacity: none;
  filter: none;
  }
}

footer {
  background-image: url(../img/main_bg.jpg);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center bottom;
}
footer > * {
  width: 1180px;
  margin: 0 auto;
}
footer .footerArea {
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer .footerArea .logo {
  width: 70px;
}
footer .footerArea .logo img {
  width: 100%;
}
footer .footerArea .copyright {
  font-size: 10px;
  line-height: 1;
}

@media screen and (min-width: 769px) {
  .sp {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .pc {
    display: none;
  }

  body {
    min-width: auto;
  }

  header {
    background-image: url(../img/sp_main_pt.png), url(../img/sp_main_bg.jpg);
    padding: calc(40 / 390 * 100vw) 0 calc(30 / 390 * 100vw);
  }
  header::after {
    background-image: url(../img/sp_main_foods.png);
    background-size: calc(752 / 2 / 390 * 100vw) auto;
    background-position: left calc(10 / 390 * 100vw);
  }
  header .logo {
    right: calc(20 / 390 * 100vw);
    top: calc(20 / 390 * 100vw);
    width: calc(55 / 390 * 100vw);
  }
  header h1 {
    width: calc(500 / 2 / 390 * 100vw);
    margin: 0 auto calc(30 / 390 * 100vw);
  }
  header p {
    font-size: calc(16 / 390 * 100vw);
  }

  main {
    width: 100%;
    padding: calc(20 / 390 * 100vw) calc(20 / 390 * 100vw) calc(50 / 390 * 100vw);
  }

  ul {
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 0;
  }
  ul li {
    width: 100%;
    gap: calc(15 / 390 * 100vw);
    padding: calc(30 / 390 * 100vw) 0;
  }
  ul h2 {
    font-size: calc(16 / 390 * 100vw);
    min-height: calc(50 / 390 * 100vw);
    padding-left: calc(60 / 390 * 100vw);
    margin-bottom: calc(10 / 390 * 100vw);
    background-size: calc(12 / 390 * 100vw) auto;
    background-position: right calc(10 / 390 * 100vw) center;
  }
  ul h2::before {
    width: calc(50 / 390 * 100vw);
    height: calc(50 / 390 * 100vw);
    font-size: calc(24 / 390 * 100vw);
  }
  ul .ph {
    border-radius: calc(10 / 390 * 100vw);
  }
  ul .ph::after {
    padding: 0 calc(10 / 390 * 100vw);
    height: calc(28 / 390 * 100vw);
    font-size: calc(14 / 390 * 100vw);
    border-radius: 0 calc(5 / 390 * 100vw);
  }
  ul .recommend {
    gap: calc(10 / 390 * 100vw);
  }
  ul .recommend .heading {
    padding: 0 calc(10 / 390 * 100vw);
    height: calc(18 / 390 * 100vw);
    font-size: calc(10 / 390 * 100vw);
    border-radius: calc(5 / 390 * 100vw);
  }
  ul .recommend a {
    font-size: calc(12 / 390 * 100vw);
  }
  ul.banner {
    padding: 20px;
    justify-content: left;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 20px;
    }
  ul.banner li {
   width: calc((100% - 20px) / 2)
    }

  footer {
    background-image: url(../img/sp_main_bg.jpg);
  }
  footer > * {
    width: calc(100% - 20 / 390 * 100vw * 2);
  }
  footer .footerArea {
    height: calc(106 / 390 * 100vw);
    flex-direction: column;
    justify-content: center;
    gap: calc(10 / 390 * 100vw);
  }
  footer .footerArea .logo {
    width: calc(70 / 390 * 100vw);
  }
  footer .footerArea .copyright {
    font-size: calc(10 / 390 * 100vw);
  }
}
