/* ０円婚活 - ユーザー向けCSS */
:root {
    --color-primary:    #c9637a;
    --color-primary-light: #e8879b;
    --color-primary-pale:  #fdeef2;
    --color-secondary:  #f2a7b8;
    --color-accent:     #a0522d;
    --color-text:       #2d2d2d;
    --color-text-muted: #888;
    --color-bg:         #faf8f9;
    --color-white:      #fff;
    --color-border:     #e8e0e3;
    --radius-sm:        6px;
    --radius:           12px;
    --radius-lg:        20px;
    --shadow-sm:        0 1px 4px rgba(0,0,0,.07);
    --shadow:           0 4px 16px rgba(0,0,0,.09);
    --shadow-lg:        0 8px 32px rgba(0,0,0,.12);
    --transition:       .2s ease;
}

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

body {
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.75;
    font-size: 15px;
}

/* ============ ナビゲーション（固定ヘッダー） ============ */
.app-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 72px;
    background: rgba(250,248,249,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(232,224,227,.5);
    z-index: 1000;
    overflow: hidden;
    transition: box-shadow .25s ease;
}
.app-nav.is-scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

.nav-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ロゴ */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    align-self: stretch;
}
.nav-logo-img {
    height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
}
.nav-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    gap: 1px;
}
.nav-logo-main {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: 26px;
    font-weight: 600;
    font-style: italic;
    color: #c9637a;
    letter-spacing: .12em;
    line-height: 1;
}
.nav-logo-main em {
    font-style: italic;
    color: #c4954a;
}
.nav-logo-sub {
    font-family: 'Noto Serif JP', serif;
    font-size: 10px;
    font-weight: 400;
    color: #999;
    letter-spacing: .18em;
    display: block;
}

/* PCナビリンク */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.nav-links li { display: flex; align-items: center; }
.nav-links a {
    font-size: 13px;
    color: #2d2d2d;
    text-decoration: none;
    font-weight: 400;
    padding: 6px 10px;
    border-radius: 4px;
    transition: color .2s ease;
    white-space: nowrap;
}
.nav-links a:hover { color: #c9637a; }
.nav-username {
    font-size: 13px;
    color: #888;
    padding: 6px 10px;
    white-space: nowrap;
}
.nav-logout {
    border: 1.5px solid #c9637a !important;
    border-radius: 50px !important;
    padding: 6px 16px !important;
    color: #c9637a !important;
    margin-left: 4px;
}
.nav-logout:hover {
    background: #c9637a !important;
    color: #fff !important;
}

/* ハンバーガーボタン */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2d2d2d;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ドロワーメニュー */
.drawer {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    padding: 0;
    z-index: 999;
    transform: translateY(-110%);
    transition: transform .3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.drawer.is-open { transform: translateY(0); }
.drawer ul { list-style: none; padding: 0; margin: 0; }
.drawer ul li { border-bottom: 1px solid #f0ecee; }
.drawer ul li a {
    display: block;
    padding: 16px 24px;
    font-size: 15px;
    color: #2d2d2d;
    text-decoration: none;
    font-weight: 400;
    transition: background .2s;
}
.drawer ul li a:hover { background: #fdf8f9; color: #c9637a; }
.drawer-cta {
    background: linear-gradient(135deg, #e8879b, #c9637a) !important;
    color: #fff !important;
    text-align: center;
    font-weight: 700 !important;
    border-radius: 0;
    margin: 16px 24px 8px;
    border-radius: 50px !important;
    display: block;
    padding: 14px 24px !important;
}
.drawer-cta:hover { opacity: .9; }

/* ドロワー背景オーバーレイ */
.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 998;
}
.drawer-overlay.is-open { display: block; }

/* ============ コンテナ ============ */
.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }
main.container { padding-top: 88px; padding-bottom: 64px; }

/* ============ ページタイトル ============ */
main.container > h2:first-child,
main.container > section > h2:first-child {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary-pale);
    position: relative;
}
main.container > h2:first-child::after,
main.container > section > h2:first-child::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--color-primary);
}

