h2,
h3,
p {
  margin: 0;
}

body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #363033;
}


/* main-visual 全体 */
.main-visual {
  position: relative;
  min-height: 45vw;
  /* 画像とテキストのスペースを確保 */
  padding: 5em 0;
  /* 上下の余白 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #333;
  overflow: visible;
  /* はみ出しても隠さない */
}

/* 背景画像用疑似要素 */
.main-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/wp-content/themes/my-theme/a/slogo.webp');
  /* 絶対パス */
  background-size: contain;
  /* 全体を収める */
  background-repeat: no-repeat;
  /* 繰り返さない */
  background-position: right;
  /* 中央配置 */
  opacity: 0;
  /* 初期は透明 */
  z-index: 0;
  /* テキストより下に */
  transform: scale(1.2);
  /* 初期拡大 */
  transition: opacity 1.2s ease-out, transform 2.2s ease-out;
}

/* 表示時のクラス（JSで追加） */
.main-visual.show::before {
  opacity: 0.2;
  /* フェードイン */
  transform: scale(1);
  /* 中央に縮小 */
}

/* テキストを前面に出す */
.main-visual>* {
  position: relative;
  z-index: 1;
  margin: 0.5em 0;
}

.main-visual h2,
.main-visual h3,
.main-visual p {
  font-size: 2.5em;
  font-size: 2.1vw !important;
  position: relative;
  z-index: 1;
  text-align: center;
  color: #333;
  margin: 0;
  opacity: 0;
  transition: opacity 1s ease-out;
  transition-delay: 0.5s;
}

.main-visual h2 {
  transition-delay: 0.4s;
}

.main-visual h3 {
  transition-delay: 0.8s;
}

.main-visual p {
  transition-delay: 1.2s;
}

.main-visual.show h2,
.main-visual.show h3,
.main-visual.show p {
  opacity: 1;
}

.strongths {
  display: flex;
}

.strongths-title {
  display: grid;
  justify-self: center;
  align-items: center;
  text-align: center;
  font-size: 2.5em;
  background-color: #fff4f4;
  border-radius: 20px;
  width: 87%;
  height: 2.8em;
  opacity: 0;
  transform: translateY(50px) scale(1);
  transition: opacity 1s ease, transform 1s ease;
}

.strongths-title.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.strongths-title h3 {
  margin: 0;
  color: #DA238B;
}

.strongths-content {
  display: flex;
  justify-content: space-between;
  justify-self: center;
  width: 90%;
  margin-top: 5em;
  align-items: stretch;
}

.strongths-content section {
  display: flex;
  flex-direction: column;
  padding-top: 2em;
  align-items: center;
  border-radius: 100px;
  width: 32%;
  font-size: 1.4vw;
  opacity: 0;
  transform: translateY(50px) scale(1);
  transition: opacity 1s ease, transform 1s ease;
}

.strongths-content section.show:hover {
  transform: translateY(0) scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.strongths-content section.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.strongths-content section img {
  height: 50%;
  width: 90%;
  border-radius: 80px;
  margin-top: auto;
  margin-bottom: 0.8em;
}

.content-section1 p,
.content-section2 p,
.content-section3 p {
  transform: rotate(0.03deg);
}

.content-section1 {
  background-color: rgba(255, 0, 0, 0.05);
}

.content-section2 {
  background-color: rgba(253, 225, 225, 0.2);
}

.content-section3 {
  background-color: rgba(214, 0, 111, 0.05);
}

.strongths-content section h3 {
  margin-bottom: 1.3em;
}

.news {
  margin-bottom: 20vw;
}

.news-title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  margin-top: 15rem;
}

.news-title h3 {
  margin-left: 4%;
  margin-right: 4%;
  font-size: 1.8em;
  font-size: 3vw;
}

.line {
  height: 4px;
  background-color: #DA238B;
  flex: none;
  width: 12%;
  margin: 0 1rem;
}

.news-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0em;
  font-size: 1.5em;
}

.news-content ul {
  list-style: none;
}

.news-content li {
  list-style-type: disc;
  display: list-item;
  line-height: 1.5;
  padding-left: 0;
  /* 左余白をリセット */
  gap: 0.5em;
  /* アイコンと文字の間隔 */
  margin-bottom: 4vw;
}

.news-content li::marker {
  color: grey;
}

.footer-title {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 5em;
}

.footer-title h2 {
  margin-left: 3%;
  margin-right: 3%;
  font-size: 3.4vw;
}

.footer-line {
  height: 4px;
  background-color: black;
  flex: none;
  width: 6%;
  margin: 0 1rem;
}

.ft {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: 0 -80px 120px -40px #A0C2E8;
  display: block;
  color: black;
}

.info {
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 38px;
  width: 86%;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 2em;
  padding-bottom: 2em;
  margin-top: 2em;
}

