/* カラー変数定義 */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #374151;
    --text-color: #333;
    --background-color: #f8f9fa;
    --card-background: #f8f9fa;
    --border-color: #d1d5db;
    --accent-color: #059669;
    --warning-color: #f59e0b;
    --warning-bg: #fef3c7;
    --placeholder-color: #9ca3af;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --primary-light: rgba(30, 58, 138, 0.1);
}

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* ヘッダー */
header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;

    h1 {
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 0.5rem;

        span {
            text-wrap: nowrap;
        }
    }
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* メインコンテンツ */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    background-color: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-light);
}

h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* 導入文 */
.introduction p {
    margin-bottom: 1rem;

}

/* 開催概要 */
.details-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 1rem;
}

.detail-section {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);

    h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }
}

.detail-content {
    p {
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    ul {
        list-style: none;
        padding-left: 0;
    }

    li {
        margin-bottom: 0.8rem;
        padding-left: 1.5rem;
        position: relative;
        line-height: 1.6;
        font-size: 1rem;

        &::before {
            content: "•";
            color: var(--primary-color);
            font-weight: bold;
            position: absolute;
            left: 0;
        }
    }
}

.note {
    background-color: var(--warning-bg);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--warning-color);
    font-size: 0.95rem;
    margin-top: 2rem;
}

/* 参加企業 */
.participating-companies {
    p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        color: var(--secondary-color);
        text-align: center;
    }
}

.company-list {
    padding: 0.5rem 0;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    text-align: center;
    line-height: 1.8;
}

.company-name {
    white-space: nowrap;
    display: inline-block;
    margin: 0 0.2em;
}

.excel-button-container {
    margin-top: 1rem;
    text-align: center;
}

.excel-button {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-light);
    width: fit-content;
    margin-inline: auto;
    display: inline-block;

    @media (any-hover: hover) {
        &:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px var(--shadow-medium);
        }
    }
}

/* 申込みフォーム */
.form-placeholder {
    background-color: #f3f4f6;
    padding: 2rem;
    border-radius: 6px;
    text-align: center;
    color: #6b7280;
    border: 2px dashed var(--border-color);
}

/* フォームスタイルの上書き */
form#mailformpro {
    margin-top: 1rem;

    dl {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: fit-content;
        margin-inline: auto;

        dt {
            text-align: left;
        }

        dd {
            padding: 0;
        }
    }

    dt.mfp {
        color: var(--primary-color);
        font-weight: bold;
        font-size: 1.1rem;
        margin: 0;
        padding: 0;
        border: none;
        background: none;
        width: fit-content;
        flex-shrink: 0;
        margin-top: 1rem;
    }

    dd.mfp {
        margin: 0;
        padding: 0;
        border: none;
        background: none;
        flex: 1;
    }

    .mfp_rows {
        margin: 0;
    }

    .mfp_col10 {
        width: 100%;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        width: 100% !important;
        max-width: 400px;
        padding: 0.75rem;
        border: 2px solid var(--border-color);
        border-radius: 6px;
        font-size: 1rem;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
        background-color: white;

        &:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px var(--primary-light);
        }

        &::placeholder {
            color: var(--placeholder-color);
        }
    }
}

/* ラジオボタンのスタイル */
form#mailformpro {
    label {
        display: inline-flex;
        align-items: center;
        margin-right: 1.5rem;
        margin-bottom: 0.5rem;
        cursor: pointer;
        font-weight: normal;
        color: var(--secondary-color);
        font-size: 1rem;
        border: none !important;
        padding: 0 !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }

    input[type="radio"] {
        margin-right: 0.5rem;
        width: auto;
        max-width: none;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    /* 送信ボタンのスタイル */
    button[type="submit"] {
        background-color: var(--primary-color);
        color: white;
        padding: 1rem 2rem;
        border: none;
        border-radius: 6px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.2s ease;
        margin-top: 2rem;
        width: fit-content;
        max-width: 300px;
        display: block;
        margin-left: auto;
        margin-right: auto;

        @media (any-hover: hover) {
            &:hover {
                transform: translateY(-1px);
            }
        }

        &:active {
            transform: translateY(0);
        }
    }
}

/* フッター */
footer {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 2rem 1rem;
    margin-top: 3rem;
    text-align: center;
    border-top: 2px solid var(--primary-color);

    h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }
}

.contact-info {
    p {
        margin-bottom: 0.5rem;
        color: var(--secondary-color);
    }

    strong {
        color: var(--primary-color);
        font-weight: bold;
        font-size: 1rem;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    header {
        h1 {
            font-size: 2rem;
        }
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .details-container {
        gap: 1.5rem;
    }
    
    section {
        padding: 1.5rem;
    }
    
    main {
        padding: 0 0.5rem;
    }

    form#mailformpro {
        dt.mfp {
            width: 100%;
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }
        
        input[type="text"],
        input[type="email"],
        input[type="tel"] {
            max-width: 100%;
        }
        
        label {
            display: block;
            margin-right: 0;
            margin-bottom: 0.8rem;
        }
        
        button[type="submit"] {
            max-width: 100%;
        }
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 1rem;

        h1 {
            font-size: 1.8rem;
        }
    }
    
    .excel-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
.br-sp{
    display: none;
}
@media (max-width: 480px) {
    .br-sp{
        display: block;
    }
}