/* レスポンシブスタイル */
/* process-steps関連のスタイルはstep.cssで詳細に管理されているため、ここでは削除 */

@media (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-visual {
        order: 0;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .panel-content {
        grid-template-columns: 1fr;
    }
    
    .local-support {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .demo-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .support-types {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    p {
        word-break: initial
    }
    .logo a {
        gap: 0.5rem;
    }
    
    .logo-image {
        width: 120px;
        height: 67.5px;
    }
    
    .logo-sub {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2.8rem;
        padding: 0 1rem;
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: normal;
        overflow: visible;
    }
    
    .highlight-section .section-title {
        left: auto;
        transform: none;
        display: block;
        position: static;
    }
    
    /* フローティングボタンをモバイルで表示 */
    .floating-contact-btn {
        display: flex;
    }
    
    /* モバイル用features section最適化 */
    .features-tabs {
        margin-top: 4rem;
    }
    
    /* タブナビゲーションを非表示 */
    .tabs-navigation {
        display: none;
    }
    
    /* タブ機能は削除済み（レガシーコード） */
    
    /* パネルコンテンツをモバイル最適化 */
    .panel-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .panel-text h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        color: var(--primary-dark);
        border-left: 4px solid var(--primary);
        padding-left: 1.5rem;
    }
    
    .feature-list {
        margin-top: 1.5rem;
    }
    
    .feature-list li {
        margin-bottom: 1.2rem;
        line-height: 1.6;
        padding-left: 1.5rem;
        position: relative;
    }
    
    .feature-list li:before {
        content: "✓";
        position: absolute;
        left: 0;
        color: var(--primary);
        font-weight: bold;
    }
    
    .panel-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .panel-image img {
        width: 100%;
        border-radius: 8px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .contact-btn {
        display: none;
    }
    
    .features-tabs {
        margin-top: 4rem;
    }
    
    .tabs-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    /* タブ機能は削除済み（レガシーコード） */
    
    .pricing-container {
        flex-direction: column;
        align-items: center;
    }
    
    .price-card {
        width: 100%;
        max-width: 350px;
        margin-bottom: 3rem;
    }
    
    .price-card.popular {
        transform: none;
        order: -1;
    }
}

@media (max-width: 576px) {
    section {
        padding: 8rem 0;
    }
    
    .section-title {
        font-size: 2.4rem;
        padding: 0 1rem;
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: normal;
        overflow: visible;
    }
    
    .highlight-section .section-title {
        left: auto;
        transform: none;
        display: block;
        position: static;
    }
    
    /* 小さい画面でのフローティングボタン調整 */
    .floating-contact-btn {
        width: 5.5rem;
        height: 5.5rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .floating-contact-btn i {
        font-size: 1.4rem;
    }
    
    .floating-contact-btn span {
        font-size: 0.9rem;
    }
    
    /* タブ機能は削除済み（レガシーコード） */
    
    .panel-text h3 {
        font-size: 1.8rem;
        padding-left: 1rem;
    }
    
    .feature-list li {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding-left: 1.2rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    /* タブ機能は削除済み（レガシーコード） */
    
    .writing-support {
        padding: 3rem 2rem;
    }
}

@media screen and (max-width: 768px) {
  .logo-char {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .reveal-text {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}
/* スマホ用ナビ開閉スタイル */
.nav-menu {
  display: none;
  flex-direction: column;
  background-color: var(--bg-white);
  position: absolute;
  top: 60px; /* ヘッダーの高さに応じて調整 */
  left: 0;
  width: 100%;
  z-index: 999;
}

.nav.open .nav-menu {
  display: flex;
}

@media screen and (min-width: 769px) {
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
  }
}
