/* 基本スタイル */
html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

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

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* スマホ表示（iframe内も含む）でコンテンツ幅を完全制御 */
@media (max-width: 768px) {
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 10px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    right: auto;
    top: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    padding-top: 0;
    background: transparent;
    box-shadow: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 0.5rem 0;
}

.nav-link:hover {
    opacity: 0.8;
    border-bottom: 2px solid white;
}

/* ヒーローセクション */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

/* スマホ：ヒーローの高さを調整 */
@media (max-width: 768px) {
    .hero {
        height: 300px !important;
    }
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(59, 130, 246, 0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ボタンスタイル */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: #1e3a8a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #1e3a8a;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    color: #1e3a8a;
    border-color: #1e3a8a;
}

.btn-outline:hover {
    background: #1e3a8a;
    color: white;
}

/* セクション */
.section {
    padding: 5rem 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.section-gray {
    background-color: #f1f5f9;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e3a8a;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 2px;
}

/* カードグリッド */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.card-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.card-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card-features li {
    padding: 0.5rem 0;
    color: #475569;
}

.card-features i {
    color: #22c55e;
    margin-right: 0.5rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
}

.card-link:hover {
    gap: 1rem;
}

.card-placeholder {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* 会社について */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr !important;
    }
}

.about-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.about-icon {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.about-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.about-text {
    color: #64748b;
    line-height: 1.8;
}

/* 福利厚生 */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.benefit-item i {
    font-size: 2.5rem;
    color: #3b82f6;
}

.benefit-item span {
    font-weight: 600;
    color: #1e3a8a;
}

/* 社員の声 */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .voice-grid {
        grid-template-columns: 1fr !important;
    }
}

.voice-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.voice-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.voice-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.voice-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a8a;
}

.voice-position {
    color: #64748b;
    font-size: 0.9rem;
}

.voice-text {
    color: #475569;
    line-height: 1.8;
    font-style: italic;
}

/* CTAセクション */
.cta-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* カードバッジ */
.card-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge-fulltime {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.badge-contract {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 0;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    max-width: 900px;
    width: 90%;
    margin: 2rem auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    z-index: 2001;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #64748b;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e3a8a;
    transform: rotate(90deg);
}

.modal-header {
    padding: 2.5rem 3rem 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.modal-badge {
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.modal-company {
    color: #64748b;
    font-size: 1.1rem;
}

.modal-body {
    padding: 2rem 3rem;
    overflow-y: visible;
}

.modal-section {
    margin-bottom: 2.5rem;
}

.modal-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section-title i {
    color: #3b82f6;
}

.modal-section p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.modal-note {
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
}

.modal-list-title {
    font-weight: 600;
    color: #1e3a8a;
    margin: 1rem 0 0.5rem;
}

.modal-list {
    list-style: none;
    padding-left: 0;
}

.modal-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: #475569;
    line-height: 1.8;
}

.modal-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.modal-highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.modal-salary {
    font-size: 1.5rem;
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-salary-note {
    font-size: 1.1rem;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-company-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
}

.highlight-text {
    color: #22c55e !important;
    font-weight: 600 !important;
    font-style: normal !important;
}

.modal-footer {
    padding: 1.5rem 3rem 2.5rem;
    border-top: 2px solid #f1f5f9;
    text-align: center;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ネクストキャリアセクション */
.nextcareer-section {
    background: #f8fafc;
    padding: 4rem 0;
}

.nextcareer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.nextcareer-link {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.nextcareer-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.nextcareer-banner {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
    pointer-events: none;
}

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

.nextcareer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.95), transparent);
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.nextcareer-link:hover .nextcareer-overlay {
    opacity: 1;
}

.nextcareer-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nextcareer-text i {
    font-size: 1.3rem;
}

.nextcareer-description {
    padding: 2rem;
}

.nextcareer-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nextcareer-title i {
    color: #3b82f6;
}

.nextcareer-text {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.nextcareer-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.nextcareer-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e3a8a;
    font-weight: 500;
}

.nextcareer-feature i {
    color: #22c55e;
    font-size: 1.2rem;
}

.nextcareer-btn {
    display: inline-flex;
    margin-top: 1rem;
}

/* ネクストキャリア - バナーコンテナ */
.nextcareer-banner-container {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto !important;
    z-index: 10;
    min-height: 100px;
    touch-action: manipulation;
}

.nextcareer-banner-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

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

.nextcareer-banner-container .nextcareer-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.9), transparent);
    pointer-events: none;
}

/* ネクストキャリア - 詳細説明 */
.nextcareer-description {
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease;
}

