/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* ヘッダー */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* ヒーローセクション（画像のみスライドショー用に簡素化） */
.hero {
    position: relative;
    min-height: 70vh;
    display: block;
    color: transparent;
    overflow: hidden;
}

/* 使わない要素は非表示 */
.hero-overlay,
.slider-controls,
.hero-content {
    display: none !important;
}

/* スライダー */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide:nth-child(1) {
    background-image: url('https://assets.st-note.com/img/1754974383-RXBSuvMiTgz5PCAEam8fcFtI.png');
}

.hero-slide:nth-child(2) {
    background-image: url('https://assets.st-note.com/img/1723699767505-fSeCbvvnE4.png');
}

.hero-slide:nth-child(3) {
    background-image: url('https://assets.st-note.com/img/1723716437020-cIcVct4sFt.png');
}

/* スライツーコントロール */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 4;
}

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

.slider-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.slider-dot:hover {
    border-color: white;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-main-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    letter-spacing: 0.02em;
}

.hero-title-accent {
    color: #4FC3F7;
    text-shadow: 3px 3px 6px rgba(79, 195, 247, 0.5);
}

.hero-description {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle-main {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.hero-subtitle-secondary {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #E8F5E8;
}

.hero-subtitle-accent {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFE082;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-cta {
    margin-top: 3rem;
}

.hero-btn {
    display: inline-block;
    background: #4FC3F7;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.4);
    text-shadow: none;
}

.hero-btn:hover {
    background: #29B6F6;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.6);
}

/* セクションヘッダーと画像枠 */
.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.section-image-placeholder {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 15px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.section-image-placeholder:hover {
    transform: scale(1.05);
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.section-image[src=""] {
    display: none;
}

.section-image:not([src=""]) {
    display: block;
}

.image-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    pointer-events: none;
}

.section-image:not([src=""]) + .image-overlay-text {
    display: none;
}

/* コンサルティングセクション用のカスタマイズ */
.consulting-section .section-image-placeholder {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.consulting-section .image-overlay-text {
    color: rgba(255, 255, 255, 0.8);
}

.consulting-section .section-title {
    color: #ffffff;
}

/* コミュニティセクション用のカスタマイズ */
.community-section .section-image-placeholder {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.community-section .image-overlay-text {
    color: rgba(255, 255, 255, 0.8);
}
.education-section {
    background: #fff5f0;
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    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.15);
}

.service-card.featured {
    border: 2px solid #ff9a56;
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.service-badge.popular {
    background: #ff6b35;
}

.service-badge.online {
    background: #4a7bc8;
}

.service-badge.ai {
    background: #7b68ee;
}

.service-badge.research {
    background: #9370db;
}

.service-badge.new {
    background: #ff9a56;
}

.service-badge.experience {
    background: #ba55d3;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.service-description {
    margin-bottom: 1.5rem;
    color: #666;
}

.service-details ul {
    list-style: none;
}

.service-details li {
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
    color: #666;
    font-size: 0.9rem;
}

.service-details li::before {
    content: "•";
    color: #ff9a56;
    position: absolute;
    left: 0;
}

/* 実績セクション */
.achievements {
    background: #f8fafc;
    padding: 3rem 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-card {
    text-align: center;
    padding: 2rem;
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.achievement-label {
    font-size: 1rem;
    color: #666;
}

/* コンサルティングセクション */
.consulting-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #4a7bc8 50%, #6fa8dc 100%);
    padding: 5rem 0;
    color: white;
}

.consulting-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.consulting-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.consulting-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.consulting-section .service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.consulting-section .service-title {
    color: white;
}

.consulting-section .service-price {
    color: #ffd56b;
}

.consulting-section .service-description {
    color: rgba(255, 255, 255, 0.9);
}

/* コミュニティ・実験プロジェクトセクション */
.community-section {
    background: linear-gradient(135deg, #7b68ee 0%, #9370db 50%, #ba55d3 100%);
    padding: 5rem 0;
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.project-description {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.project-status {
    font-size: 0.9rem;
    color: #ffd56b;
    font-weight: 500;
}

/* CTAセクション */
.cta-section {
    background: #1a1a1a;
    padding: 5rem 0;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #ff9a56;
    color: white;
}

.btn-primary:hover {
    background: #ff6b35;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1a1a1a;
}

/* フッター */
.footer {
    background: #333;
    padding: 2rem 0;
    text-align: center;
    color: #ccc;
}

/* カード内画像枠 */
.card-image-placeholder {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 0.5rem 0 1rem;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.card-image[src=""] {
    display: none;
}

.card-image:not([src=""]) {
    display: block;
}

.card-image:not([src=""]) + .image-overlay-text {
    display: none;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .consulting-services {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-main-title {
        font-size: 3.5rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.8rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-subtitle-main {
        font-size: 1.1rem;
    }
    
    .hero-subtitle-secondary {
        font-size: 1rem;
    }
    
    .hero-subtitle-accent {
        font-size: 1.1rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .section-image-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .consulting-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .consulting-services {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        display: none;
    }
    
    .header-content {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 250px;
    }
    
    .slider-controls {
        bottom: 20px;
    }

    /* カード内画像枠（モバイル） */
    .card-image-placeholder {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-main-title {
        font-size: 2.2rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .section-image-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .image-overlay-text {
        font-size: 0.8rem;
    }
    
    .slider-controls {
        bottom: 15px;
        gap: 10px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }

    /* カード内画像枠（小型端末） */
    .card-image-placeholder {
        height: 130px;
    }
}

