/* ===== 共通CSS Variables - モダン配色ベース ===== */
:root {
    /* メインカラーパレット - モダンブルー系 */
    --primary-color: #0066ff; /* 鮮やかなブルー */
    --primary-dark: #0052cc; /* 深いブルー */
    --primary-light: #4d94ff; /* 明るいブルー */
    --secondary-color: #ff4757; /* アクセントレッド */
    --accent-color: #00d4aa; /* エメラルドグリーン */
    --success-color: #10b981; /* 成功色 */
    --warning-color: #f59e0b; /* 警告色 */
    --error-color: #ef4444; /* エラー色 */
    --logo-color: #9B0000; /*ロゴ色 */
    /* テキストカラー */
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #7a7a7a;
    /* 背景カラー */
    --bg-white: #ffffff;
    --bg-light: #f8fafc; /* 非常に薄いブルーグレー */
    --bg-gray: #f1f5f9; /* 薄いグレー */
    --bg-dark: #0f172a; /* 深いネイビー */
    /* グラデーション - モダンブルー系 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-modern-blue: linear-gradient(135deg, #0066ff 0%, #00d4aa 100%);
    --gradient-soft-blue: linear-gradient(135deg, #4d94ff 0%, #0066ff 100%);
    /* シャドウ */
    --shadow-sm: 0 2px 4px rgba(0, 102, 255, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 102, 255, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 102, 255, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 102, 255, 0.1);
    --shadow-blue: 0 4px 15px rgba(0, 102, 255, 0.2);
    --shadow-blue-hover: 0 8px 25px rgba(0, 102, 255, 0.3);
    /* その他のデザイントークン */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===== Utility Classes ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-gradient-blue {color: var(--accent-color);}

/* ===== Header & Navigation（モダンブルー対応版） ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid rgba(0, 102, 255, 0.15);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== ロゴスタイル（モダンブルー対応） ===== */
.nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* ロゴ付きナビゲーション */
.nav__logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav__logo-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: var(--transition);
}

.nav__logo-text {
    font-family: 'HG丸ｺﾞｼｯｸM-PRO';
    font-size: 1.5rem;
    font-weight: 700;
    /*background: var(--gradient-primary);*/
    background: var(--logo-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* 2段ロゴ用のクラス */
.nav__logo--multi-line {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.nav__logo-company {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.1rem;
}

.nav__logo-recruit {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.15em;
    text-align: right;
    margin-top: 0.2rem;
    display: block;
    width: 100%;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav__link {
    min-width: 105px;
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-medium);
    display: inline-block;
    align-items: center;
    text-align: center;
    height: 100%;
}

.nav__link--active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav__link--external {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
}

.nav__link--external::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('./image/125_arr_hoso.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: -1px;
}

.nav__link--external:hover::after {
    opacity: 1;
    transform: translateX(2px) translateY(-2px);
}

.nav__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    border-radius: 50px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.nav__link:hover::before {
    opacity: 1;
}

.nav__link:hover {
    color: white;
    transform: translateY(-2px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Header CTA Buttons（モダンブルー対応版） ===== */
.nav__cta-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav__cta-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

/* プライマリーボタン（モダンブルーベース） */
.nav__cta-btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-blue);
}

.nav__cta-btn--primary::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.6s;
}

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

.nav__cta-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue-hover);
    color: white;
}

/* セカンダリーボタン（エメラルドアクセント） */
.nav__cta-btn--secondary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.nav__cta-btn--secondary::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.6s;
}

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

.nav__cta-btn--secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
    color: white;
}

