/* 医療機関向けページ専用スタイル */

/* Hero Banner */
.medical-hero {
    position: relative;
    height: 500px;
    background-image: linear-gradient(rgba(167, 197, 235, 0.8), rgba(167, 197, 235, 0.8)), url('../images/medical-hero.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-bottom: 40px;
}

.medical-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
}

.medical-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.medical-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #3a6348;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.medical-hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #3a6348;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* モバイル用のスタイル */
@media (max-width: 767px) {
    .medical-hero {
        align-items: flex-end;
        padding-bottom: 20px;
    }
    
    .medical-hero-content {
        max-width: 90%;
        padding: 15px;
    }
    
    .medical-hero h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .medical-hero p {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
}

/* さらに小さい画面用 */
@media (max-width: 480px) {
    .medical-hero h1 {
        font-size: 1.8rem;
    }
    
    .medical-hero p {
        font-size: 1rem;
    }
}

.hero-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
    background-color: #3a6348;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Challenges and Solutions */
.challenges-solutions-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.challenges-solutions-container {
    margin-top: 50px;
}

/* ソリューションカード基本設計 */
.solution-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* カードヘッダー - バッジ表示部分 */
.solution-header {
    display: flex;
    padding: 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #eaeaea;
}

.challenge-badge, .solution-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 10px;
}

.challenge-badge {
    background-color: #ffebee;
    color: #d32f2f;
}

.solution-badge {
    background-color: #e8f5e9;
    color: #388e3c;
}

/* カードボディ - 実際のコンテンツ部分 */
.solution-body {
    display: flex;
    padding: 25px;
    flex-wrap: wrap;
}

.challenge-side, .solution-side {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    position: relative;
}

.challenge-side {
    border-right: 1px dashed #ddd;
}

/* 矢印部分 */
.solution-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 60px;
    padding: 0 10px;
}

/* アイコン */
.solution-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    background-color: #ffebee;
    color: #d32f2f;
}

.solution-icon.solution {
    background-color: #e8f5e9;
    color: #388e3c;
}

/* テキスト部分 */
.solution-side h3, .challenge-side h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.solution-side p, .challenge-side p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
}

/* 追加のアイコン装飾 */
.fa-chart-line.down {
    transform: rotate(45deg);
}

.fa-chart-line.up {
    transform: rotate(-45deg);
}

/* モバイル対応 */
@media (max-width: 991px) {
    .solution-body {
        flex-direction: column;
    }
    
    .challenge-side, .solution-side {
        width: 100%;
    }
    
    .challenge-side {
        border-right: none;
        border-bottom: 1px dashed #ddd;
    }
    
    .solution-arrow {
        width: 100%;
        padding: 15px 0;
        transform: rotate(90deg);
    }
}

