/* front.css — front-page.php から切り出したスタイル */
:root{
  --accent:#4F46E5; --accent-dark:#4338CA; --accent-pale:#eef0fd; --accent-soft:#fafaff;
  --text:#1c1d2b; --text-2:#45485a; --muted:#5d6072; --muted-2:#9a9db0;
  --line:#e1e3ec; --line-2:#eeeff4; --line-3:#e7e8ef; --tile:#f7f7fc; --ink:#1c1d2b;
  --maxw:1160px; --pad:24px;
  --font:"Hiragino Kaku Gothic ProN","Hiragino Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Meiryo,system-ui,sans-serif;
}

.page{padding-bottom:48px}


/* ヒーロー（実写の写真を大きく置く前提のレイアウト）
   背景に薄い色を敷き、写真がその境界をまたいで下に重なるようにする。
   フル幅にしているのは背景色だけで、中身はコンテナに入れている。 */
.hero{background:var(--tile)}
.hero.no-photo{border-bottom:1px solid var(--line-3)}
.hero .inner{padding-top:clamp(28px,5vw,52px);padding-bottom:0}
.hero .search{box-shadow:0 2px 8px rgba(28,29,43,.05)}
.hero-l{max-width:780px;display:flex;flex-direction:column;gap:18px}
.badge{align-self:flex-start;font-size:13px;font-weight:500;color:var(--accent);
  background:var(--accent-pale);border-radius:3px;padding:5px 12px}
.catch{margin:0;font-size:clamp(28px,5vw,44px);line-height:1.35;font-weight:700;letter-spacing:.01em}
.hero-lead{margin:0;font-size:15px;line-height:1.85;color:var(--text-2)}

/* 写真は横幅いっぱい。下のボックスに少し重ねる */
.hero-photo{margin:clamp(24px,4vw,40px) 0 -72px;position:relative;z-index:2;
  border-radius:4px;overflow:hidden;aspect-ratio:21/9;background:#eef3fb}
.hero-photo img{width:100%;height:100%;object-fit:cover;display:block}
/* 重なるぶん、本文の開始位置を下げる */
.has-photo{padding-top:72px}
.has-photo > .sec:first-child{margin-top:16px}

/* エリア検索 */
.search{background:#fff;border:1px solid #dcdee8;border-radius:4px;padding:14px;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:10px;
  box-shadow:0 8px 24px rgba(28,29,43,.06)}
.search label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.search select{min-height:48px;padding:0 12px;border:1px solid #cfd1dd;border-radius:3px;background:#fff;
  font-size:15px;color:var(--text)}
.search button{align-self:end;min-height:48px;border:0;border-radius:3px;background:var(--ink);color:#fff;
  font-weight:700;font-size:15px;cursor:pointer}
.search button:hover{background:#33364a}
.hero-meta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px}
.count{display:flex;align-items:baseline;gap:6px;font-size:14px;color:var(--text-2)}
.count b{font-size:32px;font-weight:700;color:var(--accent);line-height:1}

/* ボタン */
.btn{display:flex;align-items:center;justify-content:center;text-decoration:none;font-weight:700;border-radius:3px}
.btn-main{min-height:52px;padding:0 26px;background:var(--accent);color:#fff;font-size:16px;
  box-shadow:0 6px 16px rgba(79,70,229,.25)}
.btn-main:hover{background:var(--accent-dark);color:#fff;text-decoration:none}
.btn-ghost{min-height:46px;border:1px solid var(--accent);background:#fff;color:var(--accent);font-size:14px}
.btn-ghost:hover{background:var(--accent);color:#fff;text-decoration:none}

/* セクション */
.sec{margin-top:48px}
h2{margin:0 0 18px;font-size:22px;font-weight:700;display:flex;align-items:center;gap:12px}
h2::after{content:"";flex:1;height:1px;background:var(--line)}
.h2row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:18px}
.h2row h2{margin:0}
.h2row h2::after{display:none}
.h2row .fill{flex:1;min-width:40px;height:1px;background:var(--line)}
.h2row .more{font-size:13px}

/* 使い方3ステップ */
.steps{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px}
.steps li{background:#fff;border:1px solid var(--line);border-radius:4px;padding:22px;
  display:flex;align-items:center;gap:16px}
.steps .no{flex:none;width:56px;height:56px;border-radius:50%;background:var(--accent-pale);color:var(--accent);
  display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700}
.steps .lb{font-size:12px;font-weight:700;color:var(--accent);letter-spacing:.08em}
.steps .ti{font-size:17px;font-weight:700;margin-top:2px}
.steps .de{font-size:13px;color:var(--muted);margin-top:4px;line-height:1.6}

/* 人気エリア */
.pop{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,170px),1fr));gap:14px}
.pop a{background:#fff;border:1px solid var(--line);border-radius:4px;overflow:hidden;
  color:var(--text);display:flex;flex-direction:column;height:100%}