.nextcareer-summary {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.nextcareer-summary h4 {
    color: #1e3a8a;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nextcareer-summary h4 i {
    color: #3b82f6;
}

.nextcareer-summary p {
    color: #475569;
    line-height: 1.8;
}

.nextcareer-features-detailed {
    margin: 2rem 0;
}

.nextcareer-features-detailed h4 {
    color: #1e3a8a;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nextcareer-features-detailed h4 i {
    color: #22c55e;
}

.feature-card {
    display: flex;
    gap: 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
}

.feature-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-content h5 {
    color: #1e3a8a;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
}

.nextcareer-contact {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

.nextcareer-contact p {
    color: #f57c00;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
}

.nextcareer-contact i {
    margin-right: 0.5rem;
}

.feature-content ul {
    color: #64748b;
    line-height: 1.8;
}

.feature-content ul li {
    margin-bottom: 0.3rem;
}

.feature-content h5 i {
    margin-right: 0.5rem;
    color: #3b82f6;
}

.nextcareer-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* エントリーフォーム */
.form-intro {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.entry-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-label.required::after {
    content: '必須';
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.form-label.optional::after {
    content: '任意';
    background: #94a3b8;
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #94a3b8;
}

.form-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.form-input-small {
    width: 100px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input-small:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-date span {
    color: #475569;
    font-weight: 500;
}

.form-address {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-postal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-postal span {
    color: #475569;
    font-weight: 500;
}

.form-postal input {
    max-width: 200px;
}

.form-checkbox-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #475569;
    font-weight: 500;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3b82f6;
}

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

.form-submit {
    text-align: center;
    margin-top: 3rem;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
}

.form-footer-text {
    color: #64748b;
    font-size: 1rem;
}

.form-footer-text a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.form-footer-text a:hover {
    text-decoration: underline;
}

.form-success,
.form-error {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.form-success {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #22c55e;
}

.form-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

/* レスポンシブ */
@media (max-width: 768px) {
    /* スマホでのオーバーフロー完全防止 */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    body * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* すべてのdiv要素 */
    div {
        max-width: 100% !important;
    }
    
    /* すべての画像 */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* ハンバーガーメニュー表示 */
    .header .hamburger,
    button.hamburger,
    #hamburger {
        display: flex !important;
    }

    .header-content {
        justify-content: space-between !important;
        text-align: center;
    }

    .company-name {
        font-size: 1.5rem !important;
        margin-bottom: 0 !important;
    }

    .header .nav,
    nav.nav,
    #nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 70% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding-top: 5rem !important;
        gap: 0 !important;
        transition: right 0.3s ease-in-out !important;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3) !important;
        z-index: 999 !important;
    }

    .header .nav.active,
    nav.nav.active,
    #nav.active {
        right: 0 !important;
    }

    .header .nav-link,
    .nav .nav-link,
    #nav .nav-link {
        width: 100% !important;
        padding: 1.5rem 2rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        text-align: left !important;
        display: block !important;
    }

    .header .nav-link:hover,
    .nav .nav-link:hover,
    #nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .section {
        padding: 3rem 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .section-title {
        font-size: 2rem;
        padding: 0 10px !important;
    }

    .card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .card-content {
        padding: 1.5rem !important;
    }
    
    .card-image {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .card-image img {
        width: 100% !important;
        max-width: 100% !important;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .modal {
        padding: 0 !important;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
    }

    .modal-header {
        padding: 1.5rem 1rem 1rem !important;
    }

    .modal-body {
        padding: 1rem !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    .modal-footer {
        padding: 1rem !important;
        position: sticky;
        bottom: 0;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .modal-title {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        padding-right: 40px;
    }

    .modal-section-title {
        font-size: 1rem !important;
    }

    .modal-section {
        margin-bottom: 1.5rem !important;
    }

    .modal-close {
        top: 0.75rem !important;
        right: 0.75rem !important;
        width: 36px !important;
        height: 36px !important;
        z-index: 10 !important;
    }

    .modal-list,
    .modal-salary,
    .modal-salary-note,
    .modal-note {
        font-size: 0.9rem !important;
    }

    .modal-company {
        font-size: 0.85rem !important;
    }

    .nextcareer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .nextcareer-banner-container {
        margin-bottom: 1rem;
    }

    .nextcareer-description {
        padding: 1.5rem;
    }

    .nextcareer-title {
        font-size: 1.5rem;
    }

    .nextcareer-features {
        gap: 0.75rem;
    }

    .nextcareer-feature {
        font-size: 0.9rem;
    }

    .feature-card {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .nextcareer-cta {
        flex-direction: column;
    }

    .nextcareer-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .nextcareer-cta button {
        margin-left: 0 !important;
    }

    .entry-form {
        padding: 1.5rem;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .form-group {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-date {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-input-small {
        width: 80px;
    }

    .form-checkbox-group {
        flex-direction: column;
        gap: 1rem;
    }
    
}