/*
 * 採用情報ページのスタイル
 */

/* ページ固有のヘッダー調整 */
.page-recruit .site-header,
.page-template-page-recruit .site-header,
.single-recruit .site-header,
body.recruit .site-header {
    background: none !important;
    background-color: var(--background-color) !important;
}

/* ヒーローセクション */
.recruit-hero {
    position: relative;
    background-color: #f0f8ff;
    padding: 60px 0 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 50% 50% / 0 0 25% 25%;
    box-shadow: 0 8px 16px rgba(100, 149, 237, 0.1);
    width: 100%;
    margin: 0 auto;
}

.recruit-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e6f2ff;
    z-index: 0;
    opacity: 0.5;
}

.recruit-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding: 0 30px;
    z-index: 1;
}

.recruit-hero-left,
.recruit-hero-right {
    flex: 0 0 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.recruit-hero-img {
    max-width: 100%;
    height: auto;
}

.recruit-hero-left .recruit-hero-img {
    animation: floatLeft 5s ease-in-out infinite;
}

.recruit-hero-right .recruit-hero-img {
    animation: floatRight 6s ease-in-out infinite;
}

@keyframes floatLeft {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(0deg); }
}

@keyframes floatRight {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
}

.recruit-hero-image {
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.recruit-title-container {
    flex: 0 0 45%;
    background-color: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    border: 3px dashed #6495ed;
    transition: transform 0.3s ease;
    text-align: center;
    max-width: 600px;
}

.recruit-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #4169e1;
    line-height: 1.4;
    margin: 0 0 15px;
    text-align: center;
    text-shadow: 
        1px 1px 0 #fff, 
        -1px -1px 0 #fff, 
        1px -1px 0 #fff, 
        -1px 1px 0 #fff, 
        3px 3px 0 #d6e4ff;
    font-family: 'uzura', sans-serif;
    position: relative;
    z-index: 1;
    letter-spacing: 0.03em;
}

.recruit-subtitle {
    font-size: 1.4rem;
    font-weight: normal;
    color: #4682b4;
    text-align: center;
    margin: 0;
    font-family: 'uzura', sans-serif;
}

/* メインコンテンツ */
.recruit-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* セクションの共通スタイル */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    color: #4169e1;
    font-family: 'uzura', sans-serif;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    z-index: 1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #6495ed, rgba(100, 149, 237, 0.3));
    border-radius: 3px;
}

/* 園長先生メッセージ */
.director-message-section {
    margin-bottom: 80px;
}

.director-message-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.director-photo {
    flex: 0 0 250px;
    text-align: center;
}

.director-img {
    height: 200px;
    margin-bottom: 15px;
}

