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

body {
    background-color: #fcfcfc;
    color: #1a1a1a;
    font-family: 'Courier Prime', monospace;
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.snowflake {
    position: fixed;
    top: -10px;
    color: #dbe9f4;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #a1c4e8;
    user-select: none;
    z-index: 9999;
    pointer-events: none;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

main {
    display: block;
}

#home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #1a1a1a;
    padding: 20px;
    overflow: hidden;
}

.grid-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(#d1dbe5 1px, transparent 1px),
        linear-gradient(90deg, #d1dbe5 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    z-index: -1;
}

.header-box {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 4px solid #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.main-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18vw; 
    line-height: 0.8;
    color: #1a1a1a;
    letter-spacing: -4px;
    background: -webkit-linear-gradient(#000, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 1000px) {
    .main-title { font-size: 180px; }
}

.sub-title {
    font-family: 'Oswald', sans-serif;
    font-size: 4vw;
    background: #1a1a1a;
    color: #fff;
    padding: 2px 10px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

@media (min-width: 1000px) { .sub-title { font-size: 40px; } }

.vertical-strip {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 12vw;
    max-width: 80px;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.4em;
    z-index: 10;
}

.sticker-box {
    position: absolute;
    left: 5%;
    top: 55%;
    border: 2px solid #1a1a1a;
    padding: 12px 6px;
    writing-mode: vertical-rl;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    background: #fff;
    color: #4a6fa5;
    box-shadow: 4px 4px 0px #4a6fa5;
    z-index: 5;
}

.hero-img-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    border: 1px solid #1a1a1a;
    background: #fff;
    z-index: 1;
    margin: 0;
}

.hero-img-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(173, 216, 230, 0.15);
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(1.05) brightness(1.1);
    mix-blend-mode: multiply;
}

#about {
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: #fff;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    max-width: 900px;
}

@media (min-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.definition h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Noto Sans JP', sans-serif;
    color: #1a1a1a;
}

.definition .kanji-sub {
    color: #6a8caf;
    font-size: 1rem;
    letter-spacing: 2px;
}

.definition p {
    font-style: italic;
    border-left: 3px solid #6a8caf;
    padding-left: 15px;
    margin-top: 10px;
    color: #555;
}

.quote-jp, .quote-en {
    margin: 0;
}

.quote-jp {
    font-family: 'Noto Sans JP', sans-serif;
    margin-top: 2.5rem;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #333;
    font-weight: 300;
}

.quote-en {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #888;
}

.about-img-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0;
}

.about-img {
    width: 85%;
    max-width: 320px;
    border: 1px solid #ccc;
    box-shadow: 15px 15px 0px rgba(173, 216, 230, 0.4); 
    filter: grayscale(100%);
}

footer#footer {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 0;
    position: relative;
    background: linear-gradient(to top, #f0f4f8 0%, #fff 100%);
}

.footer-text {
    position: absolute;
    top: 20%;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: #6a8caf;
}

.footer-img {
    max-width: 500px;
    width: 100%;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%); 
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    filter: grayscale(100%) opacity(0.8);
}
