* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* ヘッダー */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
}

.header-top {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(90deg, #E70000 0%, #E70000 40%, #1A233B 40%, #1A233B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    height: 40px;
    width: auto;
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login {
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.btn-login:hover {
    color: #E70000;
}

.btn-register {
    padding: 10px 25px;
    background-color: #E70000;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-register:hover {
    background-color: #C50000;
    transform: translateY(-2px);
}

/* LINEプロモーションバー */
.line-promo-bar {
    background-color: #06c755;
    padding: 8px 0;
    text-align: center;
}

.line-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.line-icon {
    font-size: 18px;
}

/* ヒーローセクション */
.hero-section {
    background-image: url('./img/top-back3.png');
    background-size: cover;
    /* 画像全体をカバー */
    background-position: center -40px;
    background-repeat: no-repeat;
    /* 画像内のロゴ下にテキストを配置するための余白（比率維持） */
    padding: 25vw 20px 40px;
    color: #fff;
    /* 背景画像下の余白部分用 */
    position: relative;
}

/* オーバーレイ削除（画像そのまま表示のため） */
.hero-section::before {
    display: none;
}

.hero-section>* {
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    /* グリッド解除、マージン調整 */
    display: block;
    text-align: center;
}

/* ヒーローテキストの位置調整（追加） */
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 15vw auto 0 auto;
    /* 追加：上にマージンを追加して下げる */
    max-width: 100%;
}

/* デスクトップでの調整 */
@media (min-width: 769px) {
    .hero-text {
        margin-top: 10vw;
        /* デスクトップでは上に配置 */
    }
}

.hero-subtitle {
    font-size: 2.5vw;
    margin-bottom: 1.5vw;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* PCサイズ等の上限設定（画面が大きすぎるときのみ固定） */
@media (min-width: 1200px) {
    .hero-subtitle {
        font-size: 30px;
        margin-bottom: 18px;
    }

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

    .hero-cta {
        font-size: 18px;
        padding: 18px 48px;
    }
}

.hero-title {
    font-size: 3.0vw;
    font-weight: 900;
    margin-bottom: 2vw;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-domain {
    display: none;
}

.hero-description {
    font-size: 2.2vw;
    line-height: 1.8;
    margin-bottom: 4vw;
    opacity: 0.95;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* ボタンの黄色い枠を調整（追加・修正） */
.hero-cta {
    display: inline-block;
    padding: 1.5vw 3vw;
    /* パディングを調整 */
    background-color: #ffd500;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 2vw;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(231, 0, 0, 0.3);
    border: 2px solid #ffd500;
    /* 枠線を追加 */
}

@media (min-width: 1024px) {
    .hero-cta {
        padding: 18px 40px;
        font-size: 18px;
        border-width: 2px;
        /* デスクトップでは少し太め */
    }
}

.hero-cta:hover {
    background-color: #ffc800;
    border-color: #ffc800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 0, 0, 0.4);
}

/* 画像コラージュ (非表示のまま) */
.hero-images {
    display: none;
}

/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* 企業セクション */
.company-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.section-title {
    font-size: 28px;
    font-weight: 900;
    color: #333;
}

.see-all-link-top {
    color: #E70000;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.3s;
}

.see-all-link-top:hover {
    color: #C50000;
    text-decoration: underline;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.company-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.company-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.company-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    min-height: 90px;
}

.logo-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    opacity: 1;
    display: block;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.company-name {
    display: none;
}

.university-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.person-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #d4a574;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    color: #fff;
}

.university {
    font-size: 14px;
    color: #333;
    margin: 0;
}

.student-info {
    margin-top: 15px;
}

.tags {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 12px;
    border-radius: 20px;
}

.see-all-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #E70000;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

.see-all-card:hover {
    background-color: #C50000;
}

/* レスポンシブ時の「全て見る」カードを薄く表示 */
@media (max-width: 768px) {
    .see-all-card {
        background-color: rgba(231, 0, 0, 0.15) !important;
        border: 1px dashed rgba(231, 0, 0, 0.4) !important;
        opacity: 0.7 !important;
    }

    .see-all-card:hover {
        background-color: rgba(231, 0, 0, 0.25) !important;
        opacity: 0.9 !important;
    }

    .see-all-icon {
        color: rgba(231, 0, 0, 0.6) !important;
        opacity: 0.8 !important;
    }

    .see-all-text {
        color: rgba(231, 0, 0, 0.7) !important;
        font-weight: 500 !important;
    }
}

.see-all-icon {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.see-all-text {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

/* 機能紹介セクション */
.features-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 80px;
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: #f9f9f9;
    border-radius: 16px;
    padding: 40px;
    align-items: center;
}

.feature-content {
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-size: 24px;
    font-weight: 900;
    color: #E70000;
    margin-bottom: 20px;
    line-height: 1.4;
}

.feature-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.feature-cta {
    display: inline-block;
    padding: 15px 35px;
    background-color: #E70000;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    width: fit-content;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(231, 0, 0, 0.2);
}

.feature-cta:hover {
    background-color: #C50000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 0, 0, 0.3);
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* フッター */
.footer {
    background-color: #f5f5f5;
    padding: 60px 20px 30px;
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav {
    margin-bottom: 40px;
}

.footer-nav-top {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-nav-bottom {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #E70000;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.footer-logo {
    font-size: 18px;
    font-weight: 900;
    color: #333;
}

.copyright {
    font-size: 12px;
    color: #999;
}

/* Slick Carousel用のスタイル（デスクトップ用） */
@media (min-width: 769px) {
    .carousel .slick-slide {
        padding: 0 10px;
    }

    .carousel .slick-dots {
        bottom: -40px;
    }

    .carousel .slick-dots li button:before {
        font-size: 12px;
        color: #999;
    }

    .carousel .slick-dots li.slick-active button:before {
        color: #E70000;
    }
}

/* モバイル時はSlick Carouselを完全に無効化 */
@media (max-width: 768px) {
    .carousel .slick-slide {
        padding: 0 !important;
    }

    .carousel .slick-dots {
        display: none !important;
    }
}

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

    /* ヘッダーの調整 */
    .header-top {
        padding: 12px 0;
    }

    .header-container {
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .logo {
        flex: 0 0 auto;
    }

    .logo img {
        height: 32px;
    }

    .header-buttons {
        display: flex;
        gap: 8px;
        flex: 0 0 auto;
    }

    .btn-login {
        padding: 6px 12px;
        font-size: 13px;
        flex: 0 0 auto;
    }

    .btn-register {
        padding: 6px 15px;
        font-size: 13px;
        border-radius: 4px;
        flex: 0 0 auto;
    }

    .line-promo-bar {
        padding: 5px 0;
    }

    .line-link {
        font-size: 13px;
    }

    /* ヒーローセクションの調整 */
    .hero-section {
        background-image: url('./img/sp-top-back.png');
        background-size: cover;
        background-position: center -80px;
        /* 高さを狭めるためさらに調整 */
        background-repeat: no-repeat;
        height: 380px;
        padding: 40vw 20px 40px;
    }

    /* ヒーローテキストのモバイル調整 */
    .hero-text {
        margin-top: 5vw;
        /* 適度な余白に調整 */
    }

    /* 画像上のテキストは白文字のまま影をつける */
    .hero-text .hero-subtitle,
    .hero-text .hero-title,
    .hero-text .hero-description {
        color: #fff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    }

    /* 文字サイズの修正（赤枠内に収める） */
    .hero-subtitle {
        font-size: 12px !important;
        /* コンパクトに */
        margin-bottom: 5px;
    }

    .hero-title {
        font-size: 16px !important;
        /* 赤枠内に収める */
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .hero-description {
        font-size: 14px !important;
        /* 修正 */
        line-height: 1.5;
        margin-bottom: 15px;
    }

    /* モバイル時のボタン調整（赤枠内に収める） */
    .hero-cta {
        padding: 8px 20px !important;
        /* コンパクトに */
        font-size: 14px !important;
        /* 小さく */
        border-radius: 6px;
        box-shadow: 0 4px 10px rgba(231, 0, 0, 0.3);
        border: 1px solid #ffd500 !important;
        /* モバイルでは細い枠線 */
        display: inline-block !important;
        margin: 0 !important;
        width: auto !important;
    }

    .image-collage {
        display: none;
    }

    /* カルーセルのドットを非表示 */
    .carousel .slick-dots {
        display: none !important;
    }

    /* 企業カードの調整 */
    .company-card {
        padding: 5px;
        /* Extremely reduced */
        border-radius: 6px;
        min-width: 0;
        flex-shrink: 0;
    }

    .company-header {
        min-height: 60px;
        margin-bottom: 4px;
        gap: 8px;
    }

    .logo-image {
        width: 90px;
        height: 80px;
    }

    .company-name {
        font-size: 11px;
    }

    .university-info {
        gap: 4px;
        margin-bottom: 4px;
    }

    .person-icon {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .university {
        font-size: 10px;
    }

    .student-info {
        margin-top: 4px;
    }

    .tag {
        font-size: 9px;
        padding: 2px 6px;
        margin-bottom: 2px;
    }

    /* Hide redundant info if needed to save space */
    .tags {
        gap: 2px;
    }

    /* 「全て見る」カードの調整 */
    .see-all-card {
        min-height: auto;
        padding: 5px;
    }

    .see-all-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .see-all-text {
        font-size: 13px;
    }

    /* 機能紹介カードの調整 */
    .features-section {
        gap: 25px;
        margin-top: 50px;
        text-align: center;
    }

    .feature-card {
        grid-template-columns: 1fr;
        padding: 25px 20px;
        gap: 20px;
        border-radius: 12px;
        text-align: center;
    }

    .feature-content {
        text-align: center;
        align-items: center;
    }

    .feature-image {
        order: -1;
        display: flex;
        justify-content: center;
    }

    .feature-title {
        font-size: 20px;
        margin-bottom: 15px;
        text-align: center;
    }

    .feature-description {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 20px;
        text-align: center;
    }

    .feature-cta {
        padding: 12px 25px;
        font-size: 15px;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        text-align: center;
    }

    .illustration {
        width: 150px;
        height: 150px;
        font-size: 60px;
    }

    /* フッターの調整 */
    .footer {
        padding: 40px 15px 20px;
        margin-top: 60px;
    }

    .footer-nav-top,
    .footer-nav-bottom {
        flex-direction: column;
        gap: 12px;
    }

    .footer-nav a {
        font-size: 13px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 20px;
    }

    .footer-logo {
        font-size: 16px;
    }

    .copyright {
        font-size: 11px;
    }
}

@media (max-width: 480px) {

    /* ヘッダーの調整 - 3つ横並び */
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .logo {
        flex: 0 0 auto;
    }

    .logo img {
        height: 28px;
    }

    .header-buttons {
        display: flex;
        gap: 6px;
        flex: 0 0 auto;
        width: auto;
        margin-top: 0;
    }

    .btn-login,
    .btn-register {
        flex: 0 0 auto;
        text-align: center;
        padding: 6px 10px;
        font-size: 12px;
        max-width: none;
    }

    /* ヒーローセクションの調整 */
    .hero-section {
        background-image: url('./img/sp-top-back.png');
        background-size: cover;
        background-position: center -180px;
        /* 高さを狭めるためさらに調整 */
        background-repeat: no-repeat;
        height: 290px;
        padding: 40vw 20px 40px;
    }

    .hero-text {
        margin-top: 5vw;
    }

    .hero-subtitle {
        font-size: 13px !important;
    }

    .hero-title {
        font-size: 18px !important;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 14px !important;
    }

    /* 小さな画面でのボタン調整 */
    .hero-cta {
        padding: 10px 20px !important;
        font-size: 14px !important;
        border-radius: 6px;
        border: 1px solid #ffd500 !important;
        box-shadow: 0 3px 8px rgba(231, 0, 0, 0.3);
    }

    /* メインコンテンツの調整 */
    .main-content {
        padding: 10px 12px;
    }

    /* セクションヘッダーの調整 */
    .section-title {
        font-size: 20px;
    }

    /* 企業カードの調整 */
    .company-card {
        padding: 18px;
    }

    .logo-image {
        width: 60px;
        height: 60px;
        left: 50%;
        transform: translateX(-50%);
    }

    .company-name {
        font-size: 11px;
        display: none;
    }

    .university {
        font-size: 12px;
    }

    .tag {
        font-size: 10px;
        padding: 2px 8px;
    }

    /* 機能紹介カードの調整 */
    .feature-card {
        padding: 20px 15px;
        text-align: center;
    }

    .feature-content {
        text-align: center;
        align-items: center;
    }

    .feature-title {
        font-size: 18px;
        text-align: center;
    }

    .feature-description {
        font-size: 13px;
        text-align: center;
    }

    .feature-cta {
        margin: 0 auto;
        text-align: center;
    }

    .illustration {
        width: 120px;
        height: 120px;
        font-size: 50px;
    }
}

/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-large {
    max-width: 700px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 28px;
    font-weight: 900;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* フォームスタイル */
.auth-form,
.registration-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.label-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.required {
    color: #E70000;
}

.private-info {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #E70000;
    box-shadow: 0 0 0 3px rgba(231, 0, 0, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group.error input,
.form-group.error select {
    border-color: #E70000;
}

.form-group.error input:focus,
.form-group.error select:focus {
    box-shadow: 0 0 0 3px rgba(231, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    width: auto;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
    cursor: pointer;
}

.form-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.forgot-password {
    color: #E70000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #C50000;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #E70000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 4px 15px rgba(231, 0, 0, 0.3);
}

.btn-submit:hover {
    background-color: #C50000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 0, 0, 0.4);
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.switch-to-register {
    color: #E70000;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.switch-to-register:hover {
    color: #C50000;
    text-decoration: underline;
}

/* 登録フォームのステップ表示 */
.form-step {
    display: none;
}

.form-step.active-step {
    display: block;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn-prev,
.btn-next {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #fff;
    color: #333;
}

.btn-prev:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.btn-next {
    background-color: #E70000;
    color: #fff;
    border-color: #E70000;
}

.btn-next:hover {
    background-color: #C50000;
    border-color: #C50000;
}

.agreement-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.agreement-text {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.agreement-check {
    font-size: 14px;
}

.agreement-check label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.agreement-check input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: auto;
}

.agreement-check a {
    color: #E70000;
    text-decoration: underline;
    transition: color 0.3s;
}

.agreement-check a:hover {
    color: #C50000;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        width: 95%;
        max-height: 95vh;
    }

    .modal-title {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .form-navigation {
        flex-direction: column;
    }

    .btn-prev,
    .btn-next {
        width: 100%;
    }
}

/* Slick Carouselを完全に無効化するための追加ルール（レスポンシブ時） */
@media (max-width: 768px) {

    /* Slick Carouselのすべてのスタイルを上書き - 横並び表示 */
    .company-grid.carousel,
    .company-grid.carousel.slick-initialized,
    .company-grid.carousel.slick-slider {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
        gap: 12px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .company-grid.carousel .slick-list,
    .company-grid.carousel .slick-track {
        display: contents !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
    }

    .company-grid.carousel .slick-slide,
    .company-grid.carousel .slick-slide.slick-active,
    .company-grid.carousel .slick-slide.slick-current {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
        opacity: 1 !important;
    }

    .company-grid.carousel .slick-arrow {
        display: none !important;
    }

    .company-grid.carousel .slick-dots {
        display: none !important;
    }
}