/* Component Styles */

/* Recruit Button Variants */
.recruit-btn, .recruit-btn.large {
    background: #a4c639;
    color: white;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: var(--shadow);
    border: none;
    padding: 10px 25px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    flex-shrink: 0; /* ボタンが縮まないように */
}

.recruit-btn:hover, .recruit-btn.large:hover {
    background: #8ba230;
    color: white; /* ホバー時の文字色も白を維持 */
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.recruit-btn.large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.header-flex .recruit-btn {
    margin-left: 20px;
}

/* PC Navigation */
.pc-nav {
    display: none; /* SPでは非表示 */
}
.pc-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.pc-nav ul li {
    margin-left: 5px; /* メニュー間の少しの隙間 */
}

.pc-nav ul li a {
    display: block;
    padding: 10px 13px; /* パディングを見直し */
    text-decoration: none;
    color: #000000; /* ヘッダーでは黒文字 */
    font-weight: 500;
    font-size: 0.9rem; /* フォントサイズ調整 */
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap; /* 折り返しを防ぐ */
}

.pc-nav ul li a:hover {
    color: var(--accent-primary-green);
}

.pc-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background-color: var(--accent-primary-green);
    transition: transform 0.3s ease;
}

.pc-nav ul li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hamburger Menu Button */
.menu-btn {
    display: block !important; /* SPでは表示 - 強制表示 */
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1010; /* z-indexを上げる */
    margin-left: auto; /* 右寄せ */
    background: transparent !important; /* 背景を透明に */
    border: none !important; /* ボーダーを削除 */
    border-radius: 3px;
    padding: 4px;
    outline: none;
    flex-shrink: 0 !important; /* 縮まないように */
    min-width: 30px !important; /* 最小幅を確保 */
    visibility: visible !important; /* 強制表示 */
    opacity: 1 !important; /* 強制表示 */
}

.menu-btn span {
    display: block !important;
    width: 100%;
    height: 3px;
    background-color: #000000 !important; /* ヘッダーでは黒色に */
    border-radius: 1px;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.menu-btn span:nth-child(1) {
    top: 0;
}
.menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
.menu-btn span:nth-child(3) {
    bottom: 0;
}

.menu-btn.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.menu-btn.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* SP Navigation */
.sp-nav {
    position: fixed;
    top: 0;
    /* right: -100%; */ /* 初期状態は画面外から変更 */
    right: 0; /* translateXで隠すのでrightは0に */
    width: 80%;
    max-width: 320px;
    height: calc(100% - 60px); /* 固定アイコンバーの高さ分を除く */
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 1005; /* z-indexを調整 */
    padding: 20px;
    padding-bottom: 80px; /* 底部に余白を追加 */
    overflow-y: auto; /* メニューが多い場合にスクロールできるように */
    display: flex;
    flex-direction: column;
    opacity: 0; /* 初期は非表示 */
    transform: translateX(100%); /* 初期は画面右外 */
    visibility: hidden; /* 初期は非表示・アクセシビリティ */
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0s linear 0.4s; /* visibilityは表示切替時に遅延 */
}

.sp-nav.active {
    /* right: 0; から変更 */
    opacity: 1; /* 表示 */
    transform: translateX(0); /* 画面内に移動 */
    visibility: visible; /* 表示 */
    transition-delay: 0s; /* 表示時は遅延なし */
}

.sp-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000; /* z-indexを調整 */
    opacity: 0; /* 初期は非表示 */
    /* visibility: hidden; から変更 */
    display: none; /* 初期は非表示 */
    transition: opacity 0.4s ease-in-out;
}

.sp-nav-overlay.active {
    opacity: 1; /* 表示 */
    /* visibility: visible; から変更 */
    display: block; /* 表示 */
}

.sp-nav-header {
    display: flex;
    /* justify-content: space-between; */ /* ボタンをabsoluteにするためコメントアウトまたは削除 */
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-secondary);
    margin-bottom: 20px;
    position: relative; /* 閉じるボタンの絶対位置指定の基準とする */
}

.sp-nav .logo-area {
    /* base.cssで定義済み、必要なら調整 */
    display: flex;
    align-items: flex-start; /* 上揃え */
    gap: 8px; /* 間隔を適切に確保 */
    width: 100%; /* 幅を確保 */
    padding-right: 10px; /* 右側にパディングを追加 */
}
.sp-nav .logo img {
    width: 40px; /* SP用に少し小さく */
    flex-shrink: 0; /* 画像が縮まないように */
}
.sp-nav .logo-title {
    font-size: 0.75rem; /* より小さく */
    white-space: normal; /* 折り返しを許可 */
    line-height: 1.2; /* 読みやすい行間 */
    word-break: break-word; /* 単語境界で折り返し */
    flex: 1; /* 残りスペースを使用 */
    overflow-wrap: break-word; /* 長い単語も折り返し */
    color: #000000; /* 黒色に指定 */
}

