.workshop-container {
    padding: 20px;
    max-width: 95%;
    margin: 0 auto;
}

.workshop-container h3 {
    color: var(--nature-blue);
} 

div.workshop-container > section {
    margin: 60px 0;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(5px);
}

/* Common h2 styles for all sections */
div.workshop-container > section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--nature-blue);
    font-size: 2.2em;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

div.workshop-container > section h2::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 15px auto;
    border-radius: 2px;
    transition: width 0.8s ease-out;
    transition-delay: 0.3s;
}

div.workshop-container > section h2.fade-in-section::after {
    width: 80px;
}

div.workshop-container > section h2:hover {
    transform: translateY(-2px);
}

div.workshop-container > section h2:hover::after {
    width: 120px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    div.workshop-container > section h2 {
        font-size: 1.5em;
        padding: 10px 0;
    }
}

div.workshop-container > section:nth-of-type(3n+1) {
    background-color: var(--bg-color-1);
}

div.workshop-container > section:nth-of-type(3n+2) {
    background-color: var(--bg-color-2);
}

div.workshop-container > section:nth-of-type(3n) {
    background-color: var(--bg-color-3);
}

@media (max-width: 768px) {
    .workshop-container {
        max-width: 100%;
        padding: 10px;
    }
    div.workshop-container > section {
        padding: 20px;
        margin: 30px 0;
    }
}

.workshop-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.workshop-item {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    font-weight: bold;
    color: var(--secondary-color);
    border: 1px solid var(--bg-color-2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}

#modal-description {
    text-align: left;
    margin: 1rem 0;
    line-height: 1.7;
    color: #333;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

#modal-title {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--primary-color);
}

#modal-logo {
    display: block;
    max-width: 150px;
    max-height: 150px;
    margin: 0 auto 15px auto;
}

#modal-links a {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#modal-links a:hover {
    background-color: var(--secondary-color);
}

#modal-links a + a {
    margin-left: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.workshop-grid {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
    max-width: 95%;
    margin: 0 auto;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .workshop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .workshop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.activity-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.activity-block h3 {
    font-size: 1.5em;
    text-align: center;
    padding: 25px 20px;
    margin: 0;
    background-color: var(--nature-blue);
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.activity-block.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.activity-block:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .activity-block {
        padding: 0;
        width: 100%;  /* 幅を100%に設定 */
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }
}

/* Activity Details Styles */
.activity-details {
    margin: 30px 0;
    padding: 10px 40px;
    background-color: #fff;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.activity-details img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Activity Details Table Styles */
.activity-details table {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0 20px;
}

.activity-details th {
    width: 220px;
    padding: 25px 35px;
    background: var(--nature-blue);
    color: white;
    border-radius: 15px 0 0 15px;
    font-weight: 500;
    font-size: 1.1em;
    vertical-align: top;
}

.activity-details td {
    padding: 25px 35px;
    background: #f8f9fa;
    border-radius: 0 15px 15px 0;
    line-height: 1.8;
    font-size: 1.1em;
}

.activity-details td span {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.activity-details td small {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

.activity-details strong {
    color: var(--nature-blue);
    font-weight: bold;
}

.activity-notes {
    background-color: var(--bg-color-2);
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
    margin: 2rem;
}

.activity-notes {
    color: var(--secondary-color);
}

.activity-notes h4 {
    margin-top: 0;
    margin-bottom: 20px;
}

.activity-notes ul {
    padding-left: 20px;
    margin: 0;
}

.detail-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.detail-value {
    color: var(--secondary-color);
}

.detail-label {
    width: 120px;
    flex-shrink: 0;
}

.activity-details strong {
    color: var(--nature-blue);
    font-weight: bold;
}

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

@media (max-width: 768px) {
    .detail-item {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .activity-details, .activity-notes {
        padding: 15px 20px;
        margin: 0 1rem 1rem 1rem;
    }
}