/* ============================================
   Newsページとフォームの統一スタイル
   ============================================ */

/* ==================
   Newsページスタイル
   ================== */

/* フィルターセクション */
.news-filter {
    margin-bottom: 40px !important;
    padding: 25px 30px !important;
    background: #EBF5FC !important;
    border: 1px solid #d1e7f5 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.news-filter .f-wrap-AC {
    gap: 25px !important;
}

.news-filter .filter-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155 !important;
    font-size: 14px;
}

.news-filter select.formm {
    width: 220px;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-filter select.formm:hover {
    border-color: #94a3b8;
}

.news-filter select.formm:focus {
    outline: none;
    border-color: #3B7E9E;
    box-shadow: 0 0 0 3px rgba(59, 126, 158, 0.1);
    background: #ffffff;
}

.news-filter .txtBnrAr {
    padding: 10px 20px;
    background: rgba(255, 107, 53, 0.9);
    color: #ffffff !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.news-filter .txtBnrAr:hover {
    background: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* ニュース一覧アイテム */
.news-item {
    background: #ffffff !important;
    margin-bottom: 30px !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.news-item .news-header {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px !important;
}

.news-item .date {
    color: #ff6b35 !important;
    font-weight: 700 !important;
    font-size: 15px;
}

.news-item .post-type-badge {
    background: linear-gradient(135deg, #3B7E9E 0%, #2c6680 100%) !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.news-item .tag-badge {
    background: #f0f4f8 !important;
    color: #334155 !important;
    padding: 4px 12px !important;
    border-radius: 16px !important;
    font-size: 11px !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.news-item .tag-badge:hover {
    background: #e2e8f0 !important;
}

.news-item h3 {
    margin-bottom: 16px !important;
    font-size: 24px !important;
    line-height: 1.5;
}

.news-item h3 a {
    color: #1e293b !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item h3 a:hover {
    color: #0066cc !important;
}

.news-item .news-thumbnail {
    margin-bottom: 16px !important;
    border-radius: 8px !important;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-item .news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-item .excerpt {
    color: #64748b !important;
    line-height: 1.8 !important;
    margin-bottom: 16px !important;
    font-size: 15px;
}

.news-item .read-more {
    color: #3B7E9E !important;
    font-weight: 600 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.news-item .read-more:after {
    content: "→";
    transition: transform 0.3s ease;
}

.news-item .read-more:hover {
    color: #2c6680 !important;
}

.news-item .read-more:hover:after {
    transform: translateX(4px);
}

/* ページネーション（無限スクロール時は非表示） */
.pagination {
    margin-top: 48px !important;
    text-align: center;
    display: none !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: #f8fafc;
    border-color: #3B7E9E;
    color: #3B7E9E;
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #3B7E9E 0%, #2c6680 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 126, 158, 0.4);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-weight: 700;
}

/* 記事がない場合 */
.comingsoon2 {
    text-align: center;
    padding: 60px 20px !important;
    color: #94a3b8 !important;
    font-size: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

/* ==================
   採用フォームスタイル
   ================== */

/* 職種カード */
.job-item {
    background: #ffffff !important;
    padding: 35px !important;
    margin-bottom: 35px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.job-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.job-item h3 {
    color: #3B7E9E !important;
    margin-bottom: 20px !important;
    font-size: 26px !important;
    font-weight: 700;
}

/* フォームスタイル - モダンカードデザイン */
.contact {
    max-width: 800px;
    margin: 0 auto;
}

.contact table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 16px;
}

.contact table tbody {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact table tr {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact table th {
    display: flex;
    align-items: center;
    background: #EBF5FC;
    color: #334155;
    padding: 20px 24px;
    font-weight: 600;
    text-align: left;
    width: 180px;
    flex-shrink: 0;
    border-right: 1px solid #d1e7f5;
}

.contact table td {
    display: flex;
    align-items: center;
    flex: 1;
    background: #ffffff;
    padding: 16px 24px;
}

.contact table td input[type="text"],
.contact table td input[type="email"],
.contact table td input[type="tel"],
.contact table td select,
.contact table td textarea {
    width: 100%;
}

.contact input[type="text"],
.contact input[type="email"],
.contact input[type="tel"],
.contact select,
.contact textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact input[type="text"]:hover,
.contact input[type="email"]:hover,
.contact input[type="tel"]:hover,
.contact select:hover,
.contact textarea:hover {
    border-color: #cbd5e1;
}

.contact input[type="text"]:focus,
.contact input[type="email"]:focus,
.contact input[type="tel"]:focus,
.contact select:focus,
.contact textarea:focus {
    outline: none;
    border-color: #3B7E9E;
    box-shadow: 0 0 0 3px rgba(59, 126, 158, 0.1);
}

.contact select {
    cursor: pointer;
    background-color: #ffffff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233B7E9E' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.contact input[type="file"] {
    padding: 10px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact input[type="file"]:hover {
    border-color: #3B7E9E;
    background: #f1f5f9;
}

/* 送信ボタン */
.contact button[type="submit"],
.contact .txtBnrAr {
    padding: 16px 48px !important;
    background: linear-gradient(135deg, #3B7E9E 0%, #2c6680 100%) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 126, 158, 0.4);
    text-decoration: none;
    display: inline-block;
}

.contact button[type="submit"]:hover,
.contact .txtBnrAr:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 126, 158, 0.5) !important;
}

.contact button[type="submit"]:active {
    transform: translateY(-1px);
}

/* 必須マーク */
.fcRedOrange {
    color: #ff6b35;
    font-weight: 700;
    margin-left: 4px;
}

/* メッセージ表示 */
#careerMessage,
#contactMessage {
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

#careerMessage p,
#contactMessage p {
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-filter {
        padding: 20px !important;
    }
    
    .news-filter .f-wrap-AC {
        flex-direction: column;
        gap: 20px !important;
    }
    
    .news-filter select.formm {
        width: 100%;
    }
    
    .news-item {
        padding: 24px !important;
    }
    
    .news-item h3 {
        font-size: 20px !important;
    }
    
    .job-item {
        padding: 25px !important;
    }
    
    #news-list {
        gap: 32px;
        padding: 0 16px;
    }
    
    .contact table,
    .contact table tbody {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .contact table tr {
        flex-direction: column;
    }
    
    .contact table th {
        width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 16px 20px;
    }
    
    .contact table td {
        border-radius: 0 0 12px 12px;
        padding: 16px 20px;
    }
    
    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }
}

/* ニュースグリッドレイアウト - ゆとりのあるデザイン */
#news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ウィンドウ幅に応じて列数を変更 */
@media (min-width: 768px) {
    #news-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
        padding: 0 32px;
    }
}

@media (min-width: 1200px) {
    #news-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 56px;
        padding: 0 40px;
    }
}

/* グリッドレイアウト時のアイテム調整 */
#news-list .news-item {
    margin-bottom: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#news-list .news-item .excerpt {
    flex-grow: 1;
}

/* 無限スクロール用ローディング */
#news-loading {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

#news-loading.is-loading {
    display: block;
}

#news-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #3B7E9E;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#news-end-message {
    text-align: center;
    padding: 30px 20px;
    color: #94a3b8;
    font-size: 14px;
    display: none;
}

#news-end-message.is-visible {
    display: block;
}

@media (max-width: 480px) {
    .news-item h3 {
        font-size: 18px !important;
    }
    
    .job-item h3 {
        font-size: 22px !important;
    }
    
    .contact button[type="submit"],
    .contact .txtBnrAr {
        width: 100%;
        padding: 14px 32px !important;
    }
}
