/* ----------------------------------------------------------
 our story / story.html
---------------------------------------------------------- */

/* pagetitle
-------------------------------------------- */
.pagetitle {
  padding-bottom: 0;
}
.pagetitle .wrap {
  position: relative;
}
.pagetitle h2 {
  margin: 1.5rem auto;
  color: var(--blue);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.5;
  text-align: center;
}
@media print, screen and (min-width: 768px) { /* SP以外 */
  .pagetitle .wrap .image {
    position: absolute;
    z-index: 10;
    right: 0;
    bottom: -16rem;
    width: 13rem;
    height: auto;
  }
}
@media print, screen and (min-width: 1061px) { /* PC */
  .pagetitle .copy {
    text-align: center;
  }
}
@media screen and (max-width: 1060px) { /* SP・Tab縦・PC狭幅 */
  .pagetitle::before {
    content: none;
  }
  .pagetitle::after {
    content: none;
  }
  .pagetitle h2 {
    font-size: 1.1rem;
  }
  .pagetitle .wrap .image {
    bottom: -14rem;
    width: 10rem;
    margin: 2rem auto 0;
  }
}
@media screen and (max-width: 767px) { /* SP */
  .pagetitle .copy {
    text-align: left;
  }
}

/* mothers
-------------------------------------------- */
section.mothers {
  padding-top: 6rem;
}
section.mothers .title-section::before {
  bottom: 100%;
}
@media screen and (max-width: 1060px) { /* SP・Tab縦・PC狭幅 */
  section.mothers .title-section {
    text-align: center;
    padding-top: 1rem;
  }
}

/* ロゴアニメーション */
section.mothers > .wrap {
  padding-top: 6rem;
}
section.mothers > .wrap::before {
  content: "";
  position: absolute;
  top: initial;
  bottom: 100%;
  left: 50%;
  display: block;
  width: 200vw;
  height: auto;
  background-image: url("../images/tx-mothers.svg");
  background-repeat: repeat-x;
  background-position: 0 center;
  background-size: 104.167vw auto;
  aspect-ratio: 762 / 65;
  transform: translate(-50%, 50%);
  pointer-events: none;
  animation: mothersTextMarquee 42s linear infinite;
}
@keyframes mothersTextMarquee {
  0% {
    background-position-x: 104.167vw;
  }
  100% {
    background-position-x: 0;
  }
}
@media screen and (min-width: 744px) and (max-width: 1060px) { /* Tab縦・ PC狭幅 */
  section.mothers > .wrap::before {
    background-size: 110vw auto;
    animation-name: mothersTextMarqueeTb;
  }
  @keyframes mothersTextMarqueeTb {
    0% {
      background-position-x: 110vw;
    }
    100% {
      background-position-x: 0;
    }
  }
}
@media screen and (max-width: 767px) { /* SP */
  section.mothers > .wrap::before {
    background-size: 180vw auto;
    animation-name: mothersTextMarqueeSp;
  }
  @keyframes mothersTextMarqueeSp {
    0% {
      background-position-x: 180vw;
    }
    100% {
      background-position-x: 0;
    }
  }
}


/* mothers-item
-------------------------------------------- */
.mothers-item {
  padding: 4rem 0;
  counter-increment: storycounter;
}
.mothers-item h3 {
  display: flex;
  align-items: flex-end;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--blue);
}
.mothers-item h3:before {
  content: counter(storycounter, decimal-leading-zero) ". ";
  counter-increment: count 1;
  margin-right: 0.5rem;
  color: var(--lightblue) !important;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem;
  line-height: 1;
}
.mothers-item h3 span {
  margin-bottom: 0.5em;
  color: var(--blue);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.5;
}
.mothers-item .wrap figure {
  position: relative;
}
.mothers-item .wrap figure figcaption {
  position: absolute;
  z-index: 2;
  right: 6px;
  bottom: 6px;
  width: max-content;
  padding: 0 0.5em;
  color: var(--white);
  background-color: rgba(0 146 211 / 0.9);
  font-size: var(--ft-s);
}

