/*
Theme Name: カナエルケア
Theme URI: https://front-career.co.jp/kanael-care
Description: 医療従事者専門の転職支援サービス「カナエルケア」公式カスタムテーマ（完全レスポンシブ対応版）。
Version: 1.3.0
Author: Front Career Inc.
License: GNU General Public License v2 or later
*/

/* ==========================================================================
   1. DESIGN SYSTEM & BASE STYLES
   ========================================================================== */
:root {
    --primary: #F48FB1;       /* 優しいピンク */
    --secondary: #FFE082;     /* やさしいイエロー */
    --cta: #FF6F91;           /* コーラルピンク */
    --accent: #324A5F;        /* 深いネイビー */
    --bg-light: #FFF8FA;      /* ほんのりピンク背景 */
    --bg-white: #FFFFFF;
    --bg-gray: #F5F5F5;
    --text-main: #333333;
    --text-sub: #666666;
    --shadow-sm: 0 4px 10px rgba(244, 143, 177, 0.1);
    --shadow-md: 0 8px 20px rgba(244, 143, 177, 0.15);
    --shadow-lg: 0 12px 30px rgba(255, 111, 145, 0.2);
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 40px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクション共通（スマホは余白を狭めて scannability 向上） */
section {
    padding: 80px 0;
}
@media (max-width: 768px) {
    section { padding: 50px 0; }
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
    position: relative;
}
@media (max-width: 768px) {
    .section-title { font-size: 1.6rem; }
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 12px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-sub);
    font-size: 0.95rem;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .section-subtitle { margin-bottom: 25px; font-size: 0.85rem; }
}

/* 共通ボタン */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}
@media (max-width: 480px) {
    .btn { padding: 12px 24px; font-size: 0.95rem; width: 100%; }
}

.btn-cta {
    background: linear-gradient(135deg, var(--cta), #FF4B72);
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 111, 145, 0.35);
}

.btn-secondary {
    background-color: var(--bg-light);
    border: 2px solid var(--primary);
    color: var(--cta);
}
.btn-secondary:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* バッジ */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    margin-right: 5px;
    white-space: nowrap;
}
.badge-pink { background-color: #FCE4EC; color: var(--cta); }
.badge-blue { background-color: #E3F2FD; color: #1E88E5; }
.badge-green { background-color: #E8F5E9; color: #43A047; }

/* フェードインアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   2. HEADER & NAVIGATION (レスポンシブ・ハンバーガー連動)
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}
.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 120;
}
.logo span {
    color: var(--cta);
}
.logo-heart {
    color: var(--cta);
    display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-link {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
}
.nav-link:hover {
    color: var(--cta);
}

/* スマホ用ハンバーガーボタン */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 120;
    padding: 10px;
}
.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

/* 900px以下でドロワーメニューに変形 */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding: 40px;
    }
    .nav-menu.open {
        right: 0;
    }
    .nav-menu .btn {
        width: 100%;
    }
    .menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ==========================================================================
   3. HERO SECTION (1カラム ➔ 2カラム切り替え)
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, #FFF3E0 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.hero-wrap {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}
@media (max-width: 900px) {
    .hero { padding: 40px 0; }
    .hero-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    padding: 6px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    color: var(--cta);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}
.hero-title span {
    color: var(--cta);
}
@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-sub);
    margin-bottom: 30px;
}
@media (max-width: 768px) {
    .hero-desc { font-size: 0.95rem; margin-bottom: 20px; }
}

.hero-img-area {
    display: flex;
    justify-content: center;
    position: relative;
}

/* 写真を囲むグラデーションサークル（レスポンシブ可変） */
.hero-circle {
    width: 340px;
    height: 340px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}
@media (max-width: 900px) {
    .hero-circle { width: 280px; height: 280px; margin-top: 10px; }
}
@media (max-width: 480px) {
    .hero-circle { width: 240px; height: 240px; }
}

.hero-circle-inner {
    width: 96%;
    height: 90%;
    background-color: #fff;
    border-radius: 50%;
}

/* 実績カウンター */
.stats-grid {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}
@media (max-width: 900px) {
    .stats-grid { justify-content: center; }
}
@media (max-width: 480px) {
    .stats-grid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 10px; }
}

.stat-card {
    background-color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    text-align: center;
    flex: 1;
}
@media (max-width: 480px) {
    .stat-card { padding: 10px; }
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cta);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-sub);
    white-space: nowrap;
}

/* ==========================================================================
   4. SEARCH SYSTEM (検索窓)
   ========================================================================== */
.search-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}
.search-box {
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary);
}
@media (max-width: 768px) {
    .search-section { margin-top: -20px; }
    .search-box { padding: 20px; }
}

