
:root {
	--navy: #0A2540;
	--navy-2: #12335A;
	--navy-3: #1B4576;
	--turquoise: #14B8C4;
	--turquoise-dark: #0E96A0;
	--aqua: #E6F7F8;
	--bg: #F4F7FA;
	--white: #FFFFFF;
	--text: #1F2A37;
	--muted: #64748B;
	--line: #DCE4EC;
	--amber: #F5A623;
	--radius: 10px;
	--shadow: 0 2px 12px rgba(10, 37, 64, .08);
	--shadow-lg: 0 8px 28px rgba(10, 37, 64, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", Meiryo, sans-serif;
	color: var(--text);
	background: var(--bg);
	line-height: 1.75;
	font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--turquoise-dark); text-decoration: none; }
a:hover { opacity: .85; }
ul { list-style: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- ボタン ---------- */
.btn { display: inline-block; padding: 12px 28px; border-radius: 999px; font-weight: 700; text-align: center; cursor: pointer; border: none; font-size: 15px; transition: .2s; }
.btn-primary { background: var(--turquoise); color: #fff; }
.btn-primary:hover { background: var(--turquoise-dark); opacity: 1; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); opacity: 1; }
.btn-outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-tq { background: #fff; color: var(--turquoise-dark); border: 2px solid var(--turquoise); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-lg { padding: 16px 48px; font-size: 17px; }
.btn-sm { padding: 7px 18px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- ヘッダー ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.site-logo { font-size: 22px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.site-logo .logo-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--turquoise), var(--navy)); display: inline-block; }
.header-links { display: flex; align-items: center; gap: 8px; }
.header-links a { font-size: 12px; color: var(--muted); padding: 6px 10px; border-radius: 6px; }
.header-links a:hover { background: var(--aqua); }
.header-auth { display: flex; gap: 8px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; position: relative; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px auto; transition: .2s; }

/* グローバルナビ */
.global-nav { background: var(--navy); }
.global-nav ul { display: flex; }
.global-nav a { display: block; color: #fff; font-size: 14px; font-weight: 600; padding: 13px 20px; }
.global-nav a:hover { background: var(--navy-2); opacity: 1; }

/* モバイルメニュー */
.mobile-menu { display: none; position: fixed; inset: 0; background: rgba(10, 37, 64, .55); z-index: 200; }
.mobile-menu.open { display: block; }
.mobile-menu-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 85%); background: #fff; padding: 24px; overflow-y: auto; }
.mobile-menu-panel .menu-close { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--navy); float: right; }
.mobile-menu-panel .cta-box { background: var(--aqua); border-radius: var(--radius); padding: 16px; margin: 40px 0 16px; font-size: 13px; text-align: center; }
.mobile-menu-panel ul a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px; }
.mobile-menu-panel .menu-label { margin-top: 20px; font-size: 12px; color: var(--muted); }

