@charset "utf-8";

.history{
  overflow:hidden;
}

.history .lower-title{
  margin-bottom:2rem;
}

.history .lower-title + p{
  text-align:center;
  margin-bottom:7.5rem;
}


.episode__inner {
  position: relative;
}

.episode__line {
  position: absolute;
  top: 0px;
  left: 50%;
  width: 2px;
  height:calc(100% - 500px);
  border-left: 2px dashed #2E0000;
  transform: translateX(-50%);
}

.episode__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: start;
  min-height: 520px;
}

.episode__item--01 .episode__content {
  padding-top: 30px;
}

.episode__item--02 .episode__content {
  align-self: start;
  padding-top: 40px;
  margin-left: 0;
}

.episode__marker {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.episode__marker img {
  display: block;
  width: 90px;
  height: auto;
}

.episode__visual {
  width: 90%;
  object-fit: cover;
  margin-left: auto;
  position:relative;
}

.episode__visual::before {
  content:"";
  position:absolute;
  width:89%;
  aspect-ratio:328/178;
  background:url(https://asunosmile.com/system_panel/uploads/images/20260909113052745627.png) no-repeat center/contain;
  z-index:-1;
  left: -70%;
  top: 33%;
}

.episode__item--03 .episode__visual::before {
  width: 59%;
  left: -37%;
  background:url(https://asunosmile.com/system_panel/uploads/images/20260909113052829777.png) no-repeat center/contain;
}

.episode__item--05 .episode__visual::before {
  width: 54%;
  left: -37%;
  top: 50%;
  aspect-ratio:290/212;
  background:url(https://asunosmile.com/system_panel/uploads/images/20260909113052462249.png) no-repeat center/contain;
}

.episode__visual--02::before{
  left: auto;
  right: -36%;
  aspect-ratio: 290 / 212;
  width: 53%;
  top: auto;
  bottom: 0;
  background:url(https://asunosmile.com/system_panel/uploads/images/20260909113052873221.png) no-repeat center/contain;
}

.episode__item--04 .episode__visual--02::before{
  background:url(https://asunosmile.com/system_panel/uploads/images/20260909113052343433.png) no-repeat center/contain;
}

.episode__visual > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.episode__item--01 .episode__visual {
  max-width: 370px;
  justify-self: center;
  margin: 0 auto;
  width: 65%;
}

.episode__visual--02 {
  max-width: 550px;
  margin-left: auto;
}

.episode__item--03 .episode__visual,
.episode__item--05 .episode__visual {
  max-width: 550px;
  margin:0;
  width: 90%;
}

.episode__item--06 .episode__visual--02 {
  max-width: 550px;
  margin-left: auto;
}

.episode__visual > .episode__img {
  display: block;
}

.episode__visual > .episode__img.episode__img--back {
  width: 58%;
  aspect-ratio: 311 / 243;
  margin-top: -12%;
}

.episode__visual > .episode__img.episode__img--front {
  width: 58%;
  aspect-ratio: 311 / 243;
  margin: 0 0 0 auto;
}

.episode__content {
  width: 90%;
  max-width: 500px;
  margin-left: auto;
}

.episode__title {
  margin: 0 0 20px;
  font-size: clamp(1.25rem, 1rem + 0.83vw, 2rem);
}

.episode__item--01 .episode__visual > img{
  aspect-ratio:394/425;
}

.episode__item--06 .episode__visual--02 > img{
  aspect-ratio:542/421;
}

.episode__item--03 .episode__visual > img{
  aspect-ratio:542/421;
}

.episode__item--05 .episode__visual > img{
  aspect-ratio:544/325;
}


@media screen and (max-width: 1024px) {

  .episode__item {
    grid-template-columns: 1fr 90px 1fr;
    min-height: 400px;
  }

  .episode__marker img {
    width: 72px;
  }

  .episode__visual {
    max-width: 320px;
  }

  .episode__visual--02 {
    max-width: 340px;
    height: 260px;
  }
  .episode__content{
    font-size:14px;
    width: 97%;
  }
  .episode__line{
    height: calc(100% - 400px);
  }
  .history .container{
    width:90%;
  }
}

@media screen and (max-width: 767px) {

  .episode__line {
    top: 40px;
    left: 15px;
    height: calc(100% - 40px);
  }

  .episode__item {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
    padding-left: 48px;
    position: relative;
    gap: 2rem;
  }

  .episode__item--01 .episode__visual {
    order: 2;
    margin-top: 30px;
  }

  .episode__item--01 .episode__content {
    order: 1;
    padding-top: 0;
  }

  .episode__item {
    margin-top: 40px;
  }

  .episode__item--02 .episode__content {
    order: 1;
    padding-top: 0;
  }

  .episode__item--02 .episode__visual {
    order: 2;
    margin-top: 30px;
  }

  .episode__marker {
    position: absolute;
    top: 0;
    left: -10px;
  }

  .episode__marker img {
    width: 50px;
  }

  .episode__visual {
    width: 100%;
    max-width: none;
  }

  .episode__visual--02 {
    height: auto;
    aspect-ratio: 1.25 / 1;
  }

  .episode__img--back {
    width: 76%;
  }

  .episode__img--front {
    width: 68%;
  }

  .episode__content {
    max-width: none;
  }
}

.achive{
  margin:10rem 0 7.5rem;
}

.achive-item{
  padding:2.5rem;
  background:#FFFBE8;
  border-top: 2px solid #2E0000;
  margin-top:4rem;
}

.achive-item h2{
  font-size: clamp(1.125rem, 0.833rem + 0.97vw, 2rem);
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.achive-item h2::before {
  content: "";
  display: block;
  width: 40px;
  aspect-ratio: 40 / 37;
  background: url(https://asunosmile.com/system_panel/uploads/images/20260908122131820965.png) no-repeat center / contain;
}

.achive-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.achive-wrap > img{
  width:43%;
}

.achive-txt{
  width:52%;
  text-align:center;
}

.achive-txt h3{
  font-size:clamp(1rem, 0.917rem + 0.28vw, 1.25rem);
  margin-bottom:8px;
}

.achive-boxes{
  display:flex;
  gap:10px;
  max-width:550px;
  margin:1.5rem auto 0;
}

.achive-box{
  background:#FFE87A;
  border-radius:10px;
  width:25%;
  padding: 8px 4px;
}

.achive-box:nth-child(2){
  width: calc(50% - 20px);
}

.achive-box p:last-child strong{
  font-size:clamp(1.5rem, 1rem + 1.67vw, 3rem);
  line-height: 1;
  margin: 4px 4px 0 0;
}

.achive-boxes-2{
  gap:24px 20px;
  flex-wrap:wrap;
  max-width:480px;
}

.achive-boxes-2 .achive-box,
.achive-boxes-2 .achive-box:nth-child(2){
  width:calc((100% - 40px ) / 3);
}

.achive-small{
  font-size:12px;
  margin-top:1rem;
}

@media screen and (max-width: 1024px) {
  .achive-wrap{
    flex-direction: column;
    gap: 2rem;
  }
  .achive-txt{
    width:100%;
  }
  .achive-wrap > img {
    width: 100%;
    max-width: 450px;
  }
  .achive {
    margin: 3rem 0 7.5rem;
  }
}

@media screen and (max-width: 767px) {

  .achive {
    margin: 3rem 0 5.5rem;
  }
  .history .lower-title + p{
    margin-bottom: 2.5rem;
  }
  .episode__title {
    margin: 0 0 12px;
    font-size: 18px;
  }
  .achive-boxes{
    flex-wrap: wrap;
    gap: 1rem;
  }
  .achive-box{
    width: calc((100% - 1rem) / 2);
    order: 2;
  }
  .achive-box:nth-child(2) {
    width: 100%;
    order: 1;
  }
  .achive-item {
    padding: 2.5rem 1rem;
  }
  .achive-boxes-2{
    gap:0.5rem;
  }
  .achive-boxes-2 .achive-box, .achive-boxes-2 .achive-box:nth-child(2) {
    width: calc((100% - 16px) / 3);
    font-size: 12px;
  }
  .achive-small {
    font-size: 10px;
  }
}