.sp-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.sp-nav-list li {
    border-bottom: 1px solid var(--bg-secondary);
}
.sp-nav-list li:last-child {
    border-bottom: none;
}

.sp-nav-list li a {
    display: block;
    padding: 15px 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.sp-nav-list li a:hover {
    background-color: var(--bg-primary);
    color: var(--accent-medium-blue);
}

.sp-nav-btns {
    margin-top: auto; /* ボタンを下部に配置 */
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sp-nav-btn {
    display: block;
    padding: 12px 20px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.sp-nav-btn.contact {
    background-color: var(--accent-olive);
    color: var(--text-on-accent);
}
.sp-nav-btn.contact:hover {
    background-color: #8A8D4F; /* 少し濃いオリーブ */
}

.sp-nav-btn.recruit {
    background-color: var(--accent-red);
    color: var(--text-on-accent);
}
.sp-nav-btn.recruit:hover {
    background-color: var(--button-hover-bg);
}

/* Form Control Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--bg-secondary);
    border-radius: 6px;
    background-color: #fff;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-medium-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 124, 165, 0.1);
}

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

.form-btn {
    text-align: center;
    margin-top: 30px;
}

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

.checkbox-group label,
.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--accent-medium-blue);
    width: 18px; /* チェックボックスとラジオボタンのサイズ調整 */
    height: 18px;
    cursor: pointer;
}


/* Card Style (base for nurse/rehab cards) */
.card-style {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px 30px;
    margin-bottom: 30px;
    border: 1px solid var(--bg-secondary);
}

.card-style table {
    width: 100%;
    border-collapse: collapse;
}

.card-style th, .card-style td {
    padding: 15px 10px;
    border-bottom: 1px dashed var(--bg-secondary);
    text-align: left;
    vertical-align: top;
}

.card-style th {
    font-weight: 600;
    color: var(--text-primary);
    width: 25%; /* Adjust as needed */
    font-size: 0.95rem;
}

.card-style td {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-style tr:last-child th, .card-style tr:last-child td {
    border-bottom: none;
}

/* お知らせセクション */

.news-list {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e9ecef;
    gap: 20px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    min-width: 90px;
    flex-shrink: 0;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
}

.news-category:nth-of-type(1) {
    background-color: #007bff; /* 採用 */
}

.news-item:nth-child(1) .news-category,
.news-item:nth-child(4) .news-category {
    background-color: #28a745; /* 採用 */
}

.news-item:nth-child(2) .news-category {
    background-color: #007bff; /* サービス */
}

.news-item:nth-child(3) .news-category {
    background-color: #6f42c1; /* お知らせ */
}

.news-title {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    flex: 1;
    transition: color 0.3s ease;
}

.news-title:hover {
    color: #007bff;
    text-decoration: underline;
}

.news-more {
    text-align: center;
}

/* 固定アイコンバー */
/* 右側固定採用ボタン（付箋形式） */
.sticky-recruit-buttons {
    position: fixed;
    right: -10px; /* 半分隠れるように配置 */
    bottom: 80px; /* 画面下側に配置 */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.4s ease, transform 0.4s ease; /* フッター重複時のスムーズな非表示アニメーション */
}

.sticky-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 15px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border-radius: 25px 0 0 25px; /* 左側のみ角丸 */
    box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 140px;
    position: relative;
    cursor: pointer;
}

.sticky-btn::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.sticky-btn i {
    font-size: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

.sticky-btn span {
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* 各ボタンの背景色とアクセント - ブランド統一感重視パターン */
.sticky-btn.phone {
    background: #2d5a3d; /* フォレストグリーン */
}

.sticky-btn.phone::before {
    border-left-color: #2d5a3d;
}

.sticky-btn.web {
    background: #a4c639; /* ライムグリーン */
}

.sticky-btn.web::before {
    border-left-color: #a4c639;
}

.sticky-btn.line {
    background: #5a8a6b; /* セージグリーン */
}

.sticky-btn.line::before {
    border-left-color: #5a8a6b;
}



/* ホバーエフェクト */
.sticky-btn:hover {
    right: 0; /* 完全に表示される */
    transform: scale(1.05);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.3);
}

.sticky-btn.phone:hover {
    background: #1f3e2a; /* より濃いフォレストグリーン */
}

.sticky-btn.phone:hover::before {
    border-left-color: #1f3e2a;
}

.sticky-btn.web:hover {
    background: #8ba230; /* より濃いライムグリーン */
}

.sticky-btn.web:hover::before {
    border-left-color: #8ba230;
}

.sticky-btn.line:hover {
    background: #4a7158; /* より濃いセージグリーン */
}

.sticky-btn.line:hover::before {
    border-left-color: #4a7158;
}



/* アコーディオンスタイル */
.accordion-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.accordion-icon {
    font-size: 16px;
    color: var(--accent-medium-blue);
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.accordion-content.active {
    max-height: 1000px; /* より十分な高さを設定 */
    padding: 20px 24px;
}

.accordion-content ul,
.accordion-content ol {
    margin: 0;
    padding-left: 1.5rem;
}

.accordion-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.accordion-content .flow-list {
    list-style: none;
    padding-left: 0;
}

.accordion-content .flow-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--accent-medium-blue);
}

.accordion-content .step {
    background: var(--accent-medium-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
}

.accordion-content .flow-list h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.accordion-content .flow-list p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .accordion-header {
        padding: 16px 20px;
    }
    
    .accordion-header h3 {
        font-size: 1.1rem;
    }
    
    .accordion-content {
        padding: 0 20px;
    }
    
    .accordion-content.active {
        padding: 16px 20px;
        max-height: 1200px; /* スマホでも十分な高さを確保 */
    }
    
    .accordion-content .flow-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .accordion-content .step {
        margin-bottom: 8px;
        margin-right: 0;
    }
}

/* プライバシーポリシーページのスタイル */
.hero-simple {
    background: var(--bg-secondary);
    text-align: center;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.important-documents {
    margin-bottom: 50px;
}

.important-documents h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-medium-blue);
    padding-bottom: 10px;
}

.document-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.document-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.document-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.document-info i {
    font-size: 2.5rem;
    color: #dc3545;
}

.document-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.document-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pdf-btn {
    background: var(--accent-medium-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.pdf-btn:hover {
    background: var(--button-hover-bg);
    color: white;
}

.privacy-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-medium-blue);
    padding-bottom: 10px;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid var(--accent-medium-blue);
}

.policy-section p {
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.policy-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.policy-section ul li {
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.contact-info {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.contact-info p {
    margin: 5px 0;
    color: var(--text-primary);
}

.policy-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.policy-footer p {
    color: var(--text-secondary);
    margin: 5px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .document-card {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .document-info {
        flex-direction: column;
        text-align: center;
    }
    
    .pdf-btn {
        align-self: stretch;
        justify-content: center;
    }
}

/* Media Queries for components */
@media (min-width: 992px) { /* 1100px から 992px に変更 */
    .pc-nav {
        display: block !important; /* PCでは表示 */
    }
    
    /* ハンバーガーメニューを確実に非表示 */
    .menu-btn { 
        display: none !important; /* PCではハンバーガーメニューを非表示 */
        visibility: hidden !important; /* 確実に非表示 */
        opacity: 0 !important; /* 確実に非表示 */
        pointer-events: none !important; /* クリックも無効化 */
    }
    
    .sp-nav { /* セレクタをより具体的に */
        display: none !important; /* PCでは完全非表示 */
        visibility: hidden !important; /* 確実に非表示 */
        opacity: 0 !important; /* 確実に非表示 */
        pointer-events: none !important; /* クリックも無効化 */
    }
    
    .sp-nav-overlay { /* セレクタをより具体的に */
        display: none !important; /* PCではオーバーレイも非表示 */
        visibility: hidden !important; /* 確実に非表示 */
        opacity: 0 !important; /* 確実に非表示 */
        pointer-events: none !important; /* クリックも無効化 */
    }
    
    .sp-nav-close { /* セレクタをより具体的に */
        display: none !important; /* PC では閉じるボタンも非表示 */
        visibility: hidden !important; /* 確実に非表示 */
        opacity: 0 !important; /* 確実に非表示 */
        pointer-events: none !important; /* クリックも無効化 */
    }
    
    /* PCではロゴタイトルを1行表示に戻す */
    .logo-title {
        white-space: nowrap !important; /* PC画面では1行表示 */
        word-break: normal !important; /* 単語の折り返しを無効 */
        overflow-wrap: normal !important; /* 長い単語の折り返しを無効 */
    }
    
    /* PCではロゴエリアの幅制限を解除 */
    .logo-area {
        max-width: none !important; /* PC画面では幅制限なし */
    }
    
    /* ヘッダーレイアウトをPC用に調整 */
    .header-flex {
        justify-content: space-between !important;
        align-items: center !important;
        padding-left: 30px !important; /* PC用パディング */
        padding-right: 30px !important; /* PC用パディング */
    }
    
    .nav-area {
        order: unset !important; /* PC画面では順序をリセット */
        flex-shrink: unset !important; /* PC画面では縮小設定をリセット */
        min-width: unset !important; /* PC画面では最小幅制限を解除 */
    }
}

@media (max-width: 700px) {
    .header-flex .recruit-btn {
        display: none; /* 小画面ではヘッダーの採用ボタンを非表示 */
    }
}

@media (max-width: 600px) {
    .checkbox-group,
    .radio-group {
        /* 必要ならスタイル調整 */
    }
    .checkbox-group label,
    .radio-group label {
        font-size: 0.9rem;
    }

    /* スマートフォンでの付箋ボタン調整 */
    .sticky-recruit-buttons {
        right: -15px; /* スマホでは少し多めに隠す */
        bottom: 120px; /* より高い位置に配置してアコーディオンコンテンツと重ならないように */
    }
    
    .sticky-btn {
        min-width: 120px;
        padding: 10px 15px 10px 12px;
        font-size: 12px;
    }

    .sticky-btn i {
        font-size: 16px;
        margin-right: 6px;
    }

    .sticky-btn span {
        font-size: 11px;
    }



    /* スマートフォンでのお知らせ調整 */
    .news-list {
        padding: 20px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px 0;
    }

    .news-date {
        min-width: auto;
        font-size: 13px;
    }

    .news-category {
        min-width: auto;
        font-size: 11px;
        padding: 3px 10px;
    }

    .news-title {
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .menu-btn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1020 !important;
        background: transparent !important;
        border: none !important;
        flex-shrink: 0 !important;
        min-width: 30px !important;
        margin-left: 10px !important; /* 適切なマージンを確保 */
    }
    
    .menu-btn span {
        display: block !important;
        background-color: #333333 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .pc-nav {
        display: none !important;
    }
    
    /* ロゴエリアがハンバーガーメニューと適切に配置されるように */
    .header-flex {
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .logo-area {
        flex-shrink: 0 !important;
        max-width: calc(100% - 50px) !important; /* ハンバーガーメニュー分のスペースを確保 */
    }
    
    .nav-area {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* iPhone SE およびそれより小さい画面端末専用スタイル (375px以下) */
@media (max-width: 375px) {
    /* ハンバーガーメニューボタン調整 */
    .menu-btn {
        width: 28px; /* 少し大きく */
        height: 20px;
        padding: 3px;
        margin-left: 10px; /* マージンを確保 */
        background: transparent !important; /* 背景を透明に */
        border: none !important; /* ボーダーを削除 */
        display: block !important; /* 強制表示 */
        visibility: visible !important; /* 強制表示 */
        opacity: 1 !important; /* 強制表示 */
        position: relative !important; /* 位置を確保 */
        z-index: 1020 !important; /* z-indexを上げる */
        flex-shrink: 0 !important; /* 縮まないように */
        min-width: 28px !important; /* 最小幅を確保 */
    }
    
    .menu-btn span {
        height: 2.5px; /* バーを細く */
        background-color: #222222 !important; /* より濃い色 */
        display: block !important; /* 強制表示 */
    }
    
    /* SPナビ内ロゴ調整 */
    .sp-nav .logo img {
        width: 32px; /* 小さい画面用 */
    }
    
    .sp-nav .logo-title {
        font-size: 0.75rem; /* 小さい画面用 */
        line-height: 1.1; /* 行間を詰める */
        white-space: normal !important; /* 折り返しを確実に許可 */
        word-break: break-word !important; /* 単語境界で折り返し */
        overflow-wrap: break-word !important; /* 長い単語も折り返し */
        flex: 1 !important; /* 残りスペースを使用 */
    }
    
    .sp-nav .logo-area {
        display: flex !important;
        align-items: flex-start !important;
        gap: 6px !important; /* 小画面では間隔を狭く */
        width: 100% !important;
        padding-right: 8px !important; /* 右側パディング */
    }
    
    /* リクルートボタン調整 */
    .recruit-btn, .recruit-btn.large {
        padding: 8px 20px; /* パディングを小さく */
        font-size: 0.85rem; /* フォントサイズを小さく */
    }
    
    .recruit-btn.large {
        padding: 12px 30px; /* ラージボタンのパディングを小さく */
        font-size: 1rem;
    }
    
    /* フォーム要素調整 */
    .form-group {
        margin-bottom: 15px; /* マージンを小さく */
    }
    
    .form-group label {
        font-size: 0.9rem; /* ラベルフォントサイズを小さく */
        margin-bottom: 6px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        padding: 10px 12px; /* パディングを小さく */
        font-size: 0.95rem; /* フォントサイズを小さく */
    }
    
    .form-group textarea {
        min-height: 100px; /* テキストエリアの高さを小さく */
    }
    
    /* チェックボックス・ラジオボタン調整 */
    .checkbox-group,
    .radio-group {
        gap: 8px; /* 間隔を小さく */
    }
    
    .checkbox-group label,
    .radio-group label {
        font-size: 0.85rem; /* ラベルフォントサイズを小さく */
    }
    
    .checkbox-group input[type="checkbox"],
    .radio-group input[type="radio"] {
        width: 16px; /* チェックボックス・ラジオボタンサイズを小さく */
        height: 16px;
        margin-right: 8px;
    }
    
    /* カードスタイル調整 */
    .card-style {
        padding: 20px; /* パディングを小さく */
        margin-bottom: 20px;
    }
    
    .card-style th, .card-style td {
        padding: 12px 8px; /* パディングを小さく */
        font-size: 0.9rem; /* フォントサイズを小さく */
    }
    
    .card-style th {
        font-size: 0.9rem;
    }
    
    .card-style td {
        font-size: 0.85rem;
    }
}

/* iPhone XR、iPhone 12 Pro サイズ (376px-414px) */
@media (min-width: 376px) and (max-width: 414px) {
    .sp-nav .logo img {
        width: 38px; /* 中間サイズ */
    }
    
    .sp-nav .logo-title {
        font-size: 0.8rem; /* 標準サイズ */
        line-height: 1.2;
        white-space: normal !important; /* 折り返しを確実に許可 */
        word-break: break-word !important; /* 単語境界で折り返し */
        overflow-wrap: break-word !important; /* 長い単語も折り返し */
    }
    
    .sp-nav .logo-area {
        display: flex !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .menu-btn {
        width: 30px; /* 標準サイズ */
        height: 22px;
        min-width: 30px !important;
        margin-left: 10px !important;
    }
}

/* iPhone 14 Pro Max など大画面 (415px以上) */
@media (min-width: 415px) and (max-width: 767px) {
    .sp-nav .logo img {
        width: 40px; /* 大画面用 */
    }
    
    .sp-nav .logo-title {
        font-size: 0.85rem; /* 大画面用に少し大きく */
        line-height: 1.3;
        white-space: normal !important; /* 折り返しを確実に許可 */
        word-break: break-word !important; /* 単語境界で折り返し */
        overflow-wrap: break-word !important; /* 長い単語も折り返し */
    }
    
    .sp-nav .logo-area {
        display: flex !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .menu-btn {
        width: 32px; /* 大画面用 */
        height: 24px;
        min-width: 32px !important;
        margin-left: 10px !important;
    }
}

/* お知らせ一覧ページ */

.news-list-page {
    background-color: var(--bg-primary);
}

.news-list-content {
    max-width: 800px;
    margin: 0 auto;
}

.news-year-section {
    margin-bottom: 60px;
}

.news-year-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    border-bottom: 3px solid var(--accent-warm-gold);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.news-item-detail {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--accent-warm-gold);
}

.news-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.news-item-detail .news-date {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    background-color: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: 6px;
}

.news-item-detail .news-category {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.news-item-detail .news-category.recruit {
    background-color: #007bff;
}

.news-item-detail .news-category.service {
    background-color: #28a745;
}

.news-item-detail .news-category.notice {
    background-color: #6f42c1;
}

.news-item-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-item-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.news-item-content p {
    margin-bottom: 15px;
}

.news-item-content p:last-child {
    margin-bottom: 0;
}

.news-item-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-year-title {
        font-size: 1.5rem;
    }
    
    .news-item-detail {
        padding: 20px;
    }
    
    .news-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-item-title {
        font-size: 1.1rem;
    }
    
    .news-item-detail .news-date {
        font-size: 0.9rem;
    }
    
    .news-item-detail .news-category {
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .news-list-content {
        padding: 0 10px;
    }
    
    .news-year-section {
        margin-bottom: 40px;
    }
    
    .news-item-detail {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .news-year-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .news-item-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }
}