/* ==========================================
   リセット & ベーススタイル
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット - モダンブルー */
    --primary-blue: #0a4d8f;
    --secondary-blue: #1a73e8;
    --accent-blue: #00d4ff;
    --dark-blue: #041e42;
    --gradient-blue: linear-gradient(135deg, #0a4d8f 0%, #1a73e8 50%, #00d4ff 100%);
    
    /* グレースケール */
    --white: #ffffff;
    --off-white: #fafbfc;
    --light-gray: #f0f2f5;
    --gray: #d1d9e6;
    --medium-gray: #8a93a6;
    --dark-gray: #495057;
    --text-dark: #1a1d29;
    --text-light: #6c757d;
    
    /* グラス効果 */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* シャドウ */
    --shadow-sm: 0 2px 8px rgba(10, 77, 143, 0.08);
    --shadow-md: 0 8px 24px rgba(10, 77, 143, 0.12);
    --shadow-lg: 0 16px 48px rgba(10, 77, 143, 0.18);
    --shadow-xl: 0 24px 64px rgba(10, 77, 143, 0.25);
    
    /* トランジション */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   ヘッダー - グラスモーフィズム
   ========================================== */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(10, 77, 143, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 48px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--secondary-blue);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 3px;
    transition: var(--transition-base);
}

/* ==========================================
   ヒーローセクション - 次世代デザイン
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-blue);
    overflow: hidden;
    padding: 80px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(26, 115, 232, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(10, 77, 143, 0.3) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    letter-spacing: 0.5px;
}

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

/* ==========================================
   ボタン - モダンスタイル
   ========================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    background: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(255, 255, 255, 0.4);
    background: var(--off-white);
}

/* ==========================================
   セクション共通 - 洗練されたスタイル
   ========================================== */
.section {
    padding: 120px 24px;
    position: relative;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 80px;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: var(--gradient-blue);
    border-radius: 3px;
    opacity: 0.6;
}

/* ==========================================
   会社概要 - カード型デザイン
   ========================================== */
.about-section {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-item {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(10, 77, 143, 0.08);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.about-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-item:hover::before {
    transform: scaleX(1);
}

.about-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: rgba(26, 115, 232, 0.2);
}

.about-label {
    font-size: 0.85rem;
    color: var(--secondary-blue);
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-value {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.9;
}

/* ==========================================
   事業内容 - 3Dカード効果
   ========================================== */
.business-section {
    background: var(--off-white);
    position: relative;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 48px;
}

.business-card {
    background: var(--white);
    border-radius: 32px;
    padding: 0;
    transition: var(--transition-slow);
    text-align: center;
    border: 1px solid rgba(10, 77, 143, 0.06);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.business-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    border-radius: 32px 32px 0 0;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.business-card:hover .business-image img {
    transform: scale(1.1);
}

.business-card > *:not(.business-image) {
    padding: 0 36px;
}

.business-card > ul {
    padding: 0 36px 48px 36px;
}

.business-card > h3,
.business-card > p {
    padding: 0 36px;
}

.business-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

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

.business-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(26, 115, 232, 0.15);
}

.business-icon {
    width: 96px;
    height: 96px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -48px auto 24px;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    position: relative;
    z-index: 10;
}
}

.business-card:hover .business-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.business-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.business-description {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 32px;
}

.business-features {
    list-style: none;
    text-align: left;
    background: var(--light-gray);
    padding: 24px;
    border-radius: 16px;
    margin-top: auto;
}

.business-features li {
    padding: 12px 0;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding-left: 32px;
    transition: var(--transition-fast);
}

.business-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-blue);
    font-weight: bold;
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 115, 232, 0.1);
    border-radius: 50%;
}

.business-features li:hover {
    padding-left: 36px;
    color: var(--secondary-blue);
}

/* ==========================================
   代表メッセージ - プレミアムデザイン
   ========================================== */
.message-section {
    background: var(--dark-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.message-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(26, 115, 232, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%);
}

.message-section .section-title {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.message-card {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 64px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.message-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.message-position {
    font-size: 0.95rem;
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.message-name {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.message-text p {
    font-size: 1.15rem;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    font-weight: 400;
}

.message-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   お問い合わせ - モダンフォーム
   ========================================== */
.contact-section {
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-description {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 56px;
    line-height: 1.8;
}

.contact-form {
    background: var(--white);
    padding: 56px;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(10, 77, 143, 0.08);
}

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

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.required {
    color: #e74c3c;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid rgba(10, 77, 143, 0.1);
    border-radius: 16px;
    font-size: 1.05rem;
    font-family: inherit;
    transition: var(--transition-base);
    background: var(--off-white);
    font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.08);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
}

.btn-submit {
    width: 100%;
    padding: 20px;
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-submit::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;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.btn-submit:active {
    transform: translateY(-2px);
}

.form-message {
    margin-top: 24px;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #b1dfbb;
    display: block;
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f1b0b7;
    display: block;
}

/* ==========================================
   フッター - ダークモード
   ========================================== */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 64px 24px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-links a:hover::after {
    width: 100%;
}

/* ==========================================
   レスポンシブデザイン
   ========================================== */

/* タブレット */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 80px 24px;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 56px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .business-image {
        height: 200px;
    }
    
    .message-card {
        padding: 40px 32px;
    }
    
    .contact-form {
        padding: 40px 32px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* モバイル */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav {
        position: fixed;
        top: 81px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 81px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: var(--shadow-xl);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 40px 24px;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
    }
    
    .nav-link {
        font-size: 1.3rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(9px, -9px);
    }
    
    .hero {
        min-height: 90vh;
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 48px;
    }
    
    .btn-primary {
        padding: 16px 36px;
        font-size: 1rem;
    }
    
    .about-item {
        padding: 32px 24px;
    }
    
    .business-card {
        padding: 36px 28px;
    }
    
    .business-card > *:not(.business-image) {
        padding: 0 28px;
    }
    
    .business-card > ul {
        padding: 0 28px 36px 28px;
    }
    
    .business-card > h3,
    .business-card > p {
        padding: 0 28px;
    }
    
    .business-image {
        height: 180px;
    }
    
    .message-card {
        padding: 32px 24px;
    }
    
    .message-name {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 32px 24px;
    }
    
    .footer {
        padding: 48px 24px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}

/* 超大型画面 */
@media (min-width: 1920px) {
    .hero-title {
        font-size: 5.5rem;
    }
    
    .section-title {
        font-size: 4rem;
    }
}