/* ==================================================
   CSS Reset & Normalize
   ================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* Mobile: 10px = 1rem - FIXED for better readability */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1.6rem; /* 16px - Standard readable size */
    line-height: 1.6; /* Slightly tighter for mobile */
    color: #1a202c;
    background: #ffffff;
    overflow-x: hidden;
    position: relative;
    /* Enhanced mobile optimization */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Prevent zoom on input focus (iOS) */
    -webkit-text-size-adjust: 100%;
}

/* Tablet and up */
@media (min-width: 768px) {
    html {
        font-size: 58%;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    html {
        font-size: 62.5%; /* 10px = 1rem */
    }
}

/* Large screens */
@media (min-width: 1440px) {
    html {
        font-size: 65%;
    }
}

/* Background decorative elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(5, 150, 105, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* List reset */
ul, ol {
    list-style: none;
}

/* Link reset */
a {
    color: inherit;
    text-decoration: none;
}

/* Button reset */
button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Image reset */
img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form elements reset */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* Table reset */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}