@charset "utf-8";

:root {
  --text-color: #333;
  --main-color: #febe98;
  --accent-color: #33261f;
  --background-color: #ffdfcc;
}

html {
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text-color);
}

button {
  background-color: #fff;
  text-align: center;
  display: inline-block;
  border-radius: 10px;
  padding: 1rem 2rem;
  border: 1px solid var(--main-color);
  transition: .7s;
}

button:hover {
  background-color: var(--main-color);
  color: #fff;
}

.wrapper {
  max-width: 1024px;
  margin: 0 auto;
}

section {
  padding: 5rem 0;
}

.flex {
  display: flex;
}

header a,
button,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

h1 {
  font-family: "Zen Kurenaido", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.5rem, 1.307rem + 0.96vw, 1.5rem);
}

h2 {
  font-size: 2rem;
  margin-left: 1rem;
  margin-bottom: 2.5rem;
  font-weight: bold;
  padding-top: .5rem;
  width: fit-content;
  height: auto;
  position: relative;
}

h2 span {
  font-size: 1rem;
}

h2::before {
  content: "";
  top: 0;
  left: -1rem;
  border-bottom: 1rem solid transparent;
  border-left: 1rem solid var(--text-color);
  position: absolute;
  z-index: 100;
}

h3 {
  font-size: 3rem;
  margin-left: 1rem;
  margin-bottom: 2.5rem;
  font-weight: bold;
  padding-top: .5rem;
  width: fit-content;
  height: auto;
  position: relative;
}

h3 span {
  font-size: 1rem;
}

h3::before {
  content: "";
  top: 0;
  left: -1rem;
  border-bottom: 1rem solid transparent;
  border-left: 1rem solid var(--text-color);
  position: absolute;
  z-index: 100;
}

.narrow {
  width: 80%;
  margin: 0 auto;
}

.top-page {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
}

.top-page a {
  background: var(--main-color);
  border: 1px solid #fff;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  display: block;
  border-radius: 50%;
  opacity: 0.8;
  transition: all .3s ease;
}

.top-page a:hover {
  opacity: .5;
}

.diagonal {
  position: relative;
}

.diagonal::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background-color);
  transform: skewY(-5deg);
}

/* header */
header {
  width: 100%;
  height: 85px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header::before {
  content: "";
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, .7);
  position: absolute;
  top: 0;
  left: 0;
  backdrop-filter: blur(5px);
  z-index: -10;
}

header .wrapper {
  padding: 1rem 0;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  height: 35px;
  width: auto;
}

header .flex {
  align-items: center;
  gap: 2rem;
}

/* ハンバーガーメニュー */
.openbtn {
  position: relative;
  top: 0;
  right: 100px;
  opacity: 0;
}

/*  */

/* main-visual */
section:nth-of-type(1) {
  padding: 0;
}

.main-visual {
  display: block;
  height: calc(100vh - 85px);
  width: 100%;
  position: relative;
  top: 0;
  width: auto;
}
.main-visual::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: url(../img/mv.jpg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  transform: skewY(-5deg);
}

.main-visual .catch {
  position: absolute;
  top: 28%;
  right: 5%;
  transform: rotate(-5deg);
  text-align: right;
}

.main-visual .mv-img {
  position: absolute;
  top: 55%;
  right: 10%;
  animation: fuwafuwa 2s infinite ease-in-out;
}

