:root {
  --color-green: #27ae60;
  --color-text: #333;
  --font-main: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.9;
}

.job-viewer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.job-viewer h1 {
  text-align: center;
  font-size: 1.3rem;
  margin: 1.5rem 0 2rem;
}

.page-subtitle {
  text-align: center;
  font-size: 0.95rem;
  margin: -1.2rem 0 2rem;
  color: #555;
}

.job-viewer form {
  margin-top: 2rem;
}

/* フォーム */
label {
  display: block;
  margin-top: 1rem;
  font-weight: 700;
}

input,
select,
button {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6rem;
  font-size: 1rem;
}

button {
  margin-top: 1.5rem;
  background: var(--color-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
}

/* ローディング */
.loading-fa {
  text-align: center;
  margin-top: 2rem;
  font-weight: 700;
  color: #555;
}

.loading-fa i {
  margin-right: 6px;
  animation: search 1.2s ease-in-out infinite;
}

@keyframes search {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.loading-fa .dots {
  display: inline-block;
  animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
  0%   { width: 0; }
  33%  { width: .5em; }
  66%  { width: 1em; }
  100% { width: 1.5em; }
}

/* ロゴ */
.site-logo {
  text-align: center;
  margin: 1.5rem 0;
}
.site-logo img {
  max-width: 180px;
}

/* タイトル */
.job-title-wrap {
  text-align: center;
  margin: 2.5rem 0 2rem;
}

.job-title-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-green);
  background: #eaf7ef;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.job-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.4;
}

/* 紹介文 */
.section {
  margin: 2rem 0;
  padding: 20px;
  border: 2px solid var(--color-green);
  border-radius: 14px;
  background: #f8fff9;
}

.intro-catch {
  text-align: center;
  font-weight: 700;
  font-size: 1.1em;
  margin-bottom: 1rem;
}
.intro-catch::before {
  content: "〜 ";
  color: var(--color-green);
}
.intro-catch::after {
  content: " 〜";
  color: var(--color-green);
}
.section p + p {
  margin-top: .9em;
}

/* 見出し */
.likes-title {
  text-align: center;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}

/* チャート */
.like-chart-wrap {
  max-width: 420px;
  margin: 0 auto 1.5rem;
}
.like-chart-wrap canvas {
  width: 100%;
  height: 320px;
}

/* 「こんな好きにおすすめ」 */
.likes-subtitle {
  font-weight: 700;
  margin: 1.5rem auto .6rem;
  max-width: 420px;
}

/* 好きリスト（●ズレ修正） */
.like-text-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  max-width: 420px;
}

.like-text-list li {
  position: relative;
  padding-left: 1.4em;
  margin: .5em 0;
  line-height: 1.6;
}

.like-text-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.15em;   /* ← ズレ修正ポイント */
  color: var(--color-green);
  font-size: .9em;
}

/* POINT */
.point {
  margin: 2.5rem 0;
  padding: 2rem 1.5rem 1.4rem;
  border-radius: 18px;
  background: #e8f6d9;
  position: relative;
}
.point::before {
  content: "\f0eb  POINT";
  position: absolute;
  top: -12px;
  left: 20px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--color-green);
  color: #fff;
  font-family: "Font Awesome 5 Free";
  font-weight: 700;
}

/* ルビ */
ruby { ruby-position: over; }
rt { font-size: .6em; color: #777; }

/* フッター */
.result-footer {
  margin-top: 3rem;
  text-align: center;
}
.pdf-btn {
  padding: .7rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background: var(--color-green);
  color: #fff;
  font-weight: 700;
}

/* ツール内 寄付案内 */
.tool-donation-note {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;

  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
}

.tool-donation-note p {
  margin: 0 0 0.6rem;
}

.tool-donation-note .donation-link {
  margin-top: 0.8rem;
}

.tool-donation-note .donation-link a {
  color: #555;
  text-decoration: underline;
}

.tool-donation-note .donation-link a:hover {
  color: var(--color-green);
}

/* 印刷 */
@media print {
  button { display: none; }
}
