/*
Theme Name: 島しごと図鑑
Author: 株式会社島の人事部
Description: 宮古島の会社・働く人・暮らしを紹介する読みものメディアのテーマ
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: shima-zukan
*/

:root {
  --bg: #f7f5f0;
  --card: #fff;
  --ink: #23303d;
  --muted: #6b7785;
  --line: #e6e2d9;
  --blue: #1f74a6;
  --blue-d: #175a82;
  --blue-soft: #e7f1f8;
  --orange: #e8602c;
  --orange-d: #cf4f1d;
  --radius: 10px;
  --container: 1120px;
  --font-body: "Noto Sans JP", system-ui, sans-serif;
  --font-head: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --font-hand: "Zen Maru Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
}

/* 見出しなど短い文だけ文節で改行する（本文に使うと行末ががたつく） */
h1, h2, h3, .hero__lead, .article__lead, .page-head__lead, .card__text { word-break: auto-phrase; }

img { max-width: 100%; height: auto; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.construction-note {
  background: #fff4d6;
  color: #7a5a00;
  font-size: 12px;
  text-align: center;
  padding: 4px;
}

/* ---------- header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 22px; min-height: 68px; }

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.logo svg { width: 50px; height: 32px; }
.logo--white { color: #fff; }

.area-tabs { display: flex; gap: 6px; }
.area-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f0eee9;
  color: #b3aea4;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.area-tab small { font-size: 9px; font-weight: 400; }
.area-tab.is-active { background: var(--blue); color: #fff; padding: 7px 14px; }

.gnav { display: flex; gap: 22px; margin-left: auto; }
.gnav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.gnav a:hover, .gnav a.is-current { color: var(--blue); }
.gnav a.is-current { box-shadow: inset 0 -2px 0 var(--blue); }

.btn-sm-outline {
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm-outline:hover { background: var(--blue-soft); }

/* ---------- photo ---------- */
.ph {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #cfe6ef, #8fc3da);
  overflow: hidden;
}
.ph--wide { aspect-ratio: 2 / 1; }
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 10px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(20, 50, 70, .38);
  color: #fff;
  font-size: 11px;
}
.ph--sea   { background: linear-gradient(160deg, #bfe6f1 0%, #6fbcd8 55%, #3e98bf 100%); }
.ph--green { background: linear-gradient(160deg, #e3f0cf 0%, #a8d08c 60%, #78b163 100%); }
.ph--sand  { background: linear-gradient(160deg, #f6e8cf 0%, #e6c79a 60%, #cfa773 100%); }
.ph--sky   { background: linear-gradient(160deg, #e2f0f7 0%, #b5d6e6 60%, #9bbfcf 100%); }
.ph--city  { background: linear-gradient(160deg, #efeae3 0%, #d7cdbf 60%, #bfb2a1 100%); }
.ph--img { background: #e8e4dc; }
.ph--img::after { display: none; }
.ph--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 440px;
  background: linear-gradient(115deg, #e4f1f6 0%, #f3f7f2 55%, #fbf6ec 100%);
  overflow: hidden;
}
.hero__text {
  align-self: center;
  padding: 40px 40px 40px max(20px, calc((100vw - var(--container)) / 2 + 20px));
}
.hero__title {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 80px);
  line-height: 1.25;
}
.hero__title span { display: block; padding-left: .8em; white-space: nowrap; }
.hero__swoosh { width: 1.6em; height: .4em; margin-left: .15em; vertical-align: middle; }
.hero__lead { margin: 0 0 22px; color: var(--blue-d); font-size: 16px; font-weight: 700; }

.search {
  display: flex;
  max-width: 430px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(31, 116, 166, .14);
  overflow: hidden;
}
.search--page { margin-top: 16px; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 14px 16px 14px 44px;
  font: inherit;
  font-size: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f74a6' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 18px center / 16px;
}
.search button {
  border: 0;
  background: var(--blue);
  color: #fff;
  padding: 0 26px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.search button:hover { background: var(--blue-d); }

.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 200px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-d); }
.btn--line { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn--line:hover { background: var(--blue-soft); }
.btn--sm { min-width: 0; padding: 10px 44px; font-size: 14px; }

/* ヒーローの不規則グリッド */
.hero__mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, clamp(120px, 13vw, 230px)));
  gap: 12px;
  justify-content: end;
  align-items: start;
  align-self: center;
  padding: 26px 0 26px 8px;
}
.hero__col { display: grid; gap: 12px; align-content: start; }
.hero__col:nth-child(1) { margin-top: 26px; }
.hero__col:nth-child(2) { margin-top: -14px; }
.hero__col:nth-child(3) { margin-top: 44px; }

.hero__tile {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #e9eef0;
  box-shadow: 0 8px 22px rgba(35, 48, 61, .12);
}
.hero__tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__tile.is-45 { aspect-ratio: 4 / 5; }
.hero__tile.is-11 { aspect-ratio: 1 / 1; }
.hero__tile.is-34 { aspect-ratio: 3 / 4; }

/* 手書きのひとことも、グリッドの1マスとして置く */
.hero__hand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #fdf6e8;
  box-shadow: inset 0 0 0 1px rgba(232, 96, 44, .14), 0 8px 22px rgba(35, 48, 61, .10);
  color: var(--blue-d);
  font-family: var(--font-hand);
  font-size: clamp(15px, 1.5vw, 21px);
  line-height: 1.7;
  text-align: center;
  transform: rotate(-2deg);
}

/* ---------- sections ---------- */
.section { padding-top: 52px; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.sec-title {
  margin: 0;
  padding-left: 14px;
  border-left: 5px solid var(--blue);
  color: var(--blue-d);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}
.sec-sub {
  display: inline-block;
  margin: 8px 0 0 19px;
  padding: 1px 10px;
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}
.more { color: var(--blue); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .08); }
.card > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.card__body { padding: 14px 16px 16px; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card__title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.5; }
.card__quote { margin: 2px 0 2px; font-size: 14.5px; font-weight: 700; line-height: 1.55; }
.card__text { margin: 6px 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.date { color: var(--muted); font-size: 11.5px; }

.loc { color: var(--muted); font-size: 11px; white-space: nowrap; }
.loc::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 12px;
  margin-right: 3px;
  vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M5 0a4 4 0 0 1 4 4c0 3-4 8-4 8S1 7 1 4a4 4 0 0 1 4-4z' fill='%231f74a6'/%3E%3Ccircle cx='5' cy='4' r='1.5' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}
.tags a { color: inherit; text-decoration: none; }
.tags a:hover { text-decoration: underline; }

.center { margin-top: 26px; text-align: center; }

.empty {
  margin: 0;
  padding: 36px 20px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

/* ---------- list pages ---------- */
.page-head {
  padding: 40px 0 32px;
  background: linear-gradient(115deg, #e4f1f6 0%, #f3f7f2 55%, #fbf6ec 100%);
}
.page-head__title {
  margin: 0;
  color: var(--blue-d);
  font-family: var(--font-head);
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.4;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a {
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}
.chips a:hover, .chips a.is-current { border-color: var(--blue); background: var(--blue); color: #fff; }

.list-section { padding-top: 32px; }

.nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.page-numbers {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.page-numbers.current { background: var(--blue); color: #fff; }

/* ---------- single ---------- */
/* 記事のトップ写真は、本文中の写真と同じ幅（本文より左右40pxずつ広い）にそろえる */
.single-hero { max-width: 940px; margin: 32px auto 0; padding: 0 20px; }
.single-hero .ph { border-radius: var(--radius); }

.article { max-width: 940px; margin: 0 auto; padding: 28px 20px 0; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 13px; }
/* 25字前後までは1行に収め、それ以上は行の長さをそろえて折り返す */
.article__title {
  margin: 14px 0 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(26px, 4.6vw, 40px);
  line-height: 1.38;
  text-wrap: balance;
}
.article__lead { margin: 0 0 14px; color: var(--blue-d); font-size: 16px; font-weight: 700; }

.person { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--muted); font-size: 13px; }
.person strong { color: var(--ink); }
.person a { color: var(--blue); }
.person__roots { padding: 0 10px; border-radius: 999px; background: #fff4e5; color: #b0561d; font-weight: 700; }

.entry { margin-top: 28px; font-size: 16px; line-height: 2; letter-spacing: .2px; }
.entry > *:first-child { margin-top: 0; }
.entry h2 {
  margin: 64px 0 40px;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.44;
}
/* 見出しの強調：文字の下30%にマーカーを敷く（内閣官房「いいかも地方暮らし」と同じ方式）。
   色はサイトのオレンジ（--orange）に寄せた山吹。変えるときはここの1色だけ差し替える */
.entry h2 .marker {
  background-image: linear-gradient(transparent 70%, #ffd9a0 0);
}
.entry h3 {
  margin: 44px 0 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5;
}

/* インタビューの型ラベル（きっかけ／やりがいと大変なこと など）。見出しの直前に置く段落 */
.entry p.h-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2.6em 0 .35em;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
}
.entry p.h-label::after {
  content: "";
  flex: 0 0 28px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.entry p.h-label + h2 { margin-top: 0; }
.entry p { margin: 0 0 1.4em; }
.entry a { color: var(--blue); }
.entry img { border-radius: 8px; display: block; }

/* 本文中の写真：見出しの直後に入れる想定。少しはみ出させて大きく見せる */
.entry figure { margin: 2.2em 0; }
.entry figure img { width: 100%; }
.entry figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}
@media (min-width: 860px) {
  .entry > figure.wp-block-image { width: 100%; margin-left: 0; }
}
.entry .wp-block-image { margin-bottom: 2.2em; }

/* 縦の写真：1枚のときは幅を絞って中央に置く（本文幅いっぱいだと縦に長くなりすぎるため） */
.entry > figure.wp-block-image.is-portrait { width: 46%; margin-left: auto; margin-right: auto; }
.entry > figure.wp-block-image.is-portrait img { aspect-ratio: 4 / 5; object-fit: cover; }

/* 縦の写真2枚を横に並べる */
.entry .photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2.2em 0; }
@media (min-width: 860px) {
  .entry > .photo-pair { width: 100%; margin-left: 0; }
}
.entry .photo-pair figure { margin: 0; }
.entry .photo-pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@media (max-width: 600px) {
  .entry > figure.wp-block-image.is-portrait { width: 100%; }
}
.entry h2 + figure, .entry h2 + .wp-block-image { margin-top: 1.2em; }
.entry blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0;
  background: #fff;
}

.info { margin-top: 40px; padding: 6px 22px 10px; border-radius: var(--radius); background: #fff; }
.info__title { margin: 14px 0 4px; color: var(--blue-d); font-size: 16px; }
.info dl { display: grid; grid-template-columns: 7.5em 1fr; margin: 0; }
.info dt, .info dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info dt { color: var(--muted); font-weight: 700; }
.info dd { overflow-wrap: anywhere; }
.info dd a { color: var(--blue); }
.info dt:last-of-type, .info dd:last-of-type { border-bottom: 0; }

.cta-box { margin-top: 28px; padding: 26px 20px; border-radius: var(--radius); background: var(--blue-soft); text-align: center; }
.cta-box p { margin: 0 0 14px; color: var(--blue-d); font-size: 14px; font-weight: 700; }
.cta-box .btn { min-width: 260px; }
.cta-box__sub { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }

.freshness { margin: 24px 0 0; color: var(--muted); font-size: 12px; }

/* ---------- 問い合わせフォーム（Contact Form 7） ---------- */
.wpcf7 { margin-top: 24px; padding: 26px 24px 28px; border-radius: var(--radius); background: #fff; }
.wpcf7 .cf7-note { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.wpcf7 .cf7-field {
  display: block;
  margin: 0 0 20px;
  border: 0;
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.wpcf7 .cf7-field legend { padding: 0; font-weight: 700; }
.wpcf7 .cf7-req {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: #fdece4;
  color: var(--orange-d);
  font-size: 11px;
  vertical-align: 1px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfbf9;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}
.wpcf7 textarea { line-height: 1.8; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 116, 166, .12);
}
.wpcf7 .wpcf7-radio { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfbf9;
  font-weight: 400;
  cursor: pointer;
}
.wpcf7 .wpcf7-list-item label:hover { border-color: var(--blue); background: var(--blue-soft); }
.wpcf7 .wpcf7-list-item input[type="radio"] { accent-color: var(--blue); width: 18px; height: 18px; }
.wpcf7 .cf7-privacy { margin: 0 0 20px; color: var(--muted); font-size: 12.5px; }
.wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 4px auto 0;
  padding: 15px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--orange-d); }
.wpcf7-not-valid-tip { margin-top: 6px; color: #c0392b; font-size: 12.5px; font-weight: 400; }
.wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  border-width: 1px;
  font-size: 14px;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #4a9b6e; background: #eef7f1; color: #24603f; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: #c0392b; background: #fdeeec; color: #a0301f; }
.wpcf7-spinner { display: block; margin: 12px auto 0; }

@media (max-width: 720px) {
  .wpcf7 { padding: 20px 16px 24px; }
  .wpcf7 input[type="submit"] { max-width: none; }
}

.related { max-width: var(--container); margin: 56px auto 0; padding: 0 20px; }
.back { margin: 44px 0 0; text-align: center; }

/* ---------- footer ---------- */
.site-footer { margin-top: 64px; padding: 40px 0 18px; background: var(--blue); color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.footer-tagline { margin: 6px 0 0 58px; font-size: 13px; opacity: .9; }
.footer-desc { margin: 4px 0 0; font-size: 12.5px; line-height: 1.9; opacity: .9; }
.footer-h { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; }
.footer-links { margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 2; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-company { margin: 0; font-size: 13px; }
.sns { display: inline-block; width: 26px; height: 26px; }
.sns svg { width: 100%; height: 100%; }
.copyright { margin-top: 28px; font-size: 11px; text-align: right; opacity: .8; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .site-header__inner { flex-wrap: wrap; row-gap: 6px; padding-top: 10px; padding-bottom: 8px; }
  .gnav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .btn-sm-outline { margin-left: auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 720px) {
  .logo { font-size: 20px; }
  .logo svg { width: 40px; height: 26px; }
  .area-tabs { order: 4; width: 100%; }
  .btn { min-width: 0; flex: 1; }
  .cta-box .btn { min-width: 0; width: 100%; }
  .grid-3 { grid-template-columns: 1fr; }
  .sec-title { font-size: 21px; }
  .info dl { grid-template-columns: 6em 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { text-align: left; }
}

@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

/* ---- パンくず ---- */
.crumbs { padding: 14px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange-d); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* ---- 一覧の導入文 ---- */
.page-head__lead { margin: 10px 0 0; max-width: 46em; color: var(--muted); font-size: 14px; line-height: 1.9; }
.page-head__lead p { margin: 0 0 0.9em; }
.page-head__lead p:last-child { margin-bottom: 0; }

/* ---- 一覧の下の内部リンク ---- */
.archive-links { margin-top: 48px; padding: 32px 0 8px; border-top: 1px solid var(--line); }
.archive-links__title { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.archive-links__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.archive-links__list a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 13px; text-decoration: none;
}
.archive-links__list a:hover { border-color: var(--orange); color: var(--orange-d); }
.archive-links__list a span { color: var(--muted); font-size: 11px; }
.archive-links__list .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.archive-links__list .is-current span { color: rgba(255,255,255,.7); }

/* ---- 適職診断への導線 ---- */
.shindan-cta {
  margin-top: 36px; padding: 28px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--sand, #fbf7ef); text-align: center;
}
.shindan-cta__lead { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.shindan-cta__text { margin: 0 auto 18px; max-width: 34em; font-size: 13px; line-height: 1.9; color: var(--muted); }
.shindan-cta .btn { min-width: 260px; }
.shindan-cta__sub { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }

@media (max-width: 640px) {
  .shindan-cta { padding: 22px 16px; }
  .shindan-cta .btn { min-width: 0; width: 100%; }
}

/* 900px以下：ヒーローは写真グリッドを上に、文章を下に */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__mosaic { grid-template-columns: repeat(3, 1fr); justify-content: stretch; }
  .hero__mosaic { order: -1; padding: 12px 12px 16px; gap: 8px; }
  .hero__col { gap: 8px; }
  .hero__col:nth-child(1) { margin-top: 16px; }
  .hero__col:nth-child(2) { margin-top: -8px; }
  .hero__col:nth-child(3) { margin-top: 26px; }
  .hero__tile { border-radius: 10px; }
  .hero__hand { font-size: clamp(13px, 3.4vw, 18px); padding: 8px; }
  .hero__text { padding: 8px 20px 36px; }
}

/* ---- 目次 ---- */
.toc {
  margin: 28px 0 34px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.toc__title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.toc__list { margin: 0; padding-left: 1.3em; }
.toc__list li { margin: 6px 0; font-size: 14px; line-height: 1.7; }
.toc__list a { color: var(--blue-d); text-decoration: none; }
.toc__list a:hover { text-decoration: underline; }
.entry h2[id] { scroll-margin-top: 96px; }

/* ---- あわせて読みたい ---- */
.related--more { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .toc { padding: 16px 18px; margin: 22px 0 28px; }
  .toc__list li { font-size: 13px; }
}
