/* 価値観アイテム専用の強制スタイル - 全画面サイズ対応 */
.about-section .value-item p,
.about-section .values-grid .value-item p {
    color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
    font-weight: 500 !important;
}

/* 実績セクション専用の白文字スタイル */
.achievements-section .category-title,
.achievements-section .stat-label,
.achievements-section .timeline-content p {
    color: #ffffff !important; /* 明るい白色で視認性向上 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* 連携システムセクション専用の白文字スタイル */
.integration-systems-section .integration-intro h3 {
    color: #ffffff !important; /* 明るい白色で視認性向上 */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* タブレット対応 */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .title-main {
        font-size: 3.5rem;
    }
    
    .title-sub {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .business-sub {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .achievements-timeline::before {
        left: 60px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 120px;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        width: 80px;
        height: 80px;
        font-size: 1rem;
    }
    
    .timeline-content {
        margin: 0;
    }

    /* モバイル用フォントサイズとラインハイト最適化 */
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .about-message h3,
    .qolms-concept h3,
    .movie-message h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .about-message p,
    .qolms-concept p,
    .movie-message p {
        font-size: 1rem;
        line-height: 1.7;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
        font-weight: 500;
    }
    
    .feature-item h4,
    .value-item h4,
    .business-item h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .feature-item p,
    .value-item p,
    .business-item:not(.featured) p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
    }
    
    /* featuredアイテムは白文字を維持 */
    .business-item.featured p,
    .business-item.featured .business-description {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
}

/* ナビゲーション中間調整 */
@media screen and (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }

    /* モバイル用フォントサイズとラインハイト最適化 */
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .about-message h3,
    .qolms-concept h3,
    .movie-message h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .about-message p,
    .qolms-concept p,
    .movie-message p {
        font-size: 1rem;
        line-height: 1.7;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
        font-weight: 500;
    }
    
    .feature-item h4,
    .value-item h4,
    .business-item h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .feature-item p,
    .value-item p,
    .business-item:not(.featured) p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
    }
    
    /* featuredアイテムは白文字を維持 */
    .business-item.featured p,
    .business-item.featured .business-description {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
}

/* スマートフォン対応 */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* モバイル用色修正 - 可視性の改善 */
    .section-title {
        color: var(--primary-color) !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .section-subtitle {
        color: #374151 !important; /* value-itemと同じ明るいグレー */
    }
    
    /* カードスタイルの統一 */
    .business-item:not(.featured),
    .feature-item,
    .hospital-item,
    .stat-item,
    .contact-item {
        background: var(--bg-white);
        color: var(--text-on-light-primary);
        border: 1px solid var(--border-color);
    }
    
    /* Value-itemは暗い背景、白枠、白文字を維持 */
    .value-item {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
        border: 2px solid #ffffff !important;
        color: #ffffff !important;
    }
    
    .value-item h4,
    .value-item p,
    .value-item * {
        color: #ffffff !important;
    }
    
    /* PHRインサイトカード専用スタイル - モバイルで統一 */
    .phr-insight-card {
        background: var(--bg-white) !important;
        color: var(--text-on-light-primary) !important;
        border: 1px solid var(--border-color) !important;
    }
    
    .business-item.featured {
        background: linear-gradient(135deg, rgba(245, 101, 0, 0.9), rgba(43, 119, 201, 0.9));
        color: #ffffff;
    }
    
    /* featuredアイテム内のテキスト色を強制的に白色に保持 */
    .business-item.featured h3,
    .business-item.featured .business-info h3,
    .business-item.featured p,
    .business-item.featured .business-description,
    .business-item.featured .business-features li {
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
    
    /* セクション背景の統一 */
    section:not(.hero):not(.future-vision-section):not(.support-messages-section) {
        background: var(--bg-white) !important;
    }
    
    section:nth-child(odd):not(.hero):not(.future-vision-section):not(.support-messages-section) {
        background: var(--bg-light) !important;
    }
    
    /* モバイルでのカードブロックの統一スタイル */
    .value-item h4,
    .business-item:not(.featured) h3,
    .feature-item h4,
    .hospital-item h4,
    .stat-item .stat-number,
    .contact-item h4 {
        color: var(--primary-color) !important;
    }
    
    .value-item p,
    .business-item:not(.featured) p,
    .business-item:not(.featured) .business-description,
    .feature-item p,
    .hospital-item p,
    .stat-item .stat-label,
    .contact-item p {
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
    }
    
    /* featuredアイテムのテキスト色は白色を維持 */
    .business-item.featured * {
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
    
    .business-item.featured .business-features i {
        color: #fbbf24 !important; /* アイコンは金色 */
        text-shadow: none;
    }
    
    /* ナビゲーション */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* モバイルメニューのハンバーガーボタンの色 */
    .hamburger .bar {
        background: var(--text-white);
    }
    
    .navbar.scrolled .hamburger .bar {
        background: var(--primary-color);
    }
    
    /* ロゴのモバイル調整 */
    .logo-text {
        font-size: 1.1rem;
    }
    
    .footer-logo-text {
        font-size: 1rem;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* ヒーローセクション */
    .hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .title-main {
        font-size: 2.8rem;
    }
    
    .title-sub {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 200px;
        text-align: center;
    }
    
    /* セクション共通 */
    section {
        padding: 60px 0;
    }
    
    /* セクション背景とコントラストの最適化 */
    .about-section,
    .qolms-platform-section,
    .achievements-section,

    .company-section,
    .contact-section {
        background: var(--bg-white) !important;
        color: var(--text-on-light-primary);
    }
    
    .business-section {
        background: var(--bg-light) !important;
        color: var(--text-on-light-primary);
    }
    
    /* 暗い背景セクションで統一 - PC・モバイル一致 */
    .future-vision-section,
    .integration-systems-section,
    .support-messages-section {
        background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%) !important;
        color: var(--text-on-dark-primary) !important;
    }
    
    /* 暗い背景セクション内の全要素に白文字適用 - PC・モバイル一致 */
    .future-vision-section *,
    .integration-systems-section *,
    .support-messages-section * {
        color: var(--text-on-dark-primary) !important;
    }
    
    /* 応援メッセージ注意書きを黒文字で表示 */
    .support-messages-section .support-note {
        color: #000000 !important;
        text-shadow: none !important;
    }
    
    .support-messages-section .support-note * {
        color: #000000 !important;
        text-shadow: none !important;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    /* 暗い背景での白文字タイトル - PC・モバイル一致 */
    .future-vision-section .section-title,
    .integration-systems-section .section-title,
    .support-messages-section .section-title {
        color: #ffffff !important;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    .section-header {
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .section-subtitle {
        text-align: center;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    /* 暗い背景でのサブタイトル - PC・モバイル一致 */
    .future-vision-section .section-subtitle,
    .integration-systems-section .section-subtitle,
    .support-messages-section .section-subtitle {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    /* 暗い背景セクション内のテキスト要素の明示的設定 - PC・モバイル一致 */
    .future-vision-section p,
    .integration-systems-section p,
    .support-messages-section p,
    .future-vision-section h3,
    .integration-systems-section h3,
    .support-messages-section h3,
    .future-vision-section h4,
    .integration-systems-section h4,
    .support-messages-section h4 {
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
    
    /* 応援メッセージ注意書きの例外設定 */
    .support-messages-section .support-note p {
        color: #000000 !important;
        text-shadow: none !important;
    }
    
    /* 企業理念セクション */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-message {
        margin-bottom: 3rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.98);
        padding: 2rem;
        border-radius: 15px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(37, 99, 235, 0.1);
    }
    
    /* 企業理念セクションの背景調整 */
    .about-section {
        background: var(--bg-light) !important;
    }
    
    .value-item {
        padding: 2rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .about-message h3 {
        font-size: 1.5rem;
    }
    
    .about-message p {
        font-size: 1rem;
    }
    
    /* 事業内容セクション */
    .business-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .business-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto;
    }
    
    .business-info h3 {
        font-size: 1.3rem;
    }
    
    .business-description {
        font-size: 0.9rem;
    }
    
    .business-features {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .business-sub {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* 実績セクション */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .achievements-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 80px;
        margin-bottom: 2rem;
    }
    
    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem;
    }
    
    /* コンセプトムービー・応援メッセージセクション */
    .movie-container {
        padding: 1.5rem;
        background: var(--bg-white);
        border: 1px solid var(--border-color);
        border-radius: 15px;
        box-shadow: var(--shadow);
    }
    
    .message-item {
        padding: 1.5rem;
        background: var(--bg-white);
        border: 1px solid var(--border-color);
        color: var(--text-on-light-primary);
    }
    
    .movie-message,
    .concept-movie-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .movie-message h3,
    .support-intro h3 {
        font-size: 1.5rem;
    }
    
    .messages-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .support-note {
        padding: 1.5rem;
        font-size: 0.9rem;
    }
    
    /* 動画レスポンシブ対応 - iframe用 */
    .video-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    
    .hero .bgmv {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }
    
    .video-wrapper {
        padding-bottom: 56.25%; /* 16:9 アスペクト比維持 */
        margin-bottom: 1rem;
        border-radius: 8px;
        /* 読み込み中の表示改善 */
        background: var(--bg-light);
    }
    
    .video-wrapper iframe {
        border-radius: 8px;
        /* パフォーマンス最適化 */
        will-change: transform;
    }

    /* QOLMSセクション */
    .feature-grid,
    .hospitals-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        background: #ffffff;
        color: var(--text-on-light-primary);
        padding: 2rem;
        border-radius: 15px;
        box-shadow: var(--shadow);
        border: 1px solid var(--border-color);
    }
    
    .feature-item h4 {
        color: var(--primary-color) !important;
        font-weight: 600;
    }
    
    .feature-item p {
        color: #374151 !important;
        font-weight: 500;
    }
    
    /* QOLMS専用レスポンシブ */
    .qolms-features .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .qolms-features .feature-item {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        max-width: 100%;
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 15px;
        box-shadow: var(--shadow);
        color: var(--text-on-light-primary);
    }
    
    /* 連携システムセクション */
    .integration-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .integration-item {
        padding: 1.5rem;
        text-align: center;
        background: var(--bg-white);
        border-radius: 12px;
        box-shadow: var(--shadow);
        border: 1px solid var(--border-color);
        color: var(--text-on-light-primary);
    }
    
    .integration-item h4 {
        color: var(--primary-color);
    }
    
    .integration-item p {
        color: var(--text-on-light-secondary);
    }
    
    .integration-intro h3 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    /* PHRビジネス理解セクション */
    .phr-insight-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .phr-insight-card {
        padding: 1.5rem;
        background: var(--bg-white) !important;
        border-radius: 12px;
        box-shadow: var(--shadow);
        text-align: center;
        border: 1px solid var(--border-color);
        color: var(--text-on-light-primary) !important;
    }
    
    .phr-insight-card .insight-text h4 {
        color: #1f2937 !important;
    }
    
    .phr-insight-card .insight-text p {
        color: #4b5563 !important;
    }
    
    .phr-insight-header h3 {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .phr-insight-subtitle {
        font-size: 0.9rem;
        text-align: center;
        color: var(--text-secondary);
    }
    
    .feature-item,
    .hospital-item,
    .service-model,
    .oem-description {
        padding: 2rem;
        background: #ffffff !important;
        border: 1px solid var(--border-color);
        color: var(--text-on-light-primary);
        border-radius: 15px;
        box-shadow: var(--shadow);
    }
    
    /* モバイル用タイムラインスタイル */
    .timeline-content {
        background: var(--bg-white);
        color: var(--text-on-light-primary);
        border: 1px solid var(--border-color);
    }
    
    .timeline-content h4 {
        color: var(--primary-color) !important;
    }
    
    .timeline-content p {
        color: #ffffff !important; /* モバイルでも白色を維持 */
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
    
    /* OEMセクション専用モバイル対応 */
    .oem-features {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .oem-feature {
        padding: 1.5rem;
        background: var(--bg-light);
        border-radius: 12px;
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .qolms-concept h3,
    .category-title {
        font-size: 1.5rem;
    }
    
    .model-description {
        flex-direction: column;
        align-items: stretch;
    }
    
    .model-item {
        flex-direction: column;
        text-align: center;
        min-width: auto;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
        border: 1px solid #e2e8f0;
        border-radius: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        padding: 1.5rem;
        color: var(--text-on-light-primary);
    }
    
    .model-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .oem-features {
        grid-template-columns: 1fr;
    }
    
    /* QOLMS Viewerレスポンシブ対応 */
    .viewer-description {
        padding: 2rem;
    }
    
    .viewer-implementations {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .implementation-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .implementation-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        margin: 0 auto;
    }
    
    .implementation-content h5 {
        font-size: 1.1rem;
    }
    
    .implementation-content p {
        font-size: 0.95rem;
        color: #ffffff !important;
    }

    /* 企業の将来性セクション */
    .vision-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .highlight-item {
        padding: 2rem;
    }
    
    .highlight-item h4 {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .vision-message h3 {
        font-size: 1.5rem;
    }
    
    .vision-message p {
        font-size: 1rem;
    }
    
    .outlook-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .outlook-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .outlook-icon {
        margin: 0 auto;
    }
    
    .market-outlook h3 {
        font-size: 1.5rem;
    }
    
    /* PHRインサイトセクションレスポンシブ対応 */
    .phr-insight-section {
        margin: 2rem 0;
        padding: 2rem 1rem;
        border-radius: 15px;
    }
    
    .phr-insight-header h3 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        text-align: center;
        line-height: 1.4;
    }
    
    .phr-insight-header h3 i {
        font-size: 1.5rem;
    }
    
    .phr-insight-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 1rem;
    }
    
    .phr-insight-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .phr-insight-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        background: var(--bg-white) !important;
        border: 1px solid var(--border-color);
        border-radius: 15px;
        box-shadow: var(--shadow);
    }
    
    .phr-insight-card .insight-text h4 {
        color: #1f2937 !important;
        font-size: 1.1rem;
    }
    
    .phr-insight-card .insight-text p {
        color: #4b5563 !important;
        font-size: 0.95rem;
    }
    
    .insight-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin: 0 auto;
    }
    
    .insight-text h4 {
        font-size: 1.1rem;
    }
    
    .insight-text p {
        font-size: 0.9rem;
    }
    
    /* 会社概要セクション */
    .company-table th,
    .company-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .company-table th {
        width: 35%;
    }
    
    /* お問い合わせセクション */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-item i {
        font-size: 2rem;
        margin-top: 0;
    }
    
    .external-contact-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .contact-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-notice {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .notice-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .notice-content h5 {
        font-size: 0.9rem;
    }
    
    .btn-external {
        font-size: 1rem;
        padding: 12px 24px;
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    /* フッター */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    /* グリッドレイアウトの統一整理 */
    .values-grid,
    .hospitals-grid,
    .detailed-achievements {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* モバイル用フォントサイズとラインハイト最適化 */
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .about-message h3,
    .qolms-concept h3,
    .movie-message h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .about-message p,
    .qolms-concept p,
    .movie-message p {
        font-size: 1rem;
        line-height: 1.7;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
        font-weight: 500;
    }
    
    .feature-item h4,
    .value-item h4,
    .business-item h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .feature-item p,
    .value-item p,
    .business-item:not(.featured) p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
    }
    
    /* featuredアイテムは白文字を維持 */
    .business-item.featured p,
    .business-item.featured .business-description {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
}

/* 小さなスマートフォン対応 */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-main {
        font-size: 2.2rem;
    }
    
    .title-sub {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .value-item,
    .business-item,
    .highlight-item,
    .contact-item,
    .movie-container,
    .message-item,
    .feature-item,
    .hospital-item,
    .service-model,
    .oem-description {
        padding: 1.5rem;
        background: #ffffff !important;
        border: 1px solid var(--border-color);
        border-radius: 15px;
        box-shadow: var(--shadow);
        color: var(--text-on-light-primary);
    }
    
    .movie-message h3,
    .support-intro h3,
    .qolms-concept h3,
    .vision-message h3,
    .market-outlook h3 {
        font-size: 1.3rem;
    }
    
    .messages-grid {
        gap: 1.5rem;
    }
    
    /* 動画の小スマートフォン対応 */
    .hero .bgmv {
        /* 小画面でのパフォーマンス最適化 */
        display: block;
        object-fit: cover;
        object-position: center center;
    }
    
    .video-wrapper {
        padding-bottom: 56.25%;
        margin-bottom: 1rem;
        border-radius: 6px;
    }
    
    .video-wrapper iframe {
        border-radius: 6px;
    }
    
    .category-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .feature-icon,
    .model-icon {
        width: 70px; /* PCと同じサイズで円形維持 */
        height: 70px; /* PCと同じサイズで円形維持 */
        font-size: 1.6rem; /* サイズに合わせて調整 */
        flex-shrink: 0;
        border-radius: 50%; /* 完全な円形を保証 */
    }
    
    .hospital-item.featured::before {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .external-contact-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .external-contact-content h3 {
        font-size: 1.3rem;
    }
    
    .btn-external {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .company-table th,
    .company-table td {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    
    .certifications {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .certification-logo {
        height: 45px;
    }
    
    .certification-text {
        font-size: 0.8rem;
    }
    
    .btn {
        width: 180px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* PHRインサイトセクション小スマートフォン対応 */
    .phr-insight-section {
        margin: 1.5rem 0;
        padding: 1.5rem 0.8rem;
    }
    
    .phr-insight-header h3 {
        font-size: 1.3rem;
        gap: 0.6rem;
    }
    
    .phr-insight-header h3 i {
        font-size: 1.3rem;
    }
    
    .phr-insight-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .phr-insight-card {
        padding: 1.2rem;
        background: var(--bg-white) !important;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: var(--shadow);
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .insight-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .phr-insight-card .insight-text h4 {
        font-size: 1rem;
        color: #1f2937 !important;
    }
    
    .phr-insight-card .insight-text p {
        font-size: 0.85rem;
        color: #4b5563 !important;
    }
    
    .phr-detail-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* プライバシーポリシーページ */
    .privacy-policy-section {
        padding: 100px 0 60px;
    }

    .privacy-title {
        font-size: 2rem;
    }

    .privacy-subtitle {
        font-size: 1rem;
    }

    .privacy-section {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }

    .privacy-section h2 {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .privacy-section h3 {
        font-size: 1.2rem;
    }

    .privacy-section h4 {
        font-size: 1rem;
    }

    .privacy-list li {
        padding-left: 1.5rem;
    }

    .privacy-subsection {
        padding: 1rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    /* モバイル用フォントサイズとラインハイト最適化 */
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .about-message h3,
    .qolms-concept h3,
    .movie-message h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .about-message p,
    .qolms-concept p,
    .movie-message p {
        font-size: 1rem;
        line-height: 1.7;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
        font-weight: 500;
    }
    
    .feature-item h4,
    .value-item h4,
    .business-item h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .feature-item p,
    .value-item p,
    .business-item:not(.featured) p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
    }
    
    /* featuredアイテムは白文字を維持 */
    .business-item.featured p,
    .business-item.featured .business-description {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
}

/* 横向きスマートフォン対応 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .title-main {
        font-size: 2.2rem;
    }
    
    .title-sub {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    
    .scroll-indicator {
        bottom: 15px;
    }
    
    .scroll-text {
        font-size: 0.7rem;
    }

    /* モバイル用フォントサイズとラインハイト最適化 */
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .about-message h3,
    .qolms-concept h3,
    .movie-message h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .about-message p,
    .qolms-concept p,
    .movie-message p {
        font-size: 1rem;
        line-height: 1.7;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
        font-weight: 500;
    }
    
    .feature-item h4,
    .value-item h4,
    .business-item h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .feature-item p,
    .value-item p,
    .business-item:not(.featured) p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
    }
    
    /* featuredアイテムは白文字を維持 */
    .business-item.featured p,
    .business-item.featured .business-description {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
}

/* 高解像度ディスプレイ対応 */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .title-main {
        font-size: 4.5rem;
    }
    
    .title-sub {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .business-item {
        padding: 3rem;
    }
    
    .value-item,
    .highlight-item {
        padding: 3rem;
    }
    
    .external-contact-card {
        padding: 3rem;
    }

    /* モバイル用フォントサイズとラインハイト最適化 */
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .about-message h3,
    .qolms-concept h3,
    .movie-message h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .about-message p,
    .qolms-concept p,
    .movie-message p {
        font-size: 1rem;
        line-height: 1.7;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
        font-weight: 500;
    }
    
    .feature-item h4,
    .value-item h4,
    .business-item h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .feature-item p,
    .value-item p,
    .business-item:not(.featured) p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
    }
    
    /* featuredアイテムは白文字を維持 */
    .business-item.featured p,
    .business-item.featured .business-description {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
}

/* プリント用スタイル */
@media print {
    .navbar,
    .hamburger,
    .scroll-indicator,
    .external-contact-card,
    .hero-buttons {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .video-background,
    .video-overlay {
        display: none;
    }
    
    .hero-content {
        color: var(--text-primary);
    }
    
    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .business-item,
    .value-item,
    .highlight-item {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 18pt;
    }
    
    .hero-title {
        font-size: 24pt;
    }

    /* モバイル用フォントサイズとラインハイト最適化 */
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .about-message h3,
    .qolms-concept h3,
    .movie-message h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .about-message p,
    .qolms-concept p,
    .movie-message p {
        font-size: 1rem;
        line-height: 1.7;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
        font-weight: 500;
    }
    
    .feature-item h4,
    .value-item h4,
    .business-item h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .feature-item p,
    .value-item p,
    .business-item:not(.featured) p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
    }
    
    /* featuredアイテムは白文字を維持 */
    .business-item.featured p,
    .business-item.featured .business-description {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .animate-on-scroll {
        animation: none;
        opacity: 1;
        transform: none;
    }

    /* モバイル用フォントサイズとラインハイト最適化 */
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .about-message h3,
    .qolms-concept h3,
    .movie-message h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .about-message p,
    .qolms-concept p,
    .movie-message p {
        font-size: 1rem;
        line-height: 1.7;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
        font-weight: 500;
    }
    
    .feature-item h4,
    .value-item h4,
    .business-item h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .feature-item p,
    .value-item p,
    .business-item:not(.featured) p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
    }
    
    /* featuredアイテムは白文字を維持 */
    .business-item.featured p,
    .business-item.featured .business-description {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f7fafc;
        --text-secondary: #e2e8f0;
        --text-light: #a0aec0;
        --bg-light: #2d3748;
        --bg-white: #1a202c;
        --border-color: #374151;
    }
    
    .navbar {
        background: rgba(26, 32, 44, 0.95);
        border-bottom-color: var(--border-color);
    }
    
    .business-item:not(.featured),
    .value-item,
    .stat-item,
    .highlight-item,
    .contact-item,
    .company-table,
    .contact-form {
        background: var(--bg-light);
        color: var(--text-primary);
    }
    
    .company-table th {
        background: var(--primary-color);
    }
    
    .company-table td {
        background: var(--bg-light);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--bg-white);
        border-color: var(--border-color);
        color: var(--text-primary);
    }
    
    .timeline-content {
        background: var(--bg-light);
        color: var(--text-primary);
    }

    /* 詳細導入実績ダークモード対応 */
    .client-achievements {
        background: var(--bg-light);
        border-color: var(--border-color);
    }

    .achievement-item {
        background: var(--bg-white);
    }

    /* モバイル用フォントサイズとラインハイト最適化 */
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .about-message h3,
    .qolms-concept h3,
    .movie-message h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .about-message p,
    .qolms-concept p,
    .movie-message p {
        font-size: 1rem;
        line-height: 1.7;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
        font-weight: 500;
    }
    
    .feature-item h4,
    .value-item h4,
    .business-item h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .feature-item p,
    .value-item p,
    .business-item:not(.featured) p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
    }
    
    /* featuredアイテムは白文字を維持 */
    .business-item.featured p,
    .business-item.featured .business-description {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
}

/* 詳細導入実績レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .detailed-achievements {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .client-achievements {
        padding: 1.5rem;
    }

    .client-header {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .client-logo {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .achievement-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    /* モバイル用フォントサイズとラインハイト最適化 */
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .about-message h3,
    .qolms-concept h3,
    .movie-message h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .about-message p,
    .qolms-concept p,
    .movie-message p {
        font-size: 1rem;
        line-height: 1.7;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
        font-weight: 500;
    }
    
    .feature-item h4,
    .value-item h4,
    .business-item h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .feature-item p,
    .value-item p,
    .business-item:not(.featured) p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
    }
    
    /* featuredアイテムは白文字を維持 */
    .business-item.featured p,
    .business-item.featured .business-description {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
}

@media screen and (max-width: 480px) {
    .client-achievements {
        padding: 1rem;
    }

    .client-info h4 {
        font-size: 1.1rem;
    }

    .achievement-item {
        padding: 0.5rem;
        gap: 0.6rem;
    }

    .achievement-item span {
        font-size: 0.85rem;
    }

    /* QOLMS Viewer小スマートフォン対応 */
    .viewer-description {
        padding: 1.5rem;
    }
    
    .viewer-content h4 {
        font-size: 1.2rem;
    }
    
    .viewer-content p {
        font-size: 0.95rem;
    }
    
    .implementation-item {
        padding: 1.2rem;
        gap: 0.8rem;
    }
    
    .implementation-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .implementation-content h5 {
        font-size: 1rem;
    }
    
    .implementation-content p {
        font-size: 0.9rem;
        color: #ffffff !important;
    }
    
    .implementation-detail {
        font-size: 0.85rem;
    }

    /* 連携システムのレスポンシブ対応 */
    .integration-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .integration-item {
        padding: 1rem;
    }

    .integration-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .integration-intro h3 {
        font-size: 1.5rem;
    }

    /* 参加団体のモバイル対応 */
    .organization-item {
        padding: 0.5rem 0;
    }

    .organization-item span {
        font-size: 0.9rem;
    }

    /* モバイル用フォントサイズとラインハイト最適化 */
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .about-message h3,
    .qolms-concept h3,
    .movie-message h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .about-message p,
    .qolms-concept p,
    .movie-message p {
        font-size: 1rem;
        line-height: 1.7;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
        font-weight: 500;
    }
    
    .feature-item h4,
    .value-item h4,
    .business-item h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .feature-item p,
    .value-item p,
    .business-item:not(.featured) p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #374151 !important; /* コントラスト比改善（WCAG AA準拠） */
    }
    
    /* featuredアイテムは白文字を維持 */
    .business-item.featured p,
    .business-item.featured .business-description {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
}
/* ==========================================================================
   プライバシーポリシーページのレスポンシブ対応
   ========================================================================== */

@media screen and (max-width: 768px) {
    .privacy-policy-section {
        padding: 100px 0 60px;
    }
    
    .privacy-title {
        font-size: 2rem;
    }
    
    .privacy-subtitle {
        font-size: 1.1rem;
    }
    
    .privacy-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .privacy-section h2 {
        font-size: 1.3rem;
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
    
    .privacy-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .privacy-table {
        min-width: 500px;
    }
    
    .privacy-table th,
    .privacy-table td {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .contact-table th {
        width: 100px;
    }
}

@media screen and (max-width: 480px) {
    .privacy-policy-section {
        padding: 90px 0 50px;
    }
    
    .privacy-title {
        font-size: 1.7rem;
    }
    
    .privacy-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .privacy-section h2 {
        font-size: 1.2rem;
    }
    
    .privacy-table th,
    .privacy-table td {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   iOS Safari と Facebook In-App Browser レスポンシブ修正
   ========================================================================== */

/* iOS Safari 専用修正 */
@media screen and (max-width: 768px) {
    /* iOS Safari でのビューポート高さ問題 */
    .hero {
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        min-height: -webkit-fill-available;
    }
    
    /* iOS Safari でのフォント拡大防止 */
    input, textarea, select {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
    }
    
    /* Facebook In-App Browser でのレイアウト修正 */
    .nav-container {
        max-width: 100vw;
        padding: 0 1rem;
    }
    
    /* iOS Safari でのセクション間の空白問題修正 */
    section {
        position: relative;
        z-index: 1;
    }
    
    /* Facebook アプリでの背景画像問題修正 */
    .hero::before {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* iPhone X系 セーフエリア対応 */
@media screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3),
       screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2),
       screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) {
    
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    .hero {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Facebook In-App Browser 特有の問題修正 */
@media screen and (max-width: 480px) {
    /* Facebook アプリでのスクロール問題 */
    body {
        position: relative;
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
    
    /* Facebook アプリでの画像表示問題 */
    img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        image-rendering: -webkit-optimize-contrast;
    }
    
    /* Facebook アプリでのボタンクリック問題 */
    .btn {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
}
