:root {
  color-scheme: light;
  /* オフホワイト×ネイビーのブランドトークン。就活サイト的な明るい青は使わない。 */
  --paper: #faf9f7;          /* ベース: オフホワイト */
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-soft: #f2efe9;   /* 薄いオフホワイト面。水色は使わない。 */
  --ink: #1f2a33;            /* 本文。可読性優先の濃色。 */
  --ink-muted: #6b7280;
  --muted: var(--ink-muted);
  --line: rgba(31, 58, 95, 0.16);
  --navy: #1f3a5f;           /* 主役色: ネイビー一色基調 */
  --navy-soft: #eceff4;      /* ナビ等の淡いネイビー面 */
  --gold: #8a6d1f;           /* Sバッジ系ゴールド */
  /* 既存の--green/--green-soft参照をネイビーへ集約し、全画面の青を一括で置換する。 */
  --green: var(--navy);
  --green-soft: var(--navy-soft);
  --orange: #b7791f;
  --shadow: 0 10px 30px rgba(31, 58, 95, 0.08);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(31, 58, 95, 0.45);
  outline-offset: 3px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  color: var(--ink);
}
textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
label { color: var(--muted); font-size: 12px; font-weight: 700; }
label input, label textarea, label select { margin-top: 8px; }

.web-app { min-height: 100vh; overflow-x: hidden; }
.site-header {
  min-height: 68px;
  padding: 10px clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(15, 57, 123, 0.16);
  border-radius: 10px;
  background: #fffcf6;
  box-shadow: 0 4px 12px rgba(15, 57, 123, 0.16);
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand strong { display: block; font-size: 16px; font-weight: 750; letter-spacing: -0.02em; }
.brand small {
  display: block;
  margin-top: 1px;
  font-size: 8px;
  letter-spacing: 0.13em;
  color: var(--muted);
}

nav { display: flex; gap: 4px; }
nav button {
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 160ms ease-out, color 160ms ease-out, transform 100ms ease-out;
}
nav button:hover, nav button.is-active {
  background: var(--green-soft);
  color: var(--green);
}
nav button:active { transform: scale(0.97); }
.header-status {
  justify-self: end;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.header-account {
  justify-self: end;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.header-account:hover { background: var(--green-soft); }

main { min-height: calc(100vh - 150px); }
.hero {
  max-width: 1240px;
  min-height: 650px;
  margin: 0 auto;
  padding: 88px clamp(22px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
}
.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.hero h1, .workspace-section h1 {
  margin: 0;
  font-family: inherit;
  font-weight: 760;
  letter-spacing: -0.045em;
  font-optical-sizing: auto;
}
.hero h1 {
  font-size: clamp(46px, 6vw, 80px);
  line-height: 1.08;
}
.hero__copy > p {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.hero__actions { display: flex; gap: 12px; margin-top: 32px; }
.button {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 120ms ease-out, box-shadow 160ms ease-out, background-color 160ms ease-out;
}
.button:not(:disabled):hover { transform: translateY(-1px); }
.button:not(:disabled):active { transform: scale(0.97); }
.button:disabled { cursor: not-allowed; opacity: 0.55; }
.button--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: none;
}
.button--primary:not(:disabled):hover { background: #16304f; }
.button--secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}
.button--danger {
  border-color: #b44b43;
  background: transparent;
  color: #9e312a;
}
.hero__panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(150%);
}
.hero__panel-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
}
.flow-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.flow-row > span { color: var(--green); font-weight: 750; }
.flow-row strong { display: block; font-size: 15px; }
.flow-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

/* ===== ホーム: 判定を主役にした静かな一画面 ===== */
.home {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) clamp(20px, 5vw, 40px) 72px;
}
.home-lead { margin-bottom: 40px; }
.home-lead h1 {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.home-lead > p {
  margin: 16px 0 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.judgment-board__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.judgment-board__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.judgment-board__head .text-button {
  flex: none;
  white-space: nowrap;
  font-size: 13px;
}
.judgment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.judgment-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 4vw, 28px);
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
/* 判定バッジを主役に。全画面共通コンポーネントを、ホームでは大きく見せる。 */
.judgment-row .rating-badge {
  min-height: 44px;
  padding: 9px 18px;
  font-size: 21px;
}
.judgment-row__body { min-width: 0; }
.judgment-row__body .link-heading {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.01em;
}
.judgment-row__body small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.judgment-row__figure { text-align: right; white-space: nowrap; }
.figure__label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.figure__value {
  display: block;
  margin-top: 2px;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 780;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
/* 幅が足りない時は縮めず改行する。横スクロールを生まない。 */
.home-actions .button { flex: 0 0 auto; }
@media (max-width: 520px) {
  .judgment-row {
    grid-template-columns: auto 1fr;
    grid-template-areas: "badge body" "figure figure";
    row-gap: 10px;
  }
  .judgment-row .rating-badge { grid-area: badge; }
  .judgment-row__body { grid-area: body; }
  .judgment-row__figure {
    grid-area: figure;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .figure__value { margin-top: 0; }
  /* 狭い画面ではCTAを縦に積み、端の見切れをなくす。 */
  .home-actions { flex-direction: column; align-items: stretch; }
  .home-actions .button { width: 100%; }
}

/* 狭い画面: ヘッダーは1段のまま。ナビだけ横スクロールし、ログインは常に右端に残す。 */
@media (max-width: 640px) {
  .site-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
  }
  .site-header .brand { flex: 0 0 auto; }
  .site-header nav {
    flex: 0 1 auto;
    min-width: 0;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav button { flex: 0 0 auto; }
  .site-header .header-account { flex: 0 0 auto; justify-self: auto; margin-left: auto; }
}

.section {
  padding: 82px clamp(22px, 5vw, 80px);
  background: var(--surface-solid);
  color: var(--ink);
}
.section > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.section__heading h2, .section__heading h1 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 750;
  letter-spacing: -0.035em;
}
.section__heading--wide p {
  margin-top: 18px;
  color: var(--muted);
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.action-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(18px) saturate(150%);
  transition: transform 180ms ease-out, background-color 180ms ease-out, box-shadow 180ms ease-out;
}
.action-card:hover { transform: translateY(-4px); background: var(--surface-solid); box-shadow: var(--shadow); }
.action-card:active { transform: scale(0.98); }
.action-card__number { display: block; color: var(--green); }
.action-card strong {
  display: block;
  margin-top: 35px;
  font-family: inherit;
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -0.025em;
}
.action-card p { color: var(--muted); line-height: 1.8; }
.action-card__link { display: block; margin-top: 22px; font-size: 12px; }

.workspace-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px clamp(20px, 5vw, 56px);
}
.workspace-section h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.12;
}
.company-search {
  margin-top: 42px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: blur(18px);
}
.company-search label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}
.company-search > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.company-search input {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: white;
}
.system-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.empty-panel {
  margin-top: 34px;
  padding: 60px 28px;
  border: 1px dashed rgba(60, 60, 67, 0.32);
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.54);
}
.empty-panel__mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 24px;
}
.empty-panel h2 { margin: 0; font-family: inherit; font-weight: 720; letter-spacing: -0.02em; }
.empty-panel p { color: var(--muted); }
.request-list {
  max-width: 520px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}
