/* 
 * Mobile Styles - Responsive Design
 * 休眠特許マッチング - yasutake.net
 * モバイル対応（将来調整用）
 */

/* ===== MOBILE BREAKPOINTS ===== */

/* Tablet (768px以下) */
@media (max-width: 768px) {
    /* 横スクロール完全防止 */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* ヘッダー高さを調整 */
    :root {
        --header-height: 64px;
    }
    .container {
        padding: 0 var(--space-4);
    }

    .section {
        padding: var(--space-12) 0;
    }

    /* スライダーのoverflow制御 */
    .hero .hero-slider {
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative !important;
    }

    .hero .slider-container {
        width: 300% !important;
        max-width: 300vw !important;
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .hero .slide {
        width: 33.333% !important;
        min-width: 33.333% !important;
        max-width: 33.333% !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }

    /* スマホ版のスライダー背景画像（WebP） */
    .slide-bg-1 {
        background-image:
            linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(51,65,85,0.6) 50%, rgba(71,85,105,0.75) 100%),
            url('../img/kyuumin_tokkyo1_sp.webp');
    }

    .slide-bg-2 {
        background-image:
            linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(51,65,85,0.6) 50%, rgba(71,85,105,0.75) 100%),
            url('../img/kyuumin_tokkyo2_sp.webp');
    }

    .slide-bg-3 {
        background-image:
            linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(51,65,85,0.6) 50%, rgba(71,85,105,0.75) 100%),
            url('../img/kyuumin_tokkyo3_sp.webp');
    }

    .slide-content {
        padding: var(--space-8) var(--space-4);
    }

    .slide-content h1,
    .slide-content h2 {
        font-size: var(--font-size-3xl);
        line-height: 1.2;
    }
    
    .slide-content p {
        font-size: var(--font-size-lg);
    }
    
    /* ハンバーガーメニューの表示 */
    .hamburger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 26px !important;
        height: 18px !important;
        min-width: 26px !important;
        max-width: 26px !important;
        min-height: 18px !important;
        max-height: 18px !important;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        position: relative;
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 2.5px !important;
        background-color: var(--dark-navy);
        border-radius: 1px;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
    }

    .hamburger-menu span:nth-child(1) {
        top: 0;
    }

    .hamburger-menu span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger-menu span:nth-child(3) {
        bottom: 0;
    }

    /* ハンバーガーメニューアクティブ状態（×ボタン） */
    .hamburger-menu.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    /* ナビゲーションメニューのモバイル対応 */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: var(--space-6);
        gap: var(--space-4);
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-4);
        font-size: var(--font-size-base);
    }
    
    /* モバイル用ロゴサイズ調整 */
    .logo-image {
        height: 44px !important;
        max-width: 240px !important;
    }
    
    /* モバイル用ボタンサイズ調整 */
    .header-nav .btn {
        font-size: var(--font-size-sm);
        padding: var(--space-3) var(--space-4);
        min-height: 40px;
    }
    
    /* スライダー統計をタブレットでは2列に */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-1);
        max-width: 500px;
        margin: var(--space-4) auto var(--space-6) auto;
    }
    
    /* タブレット用統計カードパディング調整 */
    .stats-container > div {
        padding: var(--space-1) var(--space-3);
    }
    
    /* ヒーロー部分の上下バランス調整 */
    .slide-content {
        padding: var(--space-6) var(--space-4);
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 85vh;
    }
    
    /* スライドインジケーターの位置調整 */
    .slider-indicators {
        bottom: var(--space-6);
        margin-bottom: 0;
    }
    
    /* モバイル用矢印ボタンサイズ調整 */
    .slider-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        font-size: 20px;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
    }

    .slider-btn-prev {
        left: var(--space-4);
    }

    .slider-btn-next {
        right: var(--space-4);
    }
    
    /* グリッドをシングルカラムに */
    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: repeat(1, 1fr);
    }
    
    /* 専門家監修セクションのレイアウト調整 */
    .expert-image {
        margin-bottom: var(--space-4);
    }
    
    .expert-image img {
        max-width: 300px;
    }
    
    /* フィーチャーカードのサイズ調整 */
    .feature-card {
        min-height: auto;
    }

    .feature-image {
        height: 220px;
    }
    
    /* バッジサイズをタブレット向けに調整 */
    .badge-blue, .badge-green, .badge-orange {
        min-width: 420px;
        max-width: 540px;
        padding: var(--space-6) var(--space-12);
    }
    
    .badge-title {
        font-size: 2.1rem;
        font-weight: 700;
    }
    
    .badge-subtitle {
        font-size: 1.8rem;
        font-weight: 600;
    }
}

