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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    line-height: 1.8;
    color: #4a4a4a;
    background: linear-gradient(-45deg, #ffeaa7, #fab1a0, #dfe6e9, #a29bfe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,.03) 2px,
            rgba(255,255,255,.03) 4px
        );
    pointer-events: none;
    z-index: 1;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #2d3436;
    letter-spacing: 0.05em;
    animation: fadeIn 1s ease-out;
}

.logo a {
    color: #2d3436;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #fab1a0;
}

/* Main */
main {
    flex: 1;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 80px 20px;
    animation: fadeIn 1.2s ease-out 0.3s both;
}

.hero-slogan {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

.hero-slogan-ja {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
}

/* Intro section */
.intro {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    text-align: center;
    animation: fadeIn 1s ease-out 0.6s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.intro h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 16px;
}

.intro p {
    font-size: 1.1rem;
    color: #636e72;
}

/* Services section */
.services {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.9s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.services h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 20px;
}

.services ul {
    list-style: none;
    padding: 0;
}

.services li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.services li:hover {
    padding-left: 10px;
    color: #fab1a0;
}

.services li:last-child {
    border-bottom: none;
}

.services li:before {
    content: "・";
    color: #fab1a0;
    font-weight: bold;
    margin-right: 8px;
}

/* Info section */
.info {
    margin-bottom: 40px;
}

.info > h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 24px;
}

.info-item {
    background: white;
    padding: 24px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

.info-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-item p {
    font-size: 1rem;
    color: #333;
}

.info-item a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

.info-item a:hover {
    color: #004999;
    text-decoration: underline;
}

/* Policy pages */
.policy {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out 0.3s both;
}

.policy h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #fab1a0;
}

.policy h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3436;
    margin-top: 32px;
    margin-bottom: 16px;
}

.policy section {
    margin-bottom: 24px;
}

.policy p {
    margin-bottom: 16px;
    color: #636e72;
}

.policy ul,
.policy ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.policy li {
    margin-bottom: 8px;
    color: #636e72;
}

.policy a {
    color: #fab1a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy a:hover {
    color: #fd79a8;
    text-decoration: underline;
}

.update-date {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}

/* Law table */
.law-table {
    margin-top: 24px;
}

.law-table table {
    width: 100%;
    border-collapse: collapse;
}

.law-table th,
.law-table td {
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
}

.law-table th {
    background-color: rgba(250, 177, 160, 0.15);
    font-weight: 600;
    width: 200px;
    color: #2d3436;
}

.law-table td {
    color: #636e72;
}

.law-table a {
    color: #fab1a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.law-table a:hover {
    color: #fd79a8;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 32px 20px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.footer-nav {
    text-align: center;
    margin-bottom: 16px;
}

.footer-nav a {
    color: #636e72;
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fab1a0;
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: #fab1a0;
}

.footer-nav a:hover::after {
    width: 100%;
}

.copyright {
    text-align: center;
    color: #b2bec3;
    font-size: 0.85rem;
}

/* 星の装飾 */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* マウスグロー効果 */
.mouse-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250, 177, 160, 0.15) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.3s ease;
}

/* ページロード時のアニメーション */
body:not(.loaded) .container {
    opacity: 0;
}

body.loaded .container {
    animation: fadeIn 1s ease-out forwards;
}

/* Responsive */
@media (max-width: 600px) {
    .hero {
        padding: 60px 20px;
    }

    .hero-slogan {
        font-size: 2rem;
    }

    .hero-slogan-ja {
        font-size: 1.2rem;
    }

    .container {
        padding: 24px 16px;
    }

    .intro,
    .services,
    .policy {
        padding: 24px;
    }

    .info-item {
        padding: 20px;
    }

    .policy h1 {
        font-size: 1.5rem;
    }

    .policy h2 {
        font-size: 1.2rem;
    }

    .law-table th {
        width: 120px;
        font-size: 0.9rem;
    }

    .law-table th,
    .law-table td {
        padding: 12px;
        font-size: 0.9rem;
    }

    .footer-nav a {
        display: block;
        margin: 8px 0;
    }
}
