/* CSS変数定義 */
:root {
    --primary-color: #006AFF;
    --primary-dark: #004ecc;
    --primary-light: #00BBFF;
    --secondary-color: #2c3e50;
    --accent-color: #667eea;
    --background-color: #f9f9f9;
    --white-color: #fff;
    --text-color: #333;
    --text-light: #6b7c8d;
    --primary-gradient: linear-gradient(135deg, #006AFF 0%, #004ecc 100%);
    --primary-gradient-hover: linear-gradient(135deg, #0055d4 0%, #0040a8 100%);
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #006AFF 100%);
    --shadow-sm: 0 2px 10px rgba(0, 106, 255, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 106, 255, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 106, 255, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 106, 255, 0.2);
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --border-radius: 8px;
    --container-width: 1200px;
    --navbar-height: 70px;
}

::placeholder {
    color: #666;
}

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

/* グローバルスタイル設定 */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* キーボードフォーカススタイル */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ボタンスタイル */
.btn {
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 14px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 20px;
    padding: 0 30px;
    border-color: #006AFF;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 106, 255, 0.2);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 106, 255, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 106, 255, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

/* ナビゲーションバー */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 2px 10px rgba(0, 106, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 106, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 20px;
}

.navbar-brand h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.navbar-brand svg {
    width: 150px;
    height: 64px;
    display: block;
    transition: var(--transition);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 56px;
    align-items: center;
    flex: 1;
    padding-left: 28px;
}

.navbar-menu_first {
    margin-left: auto;
}



.navbar-menu li a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    transition: color 0.3s ease;
    font-size: 19px;
    position: relative;
    letter-spacing: 0.01em;
}

.navbar-menu li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.navbar-menu li a:hover {
    color: var(--primary-color);
}

.navbar-menu li a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    margin-right: 0;
}

/* CTA 按钮项：作为 li 嵌入 navbar-menu 时覆盖默认 li 行为 */
.navbar-menu li.nav-cta-item {
    list-style: none;
    margin-left: auto;
}

.navbar-menu li.nav-cta-item a {
    padding: 10px 28px;
    border-radius: 22px;
    font-weight: 600;
    font-size: 16px;
    color: var(--white-color);
    height: auto;
    line-height: 1.2;
}

.navbar-menu li.nav-cta-item a::after {
    display: none;
}

.navbar-menu li.nav-cta-item a:hover {
    color: var(--white-color);
}

.navbar-menu li.nav-cta-item a:hover::after {
    transform: none;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.navbar-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: relative;
}

.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #333;
    transition: all 0.3s ease;
}

.navbar-toggle-icon::before {
    top: -8px;
}

.navbar-toggle-icon::after {
    top: 8px;
}

/* 区块タイトルスタイル */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #2c3e50 0%, #006AFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* ヒーローセクション */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 187, 255, 0.18) 0%, transparent 65%);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-content,
    .hero-buttons,
    .hero::before {
        animation: none;
    }

    .hero-buttons .btn:hover {
        transform: none;
    }
}

/* 会社概要 */
.about {
    padding: 50px 0;
    background-color: #fff;
}

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

.about-text h3 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.about-image img {
    width: 100%;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 106, 255, 0.1);
    transition: transform 0.5s ease;
    backface-visibility: hidden;
}

.about-image:hover img {
    transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce),
(hover: none) {
    .about-image:hover img {
        transform: none;
    }
}

/* サービス内容 */
.services {
    padding: 50px 0;
    background-color: #f9f9f9;
}

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

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 106, 255, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(0, 106, 255, 0.1) 0%, rgba(0, 78, 204, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 技術力 */
.tech {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.tech-content {}

.tech-stack-content {
    display: flex;
    justify-content: space-between;
}

.tech-stack h3,
.tech-process h3 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
}

.tech-category {
    width: 48%;
    margin-bottom: 40px;
}

.tech-category h4 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

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

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tech-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: var(--transition);
}

.tech-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.tech-item span {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.process-step {
    background-color: #fff;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
}

.process-step h4 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
}

.process-step p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 役員紹介 */
.team {
    padding: 50px 0;
    background-color: #fff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.member-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.member-info {
    padding: 25px;
}

.member-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.member-title {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    text-decoration: none;
}

.member-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f1f1f1;
    color: #333;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.member-social a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* お問い合わせ */
.contact {
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #006AFF 0%, #004ecc 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3,
.contact-form h3 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
    padding: 25px;
    background-color: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 106, 255, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 106, 255, 0.1);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 106, 255, 0.15);
    border-color: rgba(0, 106, 255, 0.2);
}

.contact-item i {
    font-size: 28px;
    color: var(--primary-color);
    margin-top: 5px;
    background: linear-gradient(135deg, rgba(0, 106, 255, 0.1) 0%, rgba(0, 106, 255, 0.05) 100%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover i {
    background: var(--primary-gradient);
    color: #fff;
    transform: scale(1.1);
}

.contact-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-text p {
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.6;
    font-weight: 500;
}

.contact-text a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary-color);
}

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

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

.form-group label {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.required {
    color: #e74c3c;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid rgba(0, 106, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background-color: #fff;
}

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

.form-group select {
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
    color: #2c3e50;
}

.form-group select:invalid {
    color: #94a3b8;
}

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

/* 送信ボタン: loading 状態 */
.btn:disabled,
.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none !important;
    box-shadow: none !important;
}

.btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn .btn-spinner {
    display: none;
}

.btn.is-loading .btn-spinner {
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn.is-loading .btn-spinner {
        animation: none;
        border-top-color: rgba(255, 255, 255, 0.7);
    }
}

