/* ========================================
   新着情報ページCSS
   ======================================== */

/* privacy.cssと同じ構造を継承 */

/* ページ全体のoverflow制御 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* モバイルでmainの白背景を透明に（パララクス背景表示のため） */
@media (max-width: 767px) {
    main {
        background: transparent;
    }
}

/* ================================================
   固定背景画像
   ================================================ */

.fixed-bg-layer.business-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('../img/mix_img.jpg');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #002147;
  overflow: hidden;
  max-width: 100vw;
}

/* デスクトップのみfixed attachment + contain */
@media (min-width: 1024px) {
  .fixed-bg-layer.business-bg {
    background-attachment: fixed;
    background-size: contain;
  }
}

/* モバイル用背景画像 */
@media (max-width: 767px) {
  .fixed-bg-layer.business-bg {
    background-image: url('../img/mix_img_sp.jpg');
  }
}

.overlay-white {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(243, 255, 246, 0.45);
  background-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

/* モバイル用オーバーレイ強化 */
@media (max-width: 767px) {
  .overlay-white {
    background: rgba(243, 255, 246, 0.65);
  }
}

.bg-grid-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(to right, rgba(0, 168, 255, 0.05) 1px, transparent 1px), 
                    linear-gradient(to bottom, rgba(0, 168, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 2;
}

/* ================================================
   ページタイトルセクション
   ================================================ */

.page-title-section {
  position: relative;
  background: linear-gradient(135deg, #002147 0%, #003d7a 100%);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .page-title-section {
    height: 320px;
  }
}

.page-title-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), 
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.page-title-container {
  position: relative;
  z-index: 2;
  font-family: 'Hannari', serif;
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .page-title-container {
    font-size: 2.5rem;
    letter-spacing: 0.2em;
  }
}

@media (min-width: 1024px) {
  .page-title-container {
    font-size: 3rem;
  }
}


/* ================================================
   コンテンツセクション
   ================================================ */

.description-section {
    padding: 0 0 2rem 0;
    position: relative;
}

.description-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .description-container {
        padding: 0 1.5rem;
    }
}

/*
 * .intro-description のスタイルは common.css で定義済み
 */

/* ================================================
   カテゴリーフィルターセクション
   ================================================ */

.filter-section {
    padding: 2rem 0;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.filter-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .filter-container {
        padding: 0 1.5rem;
    }
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-tab {
    padding: 0.75rem 2rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-tab:hover {
    background: #e3f2fd;
    color: #0068b7;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, #002147 0%, #0068b7 100%);
    color: #ffffff;
    border-color: #002147;
    box-shadow: 0 4px 15px rgba(0, 33, 71, 0.2);
}

/* フィルタータブのモバイルスタイルは下部のレスポンシブ調整セクションで定義 */

/* ================================================
   ニュース一覧セクション
   ================================================ */

.news-list-section {
    padding: 3rem 0 6rem 0;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .news-list-section {
        padding: 4rem 0 8rem 0;
    }
}

.news-list-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .news-list-container {
        padding: 0 1.5rem;
    }
}

/* ニュースアイテム */
.news-item {
    background: #ffffff;
    border-left: 4px solid #e5e7eb;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.news-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 33, 71, 0.12);
    border-left-color: #0068b7;
}

.news-item:last-child {
    margin-bottom: 0;
}

/* ニュースヘッダー */
.news-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.news-date {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #666666;
    letter-spacing: 0.05em;
}

.news-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.category-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0068b7;
}

.category-achievement {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.category-recruit {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #ef6c00;
}

/* ニュース本文 */
.news-item-body {
    padding-left: 0.5rem;
}

.news-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #002147;
    margin-bottom: 1rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.news-item:hover .news-title {
    color: #0068b7;
}

.news-excerpt {
    font-size: 1rem;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 1.5rem;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #002147 0%, #0068b7 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 33, 71, 0.15);
}

.news-link:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 33, 71, 0.25);
}

.news-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(5px);
}

/* フィルター動作 */
.news-item.hidden {
    display: none;
}

