:root {
  --c-main: #E8893A;
  --c-main-d: #C96E22;
  --c-main-l: #FDF0E2;
  --c-ink: #2E3A47;
  --c-sub: #5E6B78;
  --c-line: #E7DED3;
  --c-bg: #FFFBF6;
  --c-soft: #F6EFE6;
  --c-white: #FFFFFF;
  --c-green: #3F8F63;
  --c-green-l: #E5F3EA;
  --c-red: #C9483B;
  --c-blue: #2F6FA8;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(80, 55, 25, .08);
  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --font-r: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--c-ink); background: var(--c-bg); font-size: 16px; line-height: 1.75; }
a { color: var(--c-main-d); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-r); line-height: 1.4; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.pc { display: inline; }
.muted { color: var(--c-sub); font-size: 14px; margin: 0; }

.demo-bar { background: #3B4652; color: #fff; font-size: 12.5px; text-align: center; padding: 6px 16px; line-height: 1.5; }

/* header */
.site-header { position: sticky; top: 0; z-index: 300; background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); }
.logo-mark svg { width: 38px; height: 38px; display: block; }
.logo-text { font-family: var(--font-r); font-weight: 700; font-size: 21px; letter-spacing: .04em; }
.logo-text small { font-size: 12px; color: var(--c-sub); font-weight: 500; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; color: var(--c-ink); font-weight: 500; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a.is-active { background: var(--c-main-l); color: var(--c-main-d); }
.nav a.nav-admin { border: 1.5px solid var(--c-line); margin-left: 6px; }
.nav-toggle { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 12px 22px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-main); color: #fff; }
.btn-primary:hover { background: var(--c-main-d); }
.btn-primary:disabled { background: #D9CFC4; cursor: not-allowed; }
.btn-ghost { background: var(--c-white); color: var(--c-ink); border: 1.5px solid var(--c-line); }
.btn-ghost:hover { border-color: var(--c-main); color: var(--c-main-d); }
.btn-danger { background: #fff; color: var(--c-red); border: 1.5px solid #EBC3BE; }
.btn-sm { padding: 7px 14px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }

/* forms */
label { display: block; font-weight: 500; font-size: 14.5px; margin-bottom: 14px; }
label em { font-style: normal; font-size: 11px; background: var(--c-red); color: #fff; border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
select, input[type=text], input[type=number], input[type=password], input:not([type]), textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; color: var(--c-ink); background: #fff;
  border: 1.5px solid var(--c-line); border-radius: 10px; padding: 10px 12px;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--c-main); box-shadow: 0 0 0 3px rgba(232, 137, 58, .18); }
.chk { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; margin-bottom: 10px; }
.chk input { width: 20px; height: 20px; accent-color: var(--c-main); margin: 0; flex: none; }
.chk-strong { font-weight: 700; background: var(--c-main-l); padding: 10px 12px; border-radius: 10px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 500; font-size: 14.5px; margin-bottom: 8px; padding: 0; }
legend small { color: var(--c-sub); font-weight: 400; font-size: 12.5px; }
.chk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.chk-grid .chk { margin-bottom: 8px; font-size: 14.5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-err { color: var(--c-red); font-weight: 700; min-height: 1em; margin: 0 0 8px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.form-actions .btn-danger { margin-right: auto; }
.hint { font-size: 13px; color: var(--c-sub); background: var(--c-soft); border-radius: 8px; padding: 8px 12px; }

/* hero */
.hero { background: linear-gradient(135deg, #FFF3E3 0%, #FDE6CF 55%, #F9DCC0 100%); padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.hero-kicker { display: inline-block; background: #fff; color: var(--c-main-d); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 4px 16px; margin: 0 0 18px; }
.hero h1 { font-size: 44px; letter-spacing: .02em; }
.hero-lead { font-size: 17px; color: #4A5562; margin: 18px 0 28px; }
.hero-stats { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }
.hero-stats li { background: rgba(255, 255, 255, .85); border-radius: 12px; padding: 12px 20px; text-align: center; min-width: 110px; }
.hero-stats b { display: block; font-family: var(--font-r); font-size: 30px; color: var(--c-main-d); line-height: 1.2; }
.hero-stats span { font-size: 13px; color: var(--c-sub); }
.quick { background: #fff; border-radius: 18px; padding: 26px 26px 22px; box-shadow: 0 14px 40px rgba(150, 90, 30, .14); }
.quick h2 { font-size: 21px; margin-bottom: 16px; }

/* sections */
.sec { padding: 56px 0; }
.sec-tight { padding: 28px 0 56px; }
.sec-soft { background: var(--c-soft); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; gap: 12px; }
.sec-head h2, h2.center { font-size: 25px; }
h2.center { text-align: center; margin-bottom: 30px; }
.more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.page-head { background: linear-gradient(135deg, #FFF3E3, #FCE5CD); padding: 30px 0 26px; }
.page-head h1 { font-size: 28px; }
.page-head p { margin: 4px 0 0; color: #4A5562; }
.crumb { font-size: 13px; color: var(--c-sub); margin: 0 0 16px; }
.crumb a { color: var(--c-sub); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; border: 1px solid #F0E7DC; transition: transform .15s, box-shadow .15s; }
.fcard:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(80, 55, 25, .13); }
.fcard-img { position: relative; }
.thumb { display: block; width: 100%; height: auto; aspect-ratio: 200 / 112; overflow: visible; background: #fff; }
.grid-2 .thumb { aspect-ratio: 200 / 78; }
.thumb-big { aspect-ratio: 200 / 70; }
.detail-img, .fcard-img { overflow: hidden; }
.fcard-img .vac { position: absolute; left: 12px; top: 12px; }
.fcard-body { padding: 16px 18px 14px; display: flex; flex-direction: column; flex: 1; }
.fcard h3 { font-size: 18px; margin: 8px 0 2px; }
.fcard-area { margin: 0; font-size: 13.5px; color: var(--c-sub); }
.fcard-spec { margin: 10px 0 8px; display: grid; grid-template-columns: auto 1fr; gap: 3px 0; font-size: 14px; }
.fcard-spec div { display: contents; }
.fcard-spec dt { color: var(--c-sub); padding-right: 12px; }
.fcard-spec dd { margin: 0; }
.fcard-spec b { font-size: 17px; color: var(--c-ink); }
.fcard-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 4px; }
.fcard-upd { margin: auto 0 0; padding-top: 10px; font-size: 12.5px; color: var(--c-sub); border-top: 1px dashed var(--c-line); margin-top: 12px; }

.vac { display: inline-block; font-weight: 700; font-size: 13.5px; padding: 4px 12px; border-radius: 999px; line-height: 1.5; }
.vac-ok { background: var(--c-green); color: #fff; }
.vac-full { background: #8C8279; color: #fff; }
.tag { display: inline-block; font-size: 12.5px; background: var(--c-soft); color: #5B4E40; border-radius: 6px; padding: 2px 9px; }
.tag-welfare { background: #E6F0FA; color: var(--c-blue); font-weight: 700; }
.type-chip { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 6px; color: #fff; }
.t0 { background: #D58A3B; } .t1 { background: #D0675A; } .t2 { background: #5F9474; }
.t3 { background: #4F86B5; } .t4 { background: #A9709A; } .t5 { background: #6D74B1; }

/* features */
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat-item { background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.feat-ico { display: inline-flex; width: 50px; height: 50px; border-radius: 50%; background: var(--c-main-l); align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px; }
.feat-item h3 { font-size: 19px; margin-bottom: 8px; }
.feat-item p { margin: 0 0 12px; font-size: 15px; color: #4A5562; }
.feat-item a { font-weight: 700; text-decoration: none; }

/* search */
.search-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.filter { background: #fff; border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); position: sticky; top: 88px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.results-bar p { margin: 0; }
.results-bar b { font-size: 24px; color: var(--c-main-d); font-family: var(--font-r); }
.results-bar select { width: auto; margin: 0; }
.empty { background: #fff; border: 2px dashed var(--c-line); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--c-sub); }
.empty-soft { background: transparent; }

/* detail */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.detail-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.detail-title { font-size: 30px; margin: 10px 0 4px; }
.detail-addr { color: var(--c-sub); margin: 0 0 14px; }
.detail-desc { font-size: 16.5px; margin: 0 0 26px; }
.h-line { font-size: 20px; border-left: 5px solid var(--c-main); padding-left: 12px; margin: 28px 0 14px; }
.info { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.info th, .info td { text-align: left; padding: 13px 16px; border-bottom: 1px solid #F1E9DF; font-size: 15.5px; }
.info th { width: 38%; background: #FBF5EE; font-weight: 500; color: #4A5562; }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }
.med-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.med-list li { background: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 500; border: 1.5px solid var(--c-line); }
.med-list li.ok { border-color: #BFE0CB; background: var(--c-green-l); color: #24603F; }
.med-list li.ng { color: #A69C92; }
.detail-side { position: sticky; top: 88px; }
.vac-box { background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--shadow); border-top: 6px solid var(--c-green); text-align: center; }
.vac-box.is-full { border-top-color: #8C8279; }
.vac-label { margin: 0; color: var(--c-sub); font-weight: 500; }
.vac-num { font-family: var(--font-r); font-size: 54px; font-weight: 700; color: var(--c-green); margin: 0; line-height: 1.25; }
.is-full .vac-num { color: #8C8279; font-size: 42px; }
.vac-num small { font-size: 22px; margin-left: 2px; }
.meter { height: 10px; background: #EEE7DE; border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, #F3B26E, var(--c-main)); border-radius: 99px; }
.vac-rate { font-size: 13.5px; color: var(--c-sub); margin: 0; }
.vac-note { background: var(--c-soft); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; text-align: left; margin: 14px 0 0; }
.vac-upd { font-size: 13px; color: var(--c-sub); margin: 12px 0 0; }
.side-cta { margin-top: 16px; }
.opt-note { font-size: 13px; color: var(--c-sub); margin: 10px 0 0; }
.opt-chip { display: inline-block; background: #3B4652; color: #fff; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 7px; margin-right: 6px; vertical-align: 1px; }

/* match */
.match-layout { display: grid; grid-template-columns: 400px 1fr; gap: 28px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.panel-title { font-size: 19px; margin-bottom: 18px; }
.results > .panel-title { margin-bottom: 14px; }
.match-sum { margin: 0 0 16px; font-size: 16px; }
.match-sum b { font-size: 24px; color: var(--c-green); font-family: var(--font-r); }
.match-sum small { color: var(--c-sub); font-size: 13px; margin-left: 4px; }
.match-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.match-tags span { font-size: 12px; background: var(--c-green-l); color: #24603F; border-radius: 5px; padding: 1px 8px; font-weight: 500; }

/* admin */
.admin-head { background: #34404C; color: #fff; padding: 22px 0 0; }
.admin-head-inner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.admin-head h1 { font-size: 24px; }
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a { white-space: nowrap; color: #C9D2DB; text-decoration: none; padding: 11px 18px; border-radius: 10px 10px 0 0; font-weight: 500; }
.admin-tabs a:hover { color: #fff; }
.admin-tabs a.is-active { background: var(--c-bg); color: var(--c-ink); font-weight: 700; }
.admin-body { min-height: 60vh; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.admin-bar h2 { font-size: 21px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.kpi span { display: block; font-size: 13.5px; color: var(--c-sub); }
.kpi b { font-family: var(--font-r); font-size: 34px; color: var(--c-ink); line-height: 1.3; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.simple-list { list-style: none; padding: 0; margin: 0; }
.simple-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #F1E9DF; }
.simple-list li:last-child { border-bottom: 0; }
.simple-list li > span { font-weight: 500; }
.simple-list small { display: block; color: var(--c-sub); font-weight: 400; font-size: 12.5px; }
.match-count { display: inline-block; min-width: 54px; text-align: center; background: var(--c-green); color: #fff; font-weight: 700; border-radius: 999px; padding: 3px 12px; text-decoration: none; font-size: 14px; }
.match-count.zero { background: #B9AFA5; }
.panel-reset { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--c-soft); box-shadow: none; padding: 14px 20px; }
.panel-reset p { margin: 0; font-size: 14px; color: var(--c-sub); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; min-width: 760px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #F1E9DF; font-size: 14.5px; white-space: nowrap; }
.tbl th { background: #FBF5EE; font-weight: 500; color: #4A5562; font-size: 13px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .td-name { font-weight: 700; white-space: normal; min-width: 180px; }
.tbl .td-act { text-align: right; }
.tbl .vac { font-size: 12.5px; padding: 2px 10px; }
.form { max-width: 760px; }
.vac-list { display: grid; gap: 10px; }
.vac-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); border-left: 5px solid var(--c-green); }
.vac-row.is-stale { border-left-color: #E2A33A; background: #FFFAF0; }
.vac-row-name b { display: block; }
.vac-row-name small { color: var(--c-sub); font-size: 13px; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--c-line); border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--c-soft); font-size: 20px; font-weight: 700; color: var(--c-ink); cursor: pointer; }
.stepper button:hover { background: var(--c-main-l); color: var(--c-main-d); }
.stepper-num { min-width: 52px; text-align: center; font-family: var(--font-r); font-weight: 700; font-size: 22px; }
.seeker-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.seeker-layout .grid-2 { grid-template-columns: 1fr; }
.login { max-width: 420px; margin: 0 auto; }

/* footer */
.site-footer { background: #34404C; color: #C9D2DB; padding: 34px 0; font-size: 14px; }
.site-footer p { margin: 0 0 4px; }
.foot-logo { font-family: var(--font-r); font-weight: 700; color: #fff; font-size: 18px; }
.foot-note { font-size: 12.5px; color: #9AA6B2; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #2E3A47; color: #fff; padding: 12px 22px; border-radius: 12px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 500; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-layout, .match-layout, .detail, .seeker-layout { grid-template-columns: 1fr; }
  .filter, .detail-side { position: static; }
  .detail-side { order: -1; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .pc { display: none; }
  .header-inner { height: 60px; }
  .site-header { overflow-x: clip; }
  .logo-text { font-size: 19px; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 60px); z-index: 250; background: #FFFFFF; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px; transform: translateX(100%); transition: transform .25s ease; will-change: transform; visibility: hidden; }
  .nav-open .nav { transform: translateX(0); visibility: visible; }
  .nav a { padding: 16px 12px; border-radius: 10px; font-size: 17px; border-bottom: 1px solid #F1E9DF; }
  .nav a.nav-admin { margin: 12px 0 0; text-align: center; }
  .nav-open { overflow: hidden; }
  .hero { padding: 34px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 15.5px; margin: 14px 0 20px; }
  .hero-stats { gap: 8px; }
  .hero-stats li { min-width: 0; flex: 1; padding: 10px 6px; }
  .hero-stats b { font-size: 24px; }
  .hero-stats span { font-size: 11.5px; }
  .quick { padding: 22px 18px 18px; }
  .sec { padding: 40px 0; }
  .sec-head h2, h2.center { font-size: 21px; }
  .grid, .grid-2, .feat { grid-template-columns: 1fr; }
  .grid .thumb { aspect-ratio: 200 / 80; }
  .thumb-big { aspect-ratio: 200 / 100; }
  .page-head h1 { font-size: 24px; }
  .detail-title { font-size: 24px; }
  .med-list { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr; }
  .kpi b { font-size: 28px; }
  .dash-grid { grid-template-columns: 1fr; }
  .vac-row { grid-template-columns: 1fr auto; gap: 12px; }
  .vac-row-name { grid-column: 1 / -1; }
  .vac-row .btn { grid-column: auto; }

  .results-bar b { font-size: 21px; }
}