/* フォーム送信中の視覚フィードバック */
.contact-form.is-submitting form {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.contact-form .form-group input:disabled,
.contact-form .form-group select:disabled,
.contact-form .form-group textarea:disabled {
    background-color: #f5f7fa;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

/* フッター */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 80px 0 30px;
    position: relative;
}

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

/* ===========================================
   法務ページ共通スタイル
   (privacy-policy / terms-of-service / cookie-policy)
   =========================================== */
.privacy-policy,
.terms-of-service,
.cookie-policy {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: 60vh;
}

.privacy-policy .container,
.terms-of-service .container,
.cookie-policy .container {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-policy .section-header,
.terms-of-service .section-header,
.cookie-policy .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 30px;
}

.privacy-policy .section-header::after,
.terms-of-service .section-header::after,
.cookie-policy .section-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: var(--primary-gradient);
}

.privacy-policy .section-header h2,
.terms-of-service .section-header h2,
.cookie-policy .section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.privacy-content,
.terms-content,
.cookie-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 50px 60px;
    box-shadow: 0 4px 24px rgba(0, 106, 255, 0.08),
        0 1px 3px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(0, 106, 255, 0.08);
}

.privacy-content h3,
.terms-content h3,
.cookie-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 28px 0;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(0, 106, 255, 0.1);
    position: relative;
}

.privacy-content h3::before,
.terms-content h3::before,
.cookie-content h3::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
}

.privacy-content h4,
.terms-content h4,
.cookie-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 36px 0 14px 0;
    padding: 10px 0 10px 16px;
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(90deg, rgba(0, 106, 255, 0.05) 0%, transparent 100%);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    line-height: 1.5;
}

.privacy-content p,
.terms-content p,
.cookie-content p {
    font-size: 16px;
    line-height: 1.85;
    color: #334155;
    margin: 0 0 16px 0;
}

.privacy-content ul,
.terms-content ul,
.cookie-content ul {
    margin: 12px 0 24px 0;
    padding: 0;
    list-style: none;
}

.privacy-content ul li,
.terms-content ul li,
.cookie-content ul li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.privacy-content ul li::before,
.terms-content ul li::before,
.cookie-content ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 18px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.15);
}

.privacy-content ul li+li,
.terms-content ul li+li,
.cookie-content ul li+li {
    margin-top: 4px;
}

.privacy-content a,
.terms-content a,
.cookie-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    font-weight: 500;
}

.privacy-content a:hover,
.terms-content a:hover,
.cookie-content a:hover {
    border-bottom-color: var(--primary-color);
}

.privacy-content>p:last-child,
.terms-content>p:last-child,
.cookie-content>p:last-child {
    margin-top: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0, 106, 255, 0.04) 0%, rgba(0, 187, 255, 0.04) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    color: #1e293b;
    font-size: 15px;
}

.privacy-content>p:last-child strong,
.terms-content>p:last-child strong,
.cookie-content>p:last-child strong {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {

    .privacy-policy,
    .terms-of-service,
    .cookie-policy {
        padding: 60px 0 50px;
    }

    .privacy-policy .section-header h2,
    .terms-of-service .section-header h2,
    .cookie-policy .section-header h2 {
        font-size: 28px;
    }

    .privacy-content,
    .terms-content,
    .cookie-content {
        padding: 30px 24px;
        border-radius: var(--radius-md);
    }

    .privacy-content h3,
    .terms-content h3,
    .cookie-content h3 {
        font-size: 20px;
    }

    .privacy-content h4,
    .terms-content h4,
    .cookie-content h4 {
        font-size: 16px;
        margin: 28px 0 12px 0;
    }

    .privacy-content p,
    .terms-content p,
    .cookie-content p {
        font-size: 15px;
    }

    .privacy-content ul li,
    .terms-content ul li,
    .cookie-content ul li {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .privacy-content a,
    .terms-content a,
    .cookie-content a {
        transition: none;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-parent-company {
    margin-top: 20px;
}

.footer-parent-company a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

.footer-parent-company a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

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

/* 备案号（ICP / 公安） */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 18px;
    font-size: 13px;
}

.legal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.legal-link:hover,
.legal-link:focus-visible {
    color: rgba(255, 255, 255, 0.9);
}

.legal-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 2px;
}

.legal-separator {
    color: rgba(255, 255, 255, 0.25);
    user-select: none;
}

.gongan-shield {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }

    .legal-separator {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal-link {
        transition: none;
    }
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {

    .about-content,
    .tech-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .hero-video {
        object-position: center center;
    }

    .hero {
        padding: 150px 0 60px;
    }

    .hero::before {
        width: 360px;
        height: 360px;
    }

    .hero-content {
        padding: 32px 24px;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .navbar-brand svg {
        width: 120px;
        height: 51px;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        padding: 30px 20px;
        box-shadow: 0 10px 20px rgba(0, 106, 255, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
        gap: 20px;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-menu_first {
        margin-left: 0;
    }

    .navbar-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-cta {
        display: none;
    }

    .navbar-menu li.nav-cta-item {
        margin-left: 0;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        display: block;
    }

    .navbar-menu li.nav-cta-item a {
        display: block;
        text-align: center;
        padding: 12px 20px;
    }

    .hero-video {
        object-position: center center;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
        min-height: 100vh;
    }

    .hero-video {
        object-position: center center;
        object-fit: cover;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 16px;
    }

    .about,
    .services,
    .tech,
    .team,
    .contact {
        padding: 60px 0;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-item {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }
}

/* スクロールトップボタン */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 106, 255, 0.2);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 106, 255, 0.4);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* スクロールアニメーション */
.about-content,
.services-grid,
.tech-content,
.team-grid,
.contact-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.about-content.visible,
.services-grid.visible,
.tech-content.visible,
.team-grid.visible,
.contact-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* アクセシビリティ：アニメーション削減 */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}