/* タブレット版用スタイル (768px - 991px) */

@media screen and (min-width: 768px) and (max-width: 991px) {
  /* Tablet: Hero */
  .top-hero {
    flex-direction: row;
    padding: 60px 0 250px;
    min-height: 600px;
  }

  .top-hero-content {
    width: 50%;
    margin-top: 40px;
  }

  .top-hero-image {
    position: absolute;
    right: -100px;
    top: 100px;
    width: 600px;
    height: auto;
  }

  .kv-inner {
    width: 120px;
    top: 200px;
    left: 200px;
  }

  .hero-title {
    font-size: 56px;
    margin-bottom: 30px;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 15px !important;
    max-width: 234px;
  }

  .hero-text {
    font-size: 14px;
    line-height: 1.7;
    max-width: 61%;
  }

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

  /* Tablet: About */
  .about-upper {
    margin-bottom: 50px;
  }

  .about-image video {
    height: 220px;
    object-fit: cover;
  }

  .about-catch {
    font-size: 18px;
  }

  .about-flex {
    flex-direction: row;
    gap: 30px;
  }

  .origin-text {
    width: 55%;
  }

  .origin-logo {
    width: 40%;
  }

  /* Tablet: Solution */
  .top-solution {
    padding: 60px 0 130px;
    margin-bottom: 60px;
  }

  .solution-inner {
    display: grid;
    grid-template-columns: 45% 45%;
    align-items: stretch;
    justify-content: space-between;
    gap: 30px;
  }

  .solution-text-area {
    width: 100%;
  }

  .solution-image {
    width: 100%;
    height: 100%;
  }

  .solution-catch {
    font-size: 18px;
  }

  /* Tablet: News */
  .news-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
  }

  .news-card {
    width: calc(50% - 15px);
  }

  /* Tablet: AI Chip */
  .top-aichip {
    margin-bottom: 100px;
  }

  .aichip-inner {
    background-size: 290px;
    background-position: top 97px right 0px;
  }

  .aichip-text {
    width: 50%;
  }

  /* Tablet: IR */
  .top-ir {
    padding: 60px 0 100px;
  }

  .ir-inner {
    display: grid;
    grid-template-columns: 45% 45%;
    align-items: stretch;
    justify-content: space-between;
  }

  .ir-catch {
    font-size: 28px;
  }

  /* 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-nav {
    padding: 8px 12% 80px !important;
  }

  .mobile-menu-item {
    margin-bottom: 10px !important;
    position: relative;
  }

  .mobile-menu-item:last-child {
    margin-bottom: 0;
  }

  .mobile-menu-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 8px 0 !important;
  }

  .mobile-menu-link {
    font-size: 24px !important;
    font-weight: 500 !important;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
  }

  .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;
  }
}