@media print, screen and (min-width: 1061px) { /* PC */
  .mothers-item .wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }
  .mothers-item .wrap .detail {
    width: 57.5%;
  }
  .mothers-item .wrap .image {
    width: 42.5%;
    padding-left: 3rem;
    margin-bottom: 1rem;
  }
  .mothers-item:nth-of-type(even) .wrap {
    flex-direction: row-reverse;
  }
  .mothers-item:nth-of-type(even) .wrap .image {
    padding-left: 0;
    padding-right: 3rem;
  }
}
@media screen and (max-width: 1060px) { /* SP・Tab縦・PC狭幅 */
  .mothers-item {
    padding: 3.5rem 0;
  }
  .mothers-item h3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .mothers-item h3:before {
    flex: 0 0 auto;
    margin-right: 0;
    font-size: 3.5rem;
  }
  .mothers-item h3 span {
    min-width: 0;
    margin-bottom: 0.65rem;
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .mothers-item .wrap .image {
    display: block;
    max-width: 30rem;
    margin-top: 2rem;
    margin-inline: auto;
  }
  .mothers-item .wrap figure figcaption {
    right: 4px;
    bottom: 4px;
    max-width: calc(100% - 8px);
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: normal;
  }
}

/* mothers-item01
-------------------------------------------- */
@media print, screen and (min-width: 1061px) { /* PC */
  .mothers-item01 {
    padding-top: 4rem;
  }
}
@media screen and (max-width: 1060px) { /* SP・Tab縦・PC狭幅 */
  .mothers-item01 {
    padding-top: 2rem;
  }
}


/* mothers-item02
-------------------------------------------- */
.mothers-item02 {
  margin-top: 4rem;
}
.mothers-item02 .wrap .detail {
  position: relative;
  padding-top: 2rem;
}
.mothers-item02 .wrap .detail:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -8rem;
  left: calc(50% - 2rem);
  display: block;
  width: 80vw;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 100%;
  background: linear-gradient(to bottom, #fff 0%, transparent 100%);
  transform: translateX(-50%);
  opacity: 0.9;
}
.mothers-item02 .wrap figure figcaption {
  right: initial;
  left: 6px;
}

@media print, screen and (min-width: 1061px) { /* PC */
  .mothers-item02 .wrap .detail {
    width: 65%;
  }
  .mothers-item02 .wrap .image {
    width: 35%;
    margin-bottom: 0;
  }
}
@media screen and (max-width: 1060px) { /* SP・Tab縦・PC狭幅 */
  .mothers-item02 {
    margin-top: 2rem;
  }
  .mothers-item02 .wrap .detail {
    padding-top: 0;
  }
  .mothers-item02 .wrap .detail:before {
    top: -6rem;
    left: 50%;
    width: 125vw;
  }
  .mothers-item02 .wrap figure figcaption {
    left: 4px;
  }
}

/* mothers-item03
-------------------------------------------- */
@media print, screen and (min-width: 1061px) { /* PC */
  .mothers-item03 {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }
  .mothers-item03 .wrap {
    align-items: center;
  }
  .mothers-item03 .wrap .image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
  }
  .mothers-item03 .wrap .image figure {
    width: 70%;
  }
}
@media screen and (max-width: 1060px) { /* SP・Tab縦・PC狭幅 */
  .mothers-item03 {
    padding-top: 3.5rem;
  }
  .mothers-item03 .wrap .image figure {
    width: min(70%, 260px);
    margin-inline: auto;
  }
}

/* mothers-item04
-------------------------------------------- */
.mothers-item04 {
  padding-top: 6rem;
  background-color: var(--white);
}
.mothers-item04 .wrap figure figcaption {
  right: 50%;
  bottom: -2.5rem;
  transform: translateX(50%);
}

@media print, screen and (min-width: 1061px) { /* PC */
  .mothers-item04 .wrap {
    align-items: center;
  }
  .mothers-item04 .wrap .image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
  }
  .mothers-item04 .wrap .image figure {
    position: relative;
  }
  .mothers-item04 .wrap .image figure::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 100%;
    background: linear-gradient(225deg, #B5D8E7 0%, rgba(255,255,255,0) 100%);
    transform: translateY(-50%);
  }
  .mothers-item04 .wrap .image figure img {
    position: relative;
    width: 80%;
    margin: 0 10%;
  }
}
@media screen and (max-width: 1060px) { /* SP・Tab縦・PC狭幅 */
  .mothers-item04 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .mothers-item04 .wrap .image {
    padding-top: 1rem;
    padding-bottom: 2rem;
    border-radius: 0.5rem;
    background: linear-gradient(225deg, #B5D8E7 0%, rgba(255,255,255,0) 100%);
  }
  .mothers-item04 .wrap .image figure {
    position: relative;
    width: min(86%, 320px);
    margin-inline: auto;
  }
  .mothers-item04 .wrap .image figure img {
    position: relative;
    padding: 1rem;
  }
  .mothers-item04 .wrap figure figcaption {
    right: 50%;
    bottom: -1rem;
    transform: translateX(50%);
  }
}

/* separator
-------------------------------------------- */
.separator {
  position: relative;
  margin: 4rem auto 0 auto;
  overflow: hidden;
}
.separator::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgba(0 146 211 / 0.2);
  pointer-events: none;
}
.separator-track {
  display: flex;
  width: max-content;
  animation: separatorMarquee 46s linear infinite;
  will-change: transform;
}
.separator-track img {
  display: block;
  flex: 0 0 clamp(14rem, 25vw, 24rem);
  width: clamp(14rem, 25vw, 24rem);
  height: auto;
}
@keyframes separatorMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) { /* 動きを減らす設定用 */
  .separator-track {
    animation: none;
  }
}
@media screen and (max-width: 1060px) { /* SP・Tab縦・PC狭幅 */
  .separator {
    margin-top: 2rem;
  }
  .separator-track img {
    flex-basis: 14rem;
    width: 14rem;
  }
}

/* page-closing
-------------------------------------------- */
.page-closing {
  padding-top: 4rem;
  background-color: var(--white);
  text-align: center;
}
.page-closing h2 {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 2.25rem;
}
@media screen and (max-width: 1060px) { /* SP・Tab縦・PC狭幅 */
  .page-closing {
    padding-block: 3rem;
  }
  .page-closing h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
    line-height: 1.4;
  }
}
