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

:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #008080;
    /* Teal-ish color, adjustable */
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --text-color: #333;
    --link-color: #0066cc;
    --spacing-unit: 1rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

section {
    max-width: 800px;
    width: 100%;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.main-top {
    margin-bottom: 3rem;
}

.main-top img[alt="Studio GAYA"] {
    max-width: 200px;
    /* Reverted to original size */
    width: 100%;
    margin-bottom: 0.2rem;
    /* Reduced from 2rem */
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #7c9fcd;
}

p {
    margin-bottom: 1.5rem;
    /* Increased from 1rem */
    color: var(--secondary-color);
    line-height: 2;
    /* Increased line height */
}

p b {
    font-weight: bold;
    color: var(--accent-color);
}

p a {
    color: var(--link-color);
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

.link {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.link a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    /* Increased from 300px */
    transition: transform 0.2s, box-shadow 0.2s;
    color: inherit;
}

.link a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.link a img:hover {
    opacity: 0.8;
}

.link img {
    width: 100%;
    height: auto;
    max-width: 100%;
    /* Increased from 200px */
    margin-bottom: 1.5rem;
    object-fit: contain;
    border-radius: 8px;
}

.link p {
    font-size: 0.9rem;
    color: var(--link-color);
    margin-bottom: 0;
    word-break: break-all;
    line-height: 1.6;
    /* Reset line height for link text */
}

.main-bottom {
    border-top: 1px solid #eee;
    padding-top: 3rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.main-bottom a {
    display: inline-block;
    margin: 0.5rem 1rem;
    color: var(--secondary-color);
    text-decoration: underline;
    transition: color 0.2s;
}

.main-bottom a:hover {
    color: var(--accent-color);
}

footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
    font-size: 0.85rem;
}

footer p {
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.6;
}

footer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    section {
        padding: 2rem 1.5rem;
        text-align: left;
        /* Left align on mobile */
    }

    .main-top {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-top img[alt="Studio GAYA"] {
        max-width: 180px;
    }

    /* Keep h1 centered if desired, or left align too. Let's keep it centered for balance, but text left. */
    h1 {
        text-align: center;
    }

    .link {
        flex-direction: column;
        align-items: center;
    }

    .link a {
        padding: 1rem;
    }
}