/* アウトラインボタン（モダンブルーアウトライン） */
.nav__cta-btn--outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* CTAボタンアニメーション効果 */
.nav__cta-btn::after {
    display: inline-block;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.nav__cta-btn:hover::after {
    transform: translateX(3px);
}

/* ===== モバイル用CTAボタン（全画面共通対応） ===== */
.nav__cta-mobile {
    display: none;
}

/* ===== Section Base Styles ===== */
.section {
    padding: 6rem 0;
    position: relative;
}

.section--alt {
    background: var(--bg-light);
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.section__subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* セクション間の余白調整 */
.section--no-padding-top {
    padding-top: 0;
}

/* 画像の最適化 */
.img-optimized {
    object-fit: cover;
    transition: var(--transition);
}

/* 画像の最適化 */
.img-rikunabi {
    border-radius: 15px;  mask-image:
}

/* ===== Section Badge（モダンブルー対応） ===== */
.section__badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

/* ===== Page Header（モダンブルー対応） ===== */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(77, 148, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.page-header__content {
    position: relative;
    z-index: 2;
}

.page-header__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.page-header__subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Hero Section（モダンブルー対応） ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

/* ===== Call to Action Section（モダンブルー対応） ===== */
.cta {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.cta__content {
    position: relative;
    z-index: 2;
}

.cta__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta__description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cta__button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta__button::after {
    transition: var(--transition);
}

.cta__button:hover::after {
    transform: translateX(5px);
}

/* ===== Footer（モダンブルー対応） ===== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}

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

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer__section h3 {
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer__section p,
.footer__section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.footer__section a:hover {
    color: var(--primary-light);
}

.footer__section--company {
    max-width: 350px;
}

.footer__company-info {
    margin-top: 1rem;
}

.footer__address {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer__address strong {
    color: white;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.footer__contact-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer__contact-details strong {
    color: white;
    font-weight: 600;
}

.footer__business-hours {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.8rem;
    font-weight: 500;
}

.footer__links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.footer__links-column p {
    margin-bottom: 0.8rem;
}

.footer__links-column a {
    font-size: 0.95rem;
    padding: 0.2rem 0;
    display: inline-block;
}

.footer__section a[target="_blank"] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer__section a[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('./image/125_arr_hoso.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    transition: var(--transition);
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.footer__section a[target="_blank"]:hover::after {
    opacity: 1;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== Card Components（モダンブルー対応） ===== */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* ===== 統一カードシステム ===== */
.card-base {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 102, 255, 0.05);
}

.card-base:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

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

/* カードバリエーション */
.card--service {
    padding: 3rem 2.5rem;
}

.card--feature {
    padding: 3rem 2rem;
    text-align: center;
}

.card--benefit {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
}

.card--project {
    padding: 0;
}

.card--interview {
    padding: 0;
    border-radius: var(--border-radius-lg);
}

/* カードヘッダー */
.card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.card__icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-blue);
}

.card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card__description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

/* ===== Button Components（モダンブルー対応） ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-blue);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-hover);
}

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

.btn--secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn--accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
}

/* ===== Form Components（モダンブルー対応） ===== */
.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form__input,
.form__select,
.form__checkbox,
.form__textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

    .form__input:focus,
    .form__select:focus,
    .form__checkbox:focus,
    .form__textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    }

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1130px) {
/*@media (max-width: 768px) {*/
    .nav__menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
        align-items: flex-start;
    }

    /* ロゴのモバイル対応 */
    .nav__logo-container {
        gap: 0.5rem;
    }

    .nav__logo-image {
        width: 46px;
        height: 46px;
    }

    .nav__logo-text-container {
        flex-direction: column;
    }

    .nav__logo-text {
        font-size: 1.1rem;
    }

    .nav__logo-recruit {
        font-size: 0.7rem;
    }

    .nav__menu--active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }

    .nav__link--external {
        justify-content: flex-start;
    }

    .nav__toggle {
        display: flex;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 4rem 0;
    }

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

    .hero {
        background-attachment: scroll;
    }
    
    /* ===== モバイル用CTAボタンの表示制御（全画面共通） ===== */
    .nav__cta-buttons {
        display: none;
    }

    .nav__cta-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(0, 102, 255, 0.1);
        width: 100%;
    }

    .nav__cta-mobile .nav__cta-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        display: flex;
        align-items: center;
    }

    /* ロゴのモバイル調整 */
    .nav__logo-company {
        font-size: 1rem;
    }
    
    .nav__logo-recruit {
        font-size: 0.8rem;
    }

    .card--benefit {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    
    .card--service,
    .card--feature {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }

    .nav__logo-text {
        font-size: 0.9rem;
    }

    .nav__logo-recruit {
        font-size: 0.6rem;
    }

    .nav__logo-image {
        width: 40px;
        height: 40px;
    }

    .section {
        padding: 3rem 0;
    }
}

