/* kaigopay.com 2026-11 redesign theme（介護：人の温かさを感じる介護メディア）
   方向：クリーム・琥珀色・温かな橙のCTA・丸ゴシックのやわらかい見出し。看護（白・紺の明朝・ピンク）とは別のブランド体験。
   資格・施設・職種ごとの給与比較を主役に。ui.css / legacy-top.css の後に読み込む。戻すときはこのファイルを消すだけ。
   人物写真はルーシーの素材待ち。届くまでは既存のイラスト（使用権確認済み）のまま。 */
:root {
  --c-cream: #fbf5ea;
  --c-cream-2: #fff9f0;
  --c-amber: #f0a43a;
  --c-orange: #b0451a;     /* CTA：白文字でコントラスト 5.5:1（WCAG AA。旧 #c45a14 は 4.36 で不足） */
  --c-orange-dk: #9a440c;
  --c-brown: #4a2f1c;      /* 見出し・本文の濃い色 */
  --c-line: #eedfc8;
  --c-head: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  /* 部品帳（ui.css）の色をこのサイトだけ温色に */
  --u-navy: #4a2f1c;
  --u-blue: #a64d12;
  --u-blue-50: #fff4e4;
  --u-blue-30: #e9c79a;
  --u-line: #eedfc8;
  --u-line-2: #f1e5d3;
  --u-line-3: #f6ecdf;
  --u-row: #fffaf3;
  --u-head: var(--c-head);
  /* 前の作りのトップ（legacy-top.css）の色 */
  --navy2: #4a2f1c; --blue: #a64d12; --blue-50: #fff4e4; --blue-100: #fde6c6;
  --y: #b0451a; --y-dk: #9a440c; --y-50: #fff1df; --line: #eedfc8; --mint: #fff4e4; --bg2: #fff4e4;
  --head: var(--c-head);
}
.home { --y: #b0451a; --y-dk: #9a440c; --navy2: #4a2f1c; --bg2: #fff4e4; }
body.u-page { background: var(--c-cream); }
.u-header { background: var(--c-cream-2); box-shadow: 0 1px 0 var(--c-line); }
.u-footer { background: #4a2f1c; }

/* 見出し：やわらかい丸ゴシック、濃い茶 */
.u-h1, .u-kv-h1, .u-sec-h, .u-verdict, .u-more-h, .u-more-in h2, .u-step-h, .u-card-name, .home h2, .h-diag h2 {
  font-family: var(--c-head); font-weight: 700; color: var(--c-brown); letter-spacing: .02em;
}
.u-sec-h::before, .home > section > h2::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--c-amber); vertical-align: middle;
}

