* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #37352f;
    background-color: #ffffff;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #37352f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: #6b46c1;
}

/* logo image sizing */
.logo-image {
    max-width: 320px !important;
    width: 100% !important;
    height: auto !important;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #37352f;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
}

.nav-links li a:hover {
    color: #6b46c1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: #37352f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 20px 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-links li {
    margin-bottom: 16px;
}

.mobile-nav-links li a {
    text-decoration: none;
    color: #37352f;
    font-weight: 500;
    font-size: 18px;
    display: block;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.mobile-nav-links li a:hover {
    color: #6b46c1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* モバイル：左右余白を縮小 */
    .container {
        padding: 0 12px;
    }
}

.contact-info {
    display: flex;
    gap: 32px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.contact-item i {
    color: #6b46c1;
}

/* Hero Section */
.hero {
    background: white;
    padding: 12px 0 40px;
    text-align: left;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    height: auto !important;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #37352f;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 48px;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.4;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #37352f;
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(55, 53, 47, 0.15);
}

.cta-button:hover {
    background: #2f2d28;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(55, 53, 47, 0.25);
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 64px;
    color: #37352f;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Body Copy */
.body-copy {
    max-width: 100%;
    margin: 0 auto 80px;
}

.body-copy-item {
    margin-bottom: 48px;
    padding: 16px 8px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    transition: all 0.2s ease;
    width: 100% !important;
}

.body-copy-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.body-copy-item h3 {
    color: #37352f;
    font-size: 40px;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.body-copy-item p {
    font-size: 18px;
    line-height: 1.6;
    color: #6b7280;
}

/* Body Copy Image Layout */
.body-copy-content {
    display: flex;
    align-items: center;
    gap: 5px;
}

.body-copy-content.reverse {
    flex-direction: row-reverse;
}

.body-copy-content.reverse .body-copy-text {
    flex: 1;
}

.body-copy-content.reverse .body-copy-image {
    flex: 1;
}

.body-copy-text {
    flex: 1.3;
}

.body-copy-item.third-item .body-copy-content.third-content {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.body-copy-item.third-item .body-copy-content.third-content .body-copy-text.third-text {
    flex: 0 0 60% !important;
    width: 60% !important;
    max-width: 60% !important;
    min-width: 60% !important;
}

.body-copy-item.third-item .body-copy-content.third-content .body-copy-image.third-image {
    flex: 0 0 35% !important;
    width: 35% !important;
    max-width: 35% !important;
    min-width: 35% !important;
}

.body-copy-image {
    flex: 0.7;
    overflow: visible !important;
    min-height: 0 !important;
}

.body-copy-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain;
    border-radius: 12px;
}

/* 1番目要素（a03.png）専用のデスクトップ修正 */
.first-item .first-image {
    min-height: 0 !important;
    height: auto !important;
}

.first-item .first-image img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    aspect-ratio: auto !important;
    flex-shrink: 0 !important;
    vertical-align: top !important;
    transform: none !important;
}

/* 3番目要素のテキストエリアを広げる - 専用クラス指定 */
.third-item .third-content {
    display: flex !important;        /* PC では横並び */
    align-items: center !important;
    gap: 20px !important;
}

.third-item .third-text {
    flex: 0 0 60% !important;
    width: 60% !important;
    max-width: 60% !important;
    min-width: 60% !important;
}

.third-item .third-image {
    flex: 0 0 35% !important;
    width: 35% !important;
    max-width: 35% !important;
    min-width: 35% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.third-item .third-image img {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.feature-card {
    background: #ffffff;
    padding: 48px 32px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4, #10b981);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.feature-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: #f3f4f6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.2s ease;
}

.feature-icon i {
    font-size: 28px;
    color: #000000;
}

.feature-card h3 {
    color: #37352f;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 600;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 16px;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 0;
    text-align: center;
    margin: 40px 0;
}

.stats-header {
    max-width: 800px;
    margin: 0 auto 80px;
}

.stats-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #37352f;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stats-header p {
    font-size: 20px;
    color: #6b7280;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-item {
    padding: 40px 32px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4, #10b981, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
}

.stat-icon i {
    font-size: 28px;
    color: #000000;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-unit {
    font-size: 20px;
    font-weight: 600;
    color: #6b46c1;
    margin-left: 4px;
}

.stat-label {
    font-size: 18px;
    color: #37352f;
    font-weight: 600;
    margin-bottom: 12px;
}

.stat-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-top: 8px;
}

/* Service Banners Section */
.service-banners {
    padding: 120px 0;
    background: #ffffff;
}

.banners-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.banners-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #37352f;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.banners-header p {
    font-size: 20px;
    color: #6b7280;
    line-height: 1.6;
}

.banners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.banner-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.banner-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
}

.banner-image {
    flex: 0 0 400px;
}

.banner-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.banner-text {
    flex: 1;
}

.banner-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: #37352f;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.banner-text p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Video Player */
.video-player {
    margin-top: 20px;
}

.video-player video {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-player video:focus {
    outline: 2px solid #6b46c1;
    outline-offset: 2px;
}

/* Audio Player (for YouTube banner) */
.audio-player {
    margin-top: 20px;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6b46c1, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 70, 193, 0.4);
}

.play-btn.playing {
    background: linear-gradient(135deg, #ef4444, #f87171);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.play-btn.playing i::before {
    content: "\f04c"; /* Font Awesome pause icon */
}

.play-btn i {
    margin-right: 8px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 120px 0;
    text-align: center;
}

.cta-content {
    background: #ffffff;
    padding: 80px 48px;
    border-radius: 24px;
    border: 1px solid #e5e5e5;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.cta-title {
    font-size: 36px;
    color: #37352f;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #f8fafc;
    padding: 80px 0 40px;
    border-top: 1px solid #e5e5e5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    margin-bottom: 24px;
    color: #37352f;
    font-weight: 600;
    font-size: 18px;
}

.footer-section p, .footer-section ul {
    color: #6b7280;
    line-height: 1.6;
    font-size: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.footer-section ul li:hover {
    color: #37352f;
}

.footer-bottom {
    border-top: 1px solid #e5e5e5;
    padding-top: 32px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero {
        padding: 20px 0 60px;
    }
    
    .main-content {
        padding: 80px 0;
    }
    
    .section {
        margin-bottom: 80px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .body-copy-item {
        padding: 16px 8px;
    }
    
    .cta-content {
        padding: 48px 32px;
    }
    
    .body-copy-item h3 {
        font-size: 32px;
    }

    /* Image Layout Mobile */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-image img {
        height: auto !important;
        width: 100%;
    }

    .body-copy-content,
    .body-copy-content.reverse {
        flex-direction: column;
        gap: 30px;
    }
    
    .body-copy-text:not(.third-text),
    .body-copy-image:not(.third-image),
    .body-copy-content.reverse .body-copy-text,
    .body-copy-content.reverse .body-copy-image {
        flex: none;
        width: 100%;
    }
    
    .body-copy-image {
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .body-copy-image img {
        height: auto !important;
        width: 100%;
        object-fit: contain;
        max-width: 100%;
        border-radius: 12px;
    }

    /* モバイル版：一番上の画像（a03）専用の修正 */
    .body-copy-image img[src*="a03"] {
        height: auto !important;
        width: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
        aspect-ratio: auto !important;
        flex-shrink: 0 !important;
        vertical-align: top !important;
        transform: none !important;
        border-radius: 12px;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Service Banners Mobile */
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
    }

    .banner-image {
        flex: none;
        width: 100%;
    }

    .banner-text h3 {
        font-size: 24px;
    }

    .banners-header h2 {
        font-size: 36px;
    }

    .video-player video {
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }
    
    /* 3番目要素はモバイルでも幅を維持 */
    .third-item .third-content {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .third-item .third-text {
        order: 1 !important;
        flex: none !important;
        width: 100% !important;
    }
    
    .third-item .third-image {
        order: 2 !important;
        flex: none !important;
        width: 100% !important;
    }
}

/* 1番目要素専用の完全リファクタリング修正 */
@media (max-width: 480px) {
    /* 1番目要素を完全に縦並びレイアウトに変更 */
    .first-item .first-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
    
    .first-item .body-copy-text {
        width: 100% !important;
        flex: none !important;
        order: 1 !important;
    }
    
    .first-item .first-image {
        width: 100% !important;
        height: auto !important;
        flex: none !important;
        order: 2 !important;
        display: block !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .first-item .first-image img {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
        aspect-ratio: auto !important;
        display: block !important;
        border-radius: 12px;
        vertical-align: top !important;
        line-height: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: slideUp 0.6s ease-out forwards;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Related Business Section */
.related-business {
    background: #f8fafc;
    padding: 60px 0;
    margin: 60px 0;
}

.related-business-header {
    text-align: center;
    margin-bottom: 60px;
}

.related-business-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #37352f;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.related-business-header p {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
}

.related-business-content {
    max-width: 800px;
    margin: 0 auto;
}

.business-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    transition: all 0.3s ease;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.business-logo {
    flex-shrink: 0;
}

.business-logo img {
    width: 280px;
    height: auto;
    border-radius: 12px;
}

.business-info {
    flex: 1;
}

.business-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: #37352f;
    margin-bottom: 8px;
    line-height: 1.2;
}

.business-subtitle {
    font-size: 18px;
    color: #6b46c1;
    font-weight: 600;
    margin-bottom: 16px;
}

.business-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
}

.business-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #37352f;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.business-link:hover {
    background: #2f2d28;
    transform: translateY(-2px);
}

/* 3番目要素：子要素を stretch して横幅いっぱいに */
.third-item .third-content {
    align-items: stretch !important;
}

/* ===== mobile override : 3rd body copy ===== */
@media (max-width: 768px) {
    .mobile-full {
        padding: 16px 8px !important; /* card の余白を最小に */
    }
    .mobile-full .third-content {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
    .mobile-full .third-text {
        width: 100% !important;
        order: 1 !important;
        font-size: 22px !important;
        line-height: 1.35 !important;
    }
    .mobile-full .third-image {
        width: 100% !important;
        order: 2 !important;
    }
    .mobile-full .third-image img {
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
    }
}

/* Desktop adjustments */
@media (min-width: 769px) {
    /* 本文カード内画像に上限を設定してバランスを取る */
    .body-copy-image img { max-width: 320px; height: auto; }
    /* スマホ用に下げた見出しサイズを PC では大きめに */
    .body-copy-item h3 { font-size: 40px; line-height: 1.25; }

    /* PC 見出しサイズを統一 */
    .body-copy-item h3 {
        font-size: 40px !important;
        line-height: 1.25 !important;
    }

    /* PC で画像幅を揃える */
    .body-copy-image img {
        max-width: 320px !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Use Bootstrap grid widths for third-item */
    .third-item .third-text,
    .third-item .third-image {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    /* 2番目など通常カードの画像幅を拡大（third-item は除外） */
    .body-copy-item:not(.third-item) .body-copy-image img {
        max-width: 480px !important;
    }
}

/* ===== third-item custom flex layout ===== */
.third-item-flex {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap; /* mobile: stack */
}
.third-item-flex .text-block,
.third-item-flex .image-block {
    width: 100%;
}
.third-item-flex .image-block {
    text-align: center;
}
.third-item-flex .image-block img {
    max-width: 320px;
    width: 100%;
    height: auto;
}
@media (min-width: 769px) {
    .third-item-flex { flex-wrap: nowrap; }
    .third-item-flex .text-block  { flex: 0 0 60%; width: 60%; }
    .third-item-flex .image-block { flex: 0 0 40%; width: 40%; }
}

/* FAQ Section (LLM向け最適化) */
.faq-section {
    background: #f8fafc;
    padding: 80px 0;
    margin: 60px 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #37352f;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.faq-header p {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
}

.faq-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 0;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #6b46c1;
}

/* Q部分のスタイル（クリック可能） */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
}

.faq-question:hover {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
}

.faq-question:hover h3 {
    color: white;
}

.faq-question:hover .faq-toggle-icon {
    color: white;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.faq-question h3 i {
    color: #6b46c1;
    font-size: 16px;
}

.faq-question:hover h3 i {
    color: white;
}

/* 開閉アイコン */
.faq-toggle-icon {
    color: #9ca3af;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
    color: #6b46c1;
}

/* A部分のスタイル */
.faq-answer {
    padding: 0 32px 32px 32px;
    color: #374151;
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-top: 24px;
}

.faq-answer p {
    font-size: 16px;
    margin: 0;
    line-height: 1.8;
}

.faq-answer strong {
    color: #1f2937;
    font-weight: 600;
}

/* A: プレフィックスのスタイル */
.faq-answer p strong:first-child {
    color: #059669;
    font-size: 17px;
    margin-right: 8px;
}

/* Company Details Section (LLM向け最適化) */
.company-details-section {
    background: #ffffff;
    padding: 80px 0;
    margin: 60px 0;
}

.company-details-header {
    text-align: center;
    margin-bottom: 60px;
}

.company-details-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #37352f;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.company-details-header p {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
}

.company-details-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.detail-item {
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.detail-item h3 {
    font-size: 28px;
    font-weight: 700;
    color: #37352f;
    margin-bottom: 20px;
    line-height: 1.3;
}

.detail-item p {
    font-size: 16px;
    color: #37352f;
    line-height: 1.7;
    margin-bottom: 16px;
}

.detail-item p:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    color: #2563eb;
    font-weight: 600;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.tech-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tech-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #37352f;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tech-item p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.feature-list li {
    font-size: 16px;
    color: #37352f;
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
    font-size: 16px;
}

.feature-list li strong {
    color: #2563eb;
    font-weight: 600;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

/* Mobile Responsiveness for FAQ and Company Details */
@media (max-width: 768px) {
    .faq-section, .company-details-section {
        padding: 60px 0;
        margin: 40px 0;
    }
    
    .faq-header h2, .company-details-header h2 {
        font-size: 32px;
    }
    
    .faq-content {
        margin: 0 16px;
    }
    
    /* モバイル用FAQアコーディオン調整 */
    .faq-question {
        padding: 14px 20px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .faq-question h3 {
        font-size: 16px;
        line-height: 1.5;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .faq-question h3 i {
        font-size: 14px;
        flex-shrink: 0;
    }

    .faq-toggle-icon {
        font-size: 14px;
        flex-shrink: 0;
    }

    .faq-answer {
        padding: 0 24px 24px 24px;
    }

    .faq-item.active .faq-answer {
        padding-top: 20px;
        max-height: 800px; /* モバイルでは高さを増やす */
    }

    .faq-answer p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .detail-item {
        padding: 24px;
        margin: 0 16px;
    }
    
    .detail-item h3 {
        font-size: 24px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tech-item {
        padding: 20px;
    }
}