.info1 {
  display: grid;
  grid-template-columns: 200px 150px 300px;
  max-width: 70%;
  /* 左・区切り・右の幅 */
  justify-content: center;
  /* 全体中央寄せ */
  row-gap: 1.5em;
  font-size: 1.8vw;
  font-weight: 500;
}

.left {
  font-weight: 500;
  text-align: right;
}

.right {
  font-size: 2.1vw;
  text-align: left;
  display: flex;
}

.right a img {
  width: 80%;
  height: 100%;
  display: block;
  margin-right: 1em;
}

.sep {
  text-align: center;
}

.info2 {
  text-align: center;
  font-size: 1.8em;
  font-size: 1.4vw;
  transform: rotate(0.03deg);
  font-weight: 500;
}

.m-plus-rounded-1c-regular {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.m-plus-rounded-1c-medium {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.m-plus-rounded-1c-bold {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.m-plus-rounded-1c-extrabold {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.sp-br {
  display: none;
}

.sp-only {
  display: none !important;
}

.info-sp,
.info2-sp {
  display: none;
}

main .link {
  display: flex;
  justify-content: right;
  align-items: center;
  font-size: 1.5vw;
  margin-left: auto;
  margin-right: 15em;
}

main .link img {
  height: auto;
  width: 3em;
}

@media (max-width: 768px) {

  main .link {
    transform: rotate(0.03deg);
    margin-right: 1em;
    font-size: 4vw;
    margin-bottom: 2em;
  }

  main .link img {
    margin-left: 0em;
    height: auto;
    width: 3em;
  }

  .b {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .pc {
    display: none;
  }

  .sp-br {
    display: inline;
  }

  /* 全体のフォントサイズを少し小さく */
  body {
    font-size: 14px;
  }

  .news-content li::before {}

  /* メインビジュアル */
  .main-visual {
    height: 22em;
    margin-bottom: 2em;
  }

  .section1 {
    margin-top: 0.5em;
  }

  .main-visual h2 {
    font-size: 6vw !important;
    padding: 0 1em;
  }

  .main-visual h3 {
    transform: rotate(0.03deg);
    font-size: 4.5vw !important;
    padding: 0 1em;
  }

  .main-visual p {
    transform: rotate(0.03deg);
    font-size: 4vw !important;
    padding: 0 1em;
  }

  .strongths-title {
    height: 3em;
    font-size: 1.5em;
    margin: 0 auto;
  }

  .strongths-content {
    width: 100%;
    margin-top: 5em;
  }

  .strongths-content section {
    font-size: 4vw;
    width: 80%;
    margin-bottom: 2em;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    padding: 3em 1em;
    padding-bottom: 0.5em;
    border-radius: 80px;
  }

  .strongths-content section img {
    width: 100%;
    height: auto;
    border-radius: 80px;
  }

  .swiper-pagination-bullet {
    /*ドットの色を変更*/
    background-color: #DA238B !important;
  }

  .sp-only {
    display: flex !important;
  }

  .pc {
    display: none;
  }

  /* ニュース */
  .news {
    margin-bottom: 30vw;
  }

  .news-title {
    margin-top: 3em;
  }

  .news-title h3 {
    transform: rotate(0.03deg);
    margin: 0 3vw;
    font-size: 5.3vw;
  }

  .line {
    width: 25%;
    height: 3px;
  }

  .news-content {
    font-size: 1.2em;
    transform: rotate(0.03deg);
    padding: 0 1.5em;
  }

  /* フッター */
  .ft {
    color: black;
  }

  .footer-title {
    padding-top: 0;
    transform: translateY(-50px);
    position: absolute;
    width: 100%;
  }

  .footer-title h2 {
    transform: rotate(0.03deg);
    font-size: 5vw;
    text-align: center;
  }

  .footer-line {
    width: 10%;
    height: 1px;
  }

  .info {
    margin: 0 auto;
    width: 90%;
    padding: 1em;
    flex-direction: column;
    transform: translateY(1px);
  }

  .info-sp {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    transform: rotate(0.03deg);
  }

  .info-item {
    width: 30%;
    text-align: center;
  }

  .info-item:nth-child(4) {
    width: 100%;
    margin: 0 auto;
    /* 真ん中に配置 */
  }

  .info-line {
    margin: 0 auto;
    margin-top: 3px;
    height: 1px;
    width: 10%;
    background-color: #333;
  }

  .info-sp img {
    height: 25%;
    width: 25%;
  }

  .info-sns-line {
    margin-bottom: 1em;
  }

  .info-sp img+img {
    margin-left: 1em;
  }

  .info-sp-item {
    margin: 1em auto;
  }

  .info1 {
    display: none;
  }

  .info2 {
    display: none;
  }

  .info2-sp {
    display: inline;
    text-align: center;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.7em;

  }

  .info2-text1 {
    font-size: 1.5em;

    margin-bottom: 0.4em;
  }

  .right img {
    width: 40%;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  body {
    zoom: 0.9;
  }
}