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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100vh;
    background: #0b0b0b;
    color: #f5f5f5;
    position: relative;
    overflow-x: hidden;
    line-height: 1.2;
    transition: background-color 0.3s ease, color 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #0b0b0b;
        color: #f5f5f5;
    }
    
    .grid-overlay {
        background-image: 
            linear-gradient(rgba(245,245,245,0.1) 1px, transparent 1px),
            linear-gradient(90deg, rgba(245,245,245,0.1) 1px, transparent 1px);
    }
    
    .footer-info {
        border-top: 1px solid #f5f5f5;
    }
    
    .service-item {
        border-bottom: 1px solid #f5f5f5;
    }
    
    .logo {
        color: #f5f5f5;
    }
    
    .tagline {
        color: #f5f5f5;
    }
    
    .service-number {
        color: #f5f5f5;
    }
    
    .service-text {
        color: #f5f5f5;
    }
    
    .info-title {
        color: #f5f5f5;
    }
    
    .info-text {
        color: #f5f5f5;
    }
    
    .services-title {
        color: #f5f5f5;
    }
    
    .contact-text,
    .year {
        color: #f5f5f5;
    }
}

body.dark-mode {
    background: #0a0a0a;
    color: #f5f5f5;
}

body.dark-mode .grid-overlay {
    background-image: 
        linear-gradient(rgba(245,245,245,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245,245,245,0.1) 1px, transparent 1px);
}

body.dark-mode .footer-info {
    border-top: 1px solid #f5f5f5;
}

body.dark-mode .service-item {
    border-bottom: 1px solid #f5f5f5;
}

body.dark-mode .gradient-1 {
    background: radial-gradient(circle at 30% 40%, rgba(200, 150, 255, 0.2) 0%, transparent 70%);
}

body.dark-mode .gradient-2 {
    background: radial-gradient(circle at 60% 20%, rgba(150, 220, 255, 0.17) 0%, transparent 65%);
}

body.dark-mode .gradient-3 {
    background: radial-gradient(circle at 80% 80%, rgba(255, 180, 200, 0.14) 0%, transparent 80%),
                radial-gradient(circle at 20% 30%, rgba(255, 200, 120, 0.14) 0%, transparent 80%);
}

body.dark-mode .logo {
    color: #f5f5f5;
}

body.dark-mode .tagline {
    color: #f5f5f5;
}

body.dark-mode .service-number {
    color: #f5f5f5;
}

body.dark-mode .service-text {
    color: #f5f5f5;
}

body.dark-mode .info-title {
    color: #f5f5f5;
}

body.dark-mode .info-text {
    color: #f5f5f5;
}

body.dark-mode .services-title {
    color: #f5f5f5;
}

body.dark-mode .contact-text,
body.dark-mode .year {
    color: #f5f5f5;
}

body.light-mode {
    background: #fafafa;
    color: #0a0a0a;
}

body.light-mode .grid-overlay {
    background-image: 
        linear-gradient(rgba(10,10,10,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,10,10,0.1) 1px, transparent 1px);
}

body.light-mode .footer-info {
    border-top: 1px solid #0a0a0a;
}

body.light-mode .service-item {
    border-bottom: 1px solid #0a0a0a;
}

body.light-mode .description-text {
    color: #0a0a0a;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    filter: blur(100px);
    z-index: 0;
    mix-blend-mode: normal;
    border-radius: 50%;
}

.gradient-1 {
    background: radial-gradient(ellipse at 30% 30%, rgba(180, 140, 255, 0.4) 0%, rgba(120, 80, 200, 0.25) 40%, transparent 70%);
    animation: gradientMove1 40s ease-in-out infinite, gradientFadeIn 2s ease-out forwards;
    z-index: -1;
    opacity: 0;
    transform: scale(1.2);
    width: 120vw;
    height: 120vw;
    max-width: 2000px;
    max-height: 2000px;
    border-radius: 50%;
    box-shadow: 
        inset -150px -150px 300px rgba(120, 80, 200, 0.3),
        inset 150px 150px 300px rgba(180, 140, 255, 0.2),
        0 0 300px rgba(120, 80, 200, 0.15);
}

.gradient-2 {
    background: radial-gradient(ellipse at 20% 20%, rgba(150, 250, 255, 0.3) 0%, rgba(100, 200, 255, 0.15) 50%, transparent 80%);
    animation: gradientMove2 30s ease-in-out infinite, gradientFadeIn 2s ease-out 0.5s forwards;
    z-index: -2;
    filter: blur(100px);
    opacity: 0;
    transform: scale(0.8);
    width: 100vw;
    height: 100vw;
    max-width: 1000px;
    max-height: 1000px;
    border-radius: 50%;
    box-shadow: 
        inset -120px -120px 240px rgba(100, 200, 255, 0.25),
        inset 120px 120px 240px rgba(150, 250, 255, 0.15),
        0 0 240px rgba(100, 200, 255, 0.1);
}

.gradient-3 {
    background: radial-gradient(ellipse at 25% 25%, rgba(255, 200, 180, 0.25) 0%, rgba(255, 100, 150, 0.12) 60%, transparent 85%);
    animation: gradientMove3 60s ease-in-out infinite, gradientFadeIn 2s ease-out 1s forwards;
    z-index: -3;
    filter: blur(100px);
    transform-origin: center;
    opacity: 0;
    transform: scale(0.6);
    width: 90vw;
    height: 90vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    box-shadow: 
        inset -100px -100px 200px rgba(255, 100, 150, 0.2),
        inset 100px 100px 200px rgba(255, 200, 180, 0.15),
        0 0 200px rgba(255, 100, 150, 0.08);
}

