@import url("../common.css");

:root {
  --mi-earth: #c8ad8a;
  --mi-wall: #efe3cf;
  --mi-paper: #fff8ec;
  --mi-red: #9e4329;
  --mi-brown: #3d2c21;
  --mi-ink: #2d241d;
  --mi-line: rgba(61, 44, 33, 0.18);
  --mi-serif: "Kaisei Decol", serif;
  --mi-sans: "Zen Kaku Gothic New", sans-serif;
}

body {
  color: var(--mi-ink);
  background:
    linear-gradient(90deg, rgba(61, 44, 33, 0.035) 1px, transparent 1px),
    var(--mi-paper);
  background-size: 22px 22px;
  font-family: var(--mi-sans);
}

.mi-sample {
  color: var(--mi-paper);
  background: var(--mi-red);
}

.mi-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.mi-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mi-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at center, rgba(255, 248, 236, 0.15), transparent 32%),
    linear-gradient(0deg, rgba(61, 44, 33, 0.58), rgba(61, 44, 33, 0.16));
}

.mi-shop-sign {
  display: grid;
  justify-items: center;
  width: min(720px, calc(100% - 34px));
  padding: 42px 28px;
  color: var(--mi-paper);
  text-align: center;
  border: 1px solid rgba(255, 248, 236, 0.5);
  outline: 12px solid rgba(61, 44, 33, 0.22);
}

.mi-shop-sign span {
  display: inline-block;
  padding: 5px 13px;
  color: var(--mi-red);
  background: var(--mi-paper);
  border-radius: 999px;
  font-weight: 700;
}

.mi-shop-sign h1 {
  margin: 18px 0 10px;
  font-family: var(--mi-serif);
  font-size: clamp(48px, 8vw, 92px);
  letter-spacing: 0.12em;
}

.mi-shop-sign p {
  margin: 0;
  font-size: 19px;
}

.mi-table-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 12px;
  background: var(--mi-brown);
}

.mi-table-nav a {
  padding: 12px 18px;
  color: var(--mi-paper);
  background: rgba(255, 248, 236, 0.08);
  border-radius: 2px;
  font-weight: 700;
}

.mi-hello,
.mi-catalog,
.mi-recipe,
.mi-material,
.mi-shop,
.mi-contact {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.mi-hello {
  display: grid;
  grid-template-columns: 146px 1fr;
  gap: 42px;
  align-items: start;
}

.mi-hello-photo,
.mi-work-photo {
  position: relative;
  margin: 0 0 24px;
}

.mi-hello-photo > img:first-child,
.mi-work-photo img,
.mi-kura-photo,
.mi-shelf article > img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.mi-hello-photo > img:first-child {
  height: 310px;
}

.mi-red-stamp {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: var(--mi-paper);
  background: var(--mi-red);
  border-radius: 999px;
  font-family: var(--mi-serif);
  font-size: 22px;
  letter-spacing: 0.12em;
}

.mi-hello h2,
.mi-catalog-title h2,
.mi-recipe h2,
.mi-material-head h2,
.mi-contact h2 {
  margin: 0;
  font-family: var(--mi-serif);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.35;
}

.mi-hello p,
.mi-catalog-title p,
.mi-recipe p,
.mi-material p,
.mi-shop p,
.mi-contact p {
  margin: 20px 0 0;
  color: #604b3d;
}

.mi-catalog {
  width: 100%;
  max-width: none;
  padding-inline: clamp(18px, 5vw, 70px);
  background: var(--mi-wall);
}

.mi-catalog-title {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 40px;
  align-items: end;
  width: min(1120px, 100%);
  margin: 0 auto 34px;
}

.mi-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.mi-shelf article {
  min-height: 232px;
  padding: 22px;
  background: var(--mi-paper);
  border: 1px solid var(--mi-line);
  box-shadow: 0 10px 0 rgba(158, 67, 41, 0.08);
}

.mi-shelf article > img {
  aspect-ratio: 4 / 3;
  height: auto;
  margin: -22px -22px 16px;
  width: calc(100% + 44px);
}

.mi-shelf b {
  color: var(--mi-red);
}

.mi-shelf h3 {
  margin: 18px 0 8px;
  font-family: var(--mi-serif);
  font-size: 24px;
}

.mi-shelf p {
  margin: 0;
  color: #604b3d;
}

.mi-shelf em {
  display: block;
  margin-top: 16px;
  color: var(--mi-red);
  font-style: normal;
  font-size: 22px;
  font-weight: 700;
}

.mi-shelf span {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  color: var(--mi-red);
  background: #f7e2d3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.mi-recipe {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 46px;
}

.mi-recipe-title {
  display: grid;
  gap: 18px;
  align-content: start;
}

.mi-recipe-cards {
  display: grid;
  gap: 16px;
}

.mi-recipe-cards article {
  position: relative;
  padding: 24px;
  background: #fff;
  border-left: 7px solid var(--mi-red);
}

.mi-recipe-cards img {
  display: block;
  width: calc(100% + 48px);
  aspect-ratio: 16 / 9;
  margin: -24px -24px 20px;
  object-fit: cover;
}

.mi-recipe-cards small {
  color: var(--mi-red);
  font-weight: 700;
}

.mi-recipe-cards h3 {
  margin: 8px 0;
  font-family: var(--mi-serif);
  font-size: 25px;
}

.mi-material {
  width: 100%;
  max-width: none;
  padding-inline: clamp(18px, 7vw, 96px);
  color: var(--mi-paper);
  background: var(--mi-brown);
}

.mi-material-head {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto 38px;
}

.mi-work-photo {
  width: min(760px, 100%);
  margin: 34px 0 0;
}

.mi-work-photo img {
  height: 280px;
}

.mi-material-head span,
.mi-contact span {
  color: #e5b08f;
  font-weight: 700;
}

.mi-ingredient-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.mi-ingredient-list article {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 248, 236, 0.28);
}

.mi-ingredient-list h3 {
  margin: 0 0 10px;
  font-family: var(--mi-serif);
  font-size: 26px;
}

.mi-ingredient-list p {
  color: rgba(255, 248, 236, 0.78);
}

.mi-shop {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 14px;
}

.mi-shop article {
  padding: 28px;
  background: #fff4e3;
  border: 1px dashed rgba(158, 67, 41, 0.45);
}

.mi-shop h3 {
  margin: 0;
  font-family: var(--mi-serif);
  font-size: 27px;
}

.mi-contact {
  position: relative;
  overflow: hidden;
  margin-bottom: 70px;
  padding: 46px;
  text-align: center;
  background: var(--mi-red);
  color: var(--mi-paper);
}

.mi-kura-photo {
  width: min(520px, 100%);
  height: 240px;
  margin: 0 auto 24px;
  opacity: 0.74;
}

.mi-contact p {
  color: rgba(255, 248, 236, 0.82);
}

.mi-contact a {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 22px;
  color: var(--mi-red);
  background: var(--mi-paper);
  border-radius: 3px;
  font-weight: 700;
}

.mi-footer {
  padding: 28px;
  color: var(--mi-paper);
  background: var(--mi-brown);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 900px) {
  .mi-hello,
  .mi-catalog-title,
  .mi-recipe,
  .mi-shop {
    grid-template-columns: 1fr;
  }

  .mi-red-stamp {
    width: 118px;
  }

  .mi-shelf,
  .mi-ingredient-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .mi-shelf,
  .mi-ingredient-list {
    grid-template-columns: 1fr;
  }
}
