@charset "utf-8";

/*================================================
  mechanism
================================================*/
.page-header {
  background-image: url(../../../image/karat-kun/mechanism/page_header_bg.jpg);
  background-position:left center;
}

/*------------------------------------------------
  intro
------------------------------------------------*/

.intro.section {
  padding-bottom: 0;
}


/*------------------------------------------------
  principle
------------------------------------------------*/

.principle.section {
  padding: 0 0 calc(var(--layout-gap) * 1.5);
}

.principle-list {
  display: grid;
  gap: 80px;
  margin-top: 80px;
}
.principle-item {
  position: relative;
  font-size: clamp(2.4rem, 1.18rem + 6.1vw, 8.5rem);
  max-width: 1480px;
  width: 94%;
  margin-left: auto;
}
.principle-item-inner {
  overflow: hidden;
  box-shadow: 0.1em 0.1em 20px rgba(129, 129, 129, 0.5);
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.principle-item-number {
  position: absolute;
  top: -1em;
  left: -0.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.25em;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  width: 1.8em;
  max-width: 150px;
  height: auto;
  background: linear-gradient(to bottom, #84C059 0%, #38946E 100%);
  box-sizing: border-box;
  box-shadow: 0.1em 0.1em 5px rgba(var(--color-black-rgb),0.16);
  z-index: 10;
}
.principle-item-number > span {
  color: var(--color-white);
  line-height: 0.8;
  display: block;
  text-align: center;
  text-shadow: 10px 10px 10px rgba(var(--color-black-rgb),0.16);
  padding-bottom: 0.15em;
}
.principle-item-detail {
  padding:2em 1.5em 1.5em;
  font-size: clamp(1.8rem, 1.5818rem + 1.0909vw, 2.4rem);
}
.principle-item-title {
  color: var(--primary-color);
  line-height: 1.8;
  margin-bottom: 1em;
}
.principle-item-text {
  font-size: 0.75em;
}
.principle-item-detail .common-button {
  box-shadow: 0 3px 6px rgba(var(--color-black-rgb),0.3);
  max-width: inherit;
}
.principle-item-detail .common-button span {
  font-weight: 700;
  text-shadow: none;
  font-size: clamp(1.4rem, 1.2545rem + 0.7273vw, 1.8rem);
}
.principle-item-img {
  width: 100%;
  min-height: 250px;
}

.principle-item:nth-child(1) .principle-item-img {
  background-color: var(--tertiary-color);
  text-align: center;
  padding: 1em;
}
.principle-item:nth-child(1) .principle-item-img > img {
  width: 90%;
  max-width: 352.5px;
  height: auto;
}
.principle-item:nth-child(2) .principle-item-img {
  background-image: url(../../../image/karat-kun/mechanism/principle_item_img_oil.jpg);
  background-size: cover;
  background-position: center;
}
.principle-item:nth-child(3) .principle-item-img {
  background-image: url(../../../image/karat-kun/mechanism/principle_item_img_batter.jpg);
  background-size: cover;
  background-position: left center;
}

@media print,screen and (min-width: 769px) {
  .principle.section {
    padding: 0 0 calc(var(--layout-gap) * 1.75);
  }
  .principle-list {
    gap: 130px;
  }
  .principle-item-inner {
    box-shadow: 10px 10px 40px rgba(129, 129, 129, 0.5);
  }
  .principle-item-detail {
    padding: 3em 3em 2.5em;
  }
}

@media print,screen and (min-width: 960px) {
  .principle-item-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .principle-item:nth-child(odd) .principle-item-inner {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
  }
  .principle-item:nth-child(even) {
    margin-right: auto;
    margin-left: 0;
  }
  .principle-item:nth-child(even) .principle-item-inner {
    flex-direction: row-reverse;
    margin-left: inherit;
    margin-right: auto;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    border-top-left-radius: inherit;
    border-bottom-left-radius:  inherit;
  }
  .principle-item:nth-child(odd) .principle-item-number {
    left: -0.75em;
  }
  .principle-item:nth-child(even) .principle-item-number {
    right: -0.5em;
    left: inherit;
  }
  .principle-item-detail {
    width: 50%;
    padding: 3em 3em 2.5em;
  }
  .principle-item-img {
    width: 50%;
    height: auto;
  }
  .principle-item:nth-child(1) .principle-item-img {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .principle-item-detail .common-button {
    padding: 0.75em;
    margin-top: calc(var(--layout-gap)*2);
  }
  .principle-item-detail .common-button span {
    font-size: clamp(1.6rem, 1rem + 1vw, 2.2rem);
  }
}
@media print,screen and (min-width: 1200px) {
  .principle.section {
    padding: 0 0 calc(var(--layout-gap) * 2.5);
  }
  .principle-list {
    margin-top: 160px;
  }
}
@media print,screen and (min-width: 1600px) {
  .principle-item-number {
    top: -0.75em;
  }
  .principle-item:nth-child(even) .principle-item-number {
    right: -0.75em;
  }
  .principle-item-detail {
    width: 740px;
    padding:130px 100px;
  }
  .principle-item-title {
    font-size: 3rem;
  }
  .principle-item-img {
    width:calc(100% - 740px);
  }
}
