/* レスポンシブスタイル */
@media (max-width: 1280px) {
  .hero-left {
    width: 45%;
  }

  .hero-right {
    width: 55%;
  }
}

@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
  }

  .hero-left {
    width: 100%;
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }

  .hero-right {
    width: 100%;
    max-width: 600px;
  }

  .hero-title {
    font-size: 32px;
    text-align: center;
  }

  .hero-description {
    font-size: 1.1rem;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .features-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .case-item {
    flex-direction: column;
  }

  .case-image {
    flex: 0 0 200px;
  }

  .search-field {
    width: 150px;
  }

  .header-menu a {
    width: auto;
    padding: 0 10px;
    font-size: 12px;
  }

  .header-menu li {
    margin-left: 15px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    width: 100%;
  }

  .product-card .product-image {
    padding: 25px 0 0;
  }

  .product-card .product-image img {
    width: 220px;
    height: 50px;
  }

  .product-card-container {
    width: 100%;
    margin: 70px auto 50px;
  }

  .product-bg-1 {
    width: 250px;
    height: 250px;
    top: -60px;
    left: -70px;
  }

  .product-bg-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -60px;
  }

  .product-card {
    width: 100%;
  }

  .product-card .product-image {
    padding: 25px 0 0;
  }

  .product-card .product-image img {
    width: 220px;
    height: 50px;
  }

  .product-card .product-content {
    padding: 20px 30px 30px;
  }

  .product-section {
    padding: 70px 0;
  }

  .footer-widgets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0;
  }

  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-image {
    margin-top: 30px;
  }

  .hero-image img {
    max-width: 100%;
  }

  .features-grid,
  .services-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-title-icon {
    width: 36px;
    height: 36px;
    margin-left: 10px;
  }

  /* 会社概要セクションの背景画像を非表示 */
  .company-section::before {
    display: none;
  }

  /* ヘッダー固定表示のモバイル調整 */
  .site-header {
    height: var(--header-mobile-height); /* 変数を使用 */
  }

  .header-wrapper {
    height: var(--header-mobile-height); /* 変数を使用 */
  }

  body {
    padding-top: var(--header-mobile-height); /* 変数を使用 */
  }

  .top-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-bar-right {
    margin-top: 10px;
    align-self: flex-start;
  }

  .social-links a {
    margin-left: 0;
    margin-right: 15px;
  }

  .header-inner {
    padding: 0;
    align-items: center;
  }

  .search-form-container {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
  }

  .main-navigation {
    width: 100%;
  }

  .primary-menu-container {
    display: none;
  }

  .primary-menu-container.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
  }

  nav li {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .sub-menu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    margin: 60px auto 40px;
    width: 100%;
  }

  .product-card .product-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .product-card .product-image {
    padding: 20px 0 0;
  }

  .product-card .product-image img {
    width: 200px;
    height: 46px;
  }

  .product-card-container {
    margin: 60px auto 40px;
  }

  .product-bg-1 {
    width: 200px;
    height: 200px;
    top: -40px;
    left: -40px;
  }

  .product-bg-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    right: -30px;
  }

  .product-card {
    width: 100%;
  }

  .product-card .product-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .product-card .product-image {
    padding: 20px 0 0;
  }

  .product-card .product-image img {
    width: 200px;
    height: 46px;
  }

  .product-section {
    padding: 60px 0;
  }

  .product-section .section-header {
    padding-left: 15px;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-date {
    margin-bottom: 10px;
  }

  .news-arrow {
    margin-left: auto;
    margin-top: 10px;
  }

  .footer-widgets-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-menu {
    margin-top: 15px;
    justify-content: center;
  }

  .footer-bottom-menu li {
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-image {
    margin-top: 20px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-title-icon {
    width: 30px;
    height: 30px;
    margin-left: 8px;
  }

  .feature-item,
  .service-content,
  .case-content {
    padding: 20px;
  }

  .site-title {
    font-size: 1.5em;
  }

  .hero-section {
    padding: 50px 0;
  }

  .hero-content h2 {
    font-size: 1.8em;
  }

  .product-card {
    margin: 40px auto 30px;
    width: 100%;
  }

  .product-card .product-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .product-card .product-image {
    padding: 15px 0 0;
  }

  .product-card .product-image img {
    width: 180px;
    height: 41px;
  }

  .product-card .product-content {
    padding: 15px 20px 20px;
  }

  .view-more-btn {
    font-size: 18px;
    padding: 5px 15px;
  }

  .product-card-container {
    margin: 40px auto 30px;
  }

  .product-bg-1 {
    width: 150px;
    height: 150px;
    top: -30px;
    left: -20px;
  }

  .product-bg-2 {
    width: 120px;
    height: 120px;
    bottom: -20px;
    right: -20px;
  }

  .product-card {
    width: 100%;
  }

  .product-card .product-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .product-card .product-image {
    padding: 15px 0 0;
  }

  .product-card .product-image img {
    width: 180px;
    height: 41px;
  }

  .product-card .product-content {
    padding: 15px 20px 20px;
  }

  .view-more-btn {
    font-size: 18px;
    padding: 5px 15px;
  }

  .product-section {
    padding: 50px 0;
  }

  .product-section .section-header {
    padding-left: 10px;
  }

  .footer-widget-title {
    font-size: 1.1rem;
  }
}

/* Mobile Navigation Styles */
@media screen and (max-width: 768px) {
  .header-navigation {
    display: none;
    position: fixed;
    top: 80px; /* ヘッダーの高さに応じて調整 */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #fff;
    z-index: 1000;
    overflow-y: auto;
  }

  .header-navigation.is-active {
    display: block;
  }

  .header-menu {
    flex-direction: column;
    padding: 20px;
  }

  .header-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
  }

  .header-menu li a {
    display: block;
    padding: 15px 0;
    font-size: 16px;
  }

  /* ドロップダウンメニューのスタイル */
  .has-dropdown .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    padding-left: 20px;
    box-shadow: none;
    background-color: #f5f5f5;
  }

  .has-dropdown.is-active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li {
    border-bottom: none;
  }

  .dropdown-menu li a {
    padding: 10px 0;
    font-size: 14px;
  }

  /* ハンバーガーメニューのスタイル */
  .menu-toggle {
    display: block;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
  }

  .menu-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s;
  }

  .menu-icon::before,
  .menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s;
  }

  .menu-icon::before {
    top: -8px;
  }

  .menu-icon::after {
    top: 8px;
  }

  /* ハンバーガーメニューのアクティブ状態 */
  .menu-toggle.is-active .menu-icon {
    background-color: transparent;
  }

  .menu-toggle.is-active .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle.is-active .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

/* タブレット用の調整 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .header-menu {
    gap: 15px;
  }

  .header-menu li a {
    font-size: 14px;
  }
}
