
/* Minimal mobile-only overrides */
/* Do NOT alter desktop styles; only apply up to 768px */
@media screen and (max-width: 768px) {

  /* Base */
  html, body {
    overflow-x: hidden;
  }
  img, svg, video {
    max-width: 100%;
    height: auto;
  }

  /* Generic containers */
  .container,
  .mv__inner,
  .message__inner,
  .introduction__inner,
  .problem__inner,
  .benefits__inner,
  .about__inner,
  .plan__inner,
  .flow__inner,
  .voice__inner,
  .faq__inner,
  .ft_cv__inner,
  .contents,
  .contents-block {
    width: auto ;
    max-width: 100% ;
    padding-left: 16px ;
    padding-right: 16px ;
    box-sizing: border-box;
  }

  /* Flex rows -> columns */
  .mv__box,
  .mv-box,
  .message__row,
  .flow-card__cols,
  .about__profile,
  .about__achievements,
  .plan-panel,
  .plan-cta,
  .voice-list,
  .faq-list,
  .nav-items {
    display: block ;
  }


  /* Buttons / CTAs */
    .mv__button{
        width: 90%;
        height: auto;
    }
  .btn, .btn a, .cv__button, .mv__button img {
    width: 100%;
    display: block;
  }

  /* Tables: allow horizontal scroll instead of squeezing */
  .plan-table {
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .plan-table table {
    min-width: 640px; /* keep legibility */
  }

  /* Lists: tighter spacing */
  ul, ol {
    padding-left: 1.2em;
  }

  /* Typography scale-down */
  h1 { font-size: clamp(22px, 6vw, 28px); }
  h2 { font-size: clamp(20px, 5.5vw, 24px); }
  h3, .section__heading, .contents-block__heading { font-size: clamp(18px, 5vw, 22px) ; }
  p { font-size: clamp(14px, 4.3vw, 16px); line-height: 1.8; }

  .section + .section,
  .contents-block + .contents-block {
    margin-top: 24px ;
  }

  /* Images inside text box */
  .txt-box img {
    max-width: 100% ;
  }
    
    .header__nav.active{
    transform: translateX(0);
    background-color: rgba(0, 0, 0, 1);
        width: 100%;
    }

    
    .header-inner{
        padding: 20px 20px;
    }
    h2.contents__heading img{
        width: 80%;
    }
        .benefits::before,
    .special::before,
    .contents__bg,
    .about::after,
    .about,
    .about__profile,
    .problem__box{
        background-size: cover;
        overflow: hidden;
    }
  .mv__text-area, .mv__image-area {
    width: 100% ;
    max-width: 100% ;
    margin: 0 ;
  }
  .mv__image-area {
    text-align: center;
      position: static;
  }
     .mv-box {
    flex-direction: column;
  }

  .txt-box,
  .mv__image-area {
    flex: 1 1 100%;
    text-align: center;
  }

  .txt-box {
    font-size: 0.95rem;
  } 
    
    .mv{
        padding: 120px 20px 0;
    }    
    h1.mv__catch{
        height: auto;
    }
    .mv__description{
        font-size: 1em;
        line-height: 1.6;
    }
    .benefits__inner,
    .special__inner,
    .contents__inner,
    .voice__inner,
    .plan-notes,
    .rules__inner{
        width: 100%;
    }

    

    .text-line{
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .text-line .text{
        min-width: 0;
        font-size: clamp(14px, 4vw, 16px);
        line-height: 1.3;
        overflow-wrap: anywhere; 
        white-space: normal;
        text-align: left;
    }
    .text-line .line{
        flex: 1 1 auto;
        width: auto;
        min-width: 24px;
        height: 1.5px;
        text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.9);
    }
    
    .introduction{
            padding: 120px 20px 50px;
    }
    
    h3.introduction__subtitle{
        font-size: 1.8em;
    }
    .introduction__title{
        font-size: 1.4em;
        margin-bottom: 40px;
    }
    .introduction__text{
        font-size: 14px;
        line-height: 30px;
        margin-bottom: 20px;
    }
    
    li.introduction__item{
        width: 100%;
        height: auto;
    }
    span.introduction__label{
        font-size: 2em;
    line-height: 42px;
    margin: 30px 0;
    }
    .problem__heading{
        width: 80%;
        height: auto;
    }
    .problem__heading h3{
        font-size: 0.5em;
    }

    
    
   .problem__box {
    padding: 120px 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    height: auto; 
  }

  .problem__list {
    text-align: left;
    width: auto;
    width: 95%;
    margin: 0 auto;
  }

  .problem__list.right {
    margin-left: auto;
    margin-right: auto;
  }

  .problem__list li {
    font-size: 1.1em;
    margin-bottom: 16px;
    padding-left: 24px;
  }

  .problem__list li::before {
    background-size: 18px 22px;
    width: 18px;
    height: 22px;
    top: 2px;
  }

  .problem__silhouette {
    position: static; 
    transform: none;
    width: clamp(140px, 45vw, 200px);
    max-width: 150px;
    margin: 0 auto -5px;
    order: 3;
  }
    
    
    .solving__text{
        margin: 0 0 40px;
    }
    .solving__text p{
        font-size: 0.65em;
        text-align: left;
    }
    
    .video__inner{
        padding-bottom: 60px;
    }
    
    .about__inner{
        padding: 0;
    }  
  .about__profile {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    padding: 30px 16px;  
    gap: 16px;
  }
  .about__profile-text {
    width: 100%;
    font-size: 15px;
    line-height: 1.8;
    order: 2;
  }
  .about__name { font-size: 28px; line-height: 1.4; }
  .about__desc { font-size: 18px; line-height: 1.6; }
    .about__txt{
        font-size: 0.85em;
        line-height: 30px;
    }
  .about__profile-image {
    width: 100%;
    max-width: clamp(260px, 80vw, 480px);
    margin: 0 auto;
    text-align: center;
  }
  .about__profile-image img {
    width: 100%;
    height: auto; 
    display: block;
  }
  .about__profile-image.is-crop {
    --crop-height: 250px; 
    height: var(--crop-height);
    overflow: hidden;
    order: 1;
  }
  .about__profile-image.is-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 0;
      margin: 0 auto;
  }
      
      .about__achievements-title{
        margin-bottom: 0;
        margin-top: 40px;
    }  
.about__achievements {
    width: 100%;
    max-width: 100%;
    padding: 0 16px 80px;
    box-sizing: border-box;
    gap: 32px;
  }
    .about__desc{
        line-height: 28px;
    }

  .achievement__item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .achievement__item:nth-child(even) { justify-content: flex-start; }

  .achievement__item img {
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto;
    order: 1;
  }

  .achievement__label {
    position: static; 
    z-index: auto;
    order: 2;
    margin-top: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.4;
  }
  .achievement__label.pc{
    display: none;
    }
    .achievement__label.sp{
    display: block;
    }

  .achievement__label.double,
  .achievement__label.list02,
  .achievement__label.list03,
  .achievement__label.list04 {
    top: auto; left: auto; right: auto;
  }
  .achievement__item:nth-child(even) .achievement__label.list02,
  .achievement__item:nth-child(even) .achievement__label.list04 {
    right: auto;
    text-align: center;
  }
  .achievement__label .line {
    display: inline-block;
    margin: 4px auto 0;
    padding: 6px 14px;
    line-height: 1.6;
    white-space: normal; 
  }
    
    
    figure.ccontents-block__image{
        margin: 0;
    }
    .contents-block{
        margin: 0;
        padding: 0;
    }
    .contents-block__panel h3.contents-block__title{
        font-size: 1.15em;
        text-align: left;
    }
  .contents-block__panel { 
      padding: 30px 25px 30px;
      mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 35px,
    #000 calc(100% - 35px),
    transparent 100%
  );
    }
   .contents-block { margin-bottom: 64px; }
  .contents-block__heading { font-size: 22px; }
  .contents-block__text { 
      font-size: 13px;
      text-align: left;
    }
  .contents-block__image { max-width: 100%; }

    .benefits li.benefits__item{
        width: 80%;
        padding: 20px 35px;
        font-size: 1em;
        line-height: 26px;
    }
    .benefits__item span.benefits__num,
    .benefits__item span.ls{
        font-size: 1.2em;
        
    }
    .benefits__inner { 
        padding: 160px 16px 160px;
    }
  .benefits__title { 
      font-size: 36px;
      margin: 0 0 10px;
      width: 75%;
    }
  .benefits__item {
    padding: 14px 16px;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  }
  .special__inner{ padding: 90px 0 120px; }
  .special__lead{ font-size: 13px; text-align: left;}
  .special__cta{ max-width: 95%; }
  .special__button{ font-size: 18px; letter-spacing: .16em; }
  .special__badge{ left:-52px; width:96px; height:96px; bottom:-12px; }
    
    
    h2.value__title{
        font-size: 1.1em;
        margin: 0 0 80px;
    }
    .value__title span.title_l{
        font-size: 1.35em;
    }
    .value__title::after{
        width: 150px;
        bottom: -23px; 
    }
   .value__inner{ padding: 90px 0 50px; }
  .value__title .title_l{ font-size: 26px; }
  .value__panel{ 
      padding: 35px 35px;
      mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 40px,
    #000 calc(100% - 40px),
    transparent 100%
  );
    }
  .value__catch{ font-size: 1em; line-height: 29px;}
  .value__line{ font-size: 18px; }
  .value__note{ font-size: 12px; margin-left: 1.6em; line-height: 18px; } 
    .value__desc{
        font-size: 0.65em;
        text-align: left;
        margin: 15px auto 0;
    }

    
       .voice__inner{
        margin: 0;
        padding: 0;
    }
    h3.voice-item__headline,
    .voice-item__headline.longtxt{
        font-size: 1.5em;
    }

