

/* ===========================
   スマホ版専用スタイル（640px以下）
   =========================== */
@media screen and (max-width: 640px) {
  /* ベース調整 */
  img {
    max-width: 100%;
  }

  section {
    padding: 30px 20px;
  }

  /* レスポンシブ画像対応（スマホ） */
  .process-image,
  .ai-process-image {
    width: 100%;
    max-width: none;
  }

  .process-image img,
  .ai-process-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* hero-area */
  .section-hero {
    padding: 30px 20px;
    height: auto;
  }

  .skew-bg-block:after {
    left: 148.5%;
    width: 300vw;
  }

  .key-visual {
    padding-left: 0;
    height: 383px;
  }

  .hero-logo {
    width: 120px;
    top: -5px;
    left: 0;
  }

  .hero-title-area {
    top: 45px;
    left: 0;
  }

  .hero-title-area .preface-text {
    margin-top: 0px;
    line-height: 1.5;
  }

  .hero-title-area .hero-title {
    margin-top: 16px;
    line-height: 1.25;
  }

  .hero-kv {
    width: 550px;
    top: 0px;
    left: 58%;
  }

  .hero-attention-text {
    font-size: 8px;
  }

  /* フォーム関連 */
  .section-hero .trial-form {
    height: auto;
    flex-direction: column;
  }

  .trial-form {
    width: unset;
    height: auto;
    flex-direction: column;
  }

  .trial-form .form-input-group {
    row-gap: 16px;
  }

  .form-input-group .input-form {
    height: 43px;
    font-size: 19px;
  }

  .trial-form .flex {
    flex-direction: column;
    row-gap: 16px;
  }

  .form-input-group .flex .input-wrapper:not(:first-child) {
    margin: 0;
  }

  .trial-form .inner {
    height: auto;
  }

  .trial-form .left-area {
    width: 100%;
    padding: 36px 25px 32px;
    border-radius: 22px 22px 0 0;
    background-size: cover;
  }

  .section-hero .trial-form .right-area {
    border-radius: 0 0 22px 22px;
  }

  .trial-form .right-area {
    width: auto;
    padding: 36px 25px 32px;
    border-radius: 22px;
  }

  .form-attention-text {
    margin-top: 16px;
  }

  /* section-issue */
  .section-issue {
    padding-bottom: 0;
  }

  .section-issue .worry {
    height: 600px;
  }

  .section-issue .total-worries {
    margin-top: 12px;
  }

  .worry-about--upper-right {
    top: 80px;
    left: 0;
    bottom: unset;
    left: unset;
  }

  .worry-about--lower-left {
    left: 0;
    top: 170px;
    bottom: unset;
    left: unset;
  }

  .worry-about--lower-right {
    right: 0;
    top: 280px;
  }

  /* problem-solving */
  .problem-solving {
    margin-top: 30px;
  }

  .problem-solving-title {
    flex-direction: column;
    align-items: center;
    row-gap: 4px;
  }

  .problem-solving-sub {
    margin: 16px 0 34px;
  }

  .process-image {
    width: 100%;
    max-width: 325px;
    margin: 0 auto;
  }

  .problem-solving-attention-text {
    width: 80%;
    margin: 10px auto 0;
  }

  /* pptx-ai */
  .pptx-ai {
    width: 100%;
    margin: 30px auto 0;
    padding: 30px 5%;
  }

  .pptx-ai-title-sub {
    margin-bottom: 28px;
  }

  .pptx-ai-title {
    margin-bottom: 30px;
  }

  .ai-process-image {
    width: 85%;
    max-width: 300px;
    margin: 0 auto;
  }

  .pptx-ai-content {
    flex-direction: column;
    width: 90%;
    margin: 30px auto 0;
    padding-bottom: 0px;
    row-gap: 40px;
  }

  .ai-content {
    width: 100%;
    padding: 0;
    border: none;
    position: relative;
  }

  .ai-content:after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #b2c0df;
  }

  .ai-content--end:after {
    display: none;
  }

  /* section-shift-documents */
  .section-shift-documents {
    padding: 60px 0 0;
  }

  .section-title-sub.title-decoration:before,
  .section-title-sub.title-decoration:after {
    width: 30px;
  }

  .section-title-sub.title-decoration::before {
    left: -50px;
  }

  .section-title-sub.title-decoration::after {
    right: -50px;
  }

  .section-shift-documents .section-inner {
    text-align: center;
  }

  .band-area {
    display: none; /* スマホ版では通常のband-areaを非表示 */
  }

  /* スマホ版専用特徴レイアウト */
  .features-mobile-layout {
    display: block;
    margin-top: 30px;
    padding-bottom: 0px;
    background: #fff;
  }

  .feature-section {
    padding: 50px 20px 0;
    margin-bottom: 40px;
    text-align: center;
    color: #000;
    background: linear-gradient(150deg, #CBF8FF 0%, #BCE8FC 45%, #1938de 100%);
  }

  .feature-section:last-child {
    margin-bottom: 0;
  }

  .feature-content {
    width: 95%;
    max-width: 450px;
    margin: 0 auto;
  }

  .feature-title {
    font-size: clamp(21px, 5.75vw, 23px);
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #1A3BE1;
    white-space: nowrap;
  }

  .feature-description {
    font-size: clamp(14px, 3.75vw, 15px);
    line-height: 1.6;
    margin-bottom: 30px;
    color: #000;
  }

  .feature-section:last-child .feature-description {
    margin-bottom: 0;
  }

  .feature-image {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    top: 5px;
  }

  .feature-section:last-child .feature-image {
    top: 0;
  }

  .feature-image img {
    width: 100%;
    height: auto;
    max-width: 450px;
    object-fit: contain;
  }

  /* section-cta-area */
  .section-cta-area {
    padding: 40px 0;
  }

  /* section-company-about */
  .section-company-about {
    padding: 30px 20px;
  }

  .company-logo {
    width: 100%;
    max-width: 100px;
    max-height: 100px;
    margin: 0 auto;
  }

  .company-logo img {
    width: 100%;
    max-width: 100px;
    max-height: 100px;
  }

  .company-info {
    margin-top: 30px;
  }

  .company-info .name {
    text-align: center;
  }

  .company-info .site-link {
    width: calc(100% - 30px);
    text-align: right;
    padding-right: 30px;
  }

  .section-company-about .company-info-area {
    display: block;
    margin-top: 30px;
  }

  .client-company {
    display: none;
  }

  /* スマホ版専用：ロゴ横スクロール表示 */
  .client-logos-mobile {
    display: block;
    margin-top: 30px;
    overflow: hidden;
  }

  .client-logos-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
  }

  .client-logos-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(90deg, 
      rgba(255,255,255,1) 0%, 
      rgba(255,255,255,0) 5%, 
      rgba(255,255,255,0) 95%, 
      rgba(255,255,255,1) 100%);
  }

  .client-logos-scroll {
    display: flex;
    align-items: center;
    animation: scrollLogos 50s linear infinite;
    width: calc(350% + 100px);
  }

  .client-logo-item {
    flex: 0 0 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .client-logo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }

  .client-logo-item img {
    max-width: 90px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }

  .client-logo-item:hover img {
    opacity: 1;
  }

  /* アニメーション：右から左へスクロール */
  @keyframes scrollLogos {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* ホバー時にアニメーションを一時停止 */
  .client-logos-container:hover .client-logos-scroll {
    animation-play-state: paused;
  }

  /* アクセシビリティ：プリファーアニメーションなしの場合 */
  @media (prefers-reduced-motion: reduce) {
    .client-logos-scroll {
      animation: none;
    }
    
    .client-logos-container {
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    
    .client-logos-container::-webkit-scrollbar {
      display: none;
    }
    
    .client-logos-scroll {
      width: auto;
      animation: none;
    }
  }

  /* section-trial-form  */
  .section-trial-form {
    padding-top: 30px;
    padding-bottom: 30px;
    height: auto;
  }

  .section-trial-form .form-head-text {
    text-align: left;
  }

  /* footer */
  .footer {
    height: 200px;
    padding: 20px;
    box-sizing: border-box;
  }

  .footer-inner {
    display: block;
    padding: 0;
  }

  .footer .footer-inner .company-area {
    flex-direction: column;
  }

  .footer .footer-inner .company-area .company-name {
    padding-top: 10px;
    padding-left: 0;
  }

  .footer .footer-inner .company-area .company-name::after {
    display: none;
  }

  /* 表示非表示 */
  .show-sml {
    display: block;
  }

  .hide-sml {
    display: none;
  }

  /* 利用規約ページ */
  .section-terms {
    padding: 20px 15px;
  }

  .terms-container {
    flex-direction: column;
    gap: 15px;
  }

  .terms-content {
    order: 2;
    padding-bottom: 40px;
  }

  .terms-toc {
    order: -1;
    width: 100%;
    position: static;
    max-height: none;
    overflow-y: visible;
    margin-left: 0;
    margin-bottom: 20px;
    padding: 20px;
    top: auto;
  }

  .terms-toc-title {
    position: static;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 16px;
  }

  .terms-page-title {
    font-size: 24px;
  }

  .terms-section-title {
    font-size: 18px;
    margin: 30px 0 15px 0;
    padding-left: 15px;
    border-left-width: 3px;
  }

  .terms-list {
    padding-left: 15px;
  }

  .terms-sub-list {
    padding-left: 15px;
  }

  .terms-toc-list a {
    font-size: 13px;
    padding: 6px 8px;
  }

  .terms-list li {
    font-size: 15px;
  }

  .terms-sub-list li {
    font-size: 14px;
  }

  /* モバイルヘッダー（スマホ版で表示） */
  .mobile-header {
    display: none;
  }

  .mobile-menu-overlay {
    display: block !important;
  }

  /* pagetopボタン非表示 */
  .js-pagetop {
    display: none !important;
  }

  /* フローティングバナー（スマホ版のみ） */
  .floating-banner {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    z-index: 999;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .floating-banner:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .floating-banner.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
  }

  /* スクロール中は文字を非表示 */
  .floating-banner.scrolling {
    opacity: 0;
  }

  .floating-banner-link {
    display: block;
    text-decoration: none;
    background: #fa4e0e;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(250, 78, 14, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
  }

  .floating-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(250, 78, 14, 0.4);
    background: #e8450c;
  }

  .floating-banner-link:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(250, 78, 14, 0.3);
    transition: all 0.1s ease;
  }

  .floating-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
  }

  .floating-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .floating-banner-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    transition: all 0.2s ease;
  }

  .floating-banner-link:hover .floating-banner-title {
    transform: translateX(1px);
  }

  .floating-banner-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
  }

  .floating-banner-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(4px);
    transform: rotate(90deg);
  }

  .floating-banner-link:hover .floating-banner-arrow {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg) translateX(3px) scale(1.05);
  }

  .floating-banner-link:active .floating-banner-arrow {
    transform: rotate(90deg) translateX(1px) scale(0.95);
    transition: all 0.1s ease;
  }
}