/* ========================================
   GLOBIS学び放題 LP 共通スタイルシート
   ======================================== */

/* CSS変数定義 */
:root {
    /* カラーパレット */
    --GLOBIS-Blue: #1847C7;
    --GLOBIS-Orange: #FF981A;
    --GLOBIS-White: #FFFFFF;
    --color-primary: var(--GLOBIS-Blue);
    --color-secondary: var(--GLOBIS-Orange);
    --color-background: var(--GLOBIS-White);
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e5e5e5;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-error: #dc3545;

    /* タイポグラフィ */
    --font-family-primary: 'Noto Sans JP', sans-serif;
    --font-family-secondary: 'Noto Sans JP', sans-serif;
    
    /* フォントサイズ */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */

    /* スペーシング */
    --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 */

    /* ブレークポイント */
    --breakpoint-mobile: 1023px;

    /* シャドウ */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* ボーダーラジウス */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
}

/* ========================================
   動画モーダル（共通スタイル）
   ======================================== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.video-modal.active {
    display: block;
}

.video-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.video-modal__container {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.video-modal__close:hover {
    color: var(--GLOBIS-Orange);
}

.video-modal__content {
    width: 100%;
    height: 100%;
}

.video-modal__video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
}

/* ========================================
   フッターセクション（共通スタイル）
   ======================================== */
.footer {
    background-color: #333333;
    color: white;
    padding: 32px 0;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.footer__link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
    outline: none;
}

.footer__link:hover {
    color: #cccccc;
}

.footer__link:focus {
    outline: none;
    color: #cccccc;
}

.footer__copyright {
    font-size: 14px;
    color: white;
    margin: 0;
}

/* ========================================
   ビジネス機能セクション（共通スタイル）
   ======================================== */
.business-features {
    background-color: var(--GLOBIS-Blue);
    color: var(--GLOBIS-White, #FFF);
}

.business-features__container {
    display: flex;
    align-items: center;
}

.business-features__title {
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.business-features__description {
    color: #ffffff;
    margin: 0;
}

.business-features__list {
    display: flex;
    flex-direction: column;
}

.business-features__item {
    background-color: var(--GLOBIS-White, #FFF);
    color: var(--GLOBIS-Blue, #1847C7);
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    font-feature-settings: 'pwid' on;
    display: flex;
    align-items: center;
}

.business-features__icon {
    flex-shrink: 0;
}

/* ========================================
   ヒーロー関連の共通スタイル
   ======================================== */
.hero__lead-asterisk {
    font-size: 0.5em;
    color: inherit;
    font-weight: inherit;
}

.hero__note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

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

/* フォーカス時のoutlineを削除 */
*:focus,
*:active,
button:focus,
button:active,
a:focus,
a:active,
input:focus,
input:active,
textarea:focus,
textarea:active,
select:focus,
select:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

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

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.main-bg {
    background:
        linear-gradient(180deg, #1847c7 0%, #6FA6ED 10%, #ffffff 50%);
    min-height: 600px;
    width: 100%;
    max-width: 100%;
    background-attachment: scroll;
    position: relative;
}

body.main-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-image: url('../assets/_common/MVbg_0424.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}