.voice-item {
    margin-top: 10px;
    padding: 20px 25px;
  }

  .voice-list {
    width: 100%;
  }

  .voice-item__body {
    flex-direction: column; 
    position: relative;
  }

  /* 左テキスト */
  .voice-item__text {
    width: 100%;
    font-size: 1em;
    flex: none;
  }
  .voice-item__text-inner {
    padding: 20px 16px;
  }
  .voice-item__text p {
    width: 100%;
  }

  /* 写真ブロック */
  .voice-item__visual {
    position: relative;
    width: 100%;       
    display: block;      
    margin-top: 24px;
    min-height: auto;
    height: auto;
    overflow: hidden;    
  }
  .voice-item__visual::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    width: 100%;
    height: 100%;
  }

  /* 人物画像 */
 .voice-item__person {
    position: relative; 
    bottom: auto;   
    left: auto;    
    transform: none;  
    display: block;
    margin: 0 auto;  
    max-width: 80%; 
    height: auto;
    z-index: 1;
  }

  .voice-item__caption,
  .voice-item__caption2 {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.2em;
    text-align: center;
    width: 100%;
    padding: 0 10px;
    z-index: 3;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    white-space: normal;
  }
  .voice-item__caption2 span.name-r {
    margin: 0;
  }

    
    
  .plan-tablewrap.js-scrollable {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    width: 100%;
  }
    .section#flow{
        padding: 0;
    }
 
    
  .plan-tablewrap.js-scrollable .plan-table {
    min-width: 520px; 
    table-layout: auto;
    white-space: nowrap; 
  }
  .scroll-hint-icon { z-index: 10; }
    
