.mv {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-image: url('../img/mv.webp');
  background-size: cover;
  background-position: center;
}

.mv__main-ttl {
  position: absolute;
  top: 10%;
  right: 10%;
  color: #fff;
}

.mv__main-ttl p {
  font-size: 5rem;
  font-weight: 800;
}

.mv__main-ttl h1 {
  margin-top: 1rem;
  margin-left: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.mv__supplement {
  position: absolute;
  bottom: 10%;
  left: 5%;
}

.mv__supplement img {
  width: 40vw;
}

/* .mv__supplement span {
  display: block;
  font-family: yosugara, sans-serif;
  color: #fff;
}

.mv__supplement span:first-child {
  font-size: 5vw;
}
.mv__supplement span:nth-child(2) {
  margin-left: 4rem;
  font-size: 5vw;
}

.mv__supplement span:nth-child(3) {
  position: relative;
  margin-left: 15rem;
  font-size: 4vw;
}

.mv__supplement span:nth-child(3)::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -110px;
  display: block;
  width: 100px;
  height: 2px;
  background: #fff;
}  */

.page__mv__link {
  position: absolute;
  bottom: 10%;
  right: 10%;
}

.page__mv__link a:first-child {
  margin-right: 2rem;
}

@media screen and (max-width: 900px) {
  .mv__main-ttl {
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding-left: 4rem;
    container-type: inline-size;
  }

  .mv__main-ttl h1 {
    margin-left: 0.5rem;
    font-size: max(2.5cqw, 1rem);
  }

  .mv__supplement {
    position: relative;
    top: 60%;
  }

  .mv__supplement img {
    width: 60vw;
  }

  .page__mv__link {
    position: absolute;
    bottom: 5%;
  }
}

@media screen and (max-width: 580px) {
  .mv {
    width: 100vw;
    height: 70vh;
  }

  .mv__main-ttl {
    top: 18%;
    left: 50%;
    padding-left: 0;
    width: 95%;
    container-type: inline-size;
  }

  .mv__main-ttl p {
    font-size: max(5cqw, 2rem);
    font-weight: 800;
    line-height: 1.25;
  }

  .mv__main-ttl h1 {
    margin-top: 0.5rem;
    margin-left: 0;
    font-size: max(1cqw, 0.8rem);
    font-weight: 600;
  }

  .mv__supplement {
    position: relative;
    top: 48%;
  }

  .mv__supplement img {
    width: 70vw;
  }

  .page__mv__link {
    bottom: 10%;
  }

  .page__mv__link a:first-child {
    margin-right: 1rem;
  }
}

/*-----------------------------------------------------
news
-----------------------------------------------------*/
.news__container {
  margin: 5rem auto 0;
  max-width: 1000px;
}

.card__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.hover__all {
  position: relative;
}

.card__link{
  display:block;
}

.card {
  width: 100%;
  margin-top: 20px;
}

.card__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.card__thumb.radius {
  border-radius: 75px 0 0 0;
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transition: all .3s ease-in-out;
}

/* 文字サムネ */
.thumb-text{
  width:100%;
  height:100%;
  background:#cbcbcb;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
}

/* カテゴリ */
.thumb-category{
  font-size:1rem;
  font-weight: 600;
  letter-spacing:.08em;
  color:#4f4f4f;
}

.card:hover figure img {
  transform: scale(1.05);
}

.card__body {
  margin-top: 0.5rem;
}

.news__ttl {
  margin-top: 0.5rem;
  color: var(--color1);
  font-size: 1rem;
  font-weight: 700;
}

.news__txt {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
}

.category {
  margin-top: 1rem;
}

.data-box {
  margin-top: 0.5rem;
}

.category,
.data-box {
  font-size: 0.8rem;
  font-weight: 600;
}

/* page__news__link */
.page__news__link {
  margin-top: 3rem;
  margin-left: auto;
  width: fit-content;
}

@media screen and (max-width: 900px) {
  .card__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .card__thumb {
    height: 300px
  }

  .news__cta {
    margin: 3rem auto 0;
  }
}

@media screen and (max-width: 580px) {
  .news__container {
    margin: 3rem auto 0;
  }

  .card__list {
    grid-template-columns: 1fr; /* 1列 */
    justify-items: center;      /* 中央配置 */
    gap: 1rem;                  /* card間の余白 */
  }

  .card {
    width: 90%;
  }

  .card__thumb {
    height: 250px
  }

  .data-box {
    font-size: 0.9rem;
  }

  .news__ttl {
    font-size: 1.3rem;
  }

  .news__txt {
    font-size: 0.8rem;
  }

  .category,
  .data-box {
    font-size: 0.65rem;
  }

  .page__news__link {
    margin: 3rem auto 0;
  }
}

/*-----------------------------------------------------
profile
-----------------------------------------------------*/
.profile__inner {
  display: flex;
  justify-content: space-between;
  padding-bottom: 6rem;
}

.profile__content {
  width: 43%;
  margin-top: 5rem;
}

.profile__lead {
  font-size: 1.5rem;
  font-weight: 700;
}

.profile__text {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.75;
}

.page__profile__link {
  width: fit-content;
  margin: 6rem auto 0;
}

.profile__img {
  display: flex;
  width: 50%;
  position: relative;
}

.profile__img img {
  display: block;
  width: 60%;
  position: absolute;
  object-fit: contain;
}

.profile__img img:first-child {
  border-radius: 0 0 0 50%;
  bottom: -100px;
  left: 0;
  z-index: 1;
}

.profile__img img:nth-of-type(2) {
  border-radius: 0 50% 0 0;
  top: 0;
  right: 0;
}

@media screen and (max-width: 900px) {
  .profile__content {
    width: 40%;
    margin-top: 5rem;
  }

  .profile__lead {
    font-size: 1rem;
    font-weight: 700;
  }

  .profile__text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .profile__img {
    display: flex;
    width: 55%;
    position: relative;
  }

  .profile__img img {
    display: block;
    width: 60%;
    position: absolute;
    object-fit: contain;
  }

  .profile__img img:first-child {
    bottom: -10%;
    left: 0;
    z-index: 1;
  }

  .profile__img img:nth-of-type(2) {
    border-radius: 0 50% 0 0;
    top: 0;
    right: 0;
  }
}

@media screen and (max-width: 750px) {
  .profile__inner {
    display: block;
    padding-bottom: 0;
  }

  .profile__content {
    width: 100%;
    margin-top: 5rem;
  }

  .profile__lead {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .profile__text {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.75;
  }

  .page__profile__link {
    width: fit-content;
    margin: 3rem auto 0;
  }

  .profile__img {
    display: flex;
    justify-content: center;
    position: static;
    width: 100%;
    margin: 3rem auto 0;
  }

  .profile__img img {
    display: block;
    width: 40%;
    position: static;
    object-fit: contain;
  }

  .profile__img img:first-child {
    bottom: auto;
    left: auto;
  }

  .profile__img img:nth-of-type(2) {
    top: auto;
    right: auto;
  }
}

@media screen and (max-width: 580px) {
  .profile__lead {
    font-size: 1rem;
    font-weight: 700;
  }

  .profile__text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }
}
/*-----------------------------------------------------
service
-----------------------------------------------------*/
.service__item {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 左右 */
  gap: 32px;
  align-items: center;
}

.service__content{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service .section__title {
  margin-top: -6rem;
}

.service__thumb,
.service__media-img {
  width: 100%;
  height: auto;
  display: block;
}

.service__thumb {
  border-radius: 0 0 50% 0;
}

.service__media {
  align-self: end;
}

.service__media-img {
  border-radius: 50% 0 0 0;
}

.service__lead {
  margin: 7rem auto 0;
  width: fit-content;
  font-size: 1.5rem;
  font-weight: 700;
}

.service__text {
  margin: 1.5rem auto 0;
  width: fit-content;
  font-size: 1.25rem;
  line-height: 1.75;
}

.page__service__link {
  margin-top: 3rem;
  text-align: center;
}

@media screen and (max-width: 750px) {
  .service__item {
    display: block;
  }

  .service__content{
    display: block;
  }

  .service .section__title {
    margin-top: -6rem;
  }

  .service__thumb,
  .service__media-img {
    width: 70%;
    height: auto;
    display: block;
  }

  .service__thumb {
    border-radius: 0 0 50% 0;
  }

  .service__media {
    align-self: auto;
    margin-top: 1.5rem;
  }

  .service__media-img {
    border-radius: 50% 0 0 0;
    margin-left: auto;
  }

  .service__lead {
    margin: 7rem auto 0;
    width: fit-content;
    font-size: 1.5rem;
    font-weight: 700;
  }

  .service__text {
    margin: 1.5rem auto 0;
    width: fit-content;
    font-size: 1.25rem;
    line-height: 1.75;
  }

  .page__service__link {
    margin-top: 3rem;
    text-align: center;
  }
}

@media screen and (max-width: 580px) {
   .service .section__title {
      margin-top: -2rem;
    }

    .service__lead {
      margin: 5rem auto 0;
      font-size: 1rem;
    }

    .service__text {
    margin: 1.5rem auto 0;
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/*-----------------------------------------------------
gallery
-----------------------------------------------------*/
/* .gallery {
  margin-top: 15rem;
} */

.scroll-gallery {
  width: 100%;
  overflow: hidden;
}

.scroll-track {
  display: flex;
  width: max-content;
  animation: scroll-left 70s linear infinite;
}

.scroll-gallery img {
  aspect-ratio: 4 / 3;
  height: 15vw;
  min-height: 150px;
  margin-right: 0px;
  flex-shrink: 0;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ホバー時にアニメーション停止（任意） */
.scroll-gallery:hover .scroll-track {
  animation-play-state: paused;
}

.page__gallery__link {
  margin-top: 5rem;
  text-align: center;
}

@media screen and (max-width: 580px) {
  .gallery {
    margin-top: 3rem;
  }
}

/*-----------------------------------------------------
faq
-----------------------------------------------------*/
.qa__list {
  margin-top: 5rem;
}

.qa__list__box {
  width: 70%;
  margin: 0 auto;
}

.qa__list dl {
  position: relative;
  margin: 30px 0 0;
  cursor: pointer;
  border: 3px solid var(--color1);
  border-radius: 5px;
}

.qa__list dl:first-child {
margin-top: 0;
}

.qa__list dl::after {
  position: absolute;
  top: 22px;
  right: 26px;
  display: block;
  width: 15px;
  height: 15px;
  margin: auto;
  content: '';
  transform: rotate(135deg);
  border-top: 3px solid var(--color1);
  border-right: 3px solid var(--color1);
}

.qa__list .open::after {
  transform: rotate(-45deg);
}

.qa__list dl dt {
  position: relative;
  margin: 0;
  padding: 20px;
  color: var(--color1);
  font-weight: 700;
  background: #f5f5f5;
  border-radius: 4px;
}

.qa__list dl.open dt {
  border-radius: 5px 5px 0 0;
}

.qa__list dl dd {
  display: none;
  position: relative;
  margin: 0;
  padding: 20px;
  background: #fff;
  border-top: 3px solid var(--color1);
  border-radius: 0 0 5px 5px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.qa__list dl:first-of-type dd {
  display: block;
}

.qa__list dl dd p {
  margin: 30px 0 0;
}

.qa__list dl dd p:first-child{
  margin-top: 0;
}

.qa__list dl dd span {
  display: block;
  margin-left: 1rem;
  font-size: 0.8rem;
}

.comment {
  margin-top: 1rem;
}

.page__faq__link {
  margin-top: 5rem;
  text-align: center;
}

@media screen and (max-width: 960px) {
  .qa__list__box {
    width: 90%;
  }

  .qa__list dl::after {
    right: 10px;
  }

  .qa__list dl dt {
    padding: 20px 30px 20px 10px;
  }

  .qa__list dl dd {
    padding: 10px;
  }
}

@media screen and (max-width: 580px) {
  .qa__list {
    margin-top: 5rem;
  }

  .qa__list__box {
    width: 95%;
  }

  .qa__list dl {
    margin: 1rem 0 0;
    border: 2px solid var(--color1);
  }

  .qa__list dl::after {
    width: 12px;
    height: 12px;
  }

  .qa__list dl dt {
    font-weight: 500;
    font-size: 0.8rem;
  }

  .qa__list dl dd {
    padding: 10px;
    border-top: 2px solid var(--color1);
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .page__faq__link {
    margin-top: 3rem;
    text-align: center;
  }
}