.search-title-small {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr auto;
    gap: 15px;
    align-items: end;
}
@media (max-width: 900px) {
    .search-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.search-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-sub);
}
.search-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    outline: none;
    background-color: var(--bg-light);
    height: 48px;
    -webkit-appearance: none;
    appearance: none;
}

.checkbox-filters {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}
@media (max-width: 480px) {
    .checkbox-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}
.checkbox-label input {
    accent-color: var(--cta);
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   5. JOBS SECTION (求人・サイド付き追従ビュー)
   ========================================================================== */
.jobs-container {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 30px;
}
@media (max-width: 900px) {
    .jobs-container {
        grid-template-columns: 1fr;
    }
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(244, 143, 177, 0.15);
    transition: var(--transition);
}
@media (max-width: 480px) {
    .job-card { padding: 16px; }
}

.job-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.job-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
    background-color: #fafafa;
    padding: 12px;
    border-radius: var(--radius-sm);
}
@media (max-width: 480px) {
    .job-info-grid { grid-template-columns: 1fr; padding: 10px; margin: 10px 0; }
}

.job-info-item {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.salary-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cta);
}
@media (max-width: 480px) {
    .job-card-footer .btn { width: 100%; }
}

/* 右側：PC追従詳細・スマホ全画面モーダル兼用 */
.job-detail-sticky {
    position: sticky;
    top: 90px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--secondary);
}

@media (max-width: 900px) {
    .job-detail-sticky {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 150;
        border-radius: 0;
        border: none;
        padding: 20px;
        display: none;
    }
    .job-detail-sticky.open {
        display: block;
    }
}

.detail-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}
@media (max-width: 900px) {
    .detail-close-btn { display: block; }
}

.detail-header {
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 20px;
    margin-bottom: 20px;
    padding-right: 40px; /* バツボタンの重なり回避 */
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.detail-table th, .detail-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}
.detail-table th {
    width: 30%;
    color: var(--accent);
    font-weight: 700;
    background-color: var(--bg-light);
}
@media (max-width: 480px) {
    .detail-table th, .detail-table td { display: block; width: 100%; text-align: left; }
    .detail-table th { padding: 6px 12px; }
}

/* ==========================================================================
   6. SUCCESS STORIES & BLOG GRID (レスポンシブグリッド)
   ========================================================================== */
.stories-section {
    background-color: var(--bg-light);
}
.stories-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .stories-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .stories-grid, .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.story-card, .blog-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.story-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.story-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* ブログカード追加調整 */
.blog-card {
    padding: 0;
    overflow: hidden;
}
.blog-thumb {
    height: 160px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}
.blog-body {
    padding: 20px;
}

/* ==========================================================================
   7. FAQ (アコーディオン)
   ========================================================================== */
.faq-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}
.faq-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.faq-q {
    padding: 18px 24px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 480px) {
    .faq-q { padding: 14px 16px; font-size: 0.9rem; }
}

/* ==========================================================================
   8. CONTACT FORM (Contact Form 7 専用最適化)
   ========================================================================== */
.contact-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #FFF3E0 100%);
}
.form-container {
    max-width: 650px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
    .form-container { padding: 20px 16px; border-radius: var(--radius-sm); }
}

/* CF7の共通入力欄スタイル */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin-top: 6px;
}
.wpcf7-text,
.wpcf7-select,
.wpcf7-textarea {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    outline: none;
    background-color: var(--bg-light);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}
.wpcf7-select {
    height: 50px;
}
.wpcf7-text:focus,
.wpcf7-select:focus,
.wpcf7-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(244, 143, 177, 0.2);
}

.form-container label {
    display: block;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.form-container label span {
    background-color: var(--cta);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
}

/* フォームのボタンを元のピンクぷっくりCTAに */
.wpcf7-submit {
    display: block;
    width: 100%;
    padding: 16px;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--cta), #FF4B72);
    color: #fff;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    margin-top: 10px;
}
.wpcf7-submit:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 35px rgba(255, 111, 145, 0.35);
}

/* CF7通知ブロック */
.wpcf7-response-output {
    border-radius: var(--radius-sm) !important;
    border: 2px solid var(--primary) !important;
    background-color: var(--bg-light) !important;
    padding: 12px !important;
    margin-top: 20px !important;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   9. FOOTER & FIXED BUTTON (LINE追従)
   ========================================================================== */
footer {
    background-color: var(--accent);
    color: #fff;
    padding: 40px 0 100px;
    text-align: center;
    font-size: 0.9rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* 右下LINE固定追従ボタン */
.line-fixed {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #06C755;
    color: #fff;
    padding: 14px 28px;
    border-radius: 40px;
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
    z-index: 99;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bounce 3s infinite;
}
@media (max-width: 480px) {
    .line-fixed {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
        bottom: 16px;
        justify-content: center;
        padding: 12px;
    }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}