@charset "utf-8";

/* PC（大画面）
/************************************************************/
@media screen and (min-width: 1024px) {
  .hide-pc {
    display: none;
  }
  /* レイアウトの微調整 */


  /* ホバーエフェクト */
  .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: 768px) and (max-width: 1023px) {
  /* ファーストビュー */
  .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%;
  }


}

/* スマホ（基本設定）
/************************************************************/
@media screen and (max-width: 766px) {
  h2 {
    font-weight: 700;
    line-height: 1.2;
    font-size: 2rem;
    margin: 1rem 0 2rem;
    text-align: center;
  }
  .header__inner, .footer__inner, section > div {
    padding: 0.5rem 0.7rem;
  }
  .hide-sp {
    display: none;
  }
  .cta-2 .cta-buttons{
    width: 18rem;
  }

  .fv {
    background-position: bottom center;
    background-size: cover;
    min-width: auto;
    padding: 0 0 2rem;
  }

  .fv__title {
    font-size: 3.2rem;
    margin: 0 0 1.5rem;
    text-align: center;
    line-height: 3rem;
  }
  .fv__title .fv__title-sub {
    font-size: 1.8rem;
   margin-bottom: 1rem;
    text-decoration: underline;
    display: inline-block;
}
  .fv__title .fv__title-main{
    line-height: 3rem;
  }
  .fv__title_big {
    font-size: 4.4rem;
  }

  .fv__title-main {
    font-size: 2.8rem;
  }
  .fv__service {
    max-width: unset;
}
  .header{
    min-width: auto;
    padding: 0;
  }
  .fv::before {
    opacity: 0.85;
  }
 
  .fv-inner {
    position: relative;
    margin: 0 auto;
    padding: 0 1rem;
  }
.fv__image{
  position: unset;
  max-width: 50%;
  margin: 0 auto;
}

  .highlight {
    font-size: 1.6rem;
  }

  .fv__service-title {
    font-size: 2.4rem;
    line-height: 2rem;
  }

  .fv__tags {
    width: 100%;
    padding: 0.8rem 0.1rem;
  }

  .fv__tags-heading {
    font-size: 1.2rem;
  }

  .fv__tag {
    font-size: 1rem;
  }

  .fv__achievements {
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
  }

  .achievement {
    width: 100%;
  }

  .achievement__text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .fv__cta {
    position: relative;
    bottom: 0;
    right: 0;
    margin: 2rem 0;
    width: 100%;
  }
  .customer-voice__content {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2rem 1rem 0.5rem;
    display: flex
;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 1rem auto;
    flex-direction: column;
}
.consultants__inner{
    flex-direction: column;
}
.support-flow__steps{
      gap: 0.2rem;
}
.support-flow__step img {
  width: 60px;
}
.support-flow__step p{
  font-size: 1.1rem;
}
.support-flow__title {
font-size: 2rem;
}
}

/* 印刷用スタイル
/************************************************************/


@media screen and (max-width: 1024px) {

  .fv__title-main {
    font-size: 2.8rem;
  }

  .fv__service-title {
    font-size: 1.8rem;
  }
  
  .achievement img {
    height: 25px;
  }
}

