/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.back-button {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.back-button:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}



/* Main content styles */
.main-content {
    padding: 0.2rem;
}

.main-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

/* Section styles */
.consultation-section {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.content-block {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Patient list styles */
.patient-list {
    list-style: none;
    margin: 1.5rem 0;
}

.patient-list li {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    font-size: 1rem;
    line-height: 1.6;
}

.patient-list li .note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #e74c3c;
    font-weight: 500;
}

/* Contact info styles */
.contact-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #856404;
}

.phone-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50 !important;
}

.phone-button-container {
    text-align: center;
    margin: 1rem 0;
}

.phone-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.phone-button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.phone-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
}

.phone-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.phone-icon {
    font-size: 1.2rem;
    filter: brightness(0) invert(1);
}

.phone-text {
    font-weight: 700;
}

/* Step section styles */
.step-section {
    margin-bottom: 2rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* QR code styles */
.qr-section {
    text-align: center;
    margin: 2rem 0;
}

.qr-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 1rem;
    display: block;
}

.qr-code {
    display: inline-block;
    margin: 0 auto;
}

.qr-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.line-button-section {
    text-align: center;
    margin: 2rem 0;
}

.line-button {
    display: inline-block;
    background: #00B900;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 187, 0, 0.3);
}

.line-button:hover {
    background: #009900;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 187, 0, 0.4);
}

.telemedicine-image-section {
    text-align: center;
    margin: 3rem 0 1rem 0;
}

.telemedicine-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Procedure section styles */
.procedure-section {
    margin-top: 2rem;
}

.procedure-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.procedure-note {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #1976d2;
    font-weight: 500;
}

.procedure-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.procedure-list li {
    counter-increment: step-counter;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 3.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.procedure-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.procedure-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.procedure-list li .important-note {
    display: block;
    margin-top: 0.5rem;
    color: #e74c3c;
    font-weight: 500;
    font-size: 0.9rem;
}



/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        padding: 0.4rem;
        padding-top: 4rem; /* Add space for the back button */
    }
    
    .back-button {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    .main-title {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.8rem;
    }
    
    .content-block {
        padding: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .procedure-list li {
        padding-left: 2.5rem;
    }
    
    .procedure-list li::before {
        left: 0.5rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.3rem;
        padding-top: 3.5rem; /* Less space for very small screens */
    }
    
    .back-button {
        top: 0.3rem;
        left: 0.3rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 15px;
    }
    
    .main-title {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
    }
    
    .content-block {
        padding: 1rem;
    }
    
    .patient-list li {
        padding: 0.8rem 1rem;
    }
    
    .procedure-list li {
        padding: 1rem 1rem 1rem 2rem;
    }
    
    .procedure-list li::before {
        left: 0.3rem;
        width: 1.2rem;
        height: 1.2rem;
        font-size: 0.7rem;
    }
}

/* Print styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .container {
        box-shadow: none;
        max-width: none;
    }
    
    .content-block {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 