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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    height: 100vh;
    background: 
        linear-gradient(rgba(11, 11, 11, 0.85), rgba(11, 11, 11, 0.85)),
        url('img/image.jpg') center/cover no-repeat,
        #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: 
            linear-gradient(rgba(11, 11, 11, 0.85), rgba(11, 11, 11, 0.85)),
            url('img/image.jpg') center/cover no-repeat,
            #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 {
        xborder-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: 
        linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.85)),
        url('img/image.jpg') center/cover no-repeat,
        #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 {
}

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: 
        linear-gradient(rgba(250, 250, 250, 0.85), rgba(250, 250, 250, 0.85)),
        url('img/image.jpg') center/cover no-repeat,
        #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 {
}

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.6) 0%, rgba(120, 80, 200, 0.4) 30%, rgba(80, 40, 160, 0.25) 60%, transparent 80%),
        radial-gradient(ellipse at 70% 70%, rgba(200, 160, 255, 0.3) 0%, transparent 50%);
    animation: gradientMove1 30s 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%;
    filter: blur(100px);
    box-shadow: 
        inset -200px -200px 400px rgba(120, 80, 200, 0.4),
        inset 200px 200px 400px rgba(180, 140, 255, 0.3),
        0 0 400px rgba(120, 80, 200, 0.2),
        0 50px 100px rgba(120, 80, 200, 0.15);
}

.gradient-2 {
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(150, 250, 255, 0.5) 0%, rgba(100, 200, 255, 0.3) 40%, rgba(50, 150, 255, 0.2) 70%, transparent 90%),
        radial-gradient(ellipse at 80% 60%, rgba(120, 220, 255, 0.25) 0%, transparent 60%);
    animation: gradientMove2 35s 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 -160px -160px 320px rgba(100, 200, 255, 0.35),
        inset 160px 160px 320px rgba(150, 250, 255, 0.25),
        0 0 320px rgba(100, 200, 255, 0.15),
        0 -30px 80px rgba(100, 200, 255, 0.1);
}

.gradient-3 {
    background: 
        radial-gradient(ellipse at 25% 25%, rgba(255, 200, 180, 0.4) 0%, rgba(255, 100, 150, 0.25) 45%, rgba(255, 60, 120, 0.15) 75%, transparent 95%),
        radial-gradient(ellipse at 75% 75%, rgba(255, 180, 160, 0.2) 0%, transparent 50%);
    animation: gradientMove3 40s 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 -140px -140px 280px rgba(255, 100, 150, 0.3),
        inset 140px 140px 280px rgba(255, 200, 180, 0.25),
        0 0 280px rgba(255, 100, 150, 0.12),
        0 40px 90px rgba(255, 100, 150, 0.08);
}

@keyframes gradientMove1 {
    0% {
        transform: translateX(-30vw) translateY(-20vh) rotate(0deg) scale(1.2);
    }
    50% {
        transform: translateX(30vw) translateY(20vh) rotate(180deg) scale(1.0);
    }
    100% {
        transform: translateX(-30vw) translateY(-20vh) rotate(360deg) scale(1.2);
    }
}

@keyframes gradientMove2 {
    0% {
        transform: translateX(25vw) translateY(-15vh) rotate(0deg) scale(0.8);
    }
    50% {
        transform: translateX(-25vw) translateY(15vh) rotate(-180deg) scale(1.0);
    }
    100% {
        transform: translateX(25vw) translateY(-15vh) rotate(-360deg) scale(0.8);
    }
}

@keyframes gradientMove3 {
    0% {
        transform: translateX(-15vw) translateY(25vh) rotate(0deg) scale(0.6);
    }
    50% {
        transform: translateX(15vw) translateY(-25vh) rotate(180deg) scale(0.8);
    }
    100% {
        transform: translateX(-15vw) translateY(25vh) rotate(360deg) scale(0.6);
    }
}

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

@keyframes gradientPulse1 {
    0%, 100% {
        filter: blur(80px) brightness(1);
        transform: scale(1.2) perspective(1000px) rotateX(15deg) rotateY(10deg);
    }
    50% {
        filter: blur(70px) brightness(1.2);
        transform: scale(1.3) perspective(1000px) rotateX(18deg) rotateY(12deg);
    }
}

@keyframes gradientPulse2 {
    0%, 100% {
        filter: blur(90px) brightness(1);
        transform: scale(0.8) perspective(800px) rotateX(-10deg) rotateZ(5deg);
    }
    50% {
        filter: blur(85px) brightness(1.15);
        transform: scale(0.9) perspective(800px) rotateX(-12deg) rotateZ(6deg);
    }
}

@keyframes gradientPulse3 {
    0%, 100% {
        filter: blur(95px) brightness(1);
        transform: scale(0.6) perspective(600px) rotateY(15deg) rotateX(5deg);
    }
    50% {
        filter: blur(88px) brightness(1.1);
        transform: scale(0.7) perspective(600px) rotateY(18deg) rotateX(7deg);
    }
}