.plan-table__save img {
    max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
  .plan-panel {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 24px 16px;
    margin: 16px auto 24px;
  }
  .plan,
  .plan__inner,
  .plan-panel__half {
    width: auto;
    max-width: 100%;
  }

  .plan-panel__item::after {
    width: 60%;
    bottom: -30px;
  }
    

  .plan-panel__title { font-size: clamp(20px, 5.2vw, 26px); }
  .plan-panel__text  { 
      text-align: left;
      font-size: 0.7em; }
    p.plan-notes__text{
        font-size: clamp(14px, 4.2vw, 16px);
    }
    h4.plan-notes__title{
        font-size: 1.2em;
    }
   .plan__inner { width: 95%; }
  .plan-table__head--blank { width: auto; }
  .plan-table th, .plan-table td { padding: 12px 10px; font-size: 14px; }
  .plan-cta { flex-direction: column; gap: 12px; }
  .plan-cta__button { min-width: 0; width: 100%; }
    .plan__lead{font-size: 22px;}
    .flow__inner{
        padding: 0;
        margin: 0;
    }
    .plan-panel__note,
    .flow-card__note{
        font-size: font-size: 8px;
    }

    .flow-steps.flow-steps {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
  }
  .flow-step {
    font-size: clamp(18px, 5vw, 22px);
    margin: 20px 0 40px;
    padding: 20px 0 40px;
  }
  .flow-step::after {
    width: 40%;
    max-width: 160px;
    height: auto;
    aspect-ratio: 230 / 62;
    background-size: contain;
  }
    .flow-card{
    width: 100%;
    max-width: 85vw;
    padding: 28px 30px 80px;
    margin: 0 auto 30px;
    position: relative;
    overflow: hidden;
    height: 500px;
    }
        .flow-card::before {
    background-size: cover;
    background-position: center top;
  }

    
    p.flow-card__title{
        font-size: 1.6em;
    }
    p.flow-sns{
        padding: 20px 25px;
    }
    .rules__list{ 
        grid-template-columns: 1fr;
        padding: 15px 20px;
    }
    .rules__notes{
        padding: 0;
        margin: 0 20px;
        font-size: clamp(14px, 4.2vw, 16px);
    }

  .message{ padding-bottom: 70px; }
  .message__row{ flex-direction: column; align-items: center; gap: 18px; }
  .message__figure{ width: 240px; margin: 0 auto; }
  .message__text{ max-width: none; font-size: 14px; width: 100%; }
    .message__text p.sign{ width: 100%; }
    .message__heading{
        margin: 0 0 100px;
        font-size: 1.6em;
    }
    .message__row{
        display: flex;
    }
    .message__figure{
        order: 2;
    }
    .faq{
        padding-bottom: 0;
    }
    .faq__question {
    padding-right: 40px;
  }
  .faq__icon {
    position: absolute;
    right: 16px;
    }
    .ft_cv__terms {
    width: 100%;
    max-width: 100%; 
    margin: 0 auto; 
    border-radius: 0;
    max-height: 300px;
    box-sizing: border-box;  /* はみ出し防止 */
    padding: 16px;           /* スマホ用の左右余白 */
    display: block;          /* inline系の崩れ防止 */
    float: none;             /* 右寄り対策 */
    position: static;        /* left/right の影響を排除 */
    transform: none;         /* translateX の影響を排除 */
    align-self: center;      /* 親が flex でも中央に */
    flex: 0 1 auto;          /* flex の伸縮で片寄らない */
    }
    .ft_cv__heading img{
        width: min(900px, 100%);
    }
      .site-nav {
    display: flex !important;
  }
  .site-nav ul {
    display: flex;
    gap: 24px;
  }
  .menu-toggle {
    display: none;
  }
    
}
