/* 求職者向け画面共通スタイル */
:root {
  --navy-950: #102f4c;
  --navy-800: #194e72;
  --blue-600: #198fc5;
  --blue-100: #e6f4fb;
  --ink: #243746;
  --muted: #6f7f8d;
  --line: #dce6ec;
  --paper: #ffffff;
  --canvas: #f3f7f9;
  --amber: #f2aa4c;
  --shadow: 0 18px 50px rgba(20, 57, 82, .12);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.6;
}
button, input, a { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ログイン画面 */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(29, 143, 197, .22), transparent 30%),
    radial-gradient(circle at 88% 78%, rgba(242, 170, 76, .17), transparent 28%),
    linear-gradient(145deg, #eef5f8, #fbfcfd 55%, #edf3f6);
}
.login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  min-height: 100vh;
}
.login-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 6vw, 76px);
  color: #fff;
  background: linear-gradient(145deg, rgba(16, 47, 76, .98), rgba(25, 112, 148, .92));
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--navy-950);
  background: #fff;
  font-size: 20px;
  font-weight: 900;
}
.brand-name { display: block; letter-spacing: .09em; font-weight: 800; }
.brand-copy { display: block; color: #c7e7f4; font-size: 12px; }
.login-message { max-width: 650px; }
.login-message h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.24;
  letter-spacing: .02em;
}
.login-message p { max-width: 540px; margin: 0; color: #d8edf5; font-size: 17px; }
.login-story footer { color: #b7d7e5; font-size: 12px; }
.login-entry {
  display: grid;
  place-items: center;
  padding: 36px;
  text-align: center;
}
.entry-panel { width: min(100%, 420px); }
.entry-panel .eyebrow { margin: 0 0 10px; color: var(--blue-600); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.entry-panel h2 { margin: 0 0 12px; font-size: 30px; }
.entry-panel p { margin: 0 0 30px; color: var(--muted); }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  color: #3c2a12;
  background: linear-gradient(180deg, #ffd993, var(--amber));
  box-shadow: 0 10px 24px rgba(218, 136, 34, .24);
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(218, 136, 34, .3); }
.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  visibility: hidden;
  opacity: 0;
  background: rgba(10, 32, 50, .68);
  backdrop-filter: blur(8px);
  transition: opacity .2s, visibility .2s;
}
.modal-backdrop.is-open { visibility: visible; opacity: 1; }
.login-modal {
  position: relative;
  width: min(100%, 470px);
  max-height: calc(100vh - 36px);
  padding: clamp(28px, 5vw, 44px);
  overflow-y: auto;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(5, 29, 47, .28);
  transform: translateY(14px) scale(.98);
  transition: transform .2s;
}
.is-open .login-modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #eff4f6;
  font-size: 21px;
}
.login-modal h2 { margin: 0 0 5px; font-size: 27px; }
.modal-lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.alert-error {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid #efb8b8;
  border-radius: 10px;
  color: #c83d3d;
  background: #fff2f2;
  font-size: 13px;
}
.form-field { margin-bottom: 17px; text-align: left; }
.form-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 750; }
.form-field input {
  width: 100%;
  height: 51px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #fbfdfe;
}
.form-field input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(25, 143, 197, .12); }
.forgot-link { display: block; margin: -3px 0 21px; color: var(--blue-600); text-align: right; font-size: 13px; font-weight: 700; }
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; color: #93a0aa; font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 49px;
  border: 1px solid var(--line);
  border-radius: 11px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.google-mark { color: #4285f4; font-size: 20px; font-weight: 900; }

/* Topメニュー */
.top-page { min-height: 100vh; min-height: 100dvh; padding-bottom: 82px; }
.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  color: #fff;
  background: linear-gradient(120deg, var(--navy-950), #176e95);
  box-shadow: 0 5px 20px rgba(15, 49, 74, .16);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: auto;
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.notification-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  text-decoration: none;
}
.notification-link::after {
  content: "3";
  position: absolute;
  top: -3px;
  right: -2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #216f94;
  border-radius: 50%;
  background: #e84e4e;
  font-size: 10px;
  font-weight: 800;
}
.user-name { text-align: right; }
.user-name small { display: block; color: #c9e7f4; }
.logout-link {
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 9px;
  text-decoration: none;
  font-size: 13px;
}
.content-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.page-heading h1 { margin: 0 0 6px; font-size: clamp(25px, 3vw, 34px); }
.page-heading p { margin: 0; color: var(--muted); }
.updated-at { color: var(--muted); font-size: 12px; white-space: nowrap; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 15px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.text-link { color: var(--blue-600); text-decoration: none; font-size: 13px; font-weight: 750; }
.matching-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.matching-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.matching-card::before { content: ""; display: block; height: 5px; background: var(--match-color); }
.matching-main { display: block; min-height: 183px; padding: 17px 17px 12px; text-decoration: none; }
.matching-rate { color: var(--match-color); font-size: 25px; font-weight: 900; }
.matching-rate small { color: var(--muted); font-size: 11px; font-weight: 650; }
.matching-card h3 { display: -webkit-box; min-height: 47px; margin: 8px 0 4px; overflow: hidden; font-size: 15px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.company-name { margin: 0; color: var(--muted); font-size: 13px; }
.liked { position: absolute; top: 14px; right: 14px; color: #e84e4e; font-size: 18px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 8px 14px; border-top: 1px solid #edf1f3; }
.status-badge { padding: 4px 10px; border-radius: 99px; color: #fff; font-size: 11px; font-weight: 850; }
.status-applied { background: #e87731; }
.status-chat { background: #18a9ce; }
.status-hired { background: #4d9a5c; }
.status-rejected { background: #65717c; }
.status-accepted { background: #7355b5; }
.status-declined { background: #b35e72; }
.chat-link { color: var(--blue-600); text-decoration: none; font-size: 13px; font-weight: 800; }
.chat-link.is-closed { color: #a2adb5; pointer-events: none; }
.seeker-like { display: inline-grid; place-items: center; min-width: 28px; min-height: 28px; padding: 0; border: 1px solid #d7dee3; border-radius: 50%; color: #9aa6ae; background: #f6f8f9; font-size: 17px; cursor: default; }
.seeker-like.is-liked { border-color: #f0b8b8; color: #e84e4e; background: #fff1f1; }
.matching-card .chat-link[type="button"] { padding: 0; border: 0; background: transparent; cursor: pointer; }
.matching-empty { grid-column: 1 / -1; margin: 0; padding: 30px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; background: #fff; }
.match-95 { --match-color: #d8a923; }
.match-88 { --match-color: #df8d54; }
.match-82 { --match-color: #68a961; }
.match-76 { --match-color: #82b56d; }
.match-71 { --match-color: #78a4be; }
.match-68 { --match-color: #8997a4; }
.info-grid { display: grid; grid-template-columns: 1.35fr .8fr; gap: 18px; margin-top: 24px; }
.info-panel { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px 19px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 17px; }
.notice-list { margin: 0; padding: 0; list-style: none; }
.notice-list li { display: grid; grid-template-columns: 90px 1fr; gap: 13px; padding: 14px 19px; border-bottom: 1px solid #edf1f3; font-size: 13px; }
.notice-list li:last-child { border-bottom: 0; }
.notice-list time { color: var(--muted); }
.banner-ad {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 25px;
  color: #664716;
  text-align: center;
  background: linear-gradient(135deg, #ffe6a2, #ffc968);
}
.banner-ad strong { display: block; margin-bottom: 6px; font-size: 20px; }
.bottom-nav {
  position: fixed;
  z-index: 12;
  bottom: 0;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, 100%);
  height: 64px;
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  box-shadow: 0 -7px 25px rgba(25, 56, 79, .08);
  backdrop-filter: blur(10px);
}
.bottom-nav a { padding: 11px 8px 9px; color: var(--muted); text-align: center; text-decoration: none; font-size: 11px; font-weight: 750; }
.bottom-nav a span { display: block; margin-bottom: 1px; font-size: 20px; }
.bottom-nav a.is-active { color: var(--blue-600); }

@media (max-width: 900px) {
  .login-hero { grid-template-columns: 1fr; }
  .login-story { min-height: 260px; padding: 30px; }
  .login-message h1 { margin-top: 42px; font-size: 34px; }
  .login-message p, .login-story footer { display: none; }
  .login-entry { min-height: 390px; padding: 30px 20px; }
  .matching-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .login-story { min-height: 220px; }
  .login-message h1 { font-size: 28px; }
  .login-entry { align-items: start; padding-top: 38px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .login-modal { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; }
  .site-header-inner, .content-shell { width: min(100% - 28px, 1120px); }
  .brand-copy, .user-name small, .updated-at { display: none; }
  .brand-name { font-size: 13px; }
  .user-name { font-size: 12px; }
  .header-actions { gap: 8px; }
  .logout-link { padding: 7px 9px; font-size: 11px; }
  .content-shell { padding-top: 24px; }
  .matching-grid { gap: 10px; }
  .matching-main { min-height: 170px; padding: 14px 12px 10px; }
  .matching-rate { font-size: 21px; }
  .matching-card h3 { min-height: 61px; font-size: 13px; }
  .card-footer { padding: 7px 10px; }
  .chat-link { font-size: 0; }
  .chat-link::before { content: "💬"; font-size: 17px; }
  .notice-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ログイン画面：広告ランディング（再設計） */
.ad-landing {
  min-height: 100vh;
  color: #f8fbfd;
  background:
    radial-gradient(circle at 83% 28%, rgba(53, 193, 218, .2), transparent 25%),
    radial-gradient(circle at 18% 90%, rgba(242, 170, 76, .15), transparent 24%),
    linear-gradient(135deg, #0b263d 0%, #103e59 52%, #0f5b72 100%);
  overflow: hidden;
}
.ad-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1220px, calc(100% - 64px));
  min-height: 82px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.ad-login-button {
  min-width: 92px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.07);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .05em;
  transition: background .15s, color .15s;
}
.ad-login-button:hover { color: var(--navy-950); background: #fff; }
.ad-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  align-items: center;
  width: min(1220px, calc(100% - 64px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 70px 0 96px;
}
.ad-copy { position: relative; z-index: 2; max-width: 690px; }
.ad-eyebrow { margin: 0 0 18px; color: #78d4e6; font-size: 12px; font-weight: 850; letter-spacing: .2em; }
.ad-copy h1 { margin: 0; font-size: clamp(42px, 5.2vw, 72px); line-height: 1.22; letter-spacing: .015em; }
.ad-copy h1 span { color: #ffce7c; }
.ad-description { max-width: 610px; margin: 28px 0 0; color: #cee2eb; font-size: 16px; line-height: 2; }
.ad-points { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 34px 0; }
.ad-points div { display: flex; align-items: center; gap: 9px; color: #d9eaf1; font-size: 13px; }
.ad-points strong { color: #65c9dc; font-size: 11px; letter-spacing: .08em; }
.ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.08);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}
.ad-visual { position: relative; min-height: 520px; }
.orbit { position: absolute; border: 1px solid rgba(129, 216, 230, .2); border-radius: 50%; }
.orbit-one { inset: 4% -6% 10% 8%; }
.orbit-two { inset: 16% 7% 20% 19%; border-color: rgba(255, 206, 124, .18); }
.match-preview {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(310px, 75%);
  padding: 30px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 26px;
  color: var(--ink);
  background: rgba(255,255,255,.95);
  box-shadow: 0 30px 80px rgba(0, 17, 30, .35);
  transform: translate(-50%, -50%) rotate(-2deg);
}
.match-preview p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.preview-rate { margin-bottom: 18px; color: #d79925; font-size: 64px; font-weight: 900; line-height: 1; }
.preview-rate small { font-size: 11px; letter-spacing: .08em; }
.match-preview strong, .match-preview span { display: block; }
.match-preview strong { font-size: 18px; }
.match-preview span { margin-top: 5px; color: var(--muted); font-size: 13px; }
.floating-card {
  position: absolute;
  z-index: 3;
  padding: 12px 17px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  background: rgba(11, 38, 61, .84);
  box-shadow: 0 14px 34px rgba(0, 17, 30, .28);
  backdrop-filter: blur(8px);
  font-size: 12px;
}
.card-like { top: 21%; right: 2%; }
.card-like span { color: #ff7878; }
.card-chat { right: 9%; bottom: 19%; }
.card-chat span { color: #65d3e6; }
.ad-detail { padding: 70px 30px; color: var(--ink); text-align: center; background: #f6fafb; }
.ad-detail p { margin: 0 0 5px; color: var(--blue-600); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.ad-detail h2 { margin: 0; font-size: clamp(25px, 4vw, 38px); }

@media (max-width: 920px) {
  .ad-main { grid-template-columns: 1fr; padding-top: 60px; }
  .ad-copy { max-width: 760px; }
  .ad-visual { min-height: 440px; }
  .match-preview { width: min(320px, 70%); }
}

@media (max-width: 600px) {
  .ad-header, .ad-main { width: min(100% - 30px, 1220px); }
  .ad-header { min-height: 68px; }
  .ad-header .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .ad-login-button { min-width: auto; padding: 7px 12px; font-size: 11px; }
  .ad-main { min-height: calc(100vh - 68px); padding: 50px 0 65px; }
  .ad-copy h1 { font-size: clamp(34px, 11vw, 50px); }
  .ad-description { font-size: 14px; line-height: 1.85; }
  .ad-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 15px; }
  .ad-visual { min-height: 390px; }
  .match-preview { padding: 24px; }
  .preview-rate { font-size: 52px; }
  .card-like { right: 0; }
  .card-chat { right: 2%; }
}

/* Topメニュー：広告上部配置・求人一覧スクロール */
.top-ad-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 25px;
  padding: 21px 25px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 15%, rgba(255,255,255,.17), transparent 30%),
    linear-gradient(120deg, #143f61, #1682a5);
  box-shadow: 0 14px 35px rgba(20, 64, 92, .16);
  overflow: hidden;
}
.top-ad-copy { min-width: 0; }
.top-ad-label { display: block; margin-bottom: 3px; color: #8fe1ee; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.top-ad-copy strong { display: block; font-size: 17px; }
.top-ad-copy small { display: block; margin-top: 3px; color: #d3eaf1; }
.top-ad-link {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 9px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.matching-scroll {
  max-height: min(49vh, 510px);
  padding: 3px 8px 14px 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #9bb9c7 #edf3f5;
  scrollbar-width: thin;
}
.matching-scroll::-webkit-scrollbar { width: 8px; }
.matching-scroll::-webkit-scrollbar-track { border-radius: 8px; background: #edf3f5; }
.matching-scroll::-webkit-scrollbar-thumb { border-radius: 8px; background: #9bb9c7; }
.profile-tip {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  color: #21415a;
  text-align: center;
  background: linear-gradient(135deg, #e9f7fa, #dceef5);
}
.profile-tip strong { display: block; margin-bottom: 5px; font-size: 18px; }

@media (max-width: 600px) {
  .top-ad-banner { align-items: flex-start; padding: 17px; }
  .top-ad-copy strong { font-size: 14px; }
  .top-ad-copy small { display: none; }
  .top-ad-link { padding: 8px 10px; font-size: 10px; }
  .matching-scroll { max-height: 54vh; padding-right: 5px; }
}

/* Topメニュー：ステータス欄の企業いいね表示 */
.card-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.company-like {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #d6e0e5;
  border-radius: 50%;
  color: #98a5ae;
  background: #fff;
  font-size: 16px;
  line-height: 1;
}
.company-like.is-liked {
  border-color: #f3c3c3;
  color: #e84e4e;
  background: #fff1f1;
}

/* 求人詳細画面 */
.job-detail-page { height: 100vh; padding-bottom: 138px; overflow: hidden; }
.job-detail-shell { width: min(1060px, calc(100% - 36px)); height: calc(100vh - 210px); margin: 0 auto; padding-top: 18px; }
.detail-ad { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 12px 20px; border-radius: 13px; color: #fff; background: linear-gradient(120deg, #174768, #1a89a7); }
.detail-ad span { display: block; color: #8fe0eb; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.detail-ad strong { display: block; font-size: 14px; }
.detail-ad a { flex: 0 0 auto; padding: 7px 11px; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; text-decoration: none; font-size: 10px; font-weight: 800; }
.job-detail-scroll { height: calc(100% - 78px); margin-top: 14px; padding: 0 4px 54px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #9bb9c7 #edf3f5; }
.job-title-panel { margin-top: 14px; padding: 17px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(20,57,82,.08); }
.job-title-topline, .job-state-icons, .job-title-grid { display: flex; align-items: center; }
.job-title-topline { justify-content: space-between; gap: 18px; }
.back-link { color: var(--blue-600); text-decoration: none; font-size: 12px; font-weight: 800; }
.job-state-icons { justify-content: flex-end; gap: 7px; min-height: 31px; }
.detail-status { padding: 4px 9px; border-radius: 99px; color: #fff; font-size: 10px; font-weight: 850; }
.detail-like { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #f0c3c3; border-radius: 50%; color: #e84e4e; background: #fff1f1; }
.detail-chat-icon { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--blue-600); background: var(--blue-100); text-decoration: none; }
.unread-badge { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 99px; color: #fff; background: #e84e4e; font-size: 9px; font-weight: 900; }
.job-title-grid { gap: 21px; margin-top: 13px; }
.detail-match { flex: 0 0 104px; padding: 14px 10px; border-radius: 13px; color: #8a6217; text-align: center; background: #fff0bd; }
.detail-match strong, .detail-match span { display: block; }
.detail-match strong { font-size: 31px; line-height: 1; }
.detail-match span { margin-top: 5px; font-size: 10px; font-weight: 750; }
.job-title-copy { min-width: 0; }
.company-label { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.job-title-copy h1 { margin: 0; font-size: clamp(18px, 2.4vw, 25px); line-height: 1.45; }
.answer-deadline { margin: 7px 0 0; color: #b76435; font-size: 12px; font-weight: 750; }
.answer-deadline span { margin-right: 7px; padding: 2px 6px; border-radius: 5px; color: #fff; background: #c87848; font-size: 9px; }
.job-body-scroll { margin-top: 14px; padding: 0 27px 50px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.job-hero-image { display: grid; place-items: end start; min-height: 220px; margin: 0 -27px 30px; padding: 28px; color: #fff; background: linear-gradient(135deg, rgba(14,52,78,.35), rgba(18,112,143,.8)), radial-gradient(circle at 70% 35%, #7cc4c2, #194e72 65%); }
.job-hero-image span { font-size: clamp(22px, 4vw, 40px); font-weight: 900; letter-spacing: .04em; }
.job-article-section { max-width: 820px; margin: 0 auto; padding: 24px 0; border-bottom: 1px solid #edf1f3; }
.article-kicker { margin: 0 0 4px; color: var(--blue-600); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.job-article-section h2 { margin: 0 0 12px; font-size: 21px; }
.job-article-section p { color: #536674; }
.job-copy { color: #536674; line-height: 1.9; overflow-wrap: anywhere; }
.job-description-block { margin-top: 22px; padding: 20px; border: 1px solid #e1e9ed; border-radius: 12px; background: #f8fbfc; }
.job-description-block h3 { margin: 0 0 9px; color: var(--ink); font-size: 15px; }
.job-requirements-section { padding-bottom: 38px; border-bottom: 0; }
.job-requirements-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-top: 22px; }
.job-requirement-card { min-width: 0; min-height: 82px; margin: 0; padding: 13px 18px 17px; border: 1px solid #bdd5df; border-radius: 8px; background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(235,246,249,.9)); box-shadow: 0 7px 20px rgba(20,57,82,.07); }
.job-requirement-card.is-wide { grid-column: 1 / -1; }
.job-requirement-card legend { max-width: calc(100% - 16px); padding: 2px 10px; color: #176d91; background: #fff; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.job-requirement-card p { margin: 2px 0 0; color: var(--ink); font-size: 13px; font-weight: 750; line-height: 1.7; overflow-wrap: anywhere; }
.company-overview-section { padding-bottom: 42px; border-bottom: 0; }
.company-overview-card { display: grid; grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr); overflow: hidden; margin-top: 18px; border: 1px solid #cadde5; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(20,57,82,.09); }
.company-overview-card header { display: flex; flex-direction: column; justify-content: center; padding: 28px 24px; color: #fff; background: linear-gradient(145deg, #174768, #1989a7); }
.company-overview-card header span { color: #9ce6ee; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.company-overview-card header h3 { margin: 8px 0 0; font-size: 19px; line-height: 1.5; }
.company-overview-card dl { margin: 0; padding: 11px 22px; }
.company-overview-card dl div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid #e5edf1; }
.company-overview-card dl div:last-child { border-bottom: 0; }
.company-overview-card dt { color: var(--muted); font-size: 10px; font-weight: 850; }
.company-overview-card dd { min-width: 0; margin: 0; color: var(--ink); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.company-overview-card dd a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.job-image-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin: 8px 0 24px; }
.job-image-gallery figure { margin: 0; overflow: hidden; border: 1px solid #dce6ea; border-radius: 12px; background: #f5f8fa; }
.job-image-gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.job-image-gallery figcaption { min-height: 35px; padding: 8px 11px; color: #536674; font-size: 12px; }
.job-carousel-indicators { display: none; }
.job-list { padding-left: 21px; color: #536674; }
.job-list li { margin: 7px 0; }
.two-column-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.job-conditions dl { margin: 0; }
.job-conditions dl div { display: grid; grid-template-columns: 130px 1fr; padding: 10px 0; border-bottom: 1px solid #edf1f3; }
.job-conditions dt { font-weight: 800; }
.job-conditions dd { margin: 0; color: #536674; }
.detail-fixed-actions { position: fixed; z-index: 14; left: 50%; bottom: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(680px, calc(100% - 28px)); padding: 11px; border: 1px solid var(--line); border-radius: 16px 16px 0 0; background: rgba(255,255,255,.97); box-shadow: 0 -10px 30px rgba(20,57,82,.12); transform: translateX(-50%); backdrop-filter: blur(10px); }
.detail-apply-button, .detail-chat-button, .detail-decline-button, .detail-accept-button, .detail-entry-button { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px; font-weight: 850; text-decoration: none; }
.detail-apply-button { border: 0; color: #38270f; background: linear-gradient(#ffd993, var(--amber)); }
.detail-apply-button.is-applied { color: #74818a; background: #e4e9ed; cursor: default; }
.detail-chat-button { color: #fff; background: var(--blue-600); }
.detail-chat-button.is-disabled { color: #83909a; background: #e4e9ed; }
.detail-bottom-nav { height: 64px; }
.apply-modal-layer { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 18px; visibility: hidden; opacity: 0; background: rgba(8,30,46,.68); backdrop-filter: blur(7px); transition: opacity .18s, visibility .18s; }
.apply-modal-layer.is-open { visibility: visible; opacity: 1; }
.apply-modal { width: min(100%, 500px); padding: 34px; border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(5,29,47,.3); }
.modal-company { margin: 0 0 4px; color: var(--blue-600); font-size: 12px; font-weight: 800; }
.apply-modal h2 { margin: 0 0 10px; font-size: 24px; }
.modal-job-title { margin: 0 0 18px; padding: 12px; border-radius: 9px; background: #f1f6f8; font-size: 13px; font-weight: 750; }
.modal-message { color: var(--muted); font-size: 13px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.modal-actions.single { grid-template-columns: 1fr; }
.secondary-button, .primary-modal-button { min-height: 45px; border-radius: 9px; font-weight: 800; }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.primary-modal-button { border: 0; color: #3c2a12; background: var(--amber); }
.apply-complete-modal { text-align: center; }
.entry-register-modal { width: min(100%, 560px); }
.entry-form-grid { display: grid; grid-template-columns: 100px 1fr; gap: 14px 18px; margin: 24px 0; text-align: left; }
.entry-form-grid label { padding-top: 11px; color: var(--ink); font-weight: 800; }
.entry-form-grid input, .entry-form-grid textarea { width: 100%; padding: 11px 13px; border: 1px solid #b9ccd5; border-radius: 9px; color: var(--ink); background: #f9fcfd; font: inherit; resize: vertical; }
.entry-form-grid input:focus, .entry-form-grid textarea:focus { border-color: var(--teal); outline: 3px solid rgba(15,122,132,.13); }
.complete-check { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; color: #fff; background: #55a66a; font-size: 27px; font-weight: 900; }
.modal-open { overflow: hidden; }

@media (max-width: 650px) {
  .job-detail-page { padding-bottom: 130px; }
  .job-detail-shell { width: calc(100% - 22px); height: calc(100vh - 200px); padding-top: 10px; }
  .detail-ad { min-height: 55px; padding: 10px 13px; }
  .detail-ad strong { font-size: 11px; }
  .detail-ad a { padding: 6px 8px; }
  .job-detail-scroll { height: calc(100% - 65px); margin-top: 10px; padding-bottom: 46px; }
  .job-title-panel { padding: 13px; }
  .job-state-icons { gap: 4px; }
  .detail-status { padding: 3px 6px; font-size: 8px; }
  .job-title-grid { align-items: flex-start; gap: 11px; }
  .detail-match { flex-basis: 76px; padding: 11px 7px; }
  .detail-match strong { font-size: 24px; }
  .job-title-copy h1 { font-size: 15px; }
  .answer-deadline { font-size: 10px; }
  .job-body-scroll { padding: 0 17px 40px; }
  .job-requirements-grid { grid-template-columns: 1fr; gap: 9px; }
  .job-requirement-card.is-wide { grid-column: auto; }
  .company-overview-card { grid-template-columns: 1fr; }
  .company-overview-card header { padding: 20px; }
  .company-overview-card dl { padding: 8px 18px; }
  .company-overview-card dl div { grid-template-columns: 1fr; gap: 4px; }
  .job-hero-image { min-height: 160px; margin: 0 -17px 20px; padding: 18px; }
  .two-column-detail { grid-template-columns: 1fr; gap: 0; }
  .job-conditions dl div { grid-template-columns: 90px 1fr; }
  .detail-fixed-actions { bottom: 60px; }
  .detail-bottom-nav { height: 60px; }
  .apply-modal { padding: 27px 22px; }
  .entry-form-grid { grid-template-columns: 1fr; gap: 7px; }
  .entry-form-grid label { padding-top: 4px; }
}
.signup-fixed-cta{position:fixed;z-index:20;right:clamp(18px,4vw,54px);bottom:24px;padding:16px 26px;border-radius:999px;color:#fff;background:linear-gradient(135deg,var(--blue-600),#18a58c);box-shadow:0 12px 30px rgba(15,98,119,.3);font-weight:900;text-decoration:none}.signup-page{min-height:100vh;overflow:hidden;background:#e8f4f6}.signup-lp{position:fixed;inset:0;padding:10vh 8vw;color:#12384c;background:radial-gradient(circle at 75% 30%,#9de3d8 0,transparent 24%),linear-gradient(135deg,#eef9f8,#dcebf7)}.signup-lp h1{margin:24px 0 14px;font-size:clamp(2.5rem,7vw,5.5rem);line-height:1.08}.signup-lp p{font-size:1.1rem}.signup-backdrop{position:fixed;z-index:30;inset:0;display:grid;place-items:center;padding:18px;background:rgba(9,34,51,.58);backdrop-filter:blur(5px)}.signup-wizard{width:min(720px,100%);max-height:min(820px,94vh);overflow-y:auto;padding:clamp(22px,4vw,42px);border-radius:20px;background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.25)}.signup-head{position:sticky;z-index:2;top:-42px;margin:-42px -42px 26px;padding:25px 42px 16px;background:#fff}.signup-head p{margin:0 0 9px;color:var(--blue-600);font-size:.8rem;font-weight:900;letter-spacing:.12em}.signup-progress{height:6px;overflow:hidden;border-radius:99px;background:#e4edf1}.signup-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue-600),#18a58c);transition:width .25s}.signup-step{display:none}.signup-step.is-active{display:block}.signup-step h2{margin:0 0 8px;color:#153c50;font-size:clamp(1.45rem,4vw,2rem)}.signup-step>p{margin:0 0 24px;color:#607682}.signup-step label:not(.choice){display:block;margin:18px 0 6px;color:#294b5d;font-weight:800}.signup-step select,.signup-step input:not([type=checkbox]):not([type=radio]),.signup-step textarea{width:100%;margin-top:7px;padding:12px 13px;border:1px solid #b7ccd5;border-radius:9px;background:#fbfdfe;font:inherit}.signup-step textarea{min-height:105px;resize:vertical}.nested-field{margin-top:18px;padding:18px;border-radius:12px;background:#eff7f7}.nested-field[hidden]{display:none}.inline-selects,.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.signup-step fieldset{margin:20px 0;padding:16px;border:1px solid #cbdce3;border-radius:11px}.signup-step legend{padding:0 7px;color:#294b5d;font-weight:900}.choice{display:inline-flex;align-items:flex-start;gap:7px;margin:7px 18px 7px 0}.choice input{margin-top:3px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.terms-scroll{max-height:300px;overflow-y:auto;margin:20px 0;padding:18px;border:1px solid #cbdce3;border-radius:10px;background:#f8fbfc}.terms-scroll h3{color:#214b61}.campaign-actions{display:grid;gap:10px}.button-option,.signup-next,.signup-nav button{padding:13px 18px;border:0;border-radius:9px;color:#fff;background:var(--blue-600);font-weight:900;cursor:pointer}.button-option.secondary{color:#2a5568;background:#e4eef2}.terms-agree{padding:14px;border-radius:9px;background:#eaf7f3}.signup-nav{position:sticky;bottom:-42px;display:flex;gap:10px;margin:30px -42px -42px;padding:16px 42px 25px;background:#fff;border-top:1px solid #e1eaee}.signup-nav button:first-child{color:#31586a;background:#e8f0f3}.signup-nav button:nth-child(2){margin-left:auto;color:#31586a;background:#fff;border:1px solid #aac2cc}.signup-nav .signup-next{margin-left:auto}.signup-nav button:disabled{opacity:.35;cursor:not-allowed}.signup-thanks{text-align:center;padding:42px 0}.thanks-icon{width:74px;height:74px;margin:0 auto 22px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#18a58c;font-size:2rem}.signup-thanks .signup-next{display:inline-block;margin-top:18px;text-decoration:none}@media(max-width:620px){.signup-wizard{max-height:96vh;padding:24px 18px;border-radius:15px}.signup-head{top:-24px;margin:-24px -18px 22px;padding:20px 18px 14px}.signup-nav{bottom:-24px;margin:26px -18px -24px;padding:14px 18px 20px}.choice-grid,.form-grid{grid-template-columns:1fr}.signup-fixed-cta{right:14px;bottom:14px}.education{max-height:220px;overflow-y:auto}}

/* パスワード再発行モーダル */
.forgot-link[type="button"] { align-self: start; padding: 0; border: 0; cursor: pointer; background: transparent; font: inherit; }
.forgot-password-modal { width: min(100%, 460px); }
.modal-kicker { margin: 0 0 3px; color: var(--blue-600); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.password-sent-modal { width: min(100%, 430px); text-align: center; }
.password-sent-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 15px; border-radius: 50%; color: #fff; background: #55a66a; font-size: 27px; font-weight: 900; }
.password-sent-modal .primary-button { width: 100%; margin-top: 10px; }

/* お知らせモーダル */
.notification-link[type="button"], .text-link[type="button"] { border: 0; cursor: pointer; font: inherit; }
.notice-modal-layer { position: fixed; z-index: 35; inset: 0; display: grid; place-items: start center; padding: 78px 18px 18px; visibility: hidden; opacity: 0; background: rgba(8,30,46,.38); transition: opacity .16s, visibility .16s; }
.notice-modal-layer.is-open { visibility: visible; opacity: 1; }
.notice-modal { width: min(620px, 100%); max-height: min(720px, calc(100vh - 100px)); overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(5,29,47,.3); }
.notice-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.notice-modal-header p, .notice-modal-header h2 { margin: 0; }
.notice-modal-header p { color: var(--blue-600); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.notice-modal-header h2 { font-size: 21px; }
.notice-close { width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: #edf3f5; font-size: 21px; cursor: pointer; }
.notice-modal-list { max-height: calc(100vh - 190px); overflow-y: auto; padding: 18px 22px 28px; }
.notice-message { display: grid; grid-template-columns: 38px 1fr; gap: 11px; margin-bottom: 13px; }
.notice-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e5f1f4; }
.notice-bubble { position: relative; padding: 13px 15px; border: 1px solid #d9e4e8; border-radius: 4px 13px 13px; background: #f9fbfc; }
.notice-message.is-unread .notice-bubble { border-color: #e9c56f; background: #fff8df; }
.notice-bubble p { margin: 0 0 7px; font-size: 12px; line-height: 1.6; }
.notice-bubble time { color: var(--muted); font-size: 9px; }
.notice-new { position: absolute; top: -7px; right: 9px; padding: 2px 7px; border-radius: 99px; color: #fff; background: #e84e4e; font-size: 8px; font-weight: 900; }

/* プロフィール画面 */
.profile-page { height: 100vh; height: 100dvh; padding-bottom: 126px; overflow: hidden; }
.profile-shell { width: min(980px, calc(100% - 36px)); height: calc(100vh - 186px); height: calc(100dvh - 186px); margin: 0 auto; padding-top: 18px; }
.profile-form { height: calc(100% - 78px); margin-top: 14px; }
.profile-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.profile-heading p, .profile-heading h1 { margin: 0; }
.profile-heading p { color: var(--blue-600); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.profile-heading h1 { font-size: 22px; }
.profile-heading > span { padding: 5px 9px; border-radius: 99px; color: var(--muted); background: #edf3f5; font-size: 10px; font-weight: 800; }
.profile-scroll { height: calc(100% - 68px); margin-top: 12px; overflow-y: auto; padding: 1px 4px 86px; scrollbar-width: thin; scrollbar-color: #9bb9c7 #edf3f5; }
.profile-card { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.profile-card fieldset { display: grid; gap: 17px; margin: 0; padding: 0; border: 0; }
.profile-field-group { display: grid; grid-template-columns: 120px repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; padding-bottom: 17px; border-bottom: 1px solid #e8eef1; }
.profile-label { color: var(--ink); font-size: 12px; font-weight: 900; }
.profile-field-group label, .profile-upload { color: var(--muted); font-size: 9px; font-weight: 800; }
.profile-field-group input:not([type="radio"]), .profile-field-group select { display: block; width: 100%; margin-top: 5px; padding: 10px 11px; border: 1px solid #b9ccd5; border-radius: 8px; color: var(--ink); background: #f9fcfd; font: inherit; }
.profile-field-group input:disabled { opacity: 1; color: #455965; background: #eef3f5; }
.profile-wide { grid-column: span 2; }
.address-group { grid-template-columns: 120px 180px 1fr; }
.profile-documents { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-documents article { display: grid; gap: 9px; }
.pdf-thumbnail { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: 1fr 1fr; gap: 1px 11px; padding: 13px; border: 1px solid #d6e2e7; border-radius: 10px; color: var(--ink); background: #f8fbfc; text-decoration: none; }
.pdf-mark { grid-row: 1 / 3; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #d64f4f; font-size: 10px; font-weight: 900; }
.pdf-thumbnail strong { align-self: end; font-size: 11px; }
.pdf-thumbnail small { color: var(--blue-600); font-size: 9px; }
.profile-upload { display: none; padding: 9px 11px; border: 1px dashed #9eb9c5; border-radius: 8px; cursor: pointer; text-align: center; }
.profile-upload input { display: none; }
.profile-card fieldset:not(:disabled) .profile-upload { display: block; }
.profile-fixed-actions { position: fixed; z-index: 15; left: 50%; bottom: 76px; display: grid; grid-template-columns: minmax(150px, 360px) minmax(170px, 240px); gap: 10px; width: min(610px, calc(100% - 40px)); transform: translateX(-50%); }
.profile-edit-button, .profile-password-button { display: grid; place-items: center; min-height: 46px; border-radius: 10px; box-shadow: 0 8px 25px rgba(20,57,82,.18); font-weight: 900; text-align: center; text-decoration: none; }
.profile-edit-button { border: 0; color: #38270f; background: linear-gradient(#ffd993, var(--amber)); }
.profile-password-button { border: 1px solid #8db3c4; color: var(--navy-800); background: linear-gradient(#fff, #eaf3f7); }
.profile-password-button:hover { background: #dfeef4; }
.profile-bottom-nav { height: 64px; }
.profile-success { position: absolute; z-index: 2; right: 20px; margin: 7px 0 0; padding: 8px 13px; border-radius: 8px; color: #17623a; background: #e5f7ed; font-size: 12px; font-weight: 800; }
.profile-document-empty { cursor: default; }
.profile-card .errorlist { margin: 5px 0 0; padding: 0; color: #b3261e; list-style: none; font-size: 10px; }
@media (max-width: 650px) {
  .notice-modal-layer { padding: 60px 10px 10px; }
  .profile-page { padding-bottom: 120px; }
  .profile-shell { width: calc(100% - 22px); height: calc(100vh - 180px); height: calc(100dvh - 180px); padding-top: 10px; }
  .profile-form { height: calc(100% - 65px); margin-top: 10px; }
  .profile-card { padding: 15px; }
  .profile-field-group, .address-group { grid-template-columns: 1fr 1fr; }
  .profile-label { grid-column: 1 / -1; }
  .profile-wide { grid-column: 1 / -1; }
  .profile-documents { grid-template-columns: 1fr; }
  .profile-fixed-actions { bottom: 70px; grid-template-columns: 1fr 1fr; width: calc(100% - 22px); gap: 7px; }
  .profile-edit-button, .profile-password-button { min-height: 44px; padding: 7px; font-size: 11px; }
  .profile-bottom-nav { height: 60px; }
}

/* ログインパスワード変更画面 */
.password-change-page { min-height: 100vh; padding-bottom: 64px; }
.password-change-shell { width: min(620px, calc(100% - 36px)); margin: 0 auto; padding: 42px 0; }
.password-change-heading p, .password-change-heading h1 { margin: 0; }
.password-change-heading p { color: var(--blue-600); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.password-change-heading h1 { margin-top: 3px; font-size: clamp(24px, 5vw, 32px); }
.password-change-notice { margin: 18px 0; padding: 13px 16px; border-left: 4px solid var(--blue-600); border-radius: 8px; color: #405a67; background: #eaf5f8; font-size: 12px; }
.password-change-form { display: grid; gap: 18px; padding: clamp(22px, 5vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.password-change-field { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 850; }
.password-change-field input { width: 100%; padding: 12px 13px; border: 1px solid #b9ccd5; border-radius: 9px; background: #f9fcfd; }
.password-change-field input:focus { outline: 3px solid rgba(25,143,197,.14); border-color: var(--blue-600); }
.password-required { margin-left: 6px; color: #c64040; font-size: 9px; }
.password-change-error { margin: 0; padding: 11px 13px; border-radius: 8px; color: #9f241e; background: #fdeceb; font-size: 12px; }
.password-change-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 5px; }
.password-change-submit, .password-change-back { display: grid; place-items: center; min-height: 45px; border-radius: 9px; font-weight: 900; text-decoration: none; }
.password-change-submit { border: 0; color: #fff; background: linear-gradient(135deg, var(--blue-600), #1877a2); }
.password-change-back { border: 1px solid #adc4ce; color: #35576a; background: #f4f8fa; }
.password-complete-icon { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: #18a58c; font-size: 28px; font-weight: 900; }
@media (max-width: 650px) {
  .password-change-shell { width: calc(100% - 22px); padding: 24px 0; }
}

/* マッチング条件画面 */
.condition-page { height: 100vh; height: 100dvh; padding-bottom: 64px; overflow: hidden; }
.condition-shell { width: min(980px, calc(100% - 36px)); height: calc(100vh - 136px); height: calc(100dvh - 136px); margin: 0 auto; padding-top: 18px; }
.condition-heading { display: flex; align-items: center; gap: 28px; margin: 14px 0; padding: 13px 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.condition-heading p, .condition-heading h1 { margin: 0; }
.condition-heading p { color: var(--blue-600); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.condition-heading h1 { font-size: 22px; }
.condition-table-wrap { height: calc(100% - 159px); overflow-y: auto; padding: 1px 4px 34px; scrollbar-width: thin; scrollbar-color: #9bb9c7 #edf3f5; }
.condition-table { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.condition-row { display: grid; grid-template-columns: 1fr 76px; align-items: center; gap: 18px; min-height: 67px; padding: 11px 16px 11px 22px; border-bottom: 1px solid #e7eef1; }
.condition-row:last-child { border-bottom: 0; }
.condition-row span, .condition-row strong { display: block; }
.condition-row span { margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 800; }
.condition-row strong { color: var(--ink); font-size: 13px; }
.condition-row button { min-height: 36px; border: 1px solid #a9c7d2; border-radius: 8px; color: var(--blue-600); background: #f4fafb; font-weight: 850; cursor: pointer; }
.condition-row button:hover { background: #e8f3f6; }
.condition-options { display: grid; gap: 9px; margin: 22px 0; }
.condition-options label { padding: 10px 12px; border: 1px solid #d7e3e8; border-radius: 8px; background: #f8fbfc; }
.condition-options input { margin-right: 8px; accent-color: var(--blue-600); }
.condition-field { display: grid; gap: 7px; margin: 22px 0; color: var(--ink); font-size: 12px; font-weight: 800; }
.condition-field select, .condition-field textarea { width: 100%; padding: 11px 13px; border: 1px solid #b9ccd5; border-radius: 9px; color: var(--ink); background: #f9fcfd; font: inherit; }
.condition-bottom-nav { height: 64px; }
.condition-success { position: absolute; z-index: 2; right: 20px; margin: -5px 0 0; padding: 8px 13px; border-radius: 8px; color: #17623a; background: #e5f7ed; font-size: 12px; font-weight: 800; }
.condition-modal .apply-modal { max-height: min(760px, calc(100vh - 36px)); overflow-y: auto; }
.condition-job-list { display: grid; gap: 15px; margin: 20px 0; }
.condition-job-list fieldset { margin: 0; padding: 11px 14px 14px; border: 1px solid #cbdde5; border-radius: 13px; background: linear-gradient(145deg, #f5fafc 0%, #edf6f8 100%); box-shadow: 0 5px 14px rgba(28, 86, 109, .07); transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; }
.condition-job-list fieldset:hover { border-color: #9fc3d0; box-shadow: 0 8px 20px rgba(28, 86, 109, .11); transform: translateY(-1px); }
.condition-job-list fieldset:has(.condition-category-jobs:not([hidden])) { border-color: #78b5c7; background: linear-gradient(145deg, #f0fafb 0%, #e3f3f6 100%); box-shadow: 0 7px 18px rgba(25, 119, 147, .12); }
.condition-job-category legend { padding: 0 4px; color: var(--ink); font-size: 13px; font-weight: 850; }
.condition-job-category legend label { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 12px 5px 8px; border: 1px solid #c1d8e1; border-radius: 999px; background: #fff; box-shadow: 0 2px 7px rgba(28, 86, 109, .08); cursor: pointer; }
.condition-category-toggle { width: 17px; height: 17px; margin-right: 7px; accent-color: var(--blue-600); }
.condition-category-jobs[hidden] { display: none; }
.condition-category-jobs { display: grid; gap: 7px; padding-top: 7px; }
.condition-job-row { padding: 10px 12px; border: 1px solid transparent; border-radius: 9px; background: rgba(255, 255, 255, .7); transition: border-color .16s, background .16s; }
.condition-job-row:hover { border-color: #c3dce5; background: #fff; }
.condition-job-row > label { display: flex; align-items: center; color: #264a5b; font-size: 12px; font-weight: 750; cursor: pointer; }
.condition-job-row > label input { width: 16px; height: 16px; margin-right: 8px; accent-color: var(--blue-600); }
.condition-job-row:last-child { border-bottom: 0; }
.condition-experience { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0 24px; padding: 9px 11px; border-left: 3px solid #73b9ca; border-radius: 0 8px 8px 0; background: #edf8fa; }
.condition-experience label { color: #476875; font-size: 11px; font-weight: 750; }
.condition-experience input { width: 64px; padding: 7px; border: 1px solid #aac9d4; border-radius: 7px; color: var(--ink); background: #fff; }
@media (max-width: 650px) {
  .condition-page { padding-bottom: 60px; }
  .condition-shell { width: calc(100% - 22px); height: calc(100vh - 132px); height: calc(100dvh - 132px); padding-top: 10px; }
  .condition-heading { gap: 15px; margin: 10px 0; padding: 10px 12px; }
  .condition-heading h1 { font-size: 18px; }
  .condition-table-wrap { height: calc(100% - 137px); }
  .condition-row { grid-template-columns: 1fr 60px; gap: 10px; padding: 10px 11px 10px 14px; }
  .condition-row strong { font-size: 12px; }
  .condition-bottom-nav { height: 60px; }
  .job-image-gallery.is-carousel-ready { display: block; margin-right: 0; padding: 0; overflow: hidden; }
  .job-image-gallery.is-carousel-ready figure { display: none; width: 100%; animation: carousel-fade .3s ease; }
  .job-image-gallery.is-carousel-ready figure.is-active { display: block; }
  .job-image-gallery.is-carousel-ready .job-carousel-indicators { display: flex; justify-content: center; gap: 8px; padding: 12px 0 2px; }
  .job-carousel-indicators button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #bdcdd4; box-shadow: 0 0 0 4px transparent; transition: width .18s, border-radius .18s, background .18s, box-shadow .18s; }
  .job-carousel-indicators button.is-active { width: 25px; border-radius: 999px; background: var(--blue-600); box-shadow: 0 0 0 3px rgba(24, 118, 151, .12); }
}

@keyframes carousel-fade { from { opacity: .35; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

/* 画面遷移ローディング */
.page-loading-modal { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 13px; visibility: hidden; opacity: 0; color: #fff; background: rgba(8,30,46,.68); font-size: 13px; font-weight: 800; letter-spacing: .05em; pointer-events: none; transition: opacity .12s, visibility .12s; }
.page-loading-modal.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.page-loading-spinner { width: 42px; height: 42px; border: 4px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: page-loading-spin .72s linear infinite; }
@keyframes page-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .page-loading-spinner { animation-duration: 1.5s; } }

.browser-notification-stack { position: fixed; z-index: 1100; top: 82px; right: 16px; display: grid; gap: 10px; width: min(390px, calc(100% - 32px)); }
.browser-notification-toast { display: grid; gap: 5px; width: 100%; padding: 14px 16px; border: 1px solid #8bc5d2; border-radius: 12px; color: var(--ink); text-align: left; background: #f2fbfc; box-shadow: 0 12px 30px rgba(12, 63, 84, .18); transition: opacity .25s, transform .25s; }
.browser-notification-toast strong { color: var(--blue-600); font-size: 13px; }
.browser-notification-toast span { color: #496573; font-size: 12px; line-height: 1.55; }
.browser-notification-toast.is-hidden { opacity: 0; transform: translateX(24px); }

/* チャット画面 */
.chat-page { height: 100vh; padding-bottom: 134px; overflow: hidden; }
.chat-live-toast { position: fixed; z-index: 24; top: 82px; right: 18px; display: flex; max-width: min(420px, calc(100% - 36px)); align-items: flex-start; gap: 14px; padding: 12px 14px; border: 1px solid #86cda0; border-radius: 9px; color: #166534; background: #ecfdf3; box-shadow: 0 10px 28px rgba(16,35,63,.2); font-size: 13px; font-weight: 750; transition: .2s; }
.chat-live-toast.is-error { color: #991b1b; border-color: #f0aaaa; background: #fff1f1; }
.chat-live-toast button { width: 22px; height: 22px; padding: 0; flex: 0 0 22px; border: 0; color: inherit; background: transparent; font-size: 18px; line-height: 1; }
.chat-live-toast.is-hidden { visibility: hidden; opacity: 0; transform: translateY(-6px); }
#chat-live-toast[hidden], [data-chat-error][hidden] { display: none !important; }
[data-chat-error] { color: #991b1b; padding: 12px; background: #fff1f1; }
.chat-shell { width: min(1060px, calc(100% - 36px)); height: calc(100vh - 198px); margin: 0 auto; padding-top: 18px; }
.chat-job-title { margin-top: 14px; }
.chat-scroll { height: calc(100% - 276px); margin-top: 14px; padding: 24px clamp(16px, 4vw, 42px) 34px; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: #f5f9fa; scrollbar-width: thin; scrollbar-color: #9bb9c7 #edf3f5; }
.chat-date-separator { display: flex; align-items: center; gap: 12px; margin: 2px 0 22px; color: var(--muted); font-size: 10px; }
.chat-date-separator::before, .chat-date-separator::after { content: ""; flex: 1; height: 1px; background: #dce7eb; }
.chat-message { display: flex; align-items: flex-end; gap: 10px; max-width: 76%; margin: 0 0 22px; }
.chat-message.is-sent { justify-content: flex-end; margin-left: auto; }
.chat-avatar { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--blue-600); font-size: 12px; font-weight: 900; }
.chat-avatar.is-user { background: #d39735; }
.chat-bubble { padding: 13px 15px; border: 1px solid #d7e2e7; border-radius: 15px 15px 15px 4px; background: #fff; box-shadow: 0 5px 14px rgba(20,57,82,.06); }
.is-sent .chat-bubble { border-color: #b9d8df; border-radius: 15px 15px 4px 15px; background: #dff1f4; }
.chat-bubble p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.7; }
.chat-message time { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.is-sent time { text-align: right; }
.chat-attachment { display: inline-flex; align-items: center; margin-top: 10px; padding: 7px 9px; border-radius: 7px; color: var(--blue-600); background: #fff; text-decoration: none; font-size: 11px; font-weight: 800; }
.chat-compose { position: fixed; z-index: 15; left: 50%; bottom: 64px; display: grid; grid-template-columns: 1fr 92px; gap: 10px; width: min(760px, calc(100% - 28px)); padding: 11px; border: 1px solid var(--line); border-radius: 15px 15px 0 0; background: rgba(255,255,255,.98); box-shadow: 0 -10px 30px rgba(20,57,82,.12); transform: translateX(-50%); }
.chat-input-wrap { position: relative; }
.chat-input-wrap textarea { display: block; width: 100%; min-height: 46px; max-height: 110px; padding: 12px 48px 10px 14px; border: 1px solid #b9ccd5; border-radius: 10px; color: var(--ink); background: #f9fcfd; font: inherit; resize: vertical; }
.chat-file-button { position: absolute; top: 7px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; background: #e6f0f3; }
.chat-send-button { border: 0; border-radius: 10px; color: #fff; background: var(--blue-600); font-weight: 900; }
.chat-bottom-nav { height: 64px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.modal-link-button { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.chat-link[type="button"], .detail-chat-icon[type="button"], .detail-chat-button[type="button"] { border: 0; cursor: pointer; font: inherit; }
@media (max-width: 650px) {
  .chat-page { padding-bottom: 126px; }
  .chat-shell { width: calc(100% - 22px); height: calc(100vh - 186px); padding-top: 10px; }
  .chat-job-title { margin-top: 10px; }
  .chat-scroll { height: calc(100% - 260px); margin-top: 10px; padding: 18px 12px 28px; }
  .chat-message { max-width: 92%; }
  .chat-avatar { flex-basis: 29px; width: 29px; height: 29px; }
  .chat-compose { bottom: 60px; grid-template-columns: 1fr 66px; padding: 8px; }
  .chat-bottom-nav { height: 60px; }
}
.matching-card .status-badge { white-space: nowrap; }
.matching-card .chat-link.js-chat-confirm { font-size: 0; }
.matching-card .chat-link.js-chat-confirm::before { content: "💬"; font-size: 17px; }
.desired-job-block{background:#f4f9fa}.desired-job-row{padding:9px 0;border-bottom:1px solid #dbe7eb}.desired-job-row:last-child{border-bottom:0}.experience-fields{margin:4px 0 4px 28px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.experience-fields[hidden]{display:none}.experience-fields label{margin:0!important;font-size:.85rem}.experience-fields input{width:78px!important;margin:0 5px!important;padding:8px!important}@media(max-width:620px){.experience-fields{grid-template-columns:1fr}.desired-categories{grid-template-columns:1fr}}
.experience-categories{margin-bottom:4px}@media(max-width:620px){.experience-categories{grid-template-columns:1fr}}
.signup-backdrop,.signup-wizard,.signup-step{max-width:100%;overflow-x:hidden}.signup-step *{min-width:0;box-sizing:border-box}.signup-step select,.signup-step input,.signup-step textarea{max-width:100%}.signup-step .choice{white-space:normal;overflow-wrap:anywhere}.desired-job-row,.experience-fields,.choice-grid,.form-grid,.inline-selects{max-width:100%}@media(max-width:420px){.inline-selects{grid-template-columns:1fr}.experience-fields input{width:min(78px,100%)!important}}
.postal-search-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.postal-search-field label{margin-bottom:0!important}.postal-search-field button{min-height:45px;padding:10px 18px;border:0;border-radius:9px;color:#fff;background:var(--blue-600);font-weight:900;cursor:pointer}.postal-search-field button:disabled{opacity:.55;cursor:wait}.postal-search-status{min-height:20px;margin:7px 0 10px;color:#607682;font-size:.82rem}.postal-search-status.is-success{color:#087a5b}.postal-search-status.is-error{color:#b42318}@media(max-width:420px){.postal-search-field{grid-template-columns:1fr}.postal-search-field button{width:100%}}
