@charset "utf-8";

/* PC（大画面）
/************************************************************/
@media screen and (min-width: 960px) {
  /* レイアウトの微調整 */
  .container {
    max-width: 1200px;
  }

  /* ホバーエフェクト */
  .fv_btn__sindan:hover,
  .btn__sindan:hover,
  .btn__inquiry:hover,
  .footer__contact-btn:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }

  /* アニメーションの改善 */
  .js-fade-in,
  .js-fade-in-left,
  .js-fade-in-right {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
}

/* タブレット
/************************************************************/
@media screen and (min-width: 600px) and (max-width: 959px) {
  /* ファーストビュー */
  .hide-tb {
    display: none;
  }

  .fv-sub {
    position: relative;
    flex-direction: row;
    right: auto;
    margin: 1rem 0 0 8%;
    gap: 2rem;
    justify-content: flex-start;
  }

  .fv-sub__top,
  .fv-sub__bottom {
    writing-mode: horizontal-tb;
    padding: 0.5rem 2rem;
    margin: 0;
    white-space: nowrap;
    font-size: 1.4rem;
  }

  .cta__inner{
    flex-direction: column;
    align-items: center;
  }
  /* お悩み */
  .onayami-cards {
    gap: 1rem;
  }

  .onayami-card {
    width: 45%;
  }

  /* フッター */
  .footer__inner {
    padding: 2rem;
    gap: 2rem;
  }
  .footer__offices{
    flex-wrap: wrap;
  }
}

/* スマホ（基本設定）
/************************************************************/
@media screen and (max-width: 599px) {

body {
  font-weight: 600;
}
  h2{
    font-size: 1.5rem;
  }
  .hide-sp {
    display: none;
  }
  .cta-2 .cta-buttons{
    width: 18rem;
  }

  .fv {
    min-height: 54vh;
    top: 14rem;
  }

  .fv::before {
    content: '';
    position: absolute;
    top: -17rem;
    left: 0;
    height: 100vh;
    background: url(../img/fv-bg2.webp) no-repeat center center;
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
  }

  .fv-inner {
    position: relative;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .fv-content {
    align-items: center;
    top: -11rem;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0%;
  }

  .fv-sub__top, .fv-sub__bottom {
    writing-mode: horizontal-tb;
    font-size: 1.2rem;
    margin: 0;
    white-space: nowrap;
  }

  .fv-text {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    width: fit-content;
    margin-bottom: 0.5rem;
  }
  .fv_btn__sindan{
    padding: 1rem 1.5rem 1rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    display: flex;
    line-height: 1.4;
    align-items: center;
    text-align: center;
    font-size: 1.5rem;
    white-space: nowrap;
  }
  .cta-1__text {
    margin: 0.5rem 0 0;
    max-width: 18rem;
}

  p.fv-text__service {
    font-size: 1.3rem;
    line-height: 2rem;
    margin: 0;
    filter: drop-shadow(0px 0px 12px rgb(255, 255, 255));
  }

  .fv-text__service-inner img {
    height: 3.5rem;
  }

  .fv-text h1 {
    font-size: 1.6rem;
    line-height: 3rem;
  }

  .fv-text h1 span {
    font-size: 2rem;
  }
  .onayami h2 span,.supprt-toha__inner span {
    font-size: 1.8rem;
  }

  .cta-1 {
    padding: 1rem 1.5rem;
    width: min-content;
    bottom: -9rem;
  }
  .cta__inner{
    flex-direction: column;
    align-items: center;
  }
  .cta__heading {
    margin-bottom: 0.2rem;
    font-size: 1rem;
    text-align: center;
  }
  .check-image {
    flex: 0 0 0;
}
.onayami-cards{
  margin: 2rem 1rem 0px;
}
.check-title{
  font-size: 1.5rem;
  padding: 1rem 1rem;
  border-radius: 2rem;
  margin: 0;
}
.check-item p{
  font-size: 1.2rem;
}
.support-three h2 span{
  font-size: 2.4rem;
}
.support-three h2{
margin-bottom: 0;
}

  .supprt-toha {
    margin-top: 23vh;
    padding-top: 29vh;
    padding-bottom: 8rem;
  }
  .support-item__title{
    font-size: 1.4rem;
  }

  .support-item_1,
  .support-item_2,
  .support-item_3 {
    flex-direction: column;
    gap: 2rem;
  }

  .supprt-toha__inner img {
    display: none;
  }

  .supprt-toha__inner ul {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 1rem 0;;
  }

  .supprt-toha__inner li {
    width: 6rem;
    height: 6rem;
    line-height: 6rem;
    font-size: 1.2rem;
    border: 5px solid #FE8ABB;
  }
  .supprt-toha__inner p{
    font-size: 1.1rem;
    text-align: left;
  }
  .onayami h2{
    margin: 0;
  }
  .flow-item__content p {
    margin-left: 0;
  }
  .flow-item {
    gap: 0.4rem;
  }
  .flow__inner h3{
    margin: 0;
  }
  .flow__inner h2{
    margin-bottom: 1rem;
    font-size: 2rem;
  }
  .flow-item__icon{
    width: 3rem;
  }
  .cta-3 {
    padding: 1rem 1.5rem;
  }
  .check-list {
    flex-direction: column;
  }
  .footer__inner{
    flex-direction: column;
  }
  .footer__offices {
    gap: 1.5rem;
    flex-direction: column;
}
.footer__left{
  width: 100%;
  }
  .support-contact {
    margin: 2rem 0;
    border: 3px solid #FF1296;
    padding: 0 0.5rem;
}
.support-contact__inner {
  margin: 1rem 0.5rem;
}
.check-items,.check-result__text{
  margin: 0 0.5rem;
}

  .supprt-toha::before {
    border-radius: 0 0 50% 50%;
    left: -70%;
    width: 240%;
    height: 96%;
  }
  .flow-items::before {
    left: 1.3rem;
    width: 5px;
  }
  .question{
    padding:0;
  }
  .cert-logo {
    margin: 1rem 0 0;
}

.footer__certifications {
  justify-content: flex-start;
}
  .voice {
    padding: 0 0 40px 0;
  }
  
  .voice h2 {
    font-size: 2rem;
    margin: 1rem 0;
  }
  .voice-item__copy {
    font-size: 1.3rem;
  }
  .question h2{
    font-size: 2rem;
    margin: 1rem 0;
  }

  .voice-item {
    flex-direction: column;
    padding: 18px;
    gap: 20px;
  }

  .voice-item__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
  
  .voice-item__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .question-item__q{
    padding: 0.5rem 1rem;
  }
  .question-text{
    font-size: 1rem;
    line-height: 150%;
  }
  .question-item__a{
    padding: 0 1rem 0.5rem 1.5rem;
  }
  .question-item__a p{
    font-size: 1rem;
    line-height: 150%;
  }
  .arrow{
    right: 0.4rem;
  }
}