/* キービジュアル：朝の日だまりのようなクリーム〜琥珀 */
.u-kv {
  background: radial-gradient(circle at 85% 20%, rgba(255, 214, 150, .55) 0 14%, transparent 42%),
    radial-gradient(circle at 70% 90%, rgba(255, 230, 196, .9) 0 10%, transparent 36%),
    linear-gradient(160deg, #fffaf2 0%, #fdeedb 100%);
  border: 1px solid var(--c-line);
}
.u-kv-kick { color: var(--c-orange-dk); border-bottom-color: var(--c-amber); }
.u-kv-h1 { text-shadow: none; }
.u-kv-h1 em { background: linear-gradient(transparent 64%, #ffd59a 64%); }
.u-kv-lead { color: #5b4636; text-shadow: none; }

/* CTA：温かな橙（白文字） */
.u-kv-go .u-btn, .u-btn:not(.u-btn-soft), .btn-n {
  background: var(--c-orange); color: #fff; box-shadow: 0 4px 0 var(--c-orange-dk), 0 10px 22px rgba(196, 90, 20, .22); border-radius: 16px;
}
.u-kv-go .u-btn:hover, .u-btn:not(.u-btn-soft):hover, .btn-n:hover { background: #b0500f; filter: none; }
.btn-y { color: #fff !important; }  /* legacy-top.css が !important で紺文字にしているのを白に戻す */
.u-step + .u-step .u-btn, .u-step:has(.u-ad) .u-btn { background: var(--u-blue-50); color: var(--u-blue); box-shadow: none; }

/* 主役の導線と診断：白いカード＋温かい縁、診断パネルはクリーム */
.h-menu a { border-color: var(--c-line); border-radius: 16px; }
.h-diag { background: #fff4e4; }
.dg-form, .dg-res { border-radius: 18px; box-shadow: 0 6px 20px rgba(120, 70, 20, .08); }
.u-nav a[aria-current], .u-header.u-open .u-nav a[aria-current] { border-bottom-color: var(--c-amber); }
.u-mark { box-shadow: inset 0 -2px 0 #ffd59a; }

/* 職場の種類別の平均給与（施設比較）：行を温かい縞に、金額を太く */
.home table tr:nth-child(even) td { background: #fffaf3; }
.home table td:last-child { font-weight: 700; color: var(--c-brown); }

/* ===== 2026-11 redesign v2（見本画像どおり）：写真の大きな帯・4つの入口・おすすめの情報（写真カード） ===== */
.u-main:has(.rd-hero) { max-width: 1080px; }
.rd-hero, .rd-hero-txt, .rd-card-t, .rd-sec, .rd-pop { text-align: left; }
.rd-hero { position: relative; overflow: hidden; margin-top: 12px; border-radius: 24px; min-height: 440px; display: flex; align-items: center; background: #fdeedb; box-shadow: 0 10px 30px rgba(120, 70, 20, .1); }
.rd-hero picture { position: absolute; inset: 0; }
.rd-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; display: block; }
.rd-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255,250,242,.97) 0%, rgba(255,248,236,.9) 34%, rgba(255,248,236,.25) 58%, rgba(255,248,236,0) 70%); }
.rd-hero-txt { position: relative; z-index: 2; padding: 40px 56px; max-width: 660px; }
.rd-h1 { margin: 0 0 16px; font-family: var(--c-head); font-weight: 700; font-size: clamp(26px, 3.3vw, 42px); line-height: 1.45; color: var(--c-brown); letter-spacing: .02em; }
.rd-h1 em { font-style: normal; color: var(--c-orange); }
.rd-lead { margin: 0 0 24px; font-size: 15px; line-height: 1.8; color: #5b4636; }
.rd-go { margin: 0; }
.rd-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; background: var(--c-orange); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 0 var(--c-orange-dk), 0 10px 22px rgba(196, 90, 20, .25); }
.rd-btn:hover { background: #b0500f; color: #fff; }
.rd-btn-ic { font-size: 22px; } .rd-btn-chev { font-size: 18px; }
.rd-note { position: absolute; z-index: 2; right: 12px; bottom: 8px; margin: 0; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.75); font-size: 11px; color: #6b5442; }

.rd-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.rd-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px 16px; background: #fff; border: 1px solid var(--c-line); border-radius: 18px; color: var(--c-brown); font-weight: 700; font-size: 15px; line-height: 1.45; text-align: center; text-decoration: none; box-shadow: 0 4px 14px rgba(120, 70, 20, .06); }
.rd-tile .rd-ic { font-size: 34px; color: var(--c-orange); }
.rd-tile:hover { border-color: var(--c-amber); }

.rd-pop { margin-top: 30px; }
.rd-sec { margin: 0 0 14px; padding: 0; border: 0; font-family: var(--c-head); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); color: var(--c-brown); }
.rd-sec::after { display: none; }
.rd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rd-card { position: relative; display: flex; color: var(--c-brown); text-decoration: none; background: #fff; border: 1px solid var(--c-line); border-radius: 18px; box-shadow: 0 4px 14px rgba(120, 70, 20, .06); }
.rd-card:hover { border-color: var(--c-amber); }
.rd-card-photo { flex-direction: column; overflow: hidden; padding: 0 0 14px; }
.rd-card-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.rd-card-t { display: grid; gap: 2px; padding: 12px 36px 0 16px; }
.rd-card-t b { font-size: 16px; }
.rd-card-chev { position: absolute; right: 14px; bottom: 16px; font-size: 18px; color: var(--c-orange); }
.home .h-menu { display: none; }  /* 同じ行き先が上の入口とボタンに揃ったので前の3行メニューは隠す（リンクはHTMLに残る） */

@media (max-width: 767px) {
  .rd-hero { min-height: 380px; border-radius: 18px; align-items: flex-start; }
  .rd-hero-img { object-position: 60% 30%; }
  .rd-hero::before { background: linear-gradient(90deg, rgba(255,250,242,.96) 0%, rgba(255,248,236,.85) 48%, rgba(255,248,236,.1) 74%, rgba(255,248,236,0) 100%); }
  .rd-hero-txt { padding: 26px 18px 22px; max-width: 78%; }
  .rd-h1 { font-size: 23px; margin-bottom: 10px; }
  .rd-lead { font-size: 12.5px; margin-bottom: 16px; }
  .rd-btn { padding: 12px 14px; font-size: 14px; gap: 6px; }
  .rd-tiles { gap: 8px; margin-top: 12px; }
  .rd-tile { padding: 12px 4px 10px; font-size: 12px; border-radius: 14px; }
  .rd-tile .rd-ic { font-size: 26px; }
  .rd-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rd-card-t b { font-size: 13.5px; }
  .rd-card-t { padding: 8px 28px 0 10px; }
  .rd-card-chev { right: 8px; bottom: 12px; }
  .rd-pop { margin-top: 22px; }
}
@media (max-width: 767px) {
  .rd-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
  .rd-card { scroll-snap-align: start; }
}

/* スマホ（767px以下）のヒーロー：見本どおり文字を写真に重ねる（2026-11-13 オーナーOK）。ぼかしは白0.5まで、高さは中身で決める。
   写真 img/rd/hero-sp.webp は二人が右・左に文字の空き。顔とボタンが重ならないよう縦位置を調整（決まり：ai-ceo research/design-rules/hero-overlay.md） */
@media (max-width: 767px) {
  .rd-hero { min-height: 0; height: auto; align-items: flex-start; }   /* 高さは中身（見出し・説明・ボタン）で決める。下に空きを作らない */
  .rd-hero-img { object-position: 60% 6%; }
  .rd-hero::before { background: linear-gradient(90deg, rgba(255,255,255,.50) 0%, rgba(255,255,255,.32) 30%, rgba(255,255,255,0) 52%); }
  .rd-hero-txt { max-width: 58%; padding: 22px 8px 22px 16px; }
  .rd-h1 { font-size: 22px; font-weight: 800; line-height: 1.3; margin-bottom: 8px;
    text-shadow: 0 0 6px rgba(255,255,255,.95), 0 0 14px rgba(255,255,255,.85); }
  .rd-lead { font-size: 12px; line-height: 1.55; margin-bottom: 12px;
    text-shadow: 0 0 5px rgba(255,255,255,1), 0 0 10px rgba(255,255,255,.9); }
  .rd-lead br { display: none; }
  .rd-btn { font-size: 13px; padding: 10px 12px; gap: 5px; }
}
@media (max-width: 359px) { .rd-hero .rd-hero-txt { max-width: 62%; } .rd-hero .rd-h1 { font-size: 18px; } .rd-lead { font-size: 11.5px; } .rd-hero .rd-btn { font-size: 12px; padding: 10px 9px; } }
@media (max-width: 767px) { .rd-hero-img { object-position: 100% 32%; } .rd-hero-txt { max-width: 54%; } .rd-hero .rd-h1 { font-size: 21px; } .rd-btn { font-size: 12.5px; padding: 10px 10px; } }
@media (max-width: 767px) { .rd-hero .rd-hero-txt { max-width: 57%; } .rd-hero .rd-h1 { font-size: 20px; } .rd-hero-img { object-position: 100% 55%; } }
@media (max-width: 359px) { .rd-hero .rd-h1 { font-size: 17px; } .rd-hero-img { object-position: 100% 70%; } }

/* トップ以外のページ（2026-11-13 オーナーOK、看護と同じ考え方を介護の色で）：新しいトップと同じ雰囲気 — left-aligned bold navy heading on a soft sky card,
   illustration small on the right as support (not the star), pink accents, rounded cards */
.u-first { text-align: left; }
.u-first .u-hero { display: grid; grid-template-columns: 1fr 34%; grid-template-rows: auto 1fr; align-items: start; gap: 0 10px; padding: 22px 16px 0;
  border-radius: 20px; background: linear-gradient(135deg, #ffffff 0%, var(--c-cream) 70%); box-shadow: 0 8px 24px rgba(74,47,28,.07); overflow: hidden; }
.u-first .u-h1 { grid-column: 1; text-align: left; font-size: 24px; line-height: 1.35; }
.u-first .u-line { grid-column: 1; text-align: left; margin-top: 10px; padding-bottom: 20px; font-size: 13px; }
.u-first .u-mark, .u-first .u-num { color: #b0451a; background: none; } /* 文字はコントラスト 4.5:1 以上（WCAG AA）になる濃さ */
.u-first .u-hero-img { mix-blend-mode: multiply; grid-column: 2; grid-row: 1 / span 2; align-self: end; width: 100%; max-width: 150px; margin: 0 0 0 auto; }
.u-choice { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.u-choice-btn { min-height: 48px; border: 2px solid var(--c-orange); border-radius: 999px; background: #fff; color: var(--c-orange); font-size: 14px; }
.u-choice-btn:hover, .u-choice-btn[aria-pressed="true"] { background: #fff1e2; border-color: var(--c-orange); }
/* section headings: same as the top's "人気のコンテンツ" — serif navy with a short pink bar */
.u-sec-h, .u-page h2:not(.u-step-h) { position: relative; padding-bottom: 10px; font-family: var(--c-head); color: var(--c-brown); }
.u-sec-h::after, .u-page h2:not(.u-step-h)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--c-orange); }
/* step blocks become cards like the top's popular cards */
.u-step { margin: 14px 0 0; padding: 18px 16px 20px; border: 1px solid var(--c-line); border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgba(74,47,28,.06); }
.u-step + .u-step { padding-top: 18px; border-top: 1px solid var(--c-line); }
.u-step-img { height: 120px; }
.u-step-num b { color: var(--c-orange); }
.u-progress i.u-on { background: var(--c-orange); box-shadow: none; }
.u-toc { border-radius: 18px; background: var(--c-cream); }
.u-table th { background: var(--c-cream); }
@media (min-width: 768px) { .u-first .u-hero { grid-template-columns: 1fr 160px; grid-template-rows: auto auto; align-content: center; padding: 26px 28px 0; min-height: 200px; } .u-first .u-line { padding-bottom: 26px; }
  .u-first .u-hero-img { max-height: 190px; width: auto; } .u-first .u-h1 { font-size: 28px; } }
.u-first .u-hero:not(:has(.u-hero-img)) { grid-template-columns: 1fr; }   /* イラストが無いページは1列 */
.u-choice-btn { font-size: 13px; padding: 0 10px; text-align: center; }