.request-list li {
  padding: 13px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: none;
}
.form-grid__wide { grid-column: 1 / -1; }

.search-box {
  display: block;
  margin-top: 38px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: none;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.catalog-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
  box-shadow: none;
  transition: border-color 160ms ease-out;
}
.catalog-card:hover { border-color: var(--navy); }
.catalog-card.is-selected {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.catalog-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.catalog-card h2 {
  margin: 7px 0 0;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-optical-sizing: auto;
}
.catalog-card > p { color: var(--muted); line-height: 1.7; }
.catalog-card > small { color: var(--muted); }
.fact-list { margin: 20px 0 0; }
.fact-list > div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.fact-list dt { color: var(--muted); font-size: 11px; }
.fact-list dd { margin: 5px 0; }
.fact-list small { color: var(--muted); font-size: 9px; }
.compare-panel, .request-panel {
  margin-top: 46px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: none;
}
.comparison-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.comparison-table article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
}
.comparison-table h3 { margin-top: 0; font-family: inherit; letter-spacing: -0.015em; }
.comparison-table p { color: var(--muted); line-height: 1.6; }
.request-panel form, .inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 20px;
}
.empty-copy { color: var(--muted); }

.select-company {
  display: block;
  max-width: 480px;
  margin-top: 32px;
}
.document-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.document-editor {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.document-editor--wide { grid-column: 1 / -1; }
.document-editor__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  margin-bottom: 14px;
}
.document-editor__head h2 {
  margin: 0;
  font-family: inherit;
  font-weight: 700;
}
.document-editor textarea { min-height: 260px; }
.toolbar, .data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.application-list { margin-top: 22px; }
.application-row {
  display: grid;
  grid-template-columns: 1fr 130px 1.4fr 150px auto;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--surface);
}
.application-row:first-child { border-top: 1px solid var(--line); }
.text-button {
  border: 0;
  background: transparent;
  color: #9e312a;
  cursor: pointer;
}
.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* display:none の file input は iPhone Safari で選択結果が返らないことがある。
   実体のある透明な入力欄を押下対象にする。 */
