/* ===== 改善されたresearch.css ===== */

/* ベースレイアウト */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/*--------------------------------
ヒーローセクション
--------------------------------*/
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #003E5E 0%, #005A9E 50%, #80C0FF 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 80px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/research.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s forwards 0.2s;
}

.hero h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    margin: 0 0 30px 0;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s forwards 0.4s;
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s forwards 0.6s;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    max-width: 500px;
}

/* テクノロジー要素 */
.chart-element {
    position: absolute;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    will-change: transform;
    transform-origin: center center;
}

.chart-element:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

.chart-1 {
    top: 50px;
    left: 50px;
    width: 120px;
    height: 120px;
    font-size: 3rem;
}

.chart-2 {
    top: 80px;
    right: 80px;
    width: 100px;
    height: 100px;
    font-size: 2.8rem;
}

.chart-3 {
    top: 200px;
    left: 20px;
    width: 110px;
    height: 110px;
    font-size: 2.9rem;
}

.chart-4 {
    bottom: 100px;
    right: 50px;
    width: 95px;
    height: 95px;
    font-size: 2.6rem;
}

.chart-5 {
    top: calc(50% - 60px);
    left: calc(50% - 60px);
    width: 120px;
    height: 120px;
    font-size: 3.2rem;
    background: rgba(255, 255, 255, 0.2);
}

h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #003E5E, #80C0FF);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* アニメーション */
@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== セクション共通スタイル ===== */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #003E5E;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
    border-radius: 2px;
}

/* ===== モニターセクション ===== */
.monitor-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.content-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 62, 94, 0.1);
    border: 1px solid rgba(0, 90, 158, 0.1);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 2rem;
    text-align: left;
}

.highlight-text {
    color: #005A9E;
    font-weight: 600;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-wrapper {
    text-align: center;
    margin-top: 2rem;
}

/* ===== 特徴セクション ===== */
.features-section {
    padding: 5rem 0;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 62, 94, 0.08);
    border: 1px solid rgba(0, 90, 158, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 62, 94, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #005A9E, #80C0FF);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.feature-title {
    font-size: 1.4rem;
    color: #003E5E;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #666666;
}

/* ===== ユースケーステーブル ===== */
.usecase-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 62, 94, 0.1);
    background: #ffffff;
    margin-top: 3rem;
}

.usecase-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
    font-size: 0.95rem;
}

.usecase-table thead th {
    background: linear-gradient(135deg, #003E5E, #005A9E);
    color: #ffffff;
    font-weight: 600;
    padding: 1.5rem 1rem;
    text-align: center;
    line-height: 1.3;
    position: relative;
}

.usecase-table thead th:first-child {
    border-top-left-radius: 20px;
}

.usecase-table thead th:last-child {
    border-top-right-radius: 20px;
}

.usecase-table tbody th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-weight: 600;
    padding: 1.2rem 1rem;
    text-align: left;
    color: #003E5E;
    border-bottom: 1px solid rgba(0, 90, 158, 0.1);
}

.usecase-table tbody td {
    background: #ffffff;
    padding: 1.2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 90, 158, 0.1);
    transition: background-color 0.3s ease;
}

.usecase-table tbody tr:hover td {
    background: rgba(128, 192, 255, 0.05);
}

.usecase-table .dot {
    position: relative;
}

.usecase-table .dot::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #BFA35F, #D4B86A);
    box-shadow: 0 2px 8px rgba(191, 163, 95, 0.3);
}

.usecase-table .industry th,
.usecase-table .industry td {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    font-size: 0.85rem;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.usecase-table tbody tr:last-child th {
    border-bottom-left-radius: 20px;
}

.usecase-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 20px;
}

/* ===== 事例セクション ===== */
.examples-section {
    padding: 5rem 0;
    background: #ffffff;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.example-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 62, 94, 0.08);
    border: 1px solid rgba(0, 90, 158, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.example-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 62, 94, 0.15);
}

.example-header {
    background: linear-gradient(135deg, #003E5E, #005A9E);
    color: #ffffff;
    padding: 2rem;
    position: relative;
}

.example-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #80C0FF, #ffffff);
}

.example-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.example-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #80C0FF;
    margin: 0;
}

.example-content {
    padding: 2rem;
}

.example-details {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.example-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 90, 158, 0.1);
    font-size: 0.95rem;
    line-height: 1.6;
}

.example-details li:last-child {
    border-bottom: none;
}

.price-breakdown {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.breakdown-title {
    font-size: 1rem;
    color: #003E5E;
    font-weight: 600;
    margin-bottom: 1rem;
}

.breakdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breakdown-list li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: #666666;
    position: relative;
    padding-left: 1rem;
}

.breakdown-list li::before {
    content: '•';
    color: #005A9E;
    position: absolute;
    left: 0;
}

/* ===== CTAセクション ===== */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.cta-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 62, 94, 0.1);
    border: 1px solid rgba(0, 90, 158, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #003E5E;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.cta-description {
    text-align:left;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 2rem;
    margin: auto 0;
    padding-left: 25%;
}

/* ===== ボタンスタイル ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #005A9E, #80C0FF);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 90, 158, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 90, 158, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #BFA35F, #D4B86A);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(191, 163, 95, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(191, 163, 95, 0.4);
}

/* ===== アニメーション ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float1 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-25px);
    }
}

@keyframes float4 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes float5 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-18px);
    }
}

/* ===== フェードインエフェクト ===== */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: left;
        padding: 60px 20px;
        min-height: 80vh;
    }

    .hero::before {
        background-attachment: scroll;
    }

    .hero-content {
        flex-direction: column;
        max-width: 100%;
        gap: 40px;
        align-items: center;
        padding: 20px;
    }

    .hero-text {
        order: 1;
        max-width: 100%;
        margin-bottom: 0;
        padding: 0 10px;
    }

    .hero-visual {
        order: 2;
        max-width: 100%;
        height: 300px;
        margin-top: 20px;
        position: relative;
        width: 100%;
    }

    .chart-element {
        position: static;
        margin: 10px auto;
    }

    .chart-1, .chart-2, .chart-3, .chart-4, .chart-5 {
        position: static;
        margin: 10px auto;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .hero-visual {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        height: auto;
        min-height: 200px;
    }

    .data-visualization {
        width: 300px;
        height: 300px;
    }

    .features-grid,
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-card,
    .cta-card {
        padding: 2rem;
    }

    .feature-card,
    .example-card {
        padding: 2rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .table-wrapper {
        border-radius: 12px;
    }

    .usecase-table thead th:first-child {
        border-top-left-radius: 12px;
    }

    .usecase-table thead th:last-child {
        border-top-right-radius: 12px;
    }

    .usecase-table tbody tr:last-child th {
        border-bottom-left-radius: 12px;
    }

    .usecase-table tbody tr:last-child td:last-child {
        border-bottom-right-radius: 12px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px;
    }

    .section-container {
        padding: 0 15px;
    }

    .content-card,
    .cta-card,
    .feature-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== アクセシビリティ改善 ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* フォーカス表示を無効化 */
.btn:focus,
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    .hero {
        background: #000000;
    }

    
    .hero-title,
    .hero-subtitle,
    .hero-description {
        color: #ffffff;
    }
    
    .section-title {
        color: #000000;
    }
    
    .feature-card,
    .example-card,
    .content-card,
    .cta-card {
        border: 2px solid #000000;
    }
}

@media (max-width: 768px) {
    .hero h1,
    .hero h2,
    .hero p {
        opacity: 1;
        transform: none;
        animation: none;
    }
}