@media (max-width: 767px) {
    .solution-card {
        margin-bottom: 30px;
    }
    
    .solution-header {
        padding: 10px;
    }
    
    .challenge-badge, .solution-badge {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
    
    .solution-body {
        padding: 15px;
    }
    
    .challenge-side, .solution-side {
        padding: 15px;
    }
    
    .solution-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .solution-side h3, .challenge-side h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .solution-side p, .challenge-side p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* PC表示用スタイル */
@media (min-width: 768px) {
    /* 古い課題と解決策用のスタイルを完全に無効化 */
    .challenge-box,
    .solution-box,
    .compact-card-header,
    .compact-card-body,
    .compact-card-challenge,
    .compact-card-solution,
    .compact-card-arrow,
    .compact-card-icon,
    .compact-card-heading,
    .compact-card-text,
    .compact-card-button {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        pointer-events: none !important;
        z-index: -9999 !important;
    }
}

/* モーダルを完全に無効化 */
.modal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
    z-index: -999 !important;
}

.modal-content,
.modal-close,
.modal-title,
.modal-body {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
    z-index: -999 !important;
}

/* Case Studies */
.case-studies-section {
    padding: 80px 0;
    background-color: #fff;
}

.case-studies-container {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    flex-wrap: wrap;
}

.case-study-card {
    width: 48%;
    min-width: 300px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
}

.case-study-image {
    height: 250px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-content {
    padding: 30px;
}

.case-study-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.case-meta {
    display: flex;
    margin-bottom: 15px;
    color: #777;
    flex-wrap: wrap;
}

.case-meta span {
    margin-right: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.case-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.effect-data {
    display: flex;
    margin-top: 20px;
    flex-wrap: wrap;
}

.effect-item {
    text-align: center;
    margin-right: 40px;
    margin-bottom: 15px;
}

.effect-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.percentage {
    font-size: 1.5rem;
}

.effect-label {
    font-size: 1rem;
    color: #777;
}

/* モバイル表示の改善 - 事例・効果データセクション */
@media (max-width: 767px) {
    .case-studies-container {
        flex-direction: column;
    }
    
    .case-study-card {
        width: 100%;
        min-width: auto;
        margin-left: auto;
        margin-right: auto;
    }
    
    .case-study-image {
        height: 200px;
    }
    
    .case-study-content {
        padding: 20px;
    }
    
    .case-study-content h3 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .case-meta {
        justify-content: center;
    }
    
    .case-study-card p {
        text-align: center;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .effect-data {
        justify-content: center;
    }
    
    .effect-item {
        margin: 0 20px 15px;
    }
    
    .effect-number {
        font-size: 2rem;
    }
    
    .percentage {
        font-size: 1.2rem;
    }
}

/* Strengths Section */
.strengths-section {
    padding: 80px 0;
    background-color: #fff;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.strength-card {
    background-color: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.strength-card:hover {
    transform: translateY(-5px);
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.strength-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(94, 153, 120, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.strength-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.strength-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* モバイル対応 */
@media screen and (max-width: 992px) {
    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .strength-card {
        padding: 25px;
    }
    
    .strength-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 576px) {
    .strength-card {
        padding: 20px;
    }
    
    .strength-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
}

/* Plans Section */
.plans-section {
    padding: 80px 0;
    background-color: #fff;
    position: relative;
}

/* 背景の装飾要素を追加 */
.plans-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(167, 197, 235, 0.1) 0%, transparent 80%),
        radial-gradient(circle at 90% 90%, rgba(167, 197, 235, 0.1) 0%, transparent 80%);
    z-index: 0;
    pointer-events: none;
}

.plans-section .section-title p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #555;
}

.introduction-methods {
    display: flex;
    flex-direction: column;  /* 縦方向に配置するように変更 */
    margin-top: 50px;
    align-items: center;    /* 中央揃えに */
    position: relative;
    z-index: 1;
    gap: 50px; /* カード間の間隔を増やす */
}

.method-card {
    width: 90%;
    max-width: 800px;      /* 最大幅を増やす */
    min-width: 300px;
    background-color: #fff;
    border-radius: 16px;   /* より丸みを持たせる */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);  /* シャドウを改良 */
    padding: 40px;    /* パディングを調整 */
    display: flex;
    margin-bottom: 10px;
    transition: all 0.4s ease;
    border-left: 5px solid var(--primary-color);  /* 左端にアクセントカラー */
    position: relative;
    overflow: hidden;
}

/* 各カードの背景に装飾効果を追加 */
.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(167, 197, 235, 0.2) 0%, rgba(167, 197, 235, 0.05) 60%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    z-index: 0;
}

.method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.method-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a6348 100%); /* グラデーション追加 */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;     /* フォントサイズ拡大 */
    font-weight: 700;
    margin-right: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.method-card:hover .method-number {
    transform: rotate(10deg) scale(1.1);
    background: linear-gradient(135deg, #3a6348 0%, var(--primary-color) 100%); /* ホバー時グラデーション反転 */
}

.method-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.method-content h3 {
    font-size: 1.8rem;     /* フォントサイズ拡大 */
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
    position: relative;
}

.method-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px dashed rgba(167, 197, 235, 0.4);
}

.method-description {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.method-benefits {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.method-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
}

.method-benefits li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.method-cta {
    margin-top: 20px;
}

.method-cta .btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(58, 99, 72, 0.2);
}

.method-cta .btn:hover {
    background-color: #3a6348;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(58, 99, 72, 0.3);
}

.btn-small {
    font-size: 0.9rem;
    padding: 10px 20px !important;
}

/* スマートフォン向けレスポンシブ対応 */
@media (max-width: 767px) {
    .method-card {
        width: 95%;
        padding: 30px 25px;
        flex-direction: column;
    }
    
    .method-number {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin: 0 0 20px 0;
        align-self: center;
    }
    
    .method-content h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .method-subtitle {
        text-align: center;
        font-size: 1rem;
    }
    
    .method-description {
        text-align: center;
        font-size: 0.95rem;
    }
    
    .method-benefits li {
        font-size: 0.9rem;
    }
    
    .method-cta {
        text-align: center;
    }
}

/* コンタクトCTAセクション（特にモバイル用に最適化） */
.contact-cta-section {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(120deg, rgba(94, 153, 120, 0.9), rgba(58, 99, 72, 0.95));
    overflow: hidden;
    margin-top: 50px;
}

/* 装飾的な背景要素 */
.contact-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    transform: rotate(45deg);
    z-index: 1;
}

.contact-cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    z-index: 1;
}

.contact-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to right, #fff, #e8f5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.contact-cta-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
}

.contact-cta-content .btn.large-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;
    background-color: #fff;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-cta-content .btn.large-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: all 0.6s ease;
    z-index: -1;
}

.contact-cta-content .btn.large-btn:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-cta-content .btn.large-btn:hover::before {
    left: 100%;
}

.contact-cta-content .btn.large-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* コンタクトセクションのアニメーションとアイコンスタイル */
.cta-icon {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.cta-icon i {
    color: rgba(255, 255, 255, 0.95);
    background-color: rgba(255, 255, 255, 0.15);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

/* パルスアニメーション */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* コンタクト方法のスタイル */
.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.contact-methods span {
    margin: 0 15px;
    padding: 10px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.contact-methods span:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.contact-methods span i {
    margin-right: 8px;
}

/* PDFダウンロードリンクのスタイル上書き（視認性向上） */
.contact-methods .pdf-download-link {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--primary-color);
    font-weight: 600;
    margin: 5px 15px;
    border-radius: 30px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.contact-methods .pdf-download-link:hover {
    background-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-methods .pdf-download-link i {
    margin-right: 8px;
    color: #d32f2f;
}

/* モバイル向けの最適化 */
@media (max-width: 767px) {
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-methods span,
    .contact-methods .pdf-download-link {
        margin: 5px 0;
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* モバイル用の最適化スタイル */
@media (max-width: 767px) {
    .contact-cta-section {
        padding: 50px 0;
    }
    
    .contact-cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .contact-cta-content p {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .contact-cta-content .btn.large-btn {
        width: 85%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-cta-section {
        padding: 40px 0;
    }
    
    .contact-cta-content h2 {
        font-size: 1.5rem;
    }
}