/* スマートフォン (640px以下) */
@media (max-width: 640px) {
    /* ヘッダー高さを更に調整 */
    :root {
        --header-height: 39px;
    }
    /* 小画面用ロゴサイズ調整 */
    .logo-image {
        height: 36px !important;
        max-width: 200px !important;
    }
    
    /* スマホでのヘッダー内ロゴ位置調整 */
    .header-nav {
        padding: var(--space-2) 0;
    }
    
    .logo-container {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }
    
    /* ヘッダーボタンを更にコンパクトに */
    .header-nav .btn {
        font-size: var(--font-size-xs);
        padding: var(--space-2) var(--space-3);
    }
    
    /* カード間の余白を調整 */
    .grid.grid-cols-1.grid-cols-lg-2 {
        gap: var(--space-6);
    }
    
    /* フォントサイズを小画面用に調整 */
    h1 { font-size: var(--font-size-2xl); }
    h2 { font-size: var(--font-size-xl); }
    h3 { font-size: var(--font-size-lg); }
    
    /* パディングをコンパクトに */
    .card-body {
        padding: var(--space-6);
    }
    
    .section {
        padding: var(--space-10) 0;
    }
    
    /* ボタンを小さく */
    .btn {
        padding: var(--space-3) var(--space-6);
        min-height: 40px;
        font-size: var(--font-size-base);
    }
    
    .btn-lg {
        padding: var(--space-4) var(--space-8);
        font-size: var(--font-size-lg);
        min-height: 48px;
    }
    
    /* スライダー統計をスマホでは1列に */
    .stats-container {
        grid-template-columns: repeat(1, 1fr);
        gap: var(--space-1);
        max-width: 280px;
        margin: var(--space-3) auto var(--space-4) auto;
    }
    
    /* スライダーのoverflow制御 */
    .hero .hero-slider {
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .hero .slider-container {
        width: 300% !important;
        max-width: 300vw !important;
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .hero .slide {
        width: 33.333% !important;
        min-width: 33.333% !important;
        max-width: 33.333% !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }

    /* スライドコンテンツのパディング調整 */
    .slide-content {
        padding: var(--space-4) var(--space-3);
        min-height: 90vh;
        justify-content: center;
    }
    
    /* スマホ用統計カード間隔調整 */
    .stat-card {
        padding: var(--space-1);
        margin-bottom: 2px;
    }
    
    /* 統計カード個別パディング調整 */
    .stats-container > div {
        padding: var(--space-1) var(--space-3);
    }
    
    /* スライドインジケーターをより下に */
    .slider-indicators {
        bottom: var(--space-4);
    }
    
    .slide-content h1,
    .slide-content h2 {
        font-size: var(--font-size-2xl);
        line-height: 1.1;
    }

    .slide-content .hero-paragraph {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-4);
    }

    /* ヒーロー部分の要素間調整 */
    .slide-content h1,
    .slide-content h2 {
        margin-bottom: var(--space-3);
    }
    
    .slide-content p {
        margin-bottom: var(--space-3);
    }
    
    /* バッジをスマホサイズに */
    .badge-blue, .badge-green, .badge-orange {
        min-width: 390px;
        max-width: 480px;
        padding: var(--space-4) var(--space-9);
    }
    
    .badge-title {
        font-size: 1.95rem;
        font-weight: 700;
    }
    
    .badge-subtitle {
        font-size: 1.65rem;
        font-weight: 600;
    }
    
    /* フォームレイアウト調整 */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-input {
        font-size: var(--font-size-base);
    }
    
    /* 特許一覧のレイアウト調整 */
    .grid-auto-fit {
        grid-template-columns: 1fr;
    }
    
    /* ナビメニューのサイズ調整 */
    .nav-menu {
        width: 260px;
    }
}

/* 非常に小さい画面 (480px以下) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }

    /* スライダーのoverflow制御 */
    .hero .hero-slider {
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .hero .slider-container {
        width: 300% !important;
        max-width: 300vw !important;
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .hero .slide {
        width: 33.333% !important;
        min-width: 33.333% !important;
        max-width: 33.333% !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }

    /* 超小画面でのヒーローバランス調整 */
    .slide-content {
        padding: var(--space-3) var(--space-2);
        min-height: 88vh;
    }
    
    .stats-container {
        gap: 2px;
        margin: var(--space-2) auto var(--space-3) auto;
        max-width: 260px;
    }
    
    .stat-card {
        padding: 2px;
    }
    
    /* 超小画面用統計カードパディング */
    .stats-container > div {
        padding: 2px var(--space-2);
    }
    
    .section {
        padding: var(--space-8) 0;
    }
    
    /* 最小フォントサイズ確保 */
    h1 { font-size: var(--font-size-xl); }
    h2 { font-size: var(--font-size-lg); }
    
    /* カードをさらにコンパクトに */
    .card-body {
        padding: var(--space-4);
    }
    
    /* 統計数値を小さく */
    .stat-number {
        font-size: var(--font-size-2xl);
    }
    
    /* ナビメニュー幅調整 */
    .nav-menu {
        width: 240px;
        padding: var(--space-3);
    }

    /* スライダーのoverflow制御 */
    .hero .hero-slider {
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .hero .slider-container {
        width: 300% !important;
        max-width: 300vw !important;
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .hero .slide {
        width: 33.333% !important;
        min-width: 33.333% !important;
        max-width: 33.333% !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }

    /* 極小画面用のスライドコンテンツ */
    .slide-content {
        padding: var(--space-4) var(--space-2);
    }

    .slide-content h1,
    .slide-content h2 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-4);
    }
    
    .slide-content .hero-paragraph {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-4);
    }
    
    /* ボタンサイズ調整 */
    .btn {
        font-size: var(--font-size-sm);
        padding: var(--space-2) var(--space-4);
    }
    
    .btn-lg {
        font-size: var(--font-size-base);
        padding: var(--space-3) var(--space-6);
    }
    
    /* バッジを最小サイズに */
    .badge-blue, .badge-green, .badge-orange {
        min-width: 320px;
        max-width: 400px;
        padding: var(--space-4) var(--space-8);
    }
    
    .badge-title {
        font-size: 1.6rem;
        font-weight: 700;
    }
    
    .badge-subtitle {
        font-size: 1.3rem;
        font-weight: 600;
    }
    
    /* スライダーボタンをさらに小さく */
    .slider-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        font-size: 16px;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
    }
    
    /* 統計数値の間隔を詰める */
    .stats-container {
        gap: var(--space-2);
    }
    
    /* フィーチャー画像を小さく */
    .feature-image {
        height: 220px;
    }
    
    /* 専門家画像を小さく */
    .expert-image img {
        max-width: 200px;
    }
    
    /* フォントサイズの最終調整 */
    .form-label {
        font-size: var(--font-size-base);
    }
    
    .form-input {
        font-size: var(--font-size-sm);
        padding: var(--space-3);
    }
}

