/* ===== ベーススタイル ===== */
:root {
    /* カラー変数 */
    --color-primary: #4361ee;      /* プライマリーカラーを維持 */
    --color-secondary: #1e3a5f;    /* セカンダリカラー: より濃いネイビーブルー */
    --color-accent: #2ec4b6;       /* アクセントカラー: ティール */
    --color-text: #1e293b;         /* テキストカラー: ダークスレート */
    --color-text-medium: #475569;  /* ミディアムテキスト: ミディアムスレート */
    --color-text-light: #64748b;   /* ライトテキスト: ライトスレート */
    --color-bg: #f8fafc;           /* 背景色: ライトグレー */
    --color-bg-light: #f1f5f9;     /* 背景色（濃い目）: ライトグレー */
    --color-white: #ffffff;        /* ホワイト */
    --color-border: #e2e8f0;       /* ボーダー色 */
    --color-success: #10b981;      /* 成功色: グリーン */
    --color-warning: #f59e0b;      /* 警告色: オレンジ */
    --color-error: #ef4444;        /* エラー色: レッド */
    
    /* フォントサイズ */
    --font-size-xs: 0.75rem;       /* 12px */
    --font-size-sm: 0.875rem;      /* 14px */
    --font-size-base: 1rem;        /* 16px */
    --font-size-md: 1.125rem;      /* 18px */
    --font-size-lg: 1.25rem;       /* 20px */
    --font-size-xl: 1.5rem;        /* 24px */
    --font-size-2xl: 2rem;         /* 32px */
    --font-size-3xl: 2.5rem;       /* 40px */
    
    /* スペーシング */
    --spacing-xs: 0.25rem;         /* 4px */
    --spacing-sm: 0.5rem;          /* 8px */
    --spacing-md: 1rem;            /* 16px */
    --spacing-lg: 1.5rem;          /* 24px */
    --spacing-xl: 2rem;            /* 32px */
    --spacing-2xl: 3rem;           /* 48px */
    --spacing-3xl: 4rem;           /* 64px */
    
    /* ボーダーラディウス */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-full: 9999px;
    
    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* シャドウ */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.08);
    
    /* コンテナ幅 */
    --container-max-width: 1200px;
}

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

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

ul, ol {
    list-style: none;
}

/* コンテナ */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* セクション共通 */
section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-subtitle {
    font-size: var(--font-size-md);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-description {
    font-size: var(--font-size-md);
    color: var(--color-text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: var(--font-size-base);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* トライアルバッジ */
.trial-badge {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 8px 15px;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 10px rgba(46, 196, 182, 0.3);
}

/* ===== ヘッダー ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 15px 0;
    opacity: 1;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    height: 2px;
    width: 100%;
    background-color: var(--color-white);
    transition: all var(--transition-fast);
}

/* ハンバーガーメニューがアクティブ時のスタイル（X印） */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== ヒーローセクション ===== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(to bottom, #f1f5f9, #ffffff);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.hero-content {
    width: 50%;
    padding-right: 40px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-text {
    color: var(--color-text-medium);
    margin-bottom: 30px;
    font-size: 16px;
}

.hero-cta {
    display: flex;
    gap: 15px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 120px;
    width: 45%;
}

.hero-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(0);
}

/* ===== 解決する課題セクション ===== */
.problems {
    padding: 80px 0;
    background-color: var(--color-bg-light);
}

.problems-list {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.problem-item {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
}

.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.problem-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
}

.problem-icon-img {
    width: 40px;
    height: 40px;
}

.problem-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--color-text);
}

.problem-description {
    color: var(--color-text-medium);
    font-size: 15px;
}

/* ===== 機能セクション ===== */
.features {
    padding: 80px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    gap: 50px;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text);
}

.feature-text {
    color: var(--color-text-medium);
    font-size: 16px;
}

.feature-image {
    flex: 1;
}

.feature-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.zoomable:hover {
    transform: scale(1.02);
}

/* ===== 無料トライアルセクション ===== */
.free-trial {
    padding: 80px 0;
    background: linear-gradient(to bottom right, #f1f5f9, #e2e8f0);
}

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

.trial-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.trial-feature {
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.checkmark {
    color: var(--color-success);
    margin-right: 8px;
    font-weight: bold;
}

.trial-steps {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.step-item {
    flex: 1;
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
}

.step-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--color-text-light);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.step-text {
    color: var(--color-text-medium);
    font-size: 14px;
}

.trial-cta {
    text-align: center;
}

/* ===== 詳細機能セクション ===== */
.detailed-features {
    padding: 80px 0;
    background-color: var(--color-bg-light);
}

.detailed-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.detailed-feature-item {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.detailed-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.detailed-feature-icon {
    margin-bottom: 20px;
    text-align: center;
}

.detailed-feature-icon-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detailed-feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text);
}

.detailed-feature-text {
    color: var(--color-text-medium);
    font-size: 15px;
}

/* ===== お問い合わせセクション ===== */
.contact {
    padding: 80px 0;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-label {
    font-weight: 500;
    color: var(--color-text);
    font-size: 16px;
}

.required {
    color: var(--color-error);
    margin-left: 4px;
}

.form-input,
.form-textarea,
.form-select {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    font-size: 16px;
    color: var(--color-text);
    transition: border-color var(--transition-fast);
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px top 50%;
    background-size: 12px auto;
    padding-right: 40px;
}

.form-error {
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-top: 4px;
}

.form-message {
    padding: 16px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
}

.form-message.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.form-submit {
    margin-top: 10px;
}

/* 会社概要ページ */
.company-overview {
    padding-top: 120px;
    background-color: var(--color-white);
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.company-table th,
.company-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
}

.company-table th {
    width: 30%;
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
    background-color: var(--color-bg-light);
}

.company-table td {
    color: var(--color-text-medium);
}

/* メンバー紹介セクション */
.team-members {
    background-color: var(--color-bg-light);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.member-card {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.member-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}

.member-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.member-card:hover .member-img {
    transform: scale(1.05);
}

.member-info {
    padding: 20px;
}

.member-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 5px;
}

.member-position {
    font-size: 14px;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.member-description {
    font-size: 14px;
    color: var(--color-text-medium);
    line-height: 1.5;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo-image {
    height: 40px;
}

.footer-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.footer-nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-nav-link:hover {
    color: var(--color-white);
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 画像モーダル */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    opacity: 1;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin: 60px auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: none;
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active,
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* レスポンシブデザイン */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        width: 100%;
        padding-right: 0;
        text-align: center;
    }
    
    .hero-image {
        position: relative;
        width: 80%;
        margin: 40px auto 0;
        top: 0;
        right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .problems-list, 
    .feature-item,
    .feature-item.reverse,
    .trial-steps {
        flex-direction: column;
    }
    
    .feature-item {
        gap: 30px;
    }
    
    .detailed-features-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item:not(:last-child)::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -30px;
        transform: translateX(50%);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }
    
    .header-inner {
        position: relative;
    }
    
    .logo {
        z-index: 1002;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: -24px; /* コンテナのパディングを打ち消す */
        width: calc(100% + 48px); /* コンテナの左右のパディングを加える */
        background-color: var(--color-secondary);
        padding: 20px 0;
        height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        height: auto;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        width: 100%;
    }
    
    .menu-toggle {
        display: flex;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        z-index: 1002;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-text {
        font-size: 15px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .trial-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
}
