@charset "utf-8";

:root {
  --base-color: #f3f2f2;
  --character--color-bl: #55492e;
  --character--color-wh: #fff;
}

/* リセット ----------------------------------------------------------------*/

html {
  /* VALUES MIN:1rem MAX:3rem VIEWPORT MIN:1360px MAX：4000px で算出*/
  /* font-size: clamp(1rem, -0.03rem + 1.21vw, 3rem); */
  font-size: clamp(1rem, 0.6rem + 0.6vw, 3rem);
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  color: var(--character--color-bl);
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  background-image: linear-gradient(0deg, transparent 20px, #fff4eb 21px),
    linear-gradient(90deg, transparent 20px, #fff4eb 21px);
  background-color: #d3c9aa92;
  background-size: 21px 21px;
}
img {
  max-width: 100%;
  object-fit: cover;
  vertical-align: bottom;
}
a {
  text-decoration: none;
  color: var(--character--color-wh);
  transition: 0.3s;
}
ul {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
dt,
dd,
ul,
li {
  margin: 0;
  padding: 0;
}
main {
  padding: 0 1rem;
}
/* --------------------------------------
header.php
--------------------------------------- */

.logo {
  text-align: center;
  padding: 1rem;
  padding-bottom: 1rem;
  background-color: #6b571e92;
  letter-spacing: clamp(0.188rem, -0.17rem + 1.82vw, 0.625rem);
  font-size: clamp(1.375rem, 0.864rem + 2.6vw, 2rem);
  & img {
    width: clamp(10.625rem, 9.871rem + 3.83vw, 13.125rem);
  }
}
#header {
  position: sticky;
  top: 0;
  background-color: #6b571e92;
  z-index: 10;
  .menu {
    display: flex;
    padding: 0 5rem 1rem;
    justify-content: space-between;
    padding-top: 1rem;
  }
}
.ham {
  display: none;
}
.footer-navigation {
  display: none;
}
/* -----------------------------------------
footer.php
------------------------------------------ */
#footer {
  & ul {
    display: flex;
    justify-content: space-around;
    padding: 2rem 0 5rem;
    background-color: #6b571e92;
  }
}
/* ------------------
div.contact
------------------- */
#contact {
  padding: clamp(2rem, 1.096rem + 4.59vw, 5rem);
  text-align: center;
  align-self: center;

  .input {
    width: 18rem;
    border: 1px solid var(--character--color-bl);
    text-align: left;
  }
  .btn {
    width: 5rem;
    color: #fff;
    background-color: var(--character--color-bl);
    border: none;
  }
  .input,
  .btn {
    padding: 1rem 0.5rem;
  }
  .form-item p {
    padding: 1rem;
    gap: 1rem;
    display: flex;
    justify-content: center;
  }
  .wpcf7 form .wpcf7-response-output {
    border: none;
    margin: 0;
    color: #00a0d2;
  }
}
/* ------------------------------------------
front-page.php
------------------------------------------ */
#front-page,
#category {
  padding-top: 5rem;
  .item-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .item {
    aspect-ratio: 1/1;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.3s;
  }
  .item-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    transition: 0.3s;
  }

  .item a {
    position: relative;
    z-index: 1;
    color: var(--character--color-bl);
  }
  .item-detail {
    position: absolute;
    width: 100%;
    height: auto;
    bottom: 1rem;
    display: grid;
    place-items: center;
    z-index: 2;
    opacity: 0;
  }
  .product-title {
    font-weight: lighter;
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  .price {
    font-size: 0.9rem;
  }
  .instead-image {
    background-color: #f3f3f3;
  }
  /* --------------------------------------------
  商品画像のPCホバー時と、スマホの１タップ時の挙動 
  ----------------------------------------------*/

  /* PC（マウスホバー）でのみ適用するスタイル */
  @media (hover: hover) and (pointer: fine) {
    .item:hover img {
      opacity: 0.5;
      border-radius: 0;
    }
    .item:hover {
      border-radius: 0;
    }
    .item:hover .item-detail {
      opacity: 1;
    }
  }
}
/* PCのホバー時と同じスタイルをスマホのタップ時にも適用 (java.jsと連動） */
/* .item.touch-hover .item-img {
  opacity: 0.3;
}

.item.touch-hover .item-detail {
  opacity: 1;
} */
/* ----------------------------------
single.php
----------------------------------- */
#single {
  padding: 5rem 2rem 2rem;
  .item-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .size-full img,
  .item-image img {
    width: 100%;
    /* height: 26rem; */
    height: clamp(15rem, 13.462rem + 7.69vw, 20rem);
    object-fit: cover;
    margin-bottom: 1rem;
  }

  .container {
    padding: 1rem 2rem 3rem;
    display: flex;
    justify-content: space-between;
    .item-detail {
      width: 30%;
    }
    .price {
      font-size: 1.12rem;
    }
    .product-title {
      font-weight: lighter;
      font-size: 1.4rem;
    }
    .text {
      width: 70%;
      padding-top: 2rem;
      p {
        text-align: center;
        margin-bottom: 2rem;
        letter-spacing: 1px;
      }
    }
    .button {
      text-align: center;
      & a {
        text-decoration: underline;
      }
    }
  }
  .details-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    & img {
      width: 100%;
      aspect-ratio: 1/1;
    }
  }
}
/* ------------------------------------
page.php
------------------------------------ */
#page {
  .container {
    padding: 3rem clamp(1rem, -4.846rem + 29.23vw, 20rem);
    text-align: center;
  }
  .title {
    font-weight: normal;
    font-size: 1.5rem;
    margin-bottom: 3rem;
  }
  & p {
    margin-bottom: 2rem;
    font-weight: normal;
    font-size: 1rem;
  }
  & h2 {
    font-weight: normal;
    font-size: 1rem;
  }
}
.privacy-policy #page .container {
  text-align: left;
}
/* ---------------------------------
404.php
--------------------------------- */
#not-found {
  .blank {
    display: none;
  }
  .headline {
    font-size: clamp(3rem, 1.493rem + 7.66vw, 8rem);
    padding: 5rem 0 3rem;
    opacity: 0.5;
  }
  & div {
    text-align: center;
  }
  .decoration {
    padding: 3rem 0 1rem;
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 0.397rem + 3.06vw, 3rem);
    & span {
      display: block;
      width: 10px;
      height: 10px;
      background-color: #55492e;
      opacity: 0.5;
    }
  }
}
/* -----------------------------------------
responsive style
------------------------------------------ */
@media screen and (max-width: 700px) {
  main {
    padding: 0 clamp(0.1rem, -0.636rem + 3.74vw, 1rem);
  }
  .ham {
    display: block;
    border: none;
    width: 31px;
    height: 31px;
    position: fixed;
    right: 2rem;
    top: 1rem;
    z-index: 30;
    cursor: pointer;
    background-color: transparent;
  }
  .ham span {
    position: absolute;
    width: 100%;
    height: 2px;
    right: 0;
  }
  .ham1 {
    top: calc(50% - 10% / 2 - 25%);
    transition: 0.2s;
    background-color: var(--character--color-wh);
  }
  .ham2 {
    top: calc(50% - 10% / 2);
    background-color: var(--character--color-wh);
  }
  .ham3 {
    top: calc(50% - 10% / 2 + 25%);
    transition: 0.5s;
    background-color: var(--character--color-wh);
  }
  .open .ham1 {
    top: calc(50% - 10% / 2);
    background-color: var(--character--color-wh);
    transform: rotate(135deg);
  }
  .open .ham2 {
    opacity: 0;
  }
  .open .ham3 {
    top: calc(50% - 10% / 2);
    background-color: var(--character--color-wh);
    transform: rotate(-135deg);
  }
  .main-navigation {
    display: none;
    position: fixed;
    background-color: #6b571ebe;
    width: 100%;
    height: auto;
    padding: 1rem 0;
    top: 4rem;
    left: 0;
    transition: 1s;
    z-index: 10;

    & a {
      display: block;
      color: #fff;
    }
  }
  .open .main-navigation {
    display: block;
  }
  .open .footer-navigation {
    display: block;
    & li {
      width: 55%;
      margin: 0 auto;
    }
  }
  #header {
    .menu {
      flex-direction: column;
      text-align: center;
      line-height: 2.5;
      & li {
        border-bottom: 1px solid var(--character--color-wh);
      }
    }
  }
  #front-page,
  #category {
    padding-top: clamp(2rem, -0.455rem + 12.47vw, 5rem);
    .item-list {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  #footer {
    & ul {
      flex-direction: column;

      line-height: 2;
      text-align: center;
    }
  }
  #single {
    .item-list {
      grid-template-columns: 1fr;
    }
    .container {
      flex-direction: column;
      padding: 1rem;
      .item-detail,
      .text {
        width: 100%;
      }
    }
  }
  #contact {
    padding-bottom: 0;
    .input {
      width: 100%;
    }
    .form-item p {
      gap: 0;
      flex-direction: column;
    }
    .btn {
      margin: 0 auto;
    }
    .wpcf7 form .wpcf7-response-output {
      transform: translateY(-30px);
    }
  }
}
@media screen and (max-width: 500px) {
  #not-found {
    .blank {
      display: block;
    }
    .headline {
      padding: 1rem 0;
    }
  }
}
