@charset "utf-8";
@import url(COMON.css);

:root {
  --bg-main: #F7F0DE;
  --bg-sub: #FBF4E6;
  --bg-card: #FAF7F1;

  --accent-main: #9B6A45;
  --accent-sub: #A8754F;

  --text-main: #2E2E2E;
  --text-sub: #5A4A3A;
  --text-note: #7A6A58;

  --border-light: #E6DAC7;
  --border-main: #D9CBB3;

  --icon-safe: #C8D8C2;
}


* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
html, body {
  font-family:
    "Yu Mincho",
    "YuMincho",
    "游明朝体",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "MS PMincho",
    serif;
  margin: 0;
}


body { overflow-x: hidden; }


#top ul li img{
  width: 100%;
}

#top {
  overflow: hidden;
}
#top ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 1.2s ease;
}
#top li {
  flex: 0 0 100%;
}


.mainback {
  background-color: var(--bg-main);
  max-width: 100%;
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 20px;
 
  padding-left: clamp(8px, 4vw, 20px);
  padding-right: clamp(8px, 4vw, 20px);
}

.main h1 {
  text-align: center;
  font-size: clamp(18px, 6vw, 30px);
  padding: 60px 0 30px 0;
}


.main1 {
  display: flex;
  flex-direction: column; 
  gap: 16px;
  margin-left: 0;
  margin-right: 0;
  justify-content: center;
  align-items: stretch;
}

.OUR {
  width: 100%;           
  text-align: center;
}

.OUR img {
  max-width: 100%;
}

.OUR h2 {
  font-size: clamp(12px, 2.8vw, 15px);
  font-weight: bold;
}

.OUR p {
  font-size: clamp(10px, 2.8vw, 15px);
  margin-top: 14px;
}


.main2{
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin-left: 0;
  margin-right: 0;
}

.main2-text {
  text-align: center;
  font-size: clamp(10px, 2.8vw, 15px);
}

.main h2 {
  font-size: clamp(12px, 2.8vw, 20px);
}

.main2-text h2+p {
  color: var(--text-note);
}

.IMG1{
  background: var(--bg-card);
  padding: 20px 10px;
  border-radius: 10px;
}

.IMG1 a{
  width: 30%;
}

.IMG1 a img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}


.sub {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  margin: 20px auto 0px auto;
  gap: 18px;
  padding-left: clamp(8px, 4vw, 20px);
  padding-right: clamp(8px, 4vw, 20px);
}

.sub-left {
  max-width: 100%;
  line-height: 2;
  margin-left: 0;
  min-width: 0;
}

.sub-left h2 {
  font-size: clamp(12px, 2.8vw, 20px);
  background-color: var(--bg-sub);
  padding: 6px 12px;
}

.sub-left h3{
  font-size: clamp(12px, 2.8vw, 20px);
  font-weight: bold;
  border-bottom: 2px solid var(--bg-sub);
  margin-left: 0;
}

.sub-left ul li {
  border-bottom: 2px solid var(--bg-sub);
  margin-left: 0;
  font-size: clamp(10px, 2.8vw, 15px);
  overflow-wrap: anywhere;
}

.sub-right {
  max-width: 100%;
  margin-right: 0;
}


.product-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}


@media (max-width: 320px){
  .product-grid{
    grid-template-columns: 1fr;
  }
}

.sub-img1 {
  text-align: center;
}

.sub-img1 a img {
  max-width: 100%;
}

.sub-img1 h2 {
  font-size: clamp(12px, 2.8vw, 15px);
  margin-top: 14px;
}

.sub-img1 p {
  font-size: clamp(10px, 2.8vw, 10px);
  margin-top: 10px;
}


.main h1:last-child {
  background-color: var(--accent-main);
  width: min(250px, 100%);
  padding: 15px 16px;
  text-align: center;
  display: block;
  border-radius: 30px;
  color: var(--bg-sub);
  margin: 20px auto;
  font-size: clamp(16px, 6vw, 25px);
}

a[href="ABOUT.html#Product Introduction"] h1 {
  background-color: var(--accent-main);
  width: min(200px, 100%);
  padding: 15px 16px;
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 30px;
  color: var(--bg-sub);
  margin-bottom: 20px;
}

.home {
  text-align: center;
  font-size: clamp(18px, 7vw, 30px);
  font-weight: bold;
}


.qty{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100px, 100%);    
  height: 30px;
  margin: 20px auto 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.25);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.qty-btn{
  appearance: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  color: #2e2e2e;
  transition: background .15s ease, transform .05s ease;
}

.qty-btn:hover{
  background: rgba(0,0,0,.04);
}
.qty-btn:active{
  transform: translateY(1px);
  background: rgba(0,0,0,.08);
}
.qty-btn:focus-visible{
  outline: 2px solid rgba(155,106,69,.55);
  outline-offset: -2px;
}

.qty-value{
  flex: 1;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #2e2e2e;
  letter-spacing: .02em;
  background: rgba(0,0,0,.02);
  border-left: 1px solid rgba(0,0,0,.18);
  border-right: 1px solid rgba(0,0,0,.18);
}

.qty[data-qty="0"] .qty-btn[data-action="dec"]{
  opacity: .35;
  pointer-events: none;
}


@media (min-width: 762px){

  .main1 {
    flex-direction: row;
    gap: 7.5%;
    margin-left: 5%;
    margin-right: 5%;
    align-items: flex-start;
  }

  .OUR {
    width: 25%;
  }

  .main2{
    flex-direction: row;
    gap: 3%;
    margin-left: 5%;
    margin-right: 5%;
  }

  .sub{
    flex-direction: row;
    gap: 10%;
    padding-left: 0;
    padding-right: 0;
  }

  .sub-left{
    max-width: 27%;
    margin-left: 3%;
    min-width: 0;
  }

  .sub-right{
    max-width: 57%;
    margin-right: 3%;
  }

  .product-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 30px 0;
  }

  .sub-left h2{
    padding: 3px 30px;
  }

  .sub-left h3{
    margin-left: 10px;
  }

  .sub-left ul li{
    margin-left: 20px;
  }
}