.director-name {
    font-family: 'uzura', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.director-name span {
    font-weight: bold;
    color: #4169e1;
}

.director-message {
    flex: 1;
    min-width: 300px;
}

.message-bubble {
    position: relative;
    background-color: #f0f8ff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(100, 149, 237, 0.1);
    border-left: 5px solid #6495ed;
}

.message-bubble::before {
    content: '';
    position: absolute;
    top: 30px;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid #6495ed;
}

.message-bubble p {
    font-family: 'uzura', sans-serif;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

/* 募集要項 */
.job-requirements-section {
    margin-bottom: 80px;
}

.job-requirements-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.job-card {
    flex: 1 1 400px;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(100, 149, 237, 0.15);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(100, 149, 237, 0.25);
    border-color: #6495ed;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6495ed, #4169e1, #6495ed);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.job-header {
    background: linear-gradient(135deg, #4169e1, #6495ed);
    padding: 20px;
    text-align: center;
    position: relative;
}

.job-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 10px solid #6495ed;
}

.job-title {
    font-size: 1.8rem;
    color: #fff;
    margin: 0 0 8px 0;
    font-family: 'uzura', sans-serif;
    letter-spacing: 0.03em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.employment-type {
    font-size: 1.1rem;
    color: #e6f2ff;
    margin: 0;
    font-family: 'uzura', sans-serif;
    font-weight: normal;
}

.job-content {
    padding: 30px 25px;
    text-align: center;
}

.details-button {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-family: 'uzura', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.details-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.details-button:hover::before {
    left: 100%;
}

.details-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252, #ff7979);
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.details-button:hover .button-icon {
    transform: translateX(5px);
}

/* 職種詳細モーダル */
.job-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.job-details-modal.show {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(50px);
    transition: transform 0.3s ease;
}

.job-details-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #4169e1, #6495ed);
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
    text-align: center;
}

.modal-title {
    font-size: 2rem;
    color: #fff;
    margin: 0;
    font-family: 'uzura', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.job-details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9ff;
    border-radius: 12px;
    border-left: 4px solid #6495ed;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background-color: #f0f4ff;
    transform: translateX(5px);
}

.detail-label {
    font-weight: bold;
    color: #4169e1;
    font-family: 'uzura', sans-serif;
    font-size: 1.1rem;
    min-width: 120px;
    flex-shrink: 0;
}

.detail-value {
    font-family: 'uzura', sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    flex: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .job-card {
        flex: 1 1 100%;
    }
    
    .job-title {
        font-size: 1.6rem;
    }
    
    .employment-type {
        font-size: 1rem;
    }
    
    .details-button {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 25px;
    }
    
    .modal-title {
        font-size: 1.7rem;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-label {
        min-width: auto;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .job-header {
        padding: 15px;
    }
    
    .job-title {
        font-size: 1.4rem;
    }
    
    .employment-type {
        font-size: 0.9rem;
    }
    
    .job-content {
        padding: 20px 15px;
    }
    
    .details-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .detail-item {
        padding: 12px;
    }
}

/* 応募フォーム */
.application-section {
    margin-bottom: 80px;
}

.application-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.application-intro {
    text-align: center;
    font-family: 'uzura', sans-serif;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: #4169e1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.7rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
}

.phone-icon {
    background-image: url("<?php echo get_theme_file_uri('assets/images/icons/phone-icon.svg'); ?>");
}

.email-icon {
    background-image: url("<?php echo get_theme_file_uri('assets/images/icons/email-icon.svg'); ?>");
}

.contact-info {
    font-family: 'uzura', sans-serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.phone-number, 
.email-address {
    display: inline-block;
    font-weight: bold;
    color: #4169e1;
    text-decoration: none;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.phone-number:hover, 
.email-address:hover {
    color: #5a7fdb;
    text-decoration: underline;
}

.application-form {
    background-color: #f5f9ff;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.form-title {
    font-size: 1.8rem;
    color: #4169e1;
    font-family: 'uzura', sans-serif;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* フォームのスタイル（Contact Form 7用） */
.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-family: 'uzura', sans-serif;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.required {
    color: #e74c3c;
    margin-left: 5px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="tel"]:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #4169e1;
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.15);
}

.submit-button {
    background-color: #4169e1;
    color: #fff;
    font-family: 'uzura', sans-serif;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    margin: 0 auto;
    margin-top: 30px;
    min-width: 200px;
    text-align: center;
}

.submit-button:hover {
    background-color: #365ac7;
    transform: translateY(-2px);
}

/* Contact Form 7 カスタマイズ */
.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-form label {
    display: block;
    font-family: 'uzura', sans-serif;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-tel,
.wpcf7-form .wpcf7-select,
.wpcf7-form .wpcf7-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'uzura', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7-form .wpcf7-submit {
    background-color: #4169e1;
    color: #fff;
    font-family: 'uzura', sans-serif;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    margin: 0 auto;
    margin-top: 30px;
    min-width: 200px;
    text-align: center;
}

.wpcf7-form .wpcf7-submit:hover {
    background-color: #365ac7;
    transform: translateY(-2px);
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
    .recruit-title {
        font-size: 2.8rem;
    }
    
    .recruit-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .recruit-hero-left,
    .recruit-hero-right {
        flex: 0 0 20%;
    }
    
    .recruit-hero-image {
        max-width: 90%;
    }
    
    .director-message-container {
        padding: 25px;
    }
    
    .director-img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .recruit-title {
        font-size: 2.5rem;
    }
    
    .recruit-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .recruit-title-container {
        padding: 20px;
    }
    
    .recruit-hero-content {
        flex-direction: column;
        gap: 20px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .recruit-hero-left,
    .recruit-hero-right {
        flex: 0 0 auto;
        order: 2;
        width: 100%;
        max-width: 150px;
    }
    
    .recruit-hero-left {
        display: none;
    }
    
    .recruit-hero-right {
        display: none;
    }
    
    .director-message-container {
        flex-direction: column;
        align-items: center;
    }
    
    .director-img {
        height: 160px;
    }
    
    .message-bubble::before {
        display: none;
    }
    
    .job-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .recruit-hero-left,
    .recruit-hero-right {
        display: none;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .director-message-container,
    .application-container {
        padding: 20px;
    }
    
    .form-title {
        font-size: 1.6rem;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-item {
        flex: 1 1 100%;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-info {
        font-size: 1rem;
    }
}

/* プライバシーポリシー同意チェックボックス */
.privacy-policy {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 25px;
}

.privacy-policy label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.privacy-policy input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.privacy-policy a {
    color: #4169e1;
    text-decoration: none;
    margin: 0 5px;
    font-weight: bold;
}

.privacy-policy a:hover {
    text-decoration: underline;
}

/* 送信完了ページ */
.form-completed {
    text-align: center;
    padding: 30px;
    background-color: #f9fcff;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(100, 149, 237, 0.1);
}

.completed-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #4caf50;
    color: white;
    font-size: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.form-completed h3 {
    font-family: 'uzura', sans-serif;
    font-size: 2rem;
    color: #4169e1;
    margin-bottom: 20px;
}

.form-completed p {
    font-family: 'uzura', sans-serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
}

.back-to-home {
    margin-top: 30px;
}

.back-to-home .home-button {
    display: inline-block;
    background-color: #4169e1;
    color: #fff;
    font-family: 'uzura', sans-serif;
    font-size: 1.1rem;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-to-home .home-button:hover {
    background-color: #365ac7;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* メールアドレス確認用スタイル */
#your-email-confirm.mismatch {
    border-color: #e74c3c;
    background-color: #fff8f8;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.email-mismatch-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.email-mismatch-message.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* メール送信エラー通知 */
.mail-error-notice {
    background-color: #fff8f8;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.mail-error-notice p {
    color: #333;
    margin-bottom: 10px;
}

.mail-error-notice a {
    color: #e74c3c;
    font-weight: bold;
    text-decoration: underline;
}

.mail-error-notice a:hover {
    color: #c0392b;
}

/* Contact Form 7の埋め込みコンテナ */
.contact-form-7-container {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px dashed #d6e4ff;
}

.contact-form-7-container .wpcf7 {
    max-width: 100%;
}

/* プライバシーポリシーモーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideIn 0.4s;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    text-align: left;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}

.modal-close:hover {
    color: #4169e1;
}

.modal h3 {
    font-family: 'uzura', sans-serif;
    font-size: 1.8rem;
    color: #4169e1;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e6f0ff;
    writing-mode: horizontal-tb !important;
    width: 100%;
    display: block;
}

.modal-body {
    margin-top: 20px;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    display: block;
    width: 100%;
    text-align: left;
}

.modal h4 {
    font-family: 'uzura', sans-serif;
    font-size: 1.3rem;
    color: #4169e1;
    margin-top: 25px;
    margin-bottom: 10px;
    writing-mode: horizontal-tb !important;
    width: 100%;
    display: block;
    text-align: left;
}

.modal p {
    font-family: 'uzura', sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 15px;
    writing-mode: horizontal-tb !important;
    width: 100%;
    display: block;
    text-align: left;
    word-break: normal;
    word-wrap: break-word;
}

.modal ul {
    padding-left: 25px;
    margin-bottom: 15px;
    writing-mode: horizontal-tb !important;
    width: 100%;
    display: block;
    text-align: left;
}

.modal ul li {
    font-family: 'uzura', sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 8px;
    writing-mode: horizontal-tb !important;
    width: 100%;
    display: block;
    text-align: left;
    word-break: normal;
    word-wrap: break-word;
}

.modal-footer {
    margin-top: 30px;
    text-align: center;
    display: block;
    width: 100%;
}

.agree-button {
    background-color: #4169e1;
    color: #fff;
    font-family: 'uzura', sans-serif;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.agree-button:hover {
    background-color: #365ac7;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* モバイル対応調整 */
@media (max-width: 576px) {
    .modal-content {
        padding: 20px;
        margin: 10% auto;
        width: 95%;
        max-width: 95%;
    }
    
    .modal h3 {
        font-size: 1.5rem;
    }
    
    .modal h4 {
        font-size: 1.2rem;
    }
    
    .modal p, .modal ul li {
        font-size: 0.95rem;
    }
    
    .modal-body {
        width: 100%;
        overflow-x: hidden;
    }
}

/* フォーム項目の追加スタイル */
.name-row {
    display: flex;
    gap: 15px;
}

.form-column {
    flex: 1;
}

/* 生年月日セレクトボックスのスタイル */
.date-select {
    width: auto !important;
    max-width: 100%;
    padding-right: 25px; /* 矢印アイコンのスペース確保 */
}

.date-select-year {
    width: 100px !important;
}

.date-select-month, 
.date-select-day {
    width: 70px !important;
}

.date-select-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.date-select-container select {
    flex: 0 0 auto;
}

.date-select-container span {
    margin: 0 5px 0 2px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-right: 15px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 5px;
    width: 18px;
    height: 18px;
}

.checkbox-label span {
    font-size: 1rem;
}

.tel-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tel-input-container input {
    flex: 1;
    max-width: 80px;
    text-align: center;
}

.tel-input-container span {
    color: #999;
    font-weight: bold;
}

/* レスポンシブ調整 */
@media (max-width: 576px) {
    .name-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 5px;
    }
    
    .checkbox-label {
        margin-right: 0;
    }
    
    .date-select-container select {
        flex: 1;
    }
    
    .tel-input-container input {
        max-width: 70px;
    }
}

/* 問い合わせフォーム */
.contact-section {
    margin-bottom: 80px;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-intro {
    font-family: 'uzura', sans-serif;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333;
}

.contact-form {
    background-color: #f9fbff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(100, 149, 237, 0.1);
    border-left: 5px solid #6495ed;
    margin-top: 30px;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inquiry-form .form-row {
    margin-bottom: 0;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .contact-container {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .contact-intro {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 15px;
    }
}

/* スタッフ紹介セクション */
.staff-introduction-section {
    margin-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.staff-content-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.staff-image-container {
    flex: 0 0 55%;
}

.staff-group-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.staff-group-image:hover {
    transform: scale(1.02);
}

.staff-invitation {
    flex: 1;
    position: relative;
    background-color: #f0f8ff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(100, 149, 237, 0.1);
    border-left: 5px solid #6495ed;
}

.staff-invitation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid #6495ed;
    transform: translateY(-50%);
}

.invitation-text {
    font-family: 'uzura', sans-serif;
    font-size: 1.8rem;
    line-height: 1.6;
    color: #4169e1;
    margin: 0;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .staff-introduction-section {
        padding: 15px;
        margin-bottom: 60px;
    }
    
    .staff-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .staff-image-container {
        flex: 0 0 100%;
    }
    
    .staff-group-image {
        border-radius: 10px;
    }
    
    .staff-invitation {
        padding: 15px;
        width: 100%;
    }
    
    .staff-invitation::before {
        top: -15px;
        left: 30px;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: none;
        border-bottom: 15px solid #6495ed;
        transform: none;
    }
    
    .invitation-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .staff-invitation {
        padding: 10px;
    }
    
    .invitation-text {
        font-size: 1.3rem;
    }
} 

/* 新しい募集フォーム（page-recruit.php） */
.recruit-page .recruit-content .container {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.recruit-page .recruit-form {
    margin-top: 18px;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 253, 253, 0.95) 100%);
    border: 1px solid rgba(112, 186, 186, 0.22);
    box-shadow: 0 14px 34px rgba(58, 103, 118, 0.12);
}

.recruit-page .recruit-title {
    color: #3f67cf;
    text-shadow: 0 2px 8px rgba(63, 103, 207, 0.16);
}

.recruit-page .recruit-subtitle {
    font-size: 1.02rem;
    color: #4b6168;
}

.recruit-page .contact-nursery-links {
    margin-top: 14px;
}

.recruit-page .contact-nursery-links .recruit-info__card {
    padding: 18px;
    border: 1px solid #d8e3ec;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(39, 67, 92, 0.08);
}

.recruit-page .contact-nursery-links__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.recruit-page .contact-nursery-links__item {
    margin: 0;
}

.recruit-page .contact-nursery-links__anchor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #d6e1ea;
    border-left: 4px solid #3f67cf;
    background: #fbfdff;
    color: #244256;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.recruit-page .contact-nursery-links__anchor:hover {
    transform: translateY(-1px);
    border-color: #b8cce0;
    background-color: #f6faff;
    box-shadow: 0 10px 20px rgba(39, 67, 92, 0.1);
}

.recruit-page .contact-nursery-links__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.recruit-page .contact-nursery-links__label {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1f3d53;
    line-height: 1.4;
}

.recruit-page .contact-nursery-links__description {
    font-size: 0.85rem;
    color: #587083;
    line-height: 1.5;
}

.recruit-page .contact-nursery-links__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #cfdaea;
    background: #ffffff;
    color: #3f67cf;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.recruit-page .contact-nursery-links__cta::after {
    content: "\2192";
    font-size: 0.85rem;
    line-height: 1;
}

.recruit-page .recruit-subtitle--after-nursery-links {
    margin-top: 10px;
    margin-bottom: 0;
}

.recruit-page .recruit-info {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.recruit-page .recruit-info__title {
    margin: 0;
    font-size: 1.2rem;
    color: #35595f;
}

.recruit-page .recruit-info__title--form {
    margin-top: 18px;
}

.recruit-page .recruit-info__card {
    padding: 14px 14px 12px;
    border: 1px solid rgba(109, 182, 182, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
}

.recruit-page .recruit-info__card h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    color: #2f6666;
}

.recruit-page .recruit-info__card p {
    margin: 0;
    line-height: 1.7;
}

.recruit-page .recruit-info__card ul {
    margin: 0;
    padding-left: 1.2em;
}

.recruit-page .recruit-info__card li {
    margin-bottom: 2px;
}

.recruit-page .recruit-form .form-group {
    margin-bottom: 14px;
}

.recruit-page .recruit-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.96rem;
    color: #34545c;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.recruit-page .recruit-form input[type="text"],
.recruit-page .recruit-form input[type="email"],
.recruit-page .recruit-form input[type="tel"],
.recruit-page .recruit-form input[type="date"],
.recruit-page .recruit-form select,
.recruit-page .recruit-form textarea {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #bfdede;
    border-radius: 12px;
    background: #fff;
    font-size: 0.98rem;
    color: #24343a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.recruit-page .recruit-form textarea {
    min-height: 130px;
    resize: vertical;
}

.recruit-page .recruit-form input:focus,
.recruit-page .recruit-form select:focus,
.recruit-page .recruit-form textarea:focus {
    outline: none;
    border-color: #75b8b8;
    box-shadow: 0 0 0 4px rgba(117, 184, 184, 0.22);
    transform: translateY(-1px);
}

.recruit-page .recruit-form .form-submit {
    margin-top: 18px;
}

.recruit-page .recruit-form .submit-button {
    min-width: 220px;
    border-radius: 999px;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #6d8de6 0%, #4f74d9 100%);
    box-shadow: 0 8px 18px rgba(79, 116, 217, 0.28);
}

.recruit-page .recruit-form .submit-button:hover {
    background: linear-gradient(135deg, #5d7edb 0%, #4368cb 100%);
    box-shadow: 0 12px 22px rgba(79, 116, 217, 0.32);
}

@media (max-width: 767px) {
    .recruit-page .contact-nursery-links__list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .recruit-page .contact-nursery-links__anchor {
        padding: 12px;
    }

    .recruit-page .contact-nursery-links__description {
        font-size: 0.8rem;
    }

    .recruit-page .contact-nursery-links__cta {
        padding: 5px 8px;
        font-size: 0.76rem;
    }

    .recruit-page .recruit-form {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .recruit-page .recruit-subtitle {
        font-size: 0.94rem;
    }

    .recruit-page .recruit-form label {
        font-size: 0.9rem;
    }

    .recruit-page .recruit-form input[type="text"],
    .recruit-page .recruit-form input[type="email"],
    .recruit-page .recruit-form input[type="tel"],
    .recruit-page .recruit-form input[type="date"],
    .recruit-page .recruit-form select,
    .recruit-page .recruit-form textarea {
        min-height: 42px;
        font-size: 0.94rem;
        border-radius: 10px;
    }

    .recruit-page .recruit-form .submit-button {
        min-width: 190px;
        font-size: 0.95rem;
    }
}

/* 募集要項・お問合せ: 可愛い書体を使わない */
.recruit-page .recruit-content,
.recruit-page .recruit-content .container,
.recruit-page .recruit-title,
.recruit-page .recruit-subtitle,
.recruit-page .recruit-info__title,
.recruit-page .recruit-info__card,
.recruit-page .recruit-form,
.recruit-page .recruit-form label,
.recruit-page .recruit-form input,
.recruit-page .recruit-form select,
.recruit-page .recruit-form textarea,
.recruit-page .recruit-form .submit-button {
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif !important;
}