/* ==========================================
   レポートページ用モバイルスタイル
   ========================================== */

/* タブレット・スマホ共通 (768px以下) */
@media (max-width: 768px) {
    /* ヘッダー追従設定 */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 6px 0 !important;
    }

    .header-nav {
        height: auto !important;
        min-height: auto !important;
        padding: 0 !important;
        gap: 0;
    }

    .container {
        padding: 0 16px !important;
    }

    /* ロゴの上下余白を狭く */
    .logo-container {
        display: flex;
        align-items: center;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1;
    }

    .logo-image {
        height: 38px !important;
        max-width: 220px !important;
        display: block;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ハンバーガーメニューを小さく */
    .hamburger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 24px !important;
        height: 17px !important;
        min-width: 24px !important;
        max-width: 24px !important;
        min-height: 17px !important;
        max-height: 17px !important;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        position: relative;
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 2.5px !important;
        background-color: var(--dark-navy);
        border-radius: 1px;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
    }

    .hamburger-menu span:nth-child(1) {
        top: 0;
    }

    .hamburger-menu span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger-menu span:nth-child(3) {
        bottom: 0;
    }

    /* ハンバーガーメニューアクティブ状態（×ボタン） */
    .hamburger-menu.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    /* ナビメニューはハンバーガークリックで表示 */
    .nav-menu {
        position: fixed;
        top: 50px;
        right: -100%;
        width: 240px;
        height: calc(100vh - 50px);
        background: white;
        flex-direction: column;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 20px;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    /* 横スクロール防止 */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    body {
        margin: 0;
        padding: 0;
    }

    /* レポートコンテナ（ヘッダー分の余白確保） */
    .report-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
        margin: 0 !important;
        margin-top: 0 !important;
        border-radius: 0;
        overflow-x: hidden;
    }

    /* ヘッダーエリア */
    .report-header {
        padding: 20px 15px 15px 15px !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .report-title,
    #patent-title {
        font-size: 20px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px;
        padding-bottom: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .header-top {
        margin-bottom: 10px;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        max-width: 100%;
    }

    .badge {
        font-size: 11px;
        padding: 4px 10px;
        white-space: nowrap;
        max-width: calc(50% - 6px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .report-meta {
        flex-wrap: wrap;
        font-size: 12px;
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    .report-meta .separator {
        display: none;
    }

    .report-meta span {
        display: inline-block;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* 2カラムを1カラムに */
    .main-content {
        display: block !important;
        grid-template-columns: none !important;
        padding: 15px !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .col-main,
    .col-side {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-bottom: 15px;
        box-sizing: border-box;
    }

    /* セクションカード */
    .section-card {
        margin-bottom: 16px;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .card-header {
        padding: 12px 15px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .card-content {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* すべてのテキスト要素が画面幅を超えないようにする */
    .section-card *,
    .card-content *,
    .info-table *,
    .report-header * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* AI要約カード */
    .ai-summary-card {
        margin-bottom: 20px;
    }

    .ai-summary-text {
        font-size: 14px;
        line-height: 1.8;
    }

    /* 基本情報カード */
    .info-row {
        flex-direction: column;
        padding: 10px 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .info-row:last-child {
        border-bottom: none;
    }

    .info-label {
        font-size: 12px;
        font-weight: 600;
        color: #64748b;
        margin-bottom: 4px;
    }

    .info-value {
        font-size: 13px;
        color: #1e293b;
    }

    /* グラフコンテナ */
    .radar-container,
    .chart-container {
        height: 220px;
        margin: 10px 0;
    }

    /* コストカード */
    .cost-card {
        margin-bottom: 12px;
    }

    .cost-amount {
        font-size: 22px;
    }

    .cost-breakdown {
        font-size: 12px;
    }

    /* ピボット案・業界リスト */
    .pivot-idea-item,
    .industry-item {
        padding: 12px;
        margin-bottom: 8px;
        font-size: 13px;
    }

    .pivot-idea-title,
    .industry-name {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .pivot-idea-desc,
    .industry-reason {
        font-size: 12px;
    }

    .review-grid {
        display: block !important;
        grid-template-columns: none !important;
        width: 100%;
        max-width: 100%;
        gap: 20px;
    }

    .monetization-section,
    .consultant-section {
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .monetization-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }

    .monetization-tag {
        font-size: 12px;
        padding: 8px 12px;
    }

    .section-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .consultant-text {
        font-size: 13px;
        line-height: 1.7;
    }

    .review-card {
        margin-bottom: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .review-title {
        font-size: 16px;
    }

    .review-content {
        font-size: 13px;
        line-height: 1.7;
    }

    /* CTAボックス */
    .cta-box {
        padding: 20px 15px;
        margin: 20px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cta-title {
        font-size: 16px;
    }

    .cta-description {
        font-size: 13px;
    }

    /* アクションボタン */
    .action-buttons,
    .action-buttons-area {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .btn,
    button {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 44px;
        font-size: 14px;
        padding: 12px 20px;
        box-sizing: border-box;
    }

    /* タグリスト */
    .matching-industries .industry-item {
        font-size: 12px;
    }

    /* 市場トレンドカード */
    .market-trend-card .card-content {
        padding: 12px;
    }

    /* ターゲット・ペルソナカード */
    .target-persona-card .card-content {
        font-size: 13px;
        line-height: 1.7;
    }

    /* 印刷ボタンをスマホで非表示 */
    .action-buttons-area .btn-primary {
        display: none !important;
    }

    /* 基本情報アコーディオン機能 */
    .basic-info-collapsed .info-row:nth-child(n+4) {
        display: none;
    }

    .toggle-basic-info {
        display: block !important;
        width: 100%;
        max-width: 100%;
        padding: 12px;
        margin-top: 12px;
        background: linear-gradient(135deg, #dbeafe, #bfdbfe);
        color: #1e40af;
        border: 1px solid #93c5fd;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

    .toggle-basic-info:hover {
        background: linear-gradient(135deg, #bfdbfe, #93c5fd);
        transform: translateY(-1px);
    }

    /* 基本情報カードのコンテンツ調整 */
    .basic-info-card .card-content {
        padding-bottom: 15px !important;
        overflow: visible !important;
    }

    /* チャート・グラフの視認性向上 */
    .chart-container,
    .radar-container {
        height: 280px !important;
        min-height: 280px;
        margin: 15px 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    .chart-container canvas,
    .radar-container canvas {
        max-height: 280px;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 画像・メディア要素 */
    img, canvas, svg, video {
        max-width: 100% !important;
        height: auto;
    }

    /* テーブル要素 */
    table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: auto;
    }

    /* ボトムエリア */
    .bottom-area {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* スマートフォン (640px以下) */
@media (max-width: 640px) {
    /* ヘッダーナビ更に縮小 */
    .header {
        padding: 5px 0 !important;
    }

    .header-nav {
        height: auto !important;
        min-height: auto !important;
        padding: 0 !important;
    }

    .logo-image {
        height: 34px !important;
        max-width: 200px !important;
    }

    .hamburger-menu {
        width: 22px !important;
        height: 16px !important;
        min-width: 22px !important;
        max-width: 22px !important;
        min-height: 16px !important;
        max-height: 16px !important;
        overflow: visible !important;
        position: relative;
    }

    .hamburger-menu span {
        height: 2.5px !important;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
    }

    .hamburger-menu span:nth-child(1) {
        top: 0;
    }

    .hamburger-menu span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger-menu span:nth-child(3) {
        bottom: 0;
    }

    /* ハンバーガーメニューアクティブ状態（×ボタン） */
    .hamburger-menu.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    .nav-menu {
        top: 44px;
        height: calc(100vh - 44px);
        width: 220px;
    }

    /* レポートヘッダー更にコンパクトに */
    .report-header {
        padding: 15px 12px !important;
    }

    .report-title,
    #patent-title {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    .report-meta {
        font-size: 11px;
    }

    .badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* メインコンテンツ */
    .main-content {
        padding: 12px !important;
    }

    /* カード */
    .section-card {
        margin-bottom: 12px;
    }

    .card-header {
        padding: 10px 12px;
        font-size: 13px;
    }

    .card-content {
        padding: 12px;
    }

    /* AI要約 */
    .ai-summary-text {
        font-size: 13px;
        line-height: 1.7;
    }

    /* 基本情報 */
    .info-label {
        font-size: 11px;
    }

    .info-value {
        font-size: 12px;
    }

    /* グラフサイズ調整 */
    .radar-container,
    .chart-container {
        height: 200px;
    }

    /* コストカード */
    .cost-amount {
        font-size: 20px;
    }

    .cost-breakdown {
        font-size: 11px;
    }

    /* ボトムエリア */
    .bottom-area {
        padding: 15px 12px;
    }

    .review-title {
        font-size: 15px;
    }

    .review-content {
        font-size: 12px;
    }

    /* CTAボックス */
    .cta-box {
        padding: 15px 12px;
    }

    .cta-title {
        font-size: 15px;
    }

    .cta-description {
        font-size: 12px;
    }

    /* ボタン */
    .action-buttons {
        gap: 10px;
        padding: 12px;
    }

    .btn,
    button {
        min-height: 44px;
        font-size: 13px;
    }

    /* ピボット案・業界 */
    .pivot-idea-item,
    .industry-item {
        padding: 10px;
        font-size: 12px;
    }

    .pivot-idea-title,
    .industry-name {
        font-size: 13px;
    }

    .pivot-idea-desc,
    .industry-reason {
        font-size: 11px;
    }
}

/* 非常に小さい画面 (480px以下) - iPhone SE対応 */
@media (max-width: 480px) {
    /* ヘッダーナビ最小サイズ */
    .header {
        padding: 4px 0 !important;
    }

    .header-nav {
        height: auto !important;
        min-height: auto !important;
        padding: 0 !important;
    }

    .logo-image {
        height: 30px !important;
        max-width: 180px !important;
    }

    .hamburger-menu {
        width: 20px !important;
        height: 15px !important;
        min-width: 20px !important;
        max-width: 20px !important;
        min-height: 15px !important;
        max-height: 15px !important;
        overflow: visible !important;
        position: relative;
    }

    .hamburger-menu span {
        height: 2px !important;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
    }

    .hamburger-menu span:nth-child(1) {
        top: 0;
    }

    .hamburger-menu span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger-menu span:nth-child(3) {
        bottom: 0;
    }

    /* ハンバーガーメニューアクティブ状態（×ボタン） */
    .hamburger-menu.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    .nav-menu {
        top: 38px;
        height: calc(100vh - 38px);
        width: 200px;
    }

    /* 横スクロール完全防止 */
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    .report-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    /* レポートヘッダー最小サイズ */
    .report-header {
        padding: 12px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .report-title,
    #patent-title {
        font-size: 16px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .report-meta {
        font-size: 10px;
        gap: 6px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .badge {
        font-size: 9px;
        padding: 2px 6px;
        max-width: calc(50% - 6px) !important;
    }

    /* メインコンテンツ */
    .main-content {
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .col-main,
    .col-side {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* カード */
    .section-card {
        margin-bottom: 10px;
        border-radius: 8px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .card-header {
        padding: 8px 10px;
        font-size: 12px;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .card-content {
        padding: 10px;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* すべての子要素 */
    .section-card *,
    .card-content *,
    .info-table *,
    .report-header *,
    .main-content *,
    .bottom-area * {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* AI要約 */
    .ai-summary-text {
        font-size: 12px;
    }

    /* 基本情報 */
    .info-row {
        padding: 8px 0;
    }

    .info-label {
        font-size: 10px;
    }

    .info-value {
        font-size: 11px;
    }

    /* グラフ */
    .radar-container,
    .chart-container {
        height: 180px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .radar-container canvas,
    .chart-container canvas {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 画像・メディア */
    img, canvas, svg, video {
        max-width: 100% !important;
        height: auto !important;
    }

    /* コストカード */
    .cost-amount {
        font-size: 18px;
    }

    .cost-label {
        font-size: 11px;
    }

    /* ボトムエリア */
    .bottom-area {
        padding: 12px 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .review-card {
        margin-bottom: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .review-title {
        font-size: 14px;
    }

    .review-content {
        font-size: 11px;
    }

    /* CTAボックス */
    .cta-box {
        padding: 12px 10px;
        margin: 15px 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .cta-title {
        font-size: 14px;
    }

    .cta-description {
        font-size: 11px;
    }

    /* ボタン */
    .action-buttons,
    .action-buttons-area {
        gap: 8px;
        padding: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .btn,
    button {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 44px;
        font-size: 12px;
        padding: 10px 15px;
        box-sizing: border-box !important;
    }

    /* ピボット案・業界 */
    .pivot-idea-item,
    .industry-item {
        padding: 8px;
        font-size: 11px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .pivot-idea-title,
    .industry-name {
        font-size: 12px;
        margin-bottom: 4px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .pivot-idea-desc,
    .industry-reason {
        font-size: 10px;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* 全要素に対する最終的な横スクロール防止 */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}