@keyframes gradientMove1 {
    0% {
        transform: translateX(-40vw) translateY(-30vh) rotate(0deg) scale(1.2);
    }
    25% {
        transform: translateX(30vw) translateY(-40vh) rotate(90deg) scale(1.5);
    }
    50% {
        transform: translateX(40vw) translateY(35vh) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateX(-35vw) translateY(30vh) rotate(270deg) scale(1.3);
    }
    100% {
        transform: translateX(-40vw) translateY(-30vh) rotate(360deg) scale(1.2);
    }
}

@keyframes gradientMove2 {
    0% {
        transform: translateX(35vw) translateY(-25vh) rotate(0deg) scale(0.8);
    }
    30% {
        transform: translateX(-30vw) translateY(40vh) rotate(-60deg) scale(0.7);
    }
    60% {
        transform: translateX(-45vw) translateY(-35vh) rotate(-180deg) scale(1.0);
    }
    85% {
        transform: translateX(25vw) translateY(45vh) rotate(-300deg) scale(0.6);
    }
    100% {
        transform: translateX(35vw) translateY(-25vh) rotate(-360deg) scale(0.8);
    }
}

@keyframes gradientMove3 {
    0% {
        transform: translateX(-20vw) translateY(40vh) rotate(0deg) scale(0.6);
    }
    25% {
        transform: translateX(45vw) translateY(-30vh) rotate(30deg) scale(0.9);
    }
    50% {
        transform: translateX(-35vw) translateY(-45vh) rotate(120deg) scale(0.4);
    }
    75% {
        transform: translateX(30vw) translateY(35vh) rotate(240deg) scale(0.7);
    }
    100% {
        transform: translateX(-20vw) translateY(40vh) rotate(360deg) scale(0.6);
    }
}

@keyframes gradientFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,0,0,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.2;
}

.container {
    height: 100vh;
    width: 100vw;
    display: grid;
    grid-template-columns: 24px repeat(12, 1fr) 24px;
    grid-template-rows: 24px repeat(20, 1fr) 24px;
    position: relative;
    z-index: 10;
    gap: 0;
    padding: 0;
}

.brand-section {
    grid-column: 2 / 14;
    grid-row: 3 / 9;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-section {
    grid-column: 9 / 14;
    grid-row: 4 / 11;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-description {
    grid-column: 9 / 14;
    grid-row: 18 / 21;
    display: flex;
    align-items: flex-start;
    padding-top: 24px;
    height: 120px;
}

.description-text {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.8;
    color: #f5f5f5;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    max-width: 500px;
}

.services-section {
    grid-column: 9 / 14;
    grid-row: 12 / 18;
    display: flex;
    flex-direction: column;
}

.footer-info {
    grid-column: 2 / 14;
    grid-row: 21;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #000000;
    padding-top: 12px;
}

.theme-toggle {
    grid-column: 13;
    grid-row: 2;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.theme-button {
    background: none;
    border: none;
    color: inherit;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}


.theme-icon {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease;
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

body.dark-mode .sun-icon {
    display: none;
}

body.dark-mode .moon-icon {
    display: block;
}

.logo {
    font-size: 5.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #000000;
    margin: 0 0 24px 0;
    line-height: 1.1;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 0; /* 改行による空白を無効化 */
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: letterUp 0.6s ease-out forwards;
    font-size: 5.5rem; /* 親のfont-size: 0を上書き */
}

.letter.space {
    width: 0.3em;
    min-width: 0.3em;
}

@keyframes letterUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    color: #000000;
    margin: 0;
    max-width: 400px;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-item {
    border-bottom: 1px solid #000000;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.service-item:hover {
    opacity: 0.7;
}

.service-item:last-child {
    border-bottom: none;
}

.service-number {
    font-size: 0.9rem;
    font-weight: 400;
    color: #000000;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    min-width: 30px;
}

.service-icon {
    display: none;
}

.service-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: #000000;
    line-height: 1.2;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
}

.info-title {
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 12px;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
}

.info-text {
    font-size: 0.9rem;
    font-weight: 400;
    color: #000000;
    line-height: 1.4;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
}

.services-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 24px;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
}

.contact-text, .year {
    font-size: 0.8rem;
    font-weight: 400;
    color: #000000;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
}

@media (max-width: 768px) {
    .container {
        display: grid;
        grid-template-columns: 16px 1fr 16px;
        grid-template-rows: 16px auto auto auto auto auto 1fr auto 16px;
        height: 100vh;
        gap: 0;
        padding: 0;
    }
    
    .theme-toggle {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
        align-self: start;
        margin-bottom: 16px;
    }
    
    .brand-section {
        grid-column: 2;
        grid-row: 3;
        margin-bottom: 32px;
    }
    
    .info-section {
        grid-column: 2;
        grid-row: 4;
        margin-bottom: 24px;
    }
    
    .services-section {
        grid-column: 2;
        grid-row: 5;
        margin-bottom: 24px;
    }
    
    .service-description {
        grid-column: 2;
        grid-row: 6;
        margin-bottom: 24px;
    }
    
    .footer-info {
        grid-column: 2;
        grid-row: 8;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid currentColor;
        padding-top: 12px;
    }
    
    .logo { 
        font-size: 3rem; 
        letter-spacing: -0.025em;
        margin-bottom: 16px;
    }
    
    .letter { 
        font-size: 3rem;
    }
    
    .tagline { 
        font-size: 0.9rem; 
        line-height: 1.4;
        margin-bottom: 0;
    }
    
    .service-description {
        padding-top: 0;
        height: auto;
    }
    
    .service-description .description-text {
        max-width: none;
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .services { flex-direction: column; align-items: center; }
    .service-item { width: 100%; max-width: 280px; }
}