/* ===========================
   モダンなホームページデザイン
   LPスタイルの斜めデザイン
   =========================== */

/* ヒーローセクション改善 */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 20px 80px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    visibility: hidden; /* ローディング完了まで非表示 */
    font-family: 'Courier New', 'Monaco', monospace; /* デジタル感のあるフォント */
    text-transform: uppercase; /* 大文字でよりデジタル感 */
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    line-height: 1.6;
    visibility: hidden; /* ローディング完了まで非表示 */
    font-family: 'Courier New', 'Monaco', monospace; /* デジタル感のあるフォント */
}

/* デバイス別の最適化 */
/* 大画面デスクトップ (1920px以上) */
@media (min-width: 1920px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
}

/* デスクトップ (1200px - 1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
    }
}

/* タブレット横向き (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* タブレット縦向き (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 40px;
    }
}

/* 大きめのスマートフォン (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 1.0625rem;
        margin-bottom: 36px;
    }
}

/* スマートフォン (576px未満) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem; /* 28px */
        margin-bottom: 14px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem; /* 15px */
        margin-bottom: 28px;
        line-height: 1.5;
    }
    
    .hero-content {
        padding: 100px 16px 60px;
    }
    
    /* ヒーローボタンのレスポンシブ統一 */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 32px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-height: 48px;
        font-size: 0.9rem;
        padding: 12px 24px;
        border-radius: 8px;
    }
}

/* iPhone標準サイズ (375px幅) 専用最適化 */
@media (width: 375px) and (min-height: 812px) {
    .hero-title {
        font-size: 1.625rem; /* 26px */
        margin-bottom: 12px;
        line-height: 1.25;
        letter-spacing: -0.01em;
    }
    
    .hero-subtitle {
        font-size: 0.875rem; /* 14px */
        margin-bottom: 24px;
        line-height: 1.45;
    }
    
    .hero-content {
        padding: 90px 20px 50px;
    }
    
    /* 375px幅でのボタン統一 */
    .hero-buttons .btn {
        min-height: 44px;
        font-size: 0.85rem;
        padding: 10px 20px;
    }
}

/* 375px幅で高さが短い場合 */
@media (width: 375px) and (max-height: 811px) {
    .hero-title {
        font-size: 1.5rem; /* 24px */
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 0.8125rem; /* 13px */
        margin-bottom: 20px;
    }
    
    .hero-content {
        padding: 80px 20px 40px;
    }
    
    /* 高さが短い場合のボタン調整 */
    .hero-buttons .btn {
        min-height: 40px;
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

/* 極小画面 (375px未満) */
@media (max-width: 374px) {
    .hero-title {
        font-size: 1.625rem; /* 26px */
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 0.875rem; /* 14px */
        margin-bottom: 24px;
    }
    
    /* 極小画面でのボタン統一 */
    .hero-buttons .btn {
        min-height: 42px;
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

/* スクロールインジケーター改善 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: bounce 2s infinite;
}

/* 375px幅でのスクロールインジケーター調整 */
@media (width: 375px) {
    .scroll-indicator {
        bottom: 30px;
    }
    
    .scroll-icon {
        width: 24px;
        height: 36px;
    }
    
    .scroll-text {
        font-size: 0.75rem;
        margin-top: 8px;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 斜めのセクション区切り - 削除 */
.hero::after {
    display: none !important;
    content: none !important;
}

/* Aboutセクション改善 */
.about {
    position: relative;
    padding: 120px 0;
    background: white;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 102, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: #1e293b;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0066ff 0%, #00d4ff 100%);
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.about-item {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0066ff 0%, #00d4ff 100%);
}

.about-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2rem;
    color: white;
}

/* 特徴セクション - 斜めの背景削除 */
.features {
    position: relative;
    padding: 120px 0 160px;
    background: #f8fafc;
    overflow: hidden;
}

.features::before {
    display: none !important;
    content: none !important;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    border-radius: 0 0 0 100%;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    color: white;
}

/* メンバー構成セクション */
.members {
    position: relative;
    padding: 120px 0;
    background: white;
}

.member-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

/* 自動スクロールする業界タグ */
.industries {
    margin-top: 60px;
    position: relative;
}

.industries h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #1e293b;
}

.industry-scroll-container {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.industry-tags {
    display: flex;
    animation: scroll-right 30s linear infinite;
    width: max-content;
}

.industry-tags:hover {
    animation-play-state: paused;
}

@keyframes scroll-right {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    margin: 0 8px;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

/* 業界タグを複製して無限スクロール効果 */
.industry-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, white 100%);
    z-index: 2;
    pointer-events: none;
}

.industry-scroll-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, white 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* イベントセクション - 斜めデザイン削除 */
.events {
    position: relative;
    padding: 160px 0 120px;
    background: #f8fafc;
}

.events::before {
    display: none !important;
    content: none !important;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.event-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0066ff 0%, #00d4ff 100%);
}

.event-date {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* 実績セクション */
.achievements {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #0066ff 0%, #004fc4 100%);
    color: white;
    overflow: hidden;
}

.achievements .section-title {
    color: white;
}

.achievements .section-title::after {
    background: linear-gradient(90deg, white 0%, rgba(255, 255, 255, 0.6) 100%);
}

.achievements .section-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 40px;
}

.achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,138.7C672,149,768,203,864,213.3C960,224,1056,192,1152,165.3C1248,139,1344,117,1392,106.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-bottom: 16px;
    color: white;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.achievement-item {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.achievement-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.achievement-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.achievement-sublabel {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* コンタクトセクション */
.contact {
    position: relative;
    padding: 120px 0;
    background: white;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.submit-button {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.3);
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ */
@media (max-width: 768px) {
    .about,
    .features,
    .members,
    .events,
    .achievements,
    .contact {
        padding: 80px 0;
    }
    
    .contact-form {
        padding: 40px 24px;
    }
    
    .feature-card,
    .about-item {
        padding: 32px 24px;
    }
}

/* モバイルブレーク追加 */
.mobile-break {
    display: none;
}

@media (max-width: 640px) {
    .mobile-break {
        display: block;
    }
}

/* ヒーローセクションのレスポンシブ対応 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 0.85rem;
        padding: 0 10px;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem !important;
        word-break: keep-all;
    }
    
    .hero-subtitle {
        font-size: 0.85rem !important;
    }
    
    .hero-buttons {
        gap: 10px;
        margin-top: 28px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-height: 44px;
        font-size: 0.85rem;
        padding: 10px 20px;
        border-radius: 8px;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 1.25rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.8rem !important;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-height: 40px;
        font-size: 0.8rem;
        padding: 8px 16px;
        border-radius: 6px;
    }
}