/* ===== Performance Optimizations ===== */
.card,
.btn,
.nav__cta-btn {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

/* ===== 追加のモダンブルー特化コンポーネント ===== */

/* モダンブルーのアクセント要素 */
.accent-blue {
    color: var(--primary-color);
}

.bg-blue {
    background: var(--gradient-primary);
}

/* モダンブルーのボーダー */
.border-blue {
    border: 2px solid var(--primary-color);
}

/* モダンブルーのテキストハイライト */
.highlight-blue {
    background: linear-gradient(120deg, rgba(0, 102, 255, 0.2) 0%, rgba(0, 102, 255, 0.2) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
}

.highlight-blue:hover {
    background-size: 100% 88%;
}

/* ===== 新しいカラーバリエーション ===== */

/* エメラルドアクセント要素 */
.accent-emerald {
    color: var(--accent-color);
}

.bg-emerald {
    background: var(--gradient-accent);
}

.border-emerald {
    border: 2px solid var(--accent-color);
}

/* サクセスカラー要素 */
.accent-success {
    color: var(--success-color);
}

.bg-success {
    background: var(--gradient-success);
}

.border-success {
    border: 2px solid var(--success-color);
}

/* ===== 特殊エフェクト ===== */

/* グラスモーフィズム効果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.1);
}

/* ネオンエフェクト */
.neon-blue {
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
    color: var(--primary-color);
}

.neon-emerald {
    text-shadow: 0 0 10px rgba(0, 212, 170, 0.5);
    color: var(--accent-color);
}

/* ホバーエフェクト強化 */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.hover-scale {
    transition: var(--transition);
}

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

/* ===== カスタムスクロールバー ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== セレクション効果 ===== */
::selection {
    background: rgba(0, 102, 255, 0.2);
    color: var(--text-dark);
}

::-moz-selection {
    background: rgba(0, 102, 255, 0.2);
    color: var(--text-dark);
}

/* ===== プログレスバー ===== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ===== ツールチップ ===== */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--bg-dark);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ===== バッジとタグ ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge--primary {
    background: var(--primary-color);
    color: white;
}

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

.badge--accent {
    background: var(--accent-color);
    color: white;
}

.badge--success {
    background: var(--success-color);
    color: white;
}

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

/* ===== アラート ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert--info {
    background: rgba(0, 102, 255, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-dark);
}

.alert--success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success-color);
    color: #065f46;
}

.alert--warning {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--warning-color);
    color: #92400e;
}

.alert--error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--error-color);
    color: #991b1b;
}

/* ===== モーダル基本スタイル ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

.modal-overlay.active .modal {
    transform: translate(-50%, -50%) scale(1);
}

/* ===== アニメーション拡張 ===== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-10px); }
    70% { transform: translateY(-5px); }
    90% { transform: translateY(-2px); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-pulse { animation: pulse 2s infinite; }
.animate-bounce { animation: bounce 1s infinite; }
.animate-slide-in-left { animation: slideInLeft 0.5s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.5s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ===== ローディングスピナー ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 102, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* ===== グリッドシステム ===== */
.grid {
    display: grid;
    gap: 1rem;
}

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

@media (max-width: 768px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
}

/* ===== フレックスユーティリティ ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* ===== スペーシングユーティリティ ===== */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }

/* ===== テキストユーティリティ ===== */
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ===== 表示ユーティリティ ===== */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

/* ===== 位置ユーティリティ ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* ===== オーバーフローユーティリティ ===== */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

/* ===== 角丸ユーティリティ ===== */
.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-full { border-radius: 50%; }

/* ===== シャドウユーティリティ ===== */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ===== 最終調整とクリーンアップ ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* フォーカス表示の改善 */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 印刷スタイル */
@media print {
    .nav,
    .nav__toggle,
    .nav__cta-buttons,
    .nav__cta-mobile {
        display: none;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0;
    }
}