.pop a:hover{border-color:var(--accent);color:var(--text);text-decoration:none}
.pop .ph{width:100%;aspect-ratio:16/10;background:linear-gradient(135deg,#eef3fb 0,#e6e9fb 100%);display:block}
.pop .ph img{width:100%;height:100%;object-fit:cover;display:block}
.pop .bd{padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.pop .bd b{font-size:15px}
.pop .bd span{font-size:12px;color:var(--muted)}
.pop .bd span b{color:var(--accent);font-size:15px}

/* おすすめ会社 */
.tops{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}
.tops > li{display:flex}
.top{background:#fff;border:1px solid var(--line);border-radius:4px;padding:22px;
  display:flex;flex-direction:column;gap:14px;width:100%}
.top.is-1{border:2px solid var(--accent)}
.top.is-pr{border:2px solid #d9a441;background:linear-gradient(180deg,#fffaf0 0,#fff 110px)}
.top-head{display:flex;align-items:center;gap:12px}
.medal{flex:none;width:48px;height:48px;border-radius:3px;background:var(--accent-pale);color:var(--accent);
  display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.top.is-1 .medal{background:var(--accent);color:#fff}
.top.is-pr .medal{background:#d9a441;color:#fff;font-size:13px;font-weight:700}
.medal b{font-size:20px;font-weight:700}
.medal span{font-size:10px;margin-top:2px}
.thumb{flex:none;width:48px;height:48px;border-radius:3px;border:1px solid var(--line-3);
  overflow:hidden;background:#fff}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
h3{margin:0;font-size:17px;font-weight:700;line-height:1.45}
.top-area{font-size:12px;color:var(--muted);margin-top:2px}
.pr-tag{display:inline-block;font-size:11px;font-weight:700;color:#8a6200;background:#fdf0d2;
  border:1px solid #e6c478;border-radius:4px;padding:1px 7px;margin-left:6px}
.pr-note{margin:-8px 0 14px;font-size:12px;color:var(--muted);line-height:1.7}
.rate{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}
.stars{position:relative;display:inline-block;font-size:15px;line-height:1;letter-spacing:1px;color:#d9dbe6}
.stars i{position:absolute;left:0;top:0;overflow:hidden;white-space:nowrap;color:var(--accent);font-style:normal}
.rate b{font-size:15px;font-weight:700}
.rate .cnt{font-size:13px;color:var(--muted)}
.spec{margin:0;background:var(--tile);border-radius:3px;padding:12px 14px;
  display:grid;grid-template-columns:auto 1fr;gap:6px 14px;align-items:baseline}
.spec dt{font-size:12px;color:var(--muted)}
.spec dd{margin:0;font-size:19px;font-weight:700}
.spec dd.sm{font-size:15px}
.spec dd small{font-size:13px;font-weight:500}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{font-size:12px;border:1px solid #dcdee8;border-radius:3px;padding:2px 10px}
.top .btn-ghost{margin-top:auto}

/* 市区町村・都道府県のタイル */
.tiles{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,160px),1fr));gap:10px}
.tiles a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:60px;
  padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:3px;color:var(--text)}
.tiles a:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--text);text-decoration:none}
.tiles .nm{font-size:15px;font-weight:700}
.tiles .ar{color:var(--accent);font-size:18px}
.prefs{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,120px),1fr));gap:8px}
.prefs a{display:flex;align-items:center;justify-content:center;min-height:46px;padding:8px 10px;
  background:#fff;border:1px solid var(--line);border-radius:3px;color:var(--text);font-size:14px;text-align:center}
.prefs a:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);text-decoration:none}
.prefs .off{display:flex;align-items:center;justify-content:center;min-height:46px;padding:8px 10px;
  border:1px dashed var(--line);border-radius:3px;color:var(--muted-2);font-size:14px;background:#fcfcfd}
.prefs-note{margin:10px 0 0;font-size:12px;color:var(--muted)}

/* 選ばれる理由 */
.reasons{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px}
.reason{background:#fff;border:1px solid var(--line);border-radius:4px;padding:24px;
  display:flex;flex-direction:column;gap:10px}
.reason .ico{width:56px;height:56px;border-radius:50%;background:var(--accent-pale);color:var(--accent);
  display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700}
.reason p{margin:0;font-size:14px;line-height:1.8;color:var(--text-2)}

/* 下部CTA */
.cta{margin-top:48px;background:#fff;border:1px solid var(--line);border-radius:4px;
  padding:clamp(22px,4vw,40px);display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.cta h2{margin:0;font-size:clamp(20px,3vw,24px)}
.cta h2::after{display:none}
.cta p{margin:0;font-size:14px;color:var(--muted)}
.cta .btn-main{margin-top:6px;width:100%;max-width:520px;min-height:60px;font-size:18px;
  border-radius:3px;box-shadow:0 8px 20px rgba(79,70,229,.28)}


.empty{background:var(--tile);border-radius:3px;padding:28px;text-align:center;color:var(--muted);font-size:15px}

/* スマホ固定バー（見本の sc-if isMobile をCSSで置き換え） */
.fixbar{position:fixed;left:0;right:0;bottom:0;z-index:10;background:rgba(255,255,255,.96);
  border-top:1px solid var(--line-3);padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  display:none;backdrop-filter:blur(8px)}
.fixbar .btn-main{width:100%;min-height:52px;font-size:16px;box-shadow:none}

@media (max-width:719px){
  .inner{padding-left:16px;padding-right:16px}
  .hero-photo{aspect-ratio:3/2;margin-bottom:-32px}
  .has-photo{padding-top:32px}
  .page{padding-bottom:96px}
  .fixbar{display:block}
  h2{font-size:19px}
  .prefs{grid-template-columns:repeat(auto-fill,minmax(min(100%,100px),1fr))}
}
