/* portal.css — 公開トップページ（/ 、申請者・法人担当者向け公式ポータル）専用スタイル。
   staff-management系の style.css（サイドバー型アプリシェル）、
   運用コンソールの console.css（ダッシュボード）とは別種のページのため独立させる。
   配色トークンは console.css / style.css と共通（primary-blue #2563eb、header-navy #1e293b 等）。 */

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

:root {
    --bg-main: #f4f6f9;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --header-navy: #1e293b;
    --primary-blue: #2563eb;
    --primary-hover: #1d4ed8;
    --text-title: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --accent-light: #eff6ff;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.6;
}

/* ---- ヘッダー ---- */
.portal-header {
    background-color: var(--header-navy);
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.portal-emblem {
    width: 34px;
    height: 34px;
    background: #fff;
    color: var(--header-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.portal-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.portal-eyebrow {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.72rem;
    color: #94a3b8;
    letter-spacing: 0.08em;
}

/* ---- メインコンテナ ---- */
.portal-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.portal-lead {
    text-align: center;
    margin-bottom: 2.5rem;
}

.portal-lead .badge-eyebrow {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--accent-light);
    border: 1px solid #bfdbfe;
    color: var(--primary-hover);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.portal-lead h1 {
    font-size: 1.9rem;
    color: var(--text-title);
    margin: 0 0 0.75rem 0;
}

.portal-lead p {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
}

/* ---- 窓口カード ---- */
.gateway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.gateway-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gateway-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06);
}

.gateway-tag {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.72rem;
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.gateway-card h3 {
    font-size: 1.15rem;
    color: var(--text-title);
    margin-bottom: 0.5rem;
}

.gateway-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
}

.gateway-btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.15s ease;
}

.gateway-btn.primary {
    background: var(--primary-blue);
    color: #fff;
}

.gateway-btn.primary:hover {
    background: var(--primary-hover);
}

.gateway-btn.outline {
    background: #fff;
    color: var(--text-title);
    border: 1px solid var(--card-border);
}

.gateway-btn.outline:hover {
    background: #f1f5f9;
}

/* ---- フッター ---- */
.portal-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
}

.portal-footer .dev-link {
    display: block;
    margin-top: 0.75rem;
}

.portal-footer .dev-link a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.76rem;
}

.portal-footer .dev-link a:hover {
    color: var(--text-body);
}