/* ============ フラッシュ・アラート ============ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: .92rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-success { background: #f0faf4; color: #1a6e3a; border: 1px solid #b6dfc8; }
.alert-danger  { background: #fdf3f4; color: #8b1a2a; border: 1px solid #f0bbc3; }
.alert-warning { background: #fffbf0; color: #7a5c00; border: 1px solid #f0dda0; }
.alert ul { margin: 0; padding-left: 18px; }

/* ============ フォーム ============ */
.form-section {
    max-width: 460px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.form-section h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 6px;
    font-size: 1.4rem;
    border: none !important;
}
.form-section h2::after { display: none !important; }
.form-section .lead {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 28px;
    font-size: .88rem;
    line-height: 1.6;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: .88rem;
    color: #555;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: .97rem;
    background: var(--color-white);
    font-family: inherit;
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(201,99,122,.12);
}
.required {
    color: var(--color-primary);
    font-size: .75rem;
    margin-left: 4px;
    font-weight: 400;
}

/* ============ ボタン ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 24px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    font-size: .95rem;
    font-family: inherit;
    text-decoration: none;
    font-weight: 700;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    letter-spacing: .02em;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(201,99,122,.3);
}
.btn-primary:hover { box-shadow: 0 4px 16px rgba(201,99,122,.4); }
.btn-secondary { background: #f0ecee; color: #666; }
.btn-danger    { background: #e05060; color: var(--color-white); }
.btn-block     { display: flex; width: 100%; margin-top: 10px; }
.btn-sm        { padding: 7px 16px; font-size: .83rem; }
.text-center   { text-align: center; margin-top: 18px; font-size: .9rem; }
.text-center a { color: var(--color-primary); text-decoration: none; }
.text-center a:hover { text-decoration: underline; }

/* ============ バッジ ============ */
.badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 12px;
    padding: 3px 10px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.badge-success { background: #2e9e5a; }

/* ============ テーブル ============ */
.table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .92rem; }
.table th,
.table td { padding: 11px 14px; border-bottom: 1px solid var(--color-border); text-align: left; }
.table th { background: var(--color-primary-pale); font-weight: 700; font-size: .85rem; color: var(--color-primary); }
.table tr:hover td { background: #fdf6f8; }

/* ============ ダッシュボード ============ */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
}
.card p { color: var(--color-text-muted); font-size: .9rem; margin-bottom: 16px; }

/* ============ 候補リスト ============ */
.candidate-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.candidate-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.candidate-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.candidate-photo { flex-shrink: 0; }
.candidate-photo img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--color-border);
    display: block;
}
.candidate-info { flex: 1; min-width: 0; }
.candidate-info h3 {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.candidate-info h3 small {
    font-size: .8rem;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-left: 6px;
}
.candidate-info p {
    font-size: .88rem;
    color: #666;
    margin-bottom: 3px;
}
.candidate-info p::before { margin-right: 4px; }
.staff-message {
    background: var(--color-primary-pale);
    border-left: 3px solid var(--color-primary-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: .85rem;
    color: #555;
    line-height: 1.6;
}
.candidate-action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* 写真ギャラリー */
.photo-gallery {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}
.gallery-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--color-border);
}

/* 動画 */
.candidate-video { margin: 12px 0; }
.video-label {
    font-size: .8rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.candidate-video video {
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius);
    display: block;
}