.file-button__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 3px solid rgba(31, 58, 95, 0.45);
  outline-offset: 3px;
}

.document-grid, .plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 38px;
}
.document-card, .web-plan {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.document-card > span { color: var(--orange); font-family: inherit; }
.document-card h2, .web-plan h2 {
  margin: 24px 0 9px;
  font-family: inherit;
  font-size: 27px;
  font-weight: 720;
  letter-spacing: -0.02em;
}
.document-card p { min-height: 48px; color: var(--muted); }
.web-plan.is-featured { border: 2px solid var(--green); }
.web-plan__head { display: flex; justify-content: space-between; }
.web-plan__head h2 { margin: 0; }
.web-plan__head span {
  height: fit-content;
  padding: 4px 8px;
  background: var(--green);
  color: white;
  font-size: 10px;
}
.web-plan__price {
  display: block;
  margin-top: 26px;
  font-size: 24px;
}
.web-plan__price small { color: var(--ink-muted); font-size: 13px; font-weight: 600; }
.web-plan__positioning {
  margin: 14px 0 4px;
  color: var(--green);
  font-weight: 800;
}
.web-plan__tagline {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--ink-muted);
}
.web-plan ul {
  min-height: 104px;
  margin: 23px 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 2;
}
.web-plan__limits {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 12px;
  margin: 16px 0 10px;
  border-radius: 12px;
  background: var(--surface-soft);
}
.web-plan__limits span { color: var(--ink-muted); }
.web-plan__example {
  min-height: 48px;
  color: var(--ink-muted);
  font-size: 13px;
}
.purchase-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.6;
}
.purchase-confirmation input { width: auto; margin-top: 3px; }
.inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.age-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 720px;
  padding: 14px 16px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.age-confirmation input { margin-top: 3px; }