/* ---------- ヒーロー ---------- */
.hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 55%, var(--turquoise-dark) 130%); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(20,184,196,.35), transparent 70%); }
.hero-inner { position: relative; z-index: 1; }
.hero .hero-catch { font-size: 15px; font-weight: 700; color: var(--turquoise); background: rgba(255,255,255,.1); display: inline-block; padding: 4px 16px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { font-size: 34px; line-height: 1.4; font-weight: 800; }
.hero h1 .accent { color: var(--turquoise); }
.hero .project-count { margin-top: 20px; font-size: 15px; }
.hero .project-count strong { font-size: 42px; color: #fff; font-weight: 800; letter-spacing: 1px; margin: 0 6px; }
.hero .count-date { font-size: 12px; opacity: .8; margin-left: 8px; }
.hero .hero-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 検索パネル ---------- */
.search-panel { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 28px; margin-top: -36px; position: relative; z-index: 2; }
.search-panel h2 { font-size: 20px; color: var(--navy); margin-bottom: 16px; }
.search-keyword { display: flex; gap: 10px; margin-bottom: 18px; }
.search-keyword input { flex: 1; padding: 12px 16px; border: 2px solid var(--line); border-radius: 8px; font-size: 15px; }
.search-keyword input:focus { outline: none; border-color: var(--turquoise); }
.search-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.search-tab { background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }
.search-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.search-tab-body { display: none; }
.search-tab-body.active { display: block; }
.term-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.term-cloud a { background: var(--aqua); color: var(--navy); font-size: 13px; padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.term-cloud a .cnt { color: var(--muted); font-weight: 400; font-size: 11px; }
.term-cloud a:hover { background: var(--turquoise); color: #fff; opacity: 1; }
.term-cloud a:hover .cnt { color: #eafcfd; }

/* ---------- セクション共通 ---------- */
.section { padding: 56px 0; }
.section-title { font-size: 26px; font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 8px; }
.section-title .en { display: block; font-size: 12px; color: var(--turquoise-dark); letter-spacing: 2px; margin-bottom: 4px; }
.section-lead { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.section-more { text-align: center; margin-top: 28px; }

/* ---------- サービス特徴 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 24px; text-align: center; border-top: 4px solid var(--turquoise); }
.feature-card .feature-num { font-size: 13px; color: var(--turquoise-dark); font-weight: 700; letter-spacing: 1px; }
.feature-card h3 { font-size: 18px; color: var(--navy); margin: 8px 0 12px; }
.feature-card p { font-size: 14px; color: var(--muted); }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--aqua); display: flex; align-items: center; justify-content: center; font-size: 28px; }

/* ---------- 案件カード ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-list .project-card { margin-bottom: 20px; }
.project-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: .2s; }
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.project-card .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 4px; }
.badge-new { background: var(--amber); color: var(--navy); }
.badge-char { background: var(--aqua); color: var(--turquoise-dark); }
.project-card h3 { font-size: 15px; line-height: 1.5; }
.project-card h3 a { color: var(--navy); }
.project-card .price { font-size: 14px; color: var(--muted); }
.project-card .price strong { font-size: 24px; color: var(--turquoise-dark); font-weight: 800; }
.project-card .meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.project-card .skills { display: flex; flex-wrap: wrap; gap: 6px; }
.project-card .skills span { font-size: 11px; border: 1px solid var(--line); color: var(--muted); padding: 2px 8px; border-radius: 4px; }
.project-card .card-foot { margin-top: auto; display: flex; gap: 10px; align-items: center; }
.bookmark-btn { background: #fff; border: 1.5px solid var(--line); color: var(--muted); border-radius: 8px; padding: 8px 12px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.bookmark-btn.active { border-color: var(--turquoise); color: var(--turquoise-dark); background: var(--aqua); }
.bookmark-btn .bm-icon::before { content: "♡"; }
.bookmark-btn.active .bm-icon::before { content: "♥"; }

/* 横スクロールスライダー(新着案件) */
.project-slider { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.project-slider .project-card { min-width: 320px; scroll-snap-align: start; }
.slider-nav { display: flex; justify-content: center; gap: 12px; }
.slider-nav button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: var(--navy); font-size: 16px; cursor: pointer; }

/* ---------- 一覧ページ ---------- */
.archive-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 40px 0; }
.filter-sidebar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; align-self: start; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
.filter-sidebar h2 { font-size: 16px; color: var(--navy); border-bottom: 2px solid var(--turquoise); padding-bottom: 8px; margin-bottom: 12px; }
.filter-group { border-bottom: 1px solid var(--line); padding: 10px 0; }
.filter-group summary { font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.filter-group summary::after { content: "＋"; color: var(--turquoise-dark); }
.filter-group[open] summary::after { content: "−"; }
.filter-group .filter-terms { padding: 10px 0 4px; max-height: 240px; overflow-y: auto; }
.filter-terms label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; cursor: pointer; }
.filter-terms input { accent-color: var(--turquoise); }
.filter-terms .cnt { color: var(--muted); font-size: 11px; }
.filter-price select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; margin-top: 8px; }
.filter-actions { padding-top: 14px; display: grid; gap: 8px; }

.archive-head h1 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.archive-head .conditions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.archive-head .conditions span { background: var(--navy); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 999px; }
.archive-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; flex-wrap: wrap; gap: 10px; }
.archive-toolbar .result-count { font-size: 14px; }
.archive-toolbar .result-count strong { color: var(--turquoise-dark); font-size: 22px; }
.order-links a { font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-left: 6px; }
.order-links a.active { background: var(--turquoise); border-color: var(--turquoise); color: #fff; }

.pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0; }
.pagination .page-numbers { padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); font-size: 14px; }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- 案件詳細 ---------- */
.single-project { padding: 40px 0; }
.project-main { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.project-main h1 { font-size: 24px; color: var(--navy); line-height: 1.5; margin: 10px 0 18px; }
.detail-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.detail-table th, .detail-table td { border: 1px solid var(--line); padding: 12px 16px; font-size: 14px; text-align: left; }
.detail-table th { background: var(--aqua); color: var(--navy); width: 180px; font-weight: 700; }
.detail-table .price-cell strong { font-size: 26px; color: var(--turquoise-dark); }
.project-body h2 { font-size: 18px; color: var(--navy); border-left: 4px solid var(--turquoise); padding-left: 12px; margin: 26px 0 12px; }
.project-body ul { list-style: disc; padding-left: 24px; font-size: 14px; }
.project-body p { font-size: 14px; margin-bottom: 12px; }
.apply-box { background: linear-gradient(120deg, var(--navy), var(--navy-3)); border-radius: var(--radius); color: #fff; text-align: center; padding: 32px; margin-top: 28px; }
.apply-box p { margin-bottom: 16px; font-weight: 700; }
.apply-box .apply-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 応募モーダル */
.modal { display: none; position: fixed; inset: 0; background: rgba(10,37,64,.6); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 14px; max-width: 520px; width: 100%; padding: 28px; max-height: 90vh; overflow-y: auto; }
.modal-box h3 { color: var(--navy); margin-bottom: 16px; font-size: 18px; }
.modal-box .modal-close { float: right; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted); }

/* ---------- フォーム ---------- */
.form-page { max-width: 560px; margin: 48px auto; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 36px; }
.form-page h1 { font-size: 22px; color: var(--navy); text-align: center; margin-bottom: 6px; }
.form-page .form-lead { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-row label .req { color: #E5484D; font-size: 11px; margin-left: 6px; }
.form-row input[type=text], .form-row input[type=email], .form-row input[type=password], .form-row input[type=number],
.form-row textarea, .form-row select { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--turquoise); }
.form-row .checks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.form-row .checks label { font-weight: 400; display: flex; gap: 6px; align-items: center; margin: 0; }
.form-note { font-size: 12px; color: var(--muted); }
.form-alert { background: #FDECEC; color: #B3261E; border-radius: 8px; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; }
.form-success { background: var(--aqua); color: var(--turquoise-dark); border-radius: 8px; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; }
.form-switch { text-align: center; margin-top: 18px; font-size: 13px; }

/* ---------- マイページ ---------- */
.mypage-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 40px 0; }
.mypage-nav { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; align-self: start; }
.mypage-nav a { display: block; padding: 11px 14px; border-radius: 8px; font-size: 14px; color: var(--text); font-weight: 600; }
.mypage-nav a:hover, .mypage-nav a.current { background: var(--aqua); color: var(--turquoise-dark); }
.mypage-content { min-width: 0; }
.mypage-content h1 { font-size: 22px; color: var(--navy); margin-bottom: 18px; }
.mypage-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.mypage-card h2 { font-size: 16px; color: var(--navy); border-bottom: 2px solid var(--turquoise); padding-bottom: 8px; margin-bottom: 14px; }
.mypage-card .empty { color: var(--muted); font-size: 14px; padding: 12px 0; }
.saved-search-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 14px; }
.saved-search-item .ss-date { color: var(--muted); font-size: 12px; }
.scout-item { border: 1px solid var(--line); border-left: 4px solid var(--turquoise); border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.scout-item h3 { font-size: 15px; color: var(--navy); }
.scout-item .scout-date { font-size: 12px; color: var(--muted); }
.scout-item .scout-body { font-size: 13px; margin-top: 8px; }

/* ---------- エージェント ---------- */
.agent-list-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-bottom: 18px; display: grid; grid-template-columns: 88px 1fr; gap: 20px; }
.agent-logo { width: 88px; height: 88px; border-radius: 12px; background: linear-gradient(135deg, var(--aqua), var(--turquoise)); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: var(--navy); }
.agent-list-item h2, .agent-list-item h3 { font-size: 18px; color: var(--navy); }
.agent-list-item .agent-company { font-size: 13px; color: var(--muted); }
.agent-list-item .agent-count { font-size: 13px; color: var(--turquoise-dark); font-weight: 700; margin: 4px 0; }
.agent-list-item .agent-desc { font-size: 14px; margin: 8px 0 12px; }
.agent-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- コラム ---------- */
.column-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.column-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.column-card .thumb { height: 140px; background: linear-gradient(135deg, var(--navy), var(--turquoise)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 32px; font-weight: 800; }
.column-card .body { padding: 18px; }
.column-card h3 { font-size: 15px; line-height: 1.5; }
.column-card h3 a { color: var(--navy); }
.column-card .date { font-size: 12px; color: var(--muted); margin-top: 8px; display: block; }
.single-article { max-width: 760px; margin: 48px auto; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 40px; }
.single-article h1 { font-size: 26px; color: var(--navy); line-height: 1.5; margin-bottom: 12px; }
.single-article .article-meta { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.single-article .entry-content h2 { font-size: 20px; color: var(--navy); border-left: 4px solid var(--turquoise); padding-left: 12px; margin: 28px 0 14px; }
.single-article .entry-content p { margin-bottom: 14px; }
.single-article .entry-content ul { list-style: disc; padding-left: 24px; margin-bottom: 14px; }

/* ---------- CTA帯 ---------- */
.cta-band { background: linear-gradient(120deg, var(--turquoise-dark), var(--turquoise)); color: #fff; text-align: center; padding: 48px 20px; }
.cta-band h2 { font-size: 24px; margin-bottom: 8px; }
.cta-band p { font-size: 14px; margin-bottom: 20px; opacity: .95; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 48px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { font-size: 14px; color: var(--turquoise); margin-bottom: 12px; }
.footer-grid a { color: #C4D3E3; font-size: 13px; display: block; padding: 4px 0; }
.footer-logo { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: 12px; color: #8FA6BE; }
.copyright { text-align: center; font-size: 12px; color: #8FA6BE; border-top: 1px solid var(--navy-2); padding-top: 20px; }

/* ---------- トースト ---------- */
.ufr-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 24px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .3s; z-index: 400; pointer-events: none; }
.ufr-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
	.global-nav, .header-links { display: none; }
	.hamburger { display: block; }
	.features, .project-grid, .column-grid { grid-template-columns: 1fr 1fr; }
	.archive-layout { grid-template-columns: 1fr; }
	.filter-sidebar { position: static; max-height: none; }
	.mypage-layout { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.hero h1 { font-size: 24px; }
	.hero .project-count strong { font-size: 32px; }
	.features, .project-grid, .column-grid { grid-template-columns: 1fr; }
	.search-panel { padding: 18px; }
	.agent-list-item { grid-template-columns: 1fr; }
	.detail-table th { width: 110px; }
	.form-page { padding: 24px; margin: 24px 16px; }
}