@media screen and (max-width: 768px) {

  .fv-cta .cta-section__button .btn--primary {
    font-size: 1.2rem;
}

  .merit__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .merit__item{
    padding: 0.5rem;
  }
  .merit__title{
    font-size: 0.9rem;
  }
  .contact__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  .additional-points__content{
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
  }
  .additional-points__inner{
    padding: 0 10px;
  }
  .support-plan__list{
    flex-direction: column;
  }
  .support-plan__item-desc{
    min-height: 1em;
  }
  .support-plan__price{
    min-height: 4rem;
    margin: 1rem 0 0;
  }
  .support-plan__item{
    padding: 1rem;
  }
  .footer__inner {
    flex-direction: column;
  }
  .footer__left{
    width: 100%;
    margin: 0 auto;
  }
  .footer__offices{
    margin: 0 0 1rem;
  }

  .footer__nav-list {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
  }
  .footer__company{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
  }
  .footer__certifications{
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 0.5rem;
  }
  .header__tel {
    font-size: 1.2rem;
  }

  .header__tel img {
    width: 20px;
  }

  .fv__content {
    max-width: 100%;
  }

  .fv__title-main {
      font-size: 1.8rem;
      text-align: center;
      line-height: 2rem;
    }

  .fv__service-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .fv__achievements {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
    margin-top: 2rem;
  }

  .achievement {
    width: 100%;
    max-width: 320px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.8rem 1rem;
  }
  
  .achievement img {
    height: 24px;
    margin: 0 0.5rem;
  }
  
  .achievement__label, 
  .achievement__value {
    margin: 0.2rem 0.5rem;
    text-align: center;
  }
  
  .achievement__label {
    font-size: 0.8rem;
    order: 1;
    width: 100%;
  }
  
  .achievement__value {
    font-size: 1.6rem;
    order: 2;
  }
  
  .achievement img:first-child {
    order: 0;
  }
  
  .achievement img:last-child {
    order: 3;
  }

  /* お悩みセクション */
  .onayami .section__title {
    font-size: 2rem;
  }

  .onayami__content {
    flex-direction: column;
    align-items: center;
  }

  .onayami__illustration {
    flex: 0 0 auto;
    width: 80%;
    max-width: 300px;
    top: 0;
    margin: 0 0 1rem;
  }

  .onayami .section__title span {
font-size: 2.1rem;
  }

  /* Reason Section */
  .reason__list {
    flex-direction: column;
    gap: 1rem;
  }

  .reason__icon {
    width: 100px;
    height: 100px;
  }

  .reason__text {
    font-size: 16px;
  }
  .reason__item{
    padding: 1rem;
  }
  .reason__icon{
    margin: 0 auto 10px;
  }

  /* Solution Message */
  .solution-message {
    padding: 30px 15px;
  }

  .solution-message::after {
    bottom: -20px;
    border-width: 20px 20px 0 20px;
  }

  .solution-message__title {
    font-size: 2rem;
  }

  /* Additional Points Section */
  .additional-points__header {
    flex-direction: column;
    padding: 20px;
    border-radius: 30px;
    margin: 0 15px 30px;
  }

  .additional-points__title {
    font-size: 1.8rem;
    text-align: center;
    padding-left: 0;
    margin: 0 ;
  }

  .additional-points__image {
    width: 100px;
  }
  .additional-points__subtitle{
    font-size: 1.8rem;
  }
  .support-plan__recommend-tag {
    top: -22px;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
  }

  h2 {
font-size: 1.5rem;
margin: 1rem 0 1rem;
  }

  .support-flow__title{
    font-size: 1.6rem;
  }
  .support-flow{
    padding: 2rem 0.5rem;
  }
  .customer-voice__content{
    padding: 2rem 1rem 0.5rem;
  }
  .customer-voice__subtitle{
    font-size: 1.2rem;
  }
  .consultant{
    padding: 1rem;
    margin: 0.5rem 0.5rem;
  }

  .header__contact {
    display: none;
  }

  .fv__title {
    font-size: 2.2rem;
    margin: 0 0 1.5rem;
    text-align: center;
    line-height: 3rem;
  }
  .fv__tag-list{
    gap: 0.3rem;
  }
  .fv__title_big {
    font-size: 3.4rem;
  }
  .reason-cta .cta-section__button .btn--primary{
    padding: 1.2rem 0 1.2rem 2.5rem;
    min-width: 317px;
  }
  .reason{
    padding: 2rem 0 3rem;
  }
  .fv__service-title {
    font-size: 1.3rem;
  }

  .fv__tags {
    padding: 1rem;
  }

  .fv__tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }
  .fv__title-sub {
    font-size: 1.1rem;
    line-height: 1rem;
}

  .btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }

  .onayami{
    padding: 0;
  }
  .onayami .section__title span {
    font-size: 1.5rem;
}
.solution-message__title {
  font-size: 1.7rem;
}
.additional-points__subtitle {
  font-size: 1.5rem;
}
.onayami__item{
  gap: 0.8rem;
}
.additional-points__content{
  margin: 4rem auto 1rem;
}
.support-flow__note{
  font-size: 1.3rem;
}
.big{
  font-size: 2rem;
}
.support-flow__inner{
  padding: 2rem 1rem;
}
.consultants{
  padding: 2rem 0;
}
.question{
  padding: 0 0 2rem;
}
.support-plan{
  padding: 2rem 0;
}
.support-plan h2{
  margin: 0 0 2rem;
}
.support-plan__note{
  font-size: 0.7rem;
}
.support-plan__item-title{
  margin: 1.2rem 0 0.5rem;
}
.support-plan__inner {
  margin: 0 auto;
}

.customer-voice{
  padding: 2rem 0;
}
.support-plan__message{
  font-size: 1.3rem;
}
.question-item__q{
  padding: 1rem;
  gap: 0.5rem;
}
.question-item__a{
  padding: 0 1rem 1rem 1rem;
}
.question-item__a p{
  font-size: 1rem;
}
.question__inner{
  padding: 1rem 1rem 0;
}
  .footer__nav-list {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .achievement {
    padding: 0.6rem 0.5rem;
  }
  
  .achievement__label {
    font-size: 0.75rem;
  }
  
  .achievement__value {
    font-size: 1.4rem;
  }

  /* お悩みセクション */
  .onayami .section__title {
    font-size: 1.4rem;
  }

  .term {
    font-size: 1rem;
  }

  .onayami__text {
    font-size: 1rem;
  }

  /* CTA Section */
  .cta-section__button .btn--primary {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    min-width: 250px;
  }

  .additional-points__header {
    padding: 15px;
    border-radius: 25px;
  }

  .additional-points__title {
    font-size: 1.6rem;
  }

  .additional-points__image {
    width: 80px;
  }
  .additional-points{
    padding: 2rem 0 3rem;
  }
  .additional-points__tags .tag{
    font-size: 0.9rem;
    padding: 10px 10px;
  }
    /* フッター */
  .footer__inner {
    padding: 2rem;
    gap: 2rem;
  }
  .footer__offices{
    flex-wrap: wrap;
  }


  .privacy_policy .container{
    top: 6rem;
    margin: 0 0 1rem;
  }
}