.ai-action-panel { margin-top: 16px; }
.ai-confirmation {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}
.ai-confirmation > p { margin: 0; color: var(--muted); }
.ai-confirmation dl { display: grid; gap: 9px; margin: 0; }
.ai-confirmation dl div {
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.ai-confirmation dt { color: var(--green); font-weight: 800; }
.ai-confirmation dd {
  max-height: 160px;
  margin: 6px 0 0;
  overflow: auto;
  white-space: pre-wrap;
}
.ai-confirmation label { display: flex; align-items: flex-start; gap: 9px; }
.ai-result {
  padding: 24px;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.ai-result pre {
  overflow: auto;
  white-space: pre-wrap;
  font: inherit;
  line-height: 1.8;
}
.legal-page { max-width: 880px; }
.legal-page h2 { margin: 34px 0 10px; font-family: inherit; }
.legal-page p { line-height: 1.9; }
.legal-list { border: 1px solid var(--line); background: var(--surface); }
.legal-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.legal-list div:first-child { border-top: 0; }
.legal-list dt { color: var(--muted); }
.legal-list dd { margin: 0; }
.operator-import {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.operator-import label { display: grid; gap: 8px; }
.operator-import textarea { min-height: 420px; font-family: inherit; }
.operator-guide {
  display: grid;
  gap: 18px;
  margin: 28px 0;
  padding: 24px;
  border: 1px solid #cbdde8;
  border-radius: 18px;
  background: #f3f9fd;
}
.operator-guide h2 { margin: 5px 0 10px; font-family: inherit; font-size: 21px; }
.operator-guide ol { display: grid; gap: 7px; margin: 0; padding-left: 22px; line-height: 1.7; }
.operator-guide p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.operator-guide__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.operator-guide__actions .button { font-size: 13px; }
.operator-prompt-copy { display: grid; min-width: min(100%, 280px); gap: 4px; color: var(--ink); }
.operator-prompt-copy span { font-size: 11px; font-weight: 750; }
.operator-prompt-copy input { min-height: 42px; margin: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font: inherit; }

.report-section__content {
  white-space: pre-wrap;
  line-height: 1.85;
}

.premium-teaser {
  position: relative;
  overflow: hidden;
  padding: 26px 20px 20px;
  border: 1px solid var(--line, #d8dce7);
  border-radius: 18px;
  background: var(--surface-solid);
}
.premium-teaser__fade { height: 46px; margin: -26px -20px 20px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--surface-solid)); }
.premium-teaser__remaining { margin: 0 0 18px; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.premium-teaser ul { margin: 16px 0 20px; padding: 0; list-style: none; }
.premium-teaser li { padding: 8px 0; border-top: 1px solid var(--line); }
.premium-teaser li::before { content: "✓"; margin-right: 9px; color: var(--green); font-weight: 800; }

.selection-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 30px 0 0;
}
.selection-summary > div { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.selection-summary span { display: block; color: var(--muted); font-size: 12px; }
.selection-summary strong { display: block; margin-top: 8px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.04em; }

.account-panel {
  margin-top: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.account-panel > div {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}
.account-panel > div:first-child { border-top: 0; }
.account-panel span { color: var(--muted); }

footer {
  padding: 32px clamp(20px, 5vw, 64px);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}
footer strong { color: var(--ink); font-family: inherit; }
footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}
footer button:hover { color: var(--ink); }

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .site-header nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .header-status { grid-column: 2; grid-row: 1; }
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .action-grid { grid-template-columns: 1fr; }
  .action-card { min-height: 190px; }
  .catalog-grid, .document-editor-grid { grid-template-columns: 1fr; }
  .document-editor--wide { grid-column: auto; }
  .application-row { grid-template-columns: 1fr 1fr; }
  .application-row strong { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .site-header { position: static; }
  .header-status { display: none; }
  .header-account { grid-column: 2; grid-row: 1; }
  nav { width: calc(100vw - 36px); }
  nav button { flex: 0 0 auto; }
  .hero { min-height: 0; padding: 50px 20px 62px; }
  .hero h1 { font-size: 42px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .button { width: 100%; }
  .hero__panel { padding: 22px; }
  .section, .workspace-section { padding: 58px 20px; }
  .document-grid, .plan-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; padding: 20px; }
  .form-grid__wide { grid-column: auto; }
  .catalog-card__head { flex-direction: column; }
  .comparison-table { grid-template-columns: 1fr; }
  .request-panel form, .inline-form { grid-template-columns: 1fr; }
  .application-row { grid-template-columns: 1fr; }
  .application-row strong { grid-column: auto; }
  .company-search { padding: 18px; }
  .company-search > div { grid-template-columns: 1fr; }
  .legal-list div { grid-template-columns: 1fr; gap: 6px; }
  footer { flex-direction: column; gap: 7px; }
}

@media print {
  .site-header, footer, .no-print { display: none !important; }
  body, :root { background: white; }
  .workspace-section { max-width: none; padding: 0; }
  .document-editor-grid { display: block; margin: 0; }
  .document-editor {
    break-inside: avoid;
    margin-bottom: 20px;
    padding: 0;
    border: 0;
  }
  .document-editor textarea {
    min-height: 0;
    border: 0;
    overflow: visible;
    white-space: pre-wrap;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy, .hero__panel, .workspace-section {
    animation: appear 0.38s ease-out both;
  }
  @keyframes appear {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}

/* 一覧カード：見出しリンクとフッター */
.link-heading {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.link-heading:hover { text-decoration-color: var(--orange); }
.catalog-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.catalog-card__meta div { min-width: 0; }
.catalog-card__meta dt { color: var(--muted); font-size: 10px; font-weight: 700; }
.catalog-card__meta dd { margin: 3px 0 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.catalog-card__state { display: block; margin-top: 10px; color: var(--muted); }
.catalog-card__foot { margin-top: 18px; }
.catalog-card__summary { margin-bottom: 0; }
.summary-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rating-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
/* 判定バッジは全画面で同一。S=ゴールド, A=ネイビー, B=グレー, C=薄グレー。 */
.rating-badge--s { color: var(--gold); background: #f7ebca; border-color: rgba(138, 109, 31, 0.35); }
.rating-badge--a { color: var(--navy); background: #e6ecf3; border-color: rgba(31, 58, 95, 0.28); }
.rating-badge--b { color: #55606e; background: #e9ebee; border-color: rgba(85, 96, 110, 0.28); }
.rating-badge--c { color: #7c8896; background: #f1f2f4; border-color: rgba(124, 136, 150, 0.28); }
.rating-badge--pending { color: var(--muted); background: #f2f2f0; border-color: var(--line); }

/* 出典チップ：文末に小さく置くボタン */
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: baseline;
  transition: transform 120ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out;
}
a.source-chip:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
a.source-chip:active { transform: scale(0.96); }
.source-chip--plain { cursor: default; }
.source-chip--official { border-color: var(--green); color: var(--green); }
.source-chip--public_agency { border-color: #2f6f8f; color: #2f6f8f; }
.source-chip--press_release { border-color: #7a5c9e; color: #7a5c9e; }
.source-chip--job_board { border-color: #b07d1f; color: #b07d1f; }
.source-chip--news { border-color: var(--orange); color: var(--orange); }
.source-chip--review { border-color: #9a9a8c; color: #6f6f62; }

/* 企業詳細ページ */
.company-detail__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.company-detail__head { margin-top: 8px; }
.company-detail__head h1 {
  margin: 6px 0 0;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-optical-sizing: auto;
}
.company-detail__summary-label { margin-top: 20px; }
.company-detail__summary { margin-top: 0; color: var(--muted); line-height: 1.7; max-width: 720px; }
.company-detail__identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.company-detail__location { color: var(--muted); font-size: 13px; }
.company-detail__badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}
.company-detail__badge.is-sample { background: #efe6d8; color: #8a6a2f; }

.detail-block {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.detail-block--rating {
  padding: 24px;
  border: 1px solid #cbdde8;
  border-radius: 20px;
  background: #f3f9fd;
}
.detail-block__rating-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.detail-block__rationale { margin: 14px 0 8px; font-size: 17px; font-weight: 700; line-height: 1.7; }
.detail-block__glossary { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.detail-block h2 {
  margin: 0 0 6px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.detail-block__note { color: var(--muted); font-size: 12px; margin: 0 0 14px; }
.detail-block--inference {
  background: rgba(255, 190, 44, 0.12);
  border: 1px solid rgba(255, 159, 10, 0.25);
  border-radius: 18px;
  padding: 18px 20px;
}
.detail-block--inference h2 { font-size: 18px; }
.detail-block--inference p { color: var(--muted); line-height: 1.7; margin: 0; }
.detail-block--pr p { color: var(--muted); margin: 0; }

.basics-list { margin: 0; }
.basics-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.basics-list > div:first-child { border-top: none; }
.basics-list dt { color: var(--muted); font-size: 12px; font-weight: 700; margin: 0; }
.basics-list dd { margin: 0; line-height: 1.7; }

.detail-fact-list { list-style: none; margin: 0; padding: 0; }
.detail-fact-list > li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.detail-fact-list > li:first-child { border-top: none; }
.detail-fact-list__label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}
.detail-fact-list__value { line-height: 1.8; }

.detail-sources {
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}
.detail-sources summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}
.detail-sources ul { list-style: none; margin: 14px 0 0; padding: 0; }
.detail-sources > ul > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.detail-sources__name { font-size: 13px; }
.detail-sources__url { color: var(--muted); font-size: 11px; word-break: break-all; }

@media (max-width: 640px) {
  .basics-list > div { grid-template-columns: 1fr; gap: 2px; }
  .catalog-card__meta, .selection-summary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .catalog-card, .source-chip, .action-card, nav button { transition: none; }
  .button:not(:disabled):active { transform: none; }
  .button:not(:disabled):hover, .catalog-card:hover, .action-card:hover, .source-chip:hover, nav button:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .hero__panel { background: var(--surface-solid); backdrop-filter: none; }
}