/* ============ フッター ============ */
.site-footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 28px 0;
    margin-top: 64px;
    text-align: center;
    font-size: .82rem;
    color: var(--color-text-muted);
}
.site-footer nav {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.site-footer nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.site-footer nav a:hover { color: var(--color-primary); }

/* ============ マッチング進捗（新デザイン） ============ */
.matching-list { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }

.mi-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

/* ヘッダー */
.mi-header {
    background: var(--color-primary-pale);
    padding: 10px 16px;
}
.mi-female {
    font-weight: 700;
    font-size: .97rem;
    color: var(--color-primary);
}

/* 現在ステータス大バナー */
.mi-status-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
}
.mi-status-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.mi-status-title { font-weight: 700; font-size: 1rem; margin-bottom: 3px; }
.mi-status-desc  { font-size: .86rem; color: #555; line-height: 1.6; }

/* 次にすること */
.mi-next-action {
    background: #fffbf0;
    border-bottom: 1px solid #f5e8c0;
    padding: 10px 16px;
    font-size: .86rem;
    color: #a06010;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mi-next-label {
    background: #e67e22;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* タイムライン */
.mi-timeline {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mi-tl-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    position: relative;
}
.mi-tl-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 30px;
    bottom: -7px;
    width: 2px;
    background: #e8e4e0;
}
.mi-tl-item.done:not(:last-child)::after { background: #b8e0c8; }

.mi-tl-dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #e8e4e0;
    color: #bbb;
    font-size: .72rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative; z-index: 1;
}
.mi-tl-item.done .mi-tl-dot {
    background: #27ae60;
    color: #fff;
}

.mi-tl-body { padding-top: 3px; }
.mi-tl-label {
    font-size: .88rem;
    color: #bbb;
}
.mi-tl-item.done .mi-tl-label { color: #333; font-weight: 500; }
.mi-tl-sub {
    display: block;
    font-size: .78rem;
    color: #4a6fa5;
    margin-top: 1px;
}

/* 旧クラス（非表示） */
.matching-grid, .matching-cell, .matching-item,
.progress-steps, .progress-step { display: none; }
.matching-label {
    display: block;
    font-size: .72rem;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

/* ============ お知らせボード ============ */
.welcome-text { color: var(--color-text-muted); margin-bottom: 20px; }

/* プロフィール充実度スコア */
.profile-score-wrap {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.profile-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.profile-score-title { font-weight: 700; font-size: .95rem; }
.profile-score-value { font-weight: 700; font-size: 1rem; }
.profile-score-bar-bg {
    background: #f0ecee;
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}
.profile-score-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width .5s ease;
}
.profile-score-msg { margin: 8px 0 0; font-size: .88rem; }
.notice-board {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.notice-board-title {
    background: var(--color-primary-pale);
    color: var(--color-primary);
    font-weight: 700;
    font-size: .9rem;
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
}
.notice-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
}
.notice-item:last-child { border-bottom: none; }
.notice-date {
    font-size: .78rem;
    color: var(--color-text-muted);
    margin-right: 10px;
}
.notice-title {
    font-weight: 700;
    font-size: .92rem;
    color: var(--color-text);
}
.notice-body {
    font-size: .85rem;
    color: #666;
    margin-top: 4px;
    line-height: 1.6;
}

/* ============ プロフィール編集 ============ */
.profile-form-wrap { max-width: 580px; }
.form-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.form-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-primary-pale);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }

/* ============ 審査待ちリスト ============ */
.pending-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.pending-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}
.pending-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.pending-name small { font-size: .8rem; color: var(--color-text-muted); font-weight: 400; margin-left: 8px; }
.pending-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .83rem; color: #666; margin-bottom: 8px; }
.pending-meta span { background: #f5f5f5; padding: 2px 8px; border-radius: 4px; }
.pending-profile { font-size: .85rem; color: #555; background: #faf8f9; padding: 8px 12px; border-radius: 6px; }
.pending-actions { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.empty-state { text-align: center; padding: 48px; color: var(--color-text-muted); }

/* ============ レスポンシブ ============ */
@media (max-width: 640px) {

    body { font-size: 14px; }

    /* ナビゲーション */
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-inner { padding: 0 16px; gap: 0; }
    .nav-logo-main { font-size: 22px; }
    .nav-logo-sub  { font-size: 9px; }
    .nav-logo-img  { height: 72px; }

    /* コンテナ */
    .container { padding: 0 14px; }
    main.container { padding-top: 88px; padding-bottom: 40px; }

    /* フォーム */
    .form-section { padding: 24px 16px; border-radius: var(--radius); }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .profile-form-wrap { max-width: 100%; }
    .form-card { padding: 18px 16px; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; justify-content: center; }

    /* ボタン */
    .btn { padding: 12px 18px; font-size: .92rem; }
    .btn-sm { padding: 8px 14px; font-size: .82rem; }

    /* 候補カード */
    .candidate-card {
        flex-wrap: wrap;
        padding: 16px;
        gap: 14px;
    }
    .candidate-photo { width: 100%; display: flex; justify-content: center; }
    .candidate-photo img { width: 90px; height: 90px; }
    .candidate-info { width: 100%; }
    .candidate-action { width: 100%; }
    .candidate-action .btn { width: 100%; justify-content: center; }
    .candidate-action .badge { display: block; text-align: center; padding: 8px; }

    /* ダッシュボード */
    .dashboard-cards { grid-template-columns: 1fr; gap: 14px; }
    .card { padding: 18px 16px; }

    /* お知らせ */
    .notice-item { padding: 10px 14px; }

    /* テーブル */
    .table th, .table td { padding: 8px 10px; font-size: .82rem; }

    /* 審査待ち */
    .pending-card { flex-direction: column; }
    .pending-actions { flex-direction: row; width: 100%; }
    .pending-actions .btn { flex: 1; justify-content: center; }

    /* フッター */
    .site-footer { margin-top: 40px; padding: 20px 0; }
    .site-footer nav { flex-wrap: wrap; gap: 12px; }
}
