/* 
Theme Name:studioMARY
Description:studioMARY
Version:1.0
Author:kiseisha
*/

/* fv */
.fv{
  position: relative;
  height: 100vh;
  max-width: 90vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.fv .swiper-slide .swiper-slide__item img{
  max-width: 100%;
  height: 480px;
  object-fit: cover;
  overflow: hidden;
}

.fv .swiper-horizontal{
  text-align: center;
}

.fv_concept{
  position: absolute;
  bottom: 20%;
  left: 4%;
  z-index: 10;
}

.fv_concept p{
   font-size: 2.5rem;
   font-weight: bold;
   color: #fff;
   text-shadow: 0 2px 6px rgb(0 0 0 / 31%);
}

/* animation */
.fv_fade_in{
  opacity: 0;
  transition: opacity 2s ease-out, transform 1.5s ease-out;
}

.fv_fade_in.show {
  opacity: 1;
}

.swiper-slide-active .swiper-slide__item,
.swiper-slide-duplicate-active .swiper-slide__item,
.swiper-slide-prev .swiper-slide__item {
    animation: zoomanime 10s linear 0s normal both;
}

@keyframes zoomanime {
  0% {
      transform: scale(1);
  }
  100% {
      transform: scale(1.2);
  }
}

@media screen and (min-width: 768px) {
  .fv{
    max-width: 85vw;
    height: 100vh;
  }

  .fv .swiper-slide .swiper-slide__item img{
    height: 77vh;
  }

  .fv_concept p{
     font-size: 3.5rem;
  }
}

.up-wave{
  margin-bottom:-5px!important;
}

.down_wave{
  margin-top:-2px!important;
}

/* concept */
.concept .container{
  padding: 0 20px;
}

.concept .container .content_wrapper h1{
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.concept .container .content_wrapper p{
  line-height: 2;
}

@media screen and (min-width: 768px) {
   .concept .container .content_wrapper h1{
      font-size: 3rem;
   }
}

/* photomenu */
.photomenu .menu_list{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-right: 10px;
  margin-bottom: 30px;
}

.photomenu .menu_item{
  width: 45%;
  position: relative;
}

.photomenu .menu_item h3{
  font-size: 1.4rem;
  text-align: center;
  line-height: 2;
  padding: 15px 0 10px;
}

.menu_item .img_wrapper{
  position: relative;
  display: inline-block;
  width: 100%;
  height: auto;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.menu_item .img_wrapper img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  vertical-align: middle;
  transition-duration: 0.5s;
}

.menu_item a .img_wrapper:hover img{
  transform: scale(1.05);
  transition-duration: 0.5s;
}

.menu_item a:hover{
  color: #3f2e18c4;
  transition: 0.4s ease-in-out;
}

.shape1{
  border-radius: 5px;
  box-shadow: 10px 10px 0px 0 rgba(243, 176, 43, 0.6);
}

.shape2 {
  border-radius: 5px;
  box-shadow: 10px 10px 0px 0 rgba(35, 178, 186, 0.6);
}

.shape3 {
  border-radius: 5px;
  box-shadow: 10px 10px 0px 0 rgba(97, 187, 124, 0.6);
}

@media screen and (min-width: 768px){
  .photomenu .menu_list{
    margin-bottom: 70px;
  }
  .photomenu .menu_item{
    width: 22%;
  }

  .photomenu .menu_item:nth-child(n+5){
    margin-top: 20px;
  }
}

/* case_flow */
.flow_wrapper {
  margin: 0 auto;
  position: relative;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #23B1BA;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline__item{
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  z-index: 1;
}

.timeline__item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline__balloon{
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 20px;
  width: 330px;
  margin: 0;
  position: relative;
}

.timeline__balloon h3{
  font-size: 1.6rem;
}

.timeline__balloon p{
  font-size: 1.4rem;
}

.timeline__image{
  width: 330px;
  padding: 0 20px;
  text-align: center;
}

.timeline__image img {
  border-radius: 12px;
  width: 200px;
  height: auto;
}

@media (max-width: 890px) {
  .flow_wrapper {
    padding: 20px 10px;
  }

  .timeline {
    padding-left: 0;
    margin-left: 0;
  }

  .timeline::before {
    left: 5px;
    width: 3px;
  }

  .timeline__item,
  .timeline__item:nth-child(even) {
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .timeline__balloon {
    max-width: 100%;
    margin: 0 0 0 30px;
    font-size: 15px;
  }

  .timeline__balloon h3{
    font-size: 1.4rem;
  }

  .timeline__image {
    width: 30%;
    margin-left: 16px;
    padding: 0;
  }

  .timeline__image img {
    width: 100px;
  }
}

.timeline__item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.timeline__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: #23B1BA;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

@media (max-width: 890px) {
  .timeline__dot {
    left: -9px;
    top: 32px;
    transform: translateY(-50%);
  }
}

/* cases */
.cases .container{
  background: #E7F8F8;
}

/* news */
.news_list{
  margin-bottom: 30px;
}

.news_list .news_item{
  margin-bottom: 20px;
}

.news_list .news_item:last-of-type{
  margin-bottom: 0;
}

.news_list .news_item:hover img{
  transform: scale(1.05);
  transition-duration: 0.5s;
}

.news_list .news_item a:hover{
  color: #3f2e18c4;
  transition: 0.3s ease-in-out;
}

.news_list .news_item .flex_wrapper{
  justify-content: space-between;
  align-items: center;
}

.news_list .news_item .flex_wrapper .left{
  width: 30%;
}

.news_list .news_item .flex_wrapper .left .img_wrapper{
  position: relative;
  display: inline-block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 5px;
}

.news_list .news_item .flex_wrapper .left .img_wrapper img{
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  vertical-align: middle;
  object-fit: cover;
  transition-duration: 0.5s;
}

.news_list .news_item .flex_wrapper .right{
  width: 65%;
}

.news_date{
  font-size: 1.2rem;
  margin-bottom: 3px;
}

.news_ttl{
  font-size: 1.4rem;
  border-bottom: 1px dashed #969696;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.news_desc{
  font-size: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media screen and (min-width: 768px) {
  .news_list{
    margin-bottom: 70px;
  }

  .news_list .news_item .flex_wrapper{
    justify-content: space-evenly;
  }

  .news_list .news_item .flex_wrapper .left{
    width: 20%;
  }

  .news_list .news_item .flex_wrapper .right{
    width: 70%;
  }

  .news_date{
    margin-bottom: 5px;
  }

  .news_ttl{
    font-size: 1.6rem;
  }

  .news_desc{
    font-size: 1.4rem;
    -webkit-line-clamp: 2;
  }
}

/* column */
.column .container{
  background: #FEF3DD;
}

.swiper2{
  margin-bottom: 30px;
}

.swiper2 .swiper-slide{
  background-color: #fff;
  border-radius: 20px;
}

.swiper2 .img_wrapper{
  width: 100%;
  aspect-ratio: 4/3;      /* アスペクト比を固定（モダンブラウザ対応） */
  height: 200px;
  position: relative;          /* 高さを固定したい場合は指定 */
  overflow: hidden;
  display: inline-block;
  transition: all 0.3s ease-in-out;
  border-radius: 20px 20px 0 0;
  margin-bottom: 10px;
}

.swiper2 .swiper-slide:hover img{
  transform: scale(1.05);
  transition-duration: 0.5s;
}

.swiper2 .swiper-slide a:hover{
  color: #3f2e18c4;
  transition: 0.3s ease-in-out;
}

.swiper2 .img_wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  object-fit: cover;
  transition-duration: 0.5s;
}

/* 前へ次への矢印カスタマイズ */
.swiper2 .swiper-button-prev,
.swiper2 .swiper-button-next {
  height: 50px;
  width: 50px;
}

.swiper2 .swiper-button-prev{
  left: -1%;
}

.swiper2 .swiper-button-next{
  right: -1%;
}

.swiper2 .swiper-button-prev::after,
.swiper2 .swiper-button-next::after {
  content: "";
  background: none;
  border: solid #F3B02A;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 10px;
  transform: rotate(135deg);
}

.swiper2 .swiper-button-next::after {
  transform: rotate(-45deg);
}

.swiper2 .swiper-button-prev:active,
.swiper2 .swiper-button-next:active,
.swiper2 .swiper-button-prev:focus,
.swiper2 .swiper-button-next:focus {
  outline: none;
  background: transparent;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent; /* ←これも追加 */
}

.column_content{
  padding: 5px 15px 15px;
}

.column_ttl{
  font-size: 1.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  margin-bottom: 5px;
}

.column_content .tag_list{
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.column_content .tag_item{
  min-height: 1em;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background-color: #61BB7C;
  border-radius: 5px;
  padding: 5px 10px;
  margin: 0 10px 0 0;
}

.column_date{
  font-size: 1.2rem;
}

.block-title{
  font-size: 1.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  margin-bottom: 5px;
}

.block-date{
  font-size: 1.4rem;
}

@media screen and (min-width: 768px) {
  .swiper2{
    margin-bottom: 70px;
  }

  .swiper2 .swiper-button-prev{
    left: 1%;
  }

  .swiper2 .swiper-button-next{
    right: 1%;
  }

  .block-title{
    font-size: 1.6rem;
    -webkit-line-clamp: 2;
    min-height: 3.2em;
    margin-bottom: 5px;
  }
}

/* access */
.access .container .content_wrapper .flex_wrapper{
  flex-direction: column;
}

.access .container .content_wrapper .flex_wrapper .left img{
  width: 100%;
  height: auto;
  object-fit: cover;
}

.access .container .content_wrapper .flex_wrapper .right{
  margin-top: 20px;
}

.access .container .content_wrapper .flex_wrapper .right h2{
  font-size: 2.2rem;
  font-weight: bold;
}

.access .container .content_wrapper .flex_wrapper .right .more_btn{
  margin-top: 20px;
}

.access .container .content_wrapper .flex_wrapper .right .more_btn a{
  max-width: 100%;
}

@media screen and (min-width: 768px) {
  .access .container .content_wrapper .flex_wrapper{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .access .container .content_wrapper .flex_wrapper .left{
    width: 57%;
    padding-right: 3%;
    border-right: 2px dotted #000;
    flex: 1;
  }

  .access .container .content_wrapper .flex_wrapper .right{
    width: 37%;
    height: 100%;
    margin-left: 3%;
    margin-top: 0;
    flex: 1;
  }
}