@keyframes gradientWave1 {
    0%, 100% {
        border-radius: 50% 60% 70% 40%;
    }
    25% {
        border-radius: 60% 40% 50% 70%;
    }
    50% {
        border-radius: 70% 50% 40% 60%;
    }
    75% {
        border-radius: 40% 70% 60% 50%;
    }
}

@keyframes gradientFloat2 {
    0%, 100% {
        transform: scale(0.8) perspective(800px) rotateX(-10deg) rotateZ(5deg) translateY(0px);
    }
    33% {
        transform: scale(0.85) perspective(800px) rotateX(-8deg) rotateZ(7deg) translateY(-15px);
    }
    66% {
        transform: scale(0.75) perspective(800px) rotateX(-12deg) rotateZ(3deg) translateY(10px);
    }
}

@keyframes gradientTwist3 {
    0% {
        transform: scale(0.6) perspective(600px) rotateY(15deg) rotateX(5deg) skewX(0deg);
        border-radius: 50%;
    }
    25% {
        transform: scale(0.65) perspective(600px) rotateY(20deg) rotateX(8deg) skewX(5deg);
        border-radius: 45% 55% 60% 40%;
    }
    50% {
        transform: scale(0.7) perspective(600px) rotateY(25deg) rotateX(3deg) skewX(-3deg);
        border-radius: 60% 40% 45% 55%;
    }
    75% {
        transform: scale(0.58) perspective(600px) rotateY(18deg) rotateX(10deg) skewX(8deg);
        border-radius: 55% 45% 50% 50%;
    }
    100% {
        transform: scale(0.6) perspective(600px) rotateY(15deg) rotateX(5deg) skewX(0deg);
        border-radius: 50%;
    }
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(1px);
}

.particle-1 {
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(180, 140, 255, 0.6) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation: particleFloat1 25s ease-in-out infinite;
}

.particle-2 {
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, rgba(150, 250, 255, 0.7) 0%, transparent 70%);
    top: 60%;
    left: 80%;
    animation: particleFloat2 30s ease-in-out infinite;
}

.particle-3 {
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, rgba(255, 200, 180, 0.5) 0%, transparent 70%);
    top: 30%;
    left: 70%;
    animation: particleFloat3 20s ease-in-out infinite;
}

@keyframes particleFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20vw, -15vh); }
}

@keyframes particleFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20vw, 15vh); }
}

@keyframes particleFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15vw, 20vh); }
}

.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: 40px repeat(12, 1fr) 40px;
    grid-template-rows: 40px repeat(20, 1fr) 40px;
    position: relative;
    z-index: 10;
    gap: 0;
    padding: 0;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    
    
}


.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 / 8;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-description {
    grid-column: 9 / 14;
    grid-row: 15 / 17;
    display: flex;
    align-items: flex-start;
    padding-top: 0px;
    height: auto;
}

.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: 17 / 21;
    display: flex;
    flex-direction: column;
}

.footer-info {
    grid-column: 2 / 14;
    grid-row: 21;
    display: flex;
    justify-content: space-between;
    align-items: end;
    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; /* 改行による空白を無効化 */
}

.logo-line {
    display: block;
    line-height: 1;
    margin-bottom: -0.1em;
}

.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.95rem;
    font-weight: 400;
    color: #000000;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
}

@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
    
    .container {
        display: grid;
        grid-template-columns: 24px 1fr 24px;
        grid-template-rows: 24px auto auto auto auto 1fr auto auto 24px;
        min-height: 100vh;
        gap: 0;
        padding: 0;
        
    
    }
    
    .theme-toggle {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
        align-self: start;
        margin-bottom: 16px;
        margin-right: 8px;
    }
    
    .brand-section {
        grid-column: 2;
        grid-row: 3;
        margin-bottom: 32px;
    }
    
    .info-section {
        grid-column: 2;
        grid-row: 4;
        margin-bottom: 48px;
        margin-top: 0px;
    }
    
    .service-description {
        grid-column: 2;
        grid-row: 6;
        align-self: end;
        margin-bottom: 60px;
        height: 100px;
        width: 280px;
        overflow: hidden;
    }
    
    .services-section {
        grid-column: 2;
        grid-row: 7;
        margin-left: auto;
        width: 60%;
        margin-bottom: 40px;
    }
    
    .services-section .services-title {
        text-align: left;
    }
    
    .services-section .service-item {
        justify-content: flex-start;
    }
    
    .services-section .service-text {
        text-align: left;
        flex: 1;
    }
    
    .footer-info {
        grid-column: 2;
        grid-row: 8;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 12px;
    }
    
    .logo { 
        font-size: 0; 
        letter-spacing: -0.025em;
        margin-bottom: 16px;
    }
    
    .letter { 
        font-size: 3rem;
    }
    
    .tagline { 
        font-size: 0.85rem; 
        line-height: 1.4;
        margin-bottom: 0;
    }
    
    .service-description {
        padding-top: 0;
        height: 100px;
        overflow: hidden;
    }
    
    .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; }
}