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

:root {
    /* カラーパレット */
    --primary-navy: #1a2b4a;
    --secondary-navy: #2c3e5d;
    --accent-gold: #d4a574;
    --accent-gold-light: #e8c9a0;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e8e8e8;
    
    /* タイポグラフィ */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* スペーシング */
    --section-padding: 100px;
    --container-width: 1200px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 43, 74, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    color: var(--bg-white);
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--accent-gold);
    font-size: 16px;
    margin-left: 8px;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--bg-white);
    font-size: 15px;
    font-weight: 400;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--accent-gold);
    color: var(--bg-white);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--bg-white);
    transition: all 0.3s ease;
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(26, 43, 74, 0.9), rgba(44, 62, 93, 0.85)),
                url('https://sspark.genspark.ai/cfimages?u1=n5%2FCPd7YRTahbA1dWp67UjN9M2JlgE00f7pSVW3KOpshsSyskafuIP1vcKMa5%2BV%2FOD8enfF4wxi5vE6tWQs5bDi0K1iTqx4CMVnNLIPOC8bKoE0ADj9ckN885pN%2Bj5WZSBNv%2Bia7kBYvUYS9ILKAeIGR%2BT7rvSLn6SsWGDsM3alD46b4HtH9w79FFKnF%2FaC8yy%2FBUhczzPjX01V3Uz8VS%2BPg6Uc%3D&u2=QmapmBC0mxP4QvZ5&width=2560');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--bg-white);
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 2;
}

.hero-subtitle {
    font-size: 16px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    font-family: var(--font-display);
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-cta {
    background: var(--accent-gold);
    color: var(--bg-white);
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.hero-cta:hover {
    background: var(--accent-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.5);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--accent-gold);
    font-size: 12px;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--accent-gold);
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(20px);
        opacity: 1;
    }
}

/* フェードインアニメーション */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

/* ========================================
   セクション共通スタイル
   ======================================== */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-weight: 500;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.section-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========================================
   事業紹介セクション
   ======================================== */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.about-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    border: 3px solid var(--accent-gold);
    border-radius: 8px;
    z-index: -1;
}

.about-heading {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 25px;
    line-height: 1.4;
}

.about-paragraph {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--accent-gold);
    font-size: 18px;
}

/* ========================================
   サービスセクション
   ======================================== */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--bg-white);
    padding: 50px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

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

.service-card.featured {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    color: var(--bg-white);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-gold);
    color: var(--bg-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.service-card.featured .service-icon {
    background: rgba(212, 165, 116, 0.2);
}

.service-icon i {
    font-size: 35px;
    color: var(--accent-gold);
}

.service-card.featured .service-icon i {
    color: var(--accent-gold-light);
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-navy);
}

.service-card.featured .service-title {
    color: var(--bg-white);
}

.service-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-card.featured .service-description {
    color: rgba(255, 255, 255, 0.9);
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list li {
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: var(--text-gray);
}

.service-card.featured .service-list li {
    color: rgba(255, 255, 255, 0.85);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 700;
}

/* ========================================
   強みセクション
   ======================================== */
.strengths {
    background: var(--bg-white);
}

.strengths-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.strength-visual {
    position: relative;
}

.strength-image {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.strength-items {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.strength-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 25px;
    align-items: start;
}

.strength-number {
    width: 80px;
    height: 80px;
    background: var(--accent-gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: var(--font-display);
}

.strength-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.strength-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========================================
   導入の流れセクション
   ======================================== */
.flow {
    background: var(--bg-light);
}

.flow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.flow-step-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.flow-step-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.flow-step-icon i {
    font-size: 35px;
    color: var(--accent-gold);
}

.flow-step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.flow-step-description {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
}

.flow-arrow {
    color: var(--accent-gold);
    font-size: 24px;
    display: flex;
    align-items: center;
}

/* ========================================
   会社概要セクション
   ======================================== */
.company {
    background: var(--bg-white);
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.company-image-wrapper {
    position: relative;
}

.company-image {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table tr {
    border-bottom: 1px solid var(--bg-gray);
}

.company-table th,
.company-table td {
    padding: 20px 15px;
    text-align: left;
}

.company-table th {
    width: 150px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-navy);
    background: var(--bg-light);
}

.company-table td {
    font-size: 14px;
    color: var(--text-gray);
}

/* ========================================
   CTAセクション
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    color: var(--bg-white);
    text-align: center;
    padding: 80px 0;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.cta-description {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-button-large {
    background: var(--accent-gold);
    color: var(--bg-white);
    padding: 20px 60px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.cta-button-large:hover {
    background: var(--accent-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.5);
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: var(--primary-navy);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-text {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 25px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--accent-gold);
    margin-right: 10px;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    opacity: 0.7;
}

/* ========================================
   モーダル
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    overflow-y: auto;
    padding: 40px 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    padding: 50px;
    position: relative;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--primary-navy);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.modal-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-family: var(--font-display);
}

.modal-header p {
    font-size: 14px;
    color: var(--text-gray);
}

/* ========================================
   フォーム
   ======================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.required {
    background: #e74c3c;
    color: var(--bg-white);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.optional {
    background: var(--bg-gray);
    color: var(--text-gray);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid var(--bg-gray);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.error-message {
    display: none;
    font-size: 12px;
    color: #e74c3c;
    margin-top: 8px;
}

.error-message.active {
    display: block;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

.submit-button {
    background: var(--accent-gold);
    color: var(--bg-white);
    padding: 16px 60px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.submit-button:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

/* 送信完了モーダル */
.success-modal {
    text-align: center;
    padding: 60px 50px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--accent-gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.success-icon i {
    font-size: 50px;
    color: var(--accent-gold);
}

.success-modal h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.success-modal p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-title {
        font-size: 46px;
    }
    
    .about-content,
    .company-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .strengths-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
    
    .modal-content {
        padding: 40px 30px;
    }
    
    .company-table th {
        width: 120px;
        font-size: 13px;
    }
    
    .company-table td {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-cta {
        padding: 15px 35px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .company-table th,
    .company-table td {
        padding: 15px 10px;
        font-size: 12px;
    }
}