@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    --primary-green: #006d3c;
    --secondary-green: #007b43;
    --light-green: #ebf5f0; /* Softer, lighter green for icon background */
    --text-dark: #2c3330; /* Softer dark for text */
    --text-light: #707572; /* Muted gray for descriptions */
    --bg-light: #f8faf9;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.04); /* Much softer shadow */
    --border-radius: 12px;
}

/* Set global font for price page elements */
.price-page-header,
.course-section,
.container,
.modal-overlay {
    font-family: 'Noto Sans JP', sans-serif;
}

/* Base adjustment for WordPress context */
.entry-content,
.post-content {
    max-width: 100%;
}

/* Header Section */
.price-page-header {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 80px 20px 120px; /* Adjusted padding for better overlap feel */
    text-align: center;
    margin-top: 0;
}

.price-page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: block;
}

.title-underline {
    position: relative;
    display: inline-block;
}

.title-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 3px;
    background-color: var(--white);
}

.price-page-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Course Grid Section */
.course-section {
    padding: 0 0 80px 0;
    background-color: var(--bg-light);
}

.container {
    max-width: 1100px;
    margin: -70px auto 60px; /* Slight increase in overlap */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px; /* Balanced gap */
}

@media (max-width: 850px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Styling */
.course-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px; /* Refined padding for better spatial balance */
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03); /* Slightly more visible border */
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.icon-wrapper {
    width: 40px; /* Reduced for Figma parity */
    height: 40px; /* Reduced for Figma parity */
    background-color: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    color: var(--primary-green);
}

.icon-wrapper svg {
    width: 18px; /* Reduced for breathing room */
    height: 18px; /* Reduced for breathing room */
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1f1d; /* Slightly darker for boldness */
    margin: 0;
    letter-spacing: -0.02em;
}

.card-title-highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6; /* Slightly tighter */
    flex-grow: 1;
}

.btn-detail {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 15px 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

.btn-detail:hover {
    background-color: var(--secondary-green);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    /* High z-index for WP themes */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    border-radius: var(--border-radius);
    padding: 40px;
    position: relative;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* User specified styles */
    color: #00703E;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px; /* 83.333% */
}

.close-btn:hover {
    opacity: 0.7;
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-body {
    margin-bottom: 40px;
}

.info-row {
    margin-bottom: 25px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.info-value {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 400;
}

.price-item {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    font-weight: 400;
}

.price-text {
    font-size: 1.05rem;
    font-weight: 400;
}

.tax-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: 8px;
    font-weight: 400;
}

.note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 30px;
    padding-top: 10px;
    font-weight: 400;
}

.btn-inquiry {
    display: block;
    width: 100%;
    background-color: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    text-align: center;
    padding: 18px 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: background-color 0.2s ease;
}

.btn-inquiry:hover {
    background-color: var(--secondary-green);
}