@keyframes fuwafuwa {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* products */
.products {
  background-color: #fff;
}

.products .item-list {
  gap: 1rem;
  flex-wrap: wrap;
}

.products figure {
  width: calc((100% - 3rem) / 4);
}

.products img {
  margin-bottom: 1rem;
}

/* about */
.about .container {
  gap: 1rem;
}

.about .about-us,
.about .company {
  width: calc((100% - 1rem) / 2);
}

.about img {
  margin-bottom: 1rem;
}

/* news */
.news .container {
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.news .news-img {
  width: ((100% - 2rem) / 3);
}

.news img {
  margin-bottom: 1rem;
}

.news button {
  display: block;
  margin: 0 auto;
}

/* magazine */
.magazine .container {
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.magazine-container {
  max-width: calc((100% - 2rem) / 3);
}

.magazine img {
  margin-bottom: 1rem;
  max-width: 100%;
  height: auto;
}

.magazine button {
  display: block;
  margin: 0 auto;
}

/* instagram */
.instagram ul {
  width: 100%;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.instagram li {
  width: ((100% - 5rem) / 6);
}

.instagram p {
  text-align: center;
  margin: 0 auto 2.5rem;
}

.instagram button {
  display: block;
  margin: 0 auto;
}

/* footer */
footer .sns {
  background-color: var(--accent-color);
  color: white;
  text-align: center;
  padding: 3rem 0;
}

footer p {
  margin-bottom: 2rem;
  animation: move 3s infinite ease-in-out alternate;
}

@keyframes move {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  21% {
    transform: translate(0, 0) rotate(0deg);
  }

  22% {
    transform: translate(0, 0) rotate(-3deg);
  }

  23% {
    transform: translate(0, -1px) rotate(0deg);
  }

  24% {
    transform: translate(0, -1px) rotate(3deg);
  }

  25% {
    transform: translate(1px, 0) rotate(-2deg);
  }

  26% {
    transform: translate(0, 1px) rotate(0deg);
  }

  27% {
    transform: translate(0, 0) rotate(3deg);
  }

  28% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

footer .icon {
  justify-content: center;
  gap: 2rem;
  font-size: 1.5rem;
}

.copyright {
  background-color: var(--main-color);
  padding: 5rem 0;
}

.copyright .list-container {
  justify-content: space-between;
}

.copyright ul {
  gap: 2rem;
}

/* Products */
.visual {
  display: block;
  position: relative;
  top: 0;
  overflow: hidden;
}

.visual img {
  width: 100%;
  height: 30vh;
  object-fit: cover;
  object-position: top;
  filter: blur(3px); 
}

.visual h3 {
  position: absolute;
  bottom: 5%;
  left: 10%;
}

.visual h3 span {
  position: absolute;
  bottom: -40%;
  left: 1%;
}

.lineup .container {
  margin-top: 5rem;
}

.lineup .container:nth-of-type(4) {
  margin-bottom: 5rem;
}

.mockup {
  margin-bottom: 1rem;
  gap: 1rem;
}

.mockup-img,
.mockup-text {
  width: 50%;
}

.mockup-text {
  padding: 1rem;
  background-color: var(--background-color);
  font-size: 1.2rem;
  line-height: 1.5rem;
}

.mockup-text span {
  font-weight: bold;
  text-align: center;
  display: block;
}

.mockup-text .name {
  font-weight: bold;
}

.food-value {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--accent-color);
}

h4 {
  width: fit-content;
  font-size: 1.5rem;
  margin: 5rem auto;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #333;
  position: relative;
  text-align: center;
  background-color: #fff;
}

h4::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) skew(-25deg);
  height: 20px;
  width: 10px;
  border-right: 3px solid #333;
  background-color: #fff;
}

.about-wrapper {
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.about-wrapper:nth-of-type(2) {
  flex-direction: row-reverse;
}

.about-img,
.about-text {
  width: 50%;
  height: auto;
}

.about-img img {
  display: inline-block;
  margin: auto;
}

.about-text {
  padding: 2rem;
  background-color: var(--background-color);
  font-size: 1.2rem;
  line-height: 1.5rem;
}

.about-text p:nth-of-type(1) {
  font-size: 1.3rem;
  border-left: 5px solid var(--text-color);
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.about-text dl {
  font-size: 1rem;
}

.about-text dd {
  margin-left: 1rem;
}

.about-text dd:nth-of-type(1),
.about-text dd:nth-of-type(2) {
  margin-bottom: 1rem;
}

/* magazine */
article .magazine {
  margin: 5rem 0;
}

article .magazine .wrapper {
  gap: 1rem
}

.magazine aside {
  width: 30%;
}

.magazine .magazine-list {
  width: 70%;
}

.magazine-list .magazine-item {
  gap: 1rem;
  margin-bottom: 1rem;
}

.magazine-list .magazine-item:nth-of-type(5) {
  margin-bottom: 0;
}

.magazine .thumbnail img {
  width: fit-content;
  display: block;
  margin: auto;
}

.magazine .text {
  width: 80%;
}

.magazine .text span {
  font-size: 1.2rem;
}

.magazine .text p {
  text-indent: 1rem;
  margin: .5rem 0;
}

aside .category {
  padding: 1rem;
}

aside .category p {
  font-size: 1.2rem;
  margin-bottom: .5rem;
  text-align: center;
  position: relative;
}

aside .category p::before,
aside .category p::after {
  content: '';
  position: absolute;
  top: calc(50% - 3px);
  width: 50px;
  height: 6px;
  border-top: solid 1px var(--text-color);
  border-bottom: solid 1px var(--text-color);
}

aside .category p::before {
  left: 0;
}

aside .category p::after {
  right: 0;
}

aside li {
  margin-bottom: .5rem;
  position: relative;
  clear: both;
}

aside li:last-of-type {
  margin-bottom: 0;
}

aside li a {
  margin-left: 1.5rem;
}

#howto::before {
  content: "\f7b6";
  font: var(--fa-font-solid);
  position: absolute;
  top: 0;
  left: 0;
}

#recipe::before {
  content: "\f564";
  font: var(--fa-font-solid);
  position: absolute;
  top: 0;
  left: 0;
}

#column::before {
  content: "\f15c";
  font: var(--fa-font-solid);
  position: absolute;
  top: 0;
  left: 0;
}

aside .ranking a {
  font-size: .9rem;
  margin-left: 0;
}

aside .ranking img {
  margin-bottom: .5rem;
  float: left;
  margin-right: .5rem;
}

aside .ranking img:nth-of-type(5) {
  margin-bottom: 0;
}