@charset "UTF-8";

.main-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.obi-grade {
  width: 100%;
  height: 5px;
  background-image: linear-gradient(to left, #009efd 0%, #5cf2af 100%);
}
.koe-title {
  display: grid;
  max-width: 1000px;
  grid-template-columns: 2fr repeat(2, 1fr);
  grid-template-rows: 5px repeat(3, auto) 5px;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  margin: 0 auto;
}
.div1 {
  grid-area: 1 / 1 / 2 / 4;
}
.div2 {
  grid-area: 2 / 1 / 3 / 2;
  padding: 2rem 0;
  font-size: 3rem;
  font-weight: 600;
  color: #012e5a;
  text-align: center;
}
.div3 {
  grid-area: 2 / 2 / 4 / 4;
}
.div4 {
  grid-area: 3 / 1 / 5 / 2;
}
.div5 {
  grid-area: 4 / 2 / 5 / 3;
}
.div6 {
  grid-area: 4 / 3 / 5 / 4;
}
.div7 {
  grid-area: 5 / 1 / 6 / 4;
}

@media (max-width: 520px) {
  .koe-title {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 5px 70px 2fr 1fr 2fr 5px;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
  }
  .div1 {
    grid-area: 1 / 1 / 2 / 4;
  }
  .div2 {
    grid-area: 2 / 1 / 3 / 3;
    padding: 0.5rem 0 0;
    font-size: 2rem;
  }
  .div3 {
    grid-area: 3 / 1 / 4 / 3;
  }
  .div4 {
    grid-area: 4 / 1 / 5 / 2;
  }
  .div5 {
    grid-area: 4 / 2 / 5 / 3;
  }
  .div6 {
    grid-area: 5 / 1 / 6 / 3;
  }
  .div7 {
    grid-area: 6 / 1 / 7 / 3;
  }
}
.parent,
.parent-r {
  display: grid;
  max-width: 90%;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  margin: 2rem auto 4rem;
}
.koe-photo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.koe-photo-r {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.koe-line {
  width: 100%;
  height: 6px;
  background-color: #012e5a;
  margin: 0.5rem 0 0.8rem;
}
.koe-tx {
  padding: 0 1.5rem;
  line-height: 1.8;
}
.main-photo {
  position: relative;
  width: 100%;
  padding-top: 72%;
  min-width: 260px;
  min-height: 200px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
}
.sub-photo {
  width: 76%;
  border: 1px solid #ddd;
}
.sub-photo img {
  width: 100%;
  height: 100%;
}
.koe-bg-hagiwara {
  background-image: url(../img/koe/koe-hagiwara-main.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}
.koe-bg-yamagishi {
  background-image: url(../img/koe/koe-yamagishi-main.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}
.koe-bg-matsumura {
  background-image: url(../img/koe/koe-matsumura-main2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}
.koe-bg-ito {
  background-image: url(../img/koe/koe-ito-main2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}
.koe-bg-nishikawa {
  background-image: url(../img/koe/koe-nishikawa-main.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}
.koe-nen-r,
.koe-nen-l {
  position: absolute;
  font-weight: 600;
  color: #012e5a;
}
.koe-name-r,
.koe-name-l {
  position: absolute;
  color: #012e5a;
  font-weight: 800;
  font-size: 2.8rem;
  text-shadow: 0px 0px 6px #fff;
}
.koe-nen-r {
  top: 10px;
  right: 10px;
}

.koe-name-r {
  top: 30px;
  right: 10px;
}
.koe-nen-l {
  top: 10px;
  left: 10px;
}

.koe-name-l {
  top: 30px;
  left: 10px;
}
.PC {
  display: none;
}
.txkage {
  text-shadow: 0px 0px 4px #fff, 0px 0px 4px #fff;
}
@media (max-width: 520px) {
  .PC {
    display: block;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .parent,
  .parent-r {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, auto);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    max-width: 100%;
    margin: 0;
  }
  .parent-r .koe-photo-r {
    order: 1;
  }
  .parent-r .koe-text {
    order: 2;
  }

  .sub-photo,
  .koe-nen-r,
  .koe-nen-l,
  .koe-name-r,
  .koe-name-l,
  .koe-line {
    display: none;
  }
  .koe-nen-sp,
  .koe-name-sp {
    position: relative;
    color: #012e5a;
    font-weight: 800;
  }
  .koe-nen-sp {
    display: inline-block;
    margin-top: 3rem;
    padding-top: 0.3rem;
    border-top: 6px solid #012e5a;
  }
  .koe-name-sp {
    font-size: 2rem;
  }
  .koe-tx {
    padding: 0 0.5rem;
  }
}
