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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    background: #000000;
}

/* 全体を中央に配置してスマホ幅に制限 */
.hero,
.promise,
.services,
.achievements,
.company-info,
.contact {
    max-width: 480px;
    margin: 0 auto;
}

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

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #2c1e4a 0%, #1a3a5c 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
}

.logo {
    position: absolute;
    top: 30px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    position: relative;
    animation: rotate 10s linear infinite;
}

.logo-circle::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-circle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
}

.hero-title {
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.05em;
    line-height: 1.4;
    padding: 0 20px;
}

/* 弊社の約束事セクション */
.promise {
    background: #2c1e4a;
    padding: 60px 0;
}

.promise-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.promise-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sphere {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff00ff, #8b00ff, #4b0082);
    box-shadow: 0 20px 60px rgba(255, 0, 255, 0.4);
    animation: float 6s ease-in-out infinite;
}

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

.promise-text {
    width: 100%;
}

.promise-text h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 300;
    text-align: center;
}

.promise-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* サービスセクション */
.services {
    background: linear-gradient(135deg, #2c1e4a 0%, #1a3a5c 100%);
    padding: 60px 0;
}

.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 300;
}

.services-showcase {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.services-slider-wrapper {
    overflow: hidden;
    max-width: 100%;
}

.services-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card {
    min-width: 100%;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-image {
    width: 100%;
    height: 180px;
    background-color: #e0e0e0;
}

.service-card h3 {
    color: #ff1493;
    font-size: 1.3rem;
    padding: 20px 20px 10px;
    font-weight: 600;
}

.service-card p {
    color: #333;
    padding: 0 20px 20px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.service-slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.service-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.service-slider-arrow:active {
    transform: scale(0.95);
}

.service-slider-arrow svg {
    width: 24px;
    height: 24px;
}

.service-slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.service-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-slider-dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

/* 実績セクション */
.achievements {
    background: #2c1e4a;
    padding: 60px 0 80px;
    overflow-x: hidden;
}

.achievements .container {
    overflow-x: hidden;
}

.iphone-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.iphone-showcase-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
}

.iphone-frame {
    width: 324px;
    height: 570px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    flex-shrink: 0;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.achievements-slider {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-slide {
    min-width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff1493 0%, #8b00ff 100%);
    background-repeat: no-repeat;
}

.achievement-slide:nth-child(even) {
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
}

.achievement-slide:nth-child(3n) {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff1493 100%);
}

.slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
    max-width: 100%;
    overflow-x: auto;
    padding: 5px 20px;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slider-dots::-webkit-scrollbar {
    display: none;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

/* ドット下の文言エリア */
.achievement-description {
    text-align: center;
    margin-top: 20px;
    min-height: 120px;
    padding: 0 20px;
}

.achievement-client {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.achievement-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* 会社情報セクション */
.company-info {
    background: linear-gradient(135deg, #2c1e4a 0%, #1a3a5c 100%);
    padding: 60px 0;
}

.company-details {
    text-align: center;
}

.company-details p {
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* お問い合わせセクション */
.contact {
    background: #2c1e4a;
    padding: 60px 0;
    text-align: center;
}

.contact-button {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    padding: 15px 50px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.contact-button:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* スマホサイズでも同じ見た目を維持 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .promise-text h2,
    .section-title {
        font-size: 1.6rem;
    }

    .sphere {
        width: 180px;
        height: 180px;
    }
    
    .iphone-showcase-row {
        gap: 10px;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
    }
    
    .slider-arrow svg {
        width: 16px;
        height: 16px;
    }
    
    .iphone-frame {
        width: 258px;
        height: 450px;
    }
    
    .iphone-notch {
        width: 90px;
        height: 22px;
    }
    
    .slider-dots {
        margin-top: 10px;
    }
    
    .achievement-description {
        margin-top: 15px;
        min-height: 100px;
    }
    
    .achievement-client {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .achievement-text {
        font-size: 0.85rem;
    }
    
    .service-slider-arrow {
        width: 35px;
        height: 35px;
    }
    
    .service-slider-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* さらに小さい画面用 */
@media (max-width: 380px) {
    .iphone-showcase-row {
        gap: 8px;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
    }
    
    .slider-arrow svg {
        width: 14px;
        height: 14px;
    }
    
    .iphone-frame {
        width: 190px;
        height: 390px;
    }
}
.rainbow-text {
  cursor: pointer;
  transition: color 0.2s ease;
}

.rainbow-text {
  cursor: pointer;
}

/* クリック後に付くクラス */
.rainbow-text.is-active {
  background: linear-gradient(
    90deg,
    #ff4d6d,
    #ff9f1c,
    #f9dc5c,
    #2ec4b6,
    #4ea8de,
    #9b5de5
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowMove 1.8s linear infinite;
}

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