:root {
    --primary-color: #4338ca;
    /* Indigo 700 */
    --secondary-color: #0284c7;
    /* Sky 700 */
    --accent-color: #e11d48;
    /* Rose 600 */
    --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.8);
    --text-color: #0f172a;
    --text-muted: #475569;
    --card-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.04), 0 2px 8px -1px rgba(0, 0, 0, 0.02);
    --card-shadow-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* Background Blobs (Removed since using background.png) */
.background-blobs,
.blob {
    display: none;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 4rem;
}

.title {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 1.5rem auto;
    border-radius: 2px;
}

.intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-color);
    font-weight: 500;
}

.intro p {
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0 0 10px rgba(255, 255, 255, 0.8);
    /* Glow effect for readability */
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    background: rgba(255, 255, 255, 0.5);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header .icon {
    font-size: 1.8rem;
    margin-right: 1rem;
    background: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Guidelines List */
.guideline-list {
    list-style: none;
}

.guideline-list li {
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.guideline-list li strong {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.guideline-list li p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Prohibitions */
.card-warning {
    border-left: 6px solid var(--accent-color);
}

.warning-box {
    background: rgba(244, 63, 94, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.prohibition-list {
    list-style: none;
    margin-top: 1rem;
}

.prohibition-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.prohibition-list li::before {
    content: "✖";
    color: var(--accent-color);
    margin-right: 0.75rem;
    font-weight: bold;
}

.prohibition-list li span {
    font-weight: 700;
    color: var(--accent-color);
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Fees */
.alert {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px dashed var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 500;
}

/* Contact */
.contact-card {
    grid-column: 1 / -1;
    background: var(--glass-bg);
    color: var(--text-color);
}

.contact-card .card-header .icon {
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact-card .card-header .icon span {
    filter: none;
}

.contact-card p {
    opacity: 0.9;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.contact-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.mail-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-color);
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mail-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.mail-link:after {
    content: attr(data-email);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mail-link:hover:after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mail-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mail-svg {
    width: 28px;
    height: 28px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 4rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards ease-out;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    body {
        padding: 1rem 0.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .header {
        margin-bottom: 2.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .email-address {
        font-size: 0.9rem;
    }

    .mail-link {
        padding: 0.5rem 1rem;
    }
}