/* style.css - モバイルファースト＆ポップデザイン */
:root {
    --primary: #ff7bac; /* パステルピンク */
    --primary-dark: #e85a91;
    --secondary: #ffe6f0;
    --accent: #ff4081;
    --text-main: #4a4a4a;
    --bg-color: #fffafc;
    --white: #ffffff;
}

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

body {
    font-family: 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(255, 123, 172, 0.3);
}

.site-header .logo {
    font-size: 1.2rem;
    font-weight: bold;
}

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.site-header nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}

/* ログアウトボタン風デザイン（共通navリンク用） */[cite: 87]
.btn-logout {
    background: white;
    color: #ff7bac;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, #ffe6f0 0%, var(--bg-color) 100%);
}

.hero h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.hero h1 span {
    color: var(--accent);
    font-size: 1.8rem;
}

/* Map Section */
.map-section {
    padding: 20px;
    text-align: center;
}

.map-section h2 {
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.map-desc {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.japan-map-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.region {
    background: var(--white);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 2px solid var(--secondary);
}

.region h3 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 10px;
    border-bottom: 2px dashed var(--secondary);
    display: inline-block;
    padding-bottom: 3px;
}

.btn-pref {
    display: inline-block;
    background: #f4f4f4;
    color: var(--text-main);
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin: 5px;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-pref.highlight {
    background: var(--primary);
    color: var(--white);
}

.btn-pref.online {
    background: #ffd54f;
    color: #333;
}

.btn-pref:active {
    transform: scale(0.95);
}

/* Timeline & Jobs */
.timeline-section, .search-page {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-section h2, .page-title {
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 6px 12px rgba(255, 123, 172, 0.15);
    border: 1px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary), #ffeb3b);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.job-subheader {
    margin-bottom: 10px;
}

.badge {
    background: var(--accent);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.location {
    font-size: 0.85rem;
    color: #666;
    font-weight: bold;
}

.catchphrase {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 10px;
    line-height: 1.4;
}

.shop-name {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.salary {
    font-size: 0.95rem;
    background: #fff9c4;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 15px;
}

.salary span {
    color: #d32f2f;
    font-size: 1.1rem;
}

.job-desc {
    font-size: 0.85rem;
    color: #555;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.job-desc.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-toggle-desc {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: -10px;
    margin-bottom: 15px;
    display: block;
}

.job-action {
    display: flex;
    gap: 10px;
}

.job-action a {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.job-action a:active {
    transform: translateY(2px);
}

.btn-detail { background: var(--primary); color: var(--white); }
.btn-tel { background: #ff9800; color: var(--white); }
.btn-line { background: #00c300; color: var(--white); }

/* キープボタン */
.btn-keep {
    background: #fff;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-keep.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Filter Box */
.filter-box {
    background: var(--white);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    border: 2px solid var(--primary);
}

.filter-box h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

select {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    border: 1px solid #ccc;
    font-size: 1rem;
    outline: none;
    background: #fafafa;
    appearance: none;
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 15px;
    color: #777;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

.btn-back {
    display: inline-block;
    background: #ddd;
    color: #333;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    margin-top: 40px;
}

footer .disclaimer {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 10px;
}
/* ---------------------------------
   ページネーション (次へ / 前へ)
--------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-bottom: 20px;
}

.btn-page {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(255, 123, 172, 0.2);
}

.btn-page:active {
    transform: scale(0.95);
}

.btn-page.disabled {
    background: #e0e0e0;
    color: #999;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.page-info {
    font-weight: bold;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

/* =========================================
     求人画像のギャラリースタイル
   ========================================= */
.job-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.job-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.job-image:hover {
    transform: scale(1.03);
}

/* =========================================
     画像拡大モーダル用スタイル
   ========================================= */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

@keyframes zoomIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 10000;
}