/* スマホ版用スタイル (768px以下) */

@media screen and (max-width: 767px) {
    .sec-en {
        font-size: 30px;
    }

  .sec-ja {
    margin-bottom: 35px;
  }

  .scroll-line {
    width: 135px;
  }

  /* SP-5: padding統一 8% */
  .tai-front-page .t-container {
    padding: 0 8% !important;
  }

  /* SP-3: Hero */
  .top-hero {
    flex-direction: column;
    padding: 40px 8% 100px;
    text-align: left;
    min-height: auto;
    overflow: hidden;
  }

    .tai-front-page .top-hero-inner {
        padding-left: 0 !important;
    }

  .top-hero-content {
    width: 100%;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
      margin-top: 50px;
  }

  /* SP-3: テキスト下の配置を保ちつつ右側へ見切れさせる */
  .top-hero-image {
    position: relative;
      right: auto;
      top: auto;
      width: min(106vw, 400px);
    height: auto;
    aspect-ratio: 1/1;
    margin: 96px auto 0;
    transform: translateX(clamp(90px, 23vw, 220px));
    z-index: 1;
  }

  .kv-inner,
  .kv-outer {
    object-position: right center;
  }

  .kv-inner {
      width: 18.8%;
      top: 27.9%;
      left: 27%;
  }

  .hero-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 37px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 8px !important;
  }

    .scroll-text {
        font-size: 12px;
    }

  /* SP-3: hero-textは通常フローで全幅表示 */
  .hero-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.05em;
    width: 100%;
  }

  p.hero-text {
    font-size: 14px !important;
  }

  .about-desc,
  .about-lower-text,
  .solution-desc,
  .news-excerpt,
  .aichip-desc,
  .ir-desc {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
  }

  p.about-desc,
  p.solution-desc,
  p.news-excerpt,
  p.aichip-desc,
  p.ir-desc {
    font-size: 14px !important;
  }

  /* SP-11: Scrollテキスト表示 */
  .hero-scroll {
    display: flex;
    position: absolute;
      bottom: -92px;
    transform: rotate(90deg);
    transform-origin: left bottom;
  }

    .red-dot-title {
        font-size: 18px;
        margin-bottom: 10px;
      display: flex;
      align-items: center;
      font-weight: 600;
    }

  .red-dot-title .red-dot {
    font-size: 9px;
    margin-right: 3px;
  }

  .about-upper {
    margin-bottom: 60px;
  }

  .about-image {
    margin-bottom: 30px;
  }

  .about-image video {
    height: 181px;
    width: 100%;
    object-fit: cover;
  }

  .about-desc {
    margin-bottom: 40px;
  }

  .about-catch {
    font-size: 20px;
    line-height: 1.7;
    white-space: nowrap;
  }

  .about-sep {
    margin: 90px 0;
  }

  .about-flex {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
  }

  .top-about {
    margin-bottom: 85px !important;
  }

  .origin-text,
  .origin-logo {
    width: 100%;
  }

    .origin-logo {
        margin-top: 4px;
        display: flex;
        border: 1px solid #d9d9d9;
        justify-content: center;
        align-items: center;
        padding: 37px 26px;;
    }

  .upper-btn,
  .lower-btn {
    justify-content: flex-end;
  }

  .top-solution {
    padding: 60px 0 90px;
    margin-bottom: 80px;
  }

  .solution-inner {
    flex-direction: column;
    gap: 40px;
    grid-template-columns: auto;
  }

  /* SP-6: Solution テキスト左揃え・ボタン右揃え */
  .solution-text-area {
    width: 100%;
    text-align: left;
  }

  .solution-btn-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
  }

  .solution-catch {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 10px;
  }

  .solution-image {
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
  }

  .solution-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
  }

  .top-news {
    margin-bottom: 85px;
  }

  /* SP-7: News 横スクロール */
  .news-grid {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 16px;
  }

  .news-card {
    min-width: 260px;
    width: 260px;
    flex-shrink: 0;
  }

  .news-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
  }

  /* SP-8: aichip-innerをセクション幅いっぱいに */
  .top-aichip {
    margin-bottom: 80px;
  }

    .t-btn-outline {
        padding: 10px 18px;
        justify-content: space-between;
      font-size: 16px;
    }

  .top-aichip.t-container {
    padding: 0 4% 0 0 !important;
    max-width: 100%;
  }

  .top-aichip .section-title-area {
    padding: 0;
  }

  .top-aichip.t-container .aichip-inner {
    padding-left: 8%;
  }

  .aichip-inner {
    border-radius: 0px 20px 20px 0px;
    padding: 70px 4% 90px;
    align-items: flex-start;
    gap: 30px;
    overflow: hidden;
    background-position: top 86px right 0px;
    background-size: 170px;
  }

  .aichip-text {
    width: 100%;
    padding-right: 0;
  }

  .aichip-desc {
    width: 100%;
    margin-top: 80px;
    margin-bottom: 30px;
  }

  .aichip-image {
    width: 80%;
    margin: 0 auto;
    border-radius: 10px;
    height: auto;
    align-self: auto;
  }

  .aichip-image img {
    height: auto;
    object-fit: cover;
  }

  /* SP-6: IR テキスト左揃え・ボタン右揃え */
  .top-ir {
    padding: 60px 0;
  }

  .ir-inner {
    flex-direction: column;
    gap: 40px;
    grid-template-columns: auto;
  }

  .ir-text-area {
    color: #fff;
    padding-bottom: 18px;
  }

  .ir-catch, .ir-desc, .ir-text-area h2, .ir-text-area p {
    color: #fff !important;
  }

  .ir-catch {
    font-size: 20px;
    line-height: 1.7;
  }

  .ir-desc {
    margin-bottom: 30px;
  }

  .ir-image {
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
  }

  .ir-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
  }

  .ir-btn-wrap {
    display: block;
    text-align: right;
    margin: 18px 0 0 0;
  }

  .top-footer-banners {
    flex-direction: column;
  }

  #top-footer-banners .banner-aichip,
  #top-footer-banners .banner-careers {
    width: 100% !important;
    padding: 40px 8%;
    aspect-ratio: auto;
    min-height: 250px;
  }

  /* SP-9: フッターAI Chip 背景色 #737373 */
  #top-footer-banners .banner-aichip {
    background-color: #737373;
  }

  .banner-aichip .banner-bg img {
  }

  .banner-careers .banner-bg img {
    object-position: -11px -82px;
    object-fit: cover;
    width: 100%;
    height: 400px;

  }

  .banner-content {
    padding: 0;
  }

  .banner-title {
    font-size: 32px;
  }

  .banner-overlay-text {
    display: block;
    position: static;
    transform: none !important;
    text-align: left;
    margin-top: 10px;
    width: 50%;
  }

  .banner-overlay-text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .news-info time {
    margin-bottom: 0;
    color: #737373;
  }

  /* Header scroll behavior for mobile */
  .header {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  }

  /* Mobile Hamburger Menu UI */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    border-bottom: none !important;
  }

  .mobile-menu-close {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
  }

  .mobile-menu-close::before,
  .mobile-menu-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #1a1a1a;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .mobile-menu-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  /*.mobile-menu-link:hover::before {*/
  /*  content: '';*/
  /*  position: absolute;*/
  /*  left: 0;*/
  /*  top: 50%;*/
  /*  transform: translateY(-50%);*/
  /*  width: 8px;*/
  /*  height: 8px;*/
  /*  background-color: #c00000;*/
  /*  border-radius: 50%;*/
  /*}*/

  /* Solution Submenu (2-column) — header と同一クラス */
  .mobile-submenu--solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px !important;
    margin-top: 0px !important;
    padding-left: 0;
  }

  .mobile-submenu--solution .mobile-submenu-item {
    margin-bottom: 0px !important;
  }

  .mobile-submenu--solution .mobile-submenu-link {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    padding: 5px 0 0px !important;
  }

  /* Technology Submenu (horizontal) */
  .mobile-submenu--technology {
    display: flex;
    flex-wrap: wrap;
    gap: 0 !important;
    margin-top: 0 !important;
    padding-left: 0;
  }

  .mobile-submenu--technology .mobile-submenu-item {
    margin-bottom: 0;
  }

  .mobile-submenu--technology .mobile-submenu-link {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    padding: 5px 0px 0px !important;
    border: none !important;
    border-radius: 20px;
    white-space: nowrap;
    margin-right: 18px;
  }

  .mobile-submenu-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
  }

  .mobile-submenu-link:hover {
    color: #c00000;
  }


}