/* レスポンシブ調整 */
@media (max-width: 767px) {
    /* フィルタータブ - 4つ横並びで収まるように調整 */
    .filter-tabs {
        gap: 0.5rem;
    }

    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .news-item {
        padding: 1.5rem;
    }

    /* 日付とカテゴリーを1行で表示 */
    .news-item-header {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .news-date {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .news-category {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
        white-space: nowrap;
    }

    /* ニュース本文 - 左パディング削除 */
    .news-item-body {
        padding-left: 0;
    }

    .news-title,
    h3.news-title {
        font-size: 1.2rem;
        padding: 0;
        padding-left: 0;
        margin-left: 0;
    }

    .news-excerpt {
        font-size: 0.95rem;
    }

    /* ボタンを中央寄せ */
    .news-link {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
        display: flex;
        margin: 0 auto;
    }
}

/* 空の状態 */
.news-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #999999;
}

.news-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.news-empty p {
    font-size: 1.1rem;
}

/* ================================================
   CTAセクション
   ================================================ */

.cta-section {
    padding: 6rem 0;
    background-color: #002147;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-grid-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.2;
    background-image: linear-gradient(to right, rgba(0, 168, 255, 0.05) 1px, transparent 1px), 
                      linear-gradient(to bottom, rgba(0, 168, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 1.875rem;
    font-family: 'Hannari', serif;
    font-weight: bold;
    color: white;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

.cta-description {
    color: #e6f0ff;
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.cta-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .cta-button-container {
        flex-direction: row;
    }
}

.cta-button {
    flex: 1 1 0%;
    padding: 1.5rem 2.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
}

.cta-button-primary {
    background-color: #0056b3;
    color: white;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-primary:hover {
    background-color: white;
    color: #0056b3;
}

.cta-button-primary .cta-button-icon-chevron {
    opacity: 0;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-primary:hover .cta-button-icon-chevron {
    opacity: 1;
    transform: translateX(0.25rem);
}

.cta-button-secondary {
    background-color: #003366;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    font-size: 1.25rem;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-secondary:hover {
    background-color: #00a8ff;
}

.cta-button-icon {
    font-size: 1.25rem;
}

.cta-button-icon-sm {
    font-size: 0.875rem;
}

.cta-button-icon-chevron {
    font-size: 0.75rem;
}

/* ================================================
   共通ユーティリティ
   ================================================ */

.pc-only {
    display: none;
}

@media (min-width: 768px) {
    .pc-only {
        display: inline;
    }
}

.sp-only {
    display: inline;
}

@media (min-width: 768px) {
    .sp-only {
        display: none;
    }
}

/* ================================================
   ニュースモーダル
   ================================================ */

.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.news-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 33, 71, 0.85);
    backdrop-filter: blur(4px);
}

.news-modal-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.news-modal[aria-hidden="false"] .news-modal-container {
    transform: translateY(0) scale(1);
}

/* モーダルヘッダー */
.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #002147 0%, #003d7a 100%);
    color: #ffffff;
}

.news-modal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-modal-date {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.news-modal-category {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.news-modal-category.category-notice {
    background: rgba(227, 242, 253, 0.9);
    color: #0068b7;
}

.news-modal-category.category-achievement {
    background: rgba(232, 245, 233, 0.9);
    color: #2e7d32;
}

.news-modal-category.category-recruit {
    background: rgba(255, 243, 224, 0.9);
    color: #ef6c00;
}

.news-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* モーダル本文 */
.news-modal-body {
    padding: 2rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.news-modal-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #002147;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.news-modal-content {
    font-size: 1rem;
    line-height: 2;
    color: #333333;
}

.news-modal-content br {
    display: block;
    margin-bottom: 0.25rem;
    content: "";
}

/* モーダルフッター */
.news-modal-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
}

.news-modal-close-btn {
    padding: 0.75rem 2.5rem;
    background: #002147;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-modal-close-btn:hover {
    background: #0068b7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 104, 183, 0.3);
}

/* ボタンスタイル（news-link をボタンとして使用する場合） */
button.news-link {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* モーダル レスポンシブ */
@media (max-width: 767px) {
    .news-modal {
        padding: 0.5rem;
    }

    .news-modal-container {
        max-height: 90vh;
        border-radius: 12px;
    }

    .news-modal-header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .news-modal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news-modal-close {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
    }

    .news-modal-body {
        padding: 1.5rem 1rem;
    }

    .news-modal-title {
        font-size: 1.25rem;
    }

    .news-modal-content {
        font-size: 0.95rem;
        line-height: 1.9;
    }

    .news-modal-footer {
        padding: 1rem;
    }

    .news-modal-close-btn {
        width: 100%;
        padding: 0.875rem;
    }
}

/* お知らせがない場合のスタイル */
.no-news {
    text-align: center;
    padding: 3rem 1rem;
    color: #666666;
    font-size: 1.1rem;
}
