/* リセット & 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary-color: #06b6d4;
    --accent-color: #fbbf24;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #cbd5e1;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* レイアウト */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ヒーローセクション */
.hero {
    background: var(--gradient-dark);
    color: white;
    text-align: center;
    padding: 140px 20px 120px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 背景のアニメーション効果 */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 0%, #0ea5e9 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 18px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.5);
}

/* セクション見出し */
.section-title {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.3);
}

/* 事業紹介セクション */
.services {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 100px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    background-clip: padding-box;
    overflow: hidden;
}

/* グラデーションボーダー効果 */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg) scale(1.1);
}

.service-card h3 {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.9;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* 大切にしていることセクション */
.values {
    background: var(--gradient-dark);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.values::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
}

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

.values-intro {
    max-width: 700px;
    margin: 0 auto 4rem;
    text-align: center;
}

.values-intro p {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.5;
}

.values-subtitle {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 24px 0 0 24px;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.2);
}

.value-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.value-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.value-card p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-light);
}

/* プロフィールセクション */
.profile {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 100px 0;
}

.profile-content {
    max-width: 750px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.profile-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.profile-item {
    display: flex;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.profile-item:hover {
    padding-left: 1rem;
    background: rgba(14, 165, 233, 0.02);
}

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

.profile-label {
    font-weight: 700;
    min-width: 160px;
    color: var(--text-dark);
    position: relative;
}

.profile-label::before {
    content: '▸';
    position: absolute;
    left: -1rem;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-item:hover .profile-label::before {
    opacity: 1;
}

.profile-value {
    color: var(--text-gray);
    flex: 1;
}

.profile-value .note {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    opacity: 0.8;
    margin-top: 0.5rem;
    font-style: italic;
}

.profile-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.profile-value a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.profile-value a:hover::after {
    width: 100%;
}

.profile-value a:hover {
    color: var(--primary-dark);
}

/* フッター */
footer {
    background: var(--gradient-dark);
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

footer p {
    opacity: 0.7;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 80px;
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    section {
        padding: 60px 0;
    }

    .services,
    .values,
    .profile {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2.5rem 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-intro p {
        font-size: 1.75rem;
    }

    .values-subtitle {
        font-size: 1.3rem;
    }

    .value-card {
        padding: 2.5rem 2rem;
    }

    .profile-content {
        padding: 2.5rem;
    }

    .profile-item {
        flex-direction: column;
        padding: 1.25rem 0;
    }

    .profile-label {
        margin-bottom: 0.5rem;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 20px 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .cta-button {
        padding: 16px 36px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .values-intro p {
        font-size: 1.5rem;
    }

    .values-subtitle {
        font-size: 1.2rem;
    }

    .value-card {
        padding: 2rem 1.5rem;
    }

    .value-number {
        font-size: 2.5rem;
    }

    .value-card h4 {
        font-size: 1.25rem;
    }

    .value-card p {
        font-size: 1rem;
    }

    .profile-content {
        padding: 2rem;
    }
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}
