/* =========================================================
   起業の経営学 第1版: 著者紹介（type author のページだけで読み込む）
   REQ-004 のページを移したもの。パンくず、開閉、引用、注釈は site.css と components.css の部品を使う
   持ち主: デザイナー1
   ========================================================= */

/* ---------- プロフィールの見出し部（1-1 ページの見出し部の変種） ---------- */

.profile-hero {
  padding-block: 18px 48px;
  background: var(--color-navy-faint);
  border-bottom: 1px solid var(--color-line);
}

.profile-hero__inner {
  display: grid;
  gap: 24px;
  margin-top: 22px;
}

.profile-hero__photo {
  width: 168px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.profile-hero__title {
  display: grid;
  gap: 4px;
}

.profile-hero__label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-light);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.profile-hero__label::before {
  content: "";
  width: 28px;
  height: var(--stroke-mark);
  border-radius: 999px;
  background: var(--color-teal);
}

.profile-hero__name {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.profile-hero__role {
  margin-top: 8px;
  color: var(--color-navy);
  font-weight: 700;
}

.profile-hero__summary {
  max-width: 46em;
  margin-top: 20px;
}

.profile-hero__summary-title {
  margin-bottom: 6px;
  color: var(--color-navy-dark);
  font-size: 1.125rem;
  font-weight: 900;
}

/* ひと目でわかる実績（ページの中の数字から作ったもの） */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
}

.stats__value {
  color: var(--color-navy-dark);
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1.3;
}

.stats__label {
  color: var(--color-text-light);
  font-size: 0.75rem;
  line-height: 1.5;
  word-break: auto-phrase;
}

@media (min-width: 768px) {
  .profile-hero {
    padding-block: 18px 72px;
  }

  .profile-hero__inner {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .profile-hero__photo {
    width: 240px;
  }

  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- セクション ---------- */

.author-section {
  padding-block: var(--section-space);
}

.author-section--gray {
  --section-bg: var(--color-gray-bg);
  background: var(--section-bg);
}

.author-section__intro {
  max-width: 44em;
  margin-top: 12px;
  color: var(--color-text-light);
}

.author-section__intro a {
  color: var(--color-link);
  text-underline-offset: 0.2em;
}

/* ---------- 保有資格（分野ごとのカード） ---------- */

.credential-groups {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.credential-group {
  padding: 20px 20px 22px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

.credential-group__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.125rem;
  font-weight: 900;
}

.credential-group__count {
  flex: none;
  color: var(--color-text-light);
  font-size: 0.8125rem;
  font-weight: 700;
}

.credential-group__list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid transparent;
  background: repeating-linear-gradient(90deg, var(--color-line) 0 2px, transparent 2px 4px) border-box left top / 100% 1px no-repeat;
}

.credential-group__list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.6;
}

.credential-group__list li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-teal);
  border-radius: 50%;
}

@media (min-width: 960px) {
  .credential-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }
}

/* ---------- 経歴・実績（4-2 年表を、道と駅で見せる） ---------- */

.career-route {
  margin-top: 32px;
}

.career-stop {
  position: relative;
  padding: 0 0 28px 34px;
}

/* 駅の印（縁はセクションの地の色） */
.career-stop::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-navy);
  box-shadow: 0 0 0 4px var(--section-bg, var(--color-white));
}

/* 次の駅への、からし色の道 */
.career-stop:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  bottom: -15px;
  left: calc(10px - var(--stroke-route) / 2);
  width: var(--stroke-route);
  background: var(--color-mustard);
}

.career-stop__year {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 700;
}

.career-stop__body {
  margin-top: 10px;
  padding: 20px 18px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

.career-stop__title {
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1.5;
}

.career-stop__content {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.career-stop__figure img {
  width: auto;
  max-height: 360px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  box-shadow: 0 6px 16px -10px rgba(0, 32, 78, 0.5);
}

.career-stop__text {
  display: grid;
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.9;
}

.career-stop__text a {
  color: var(--color-link);
  text-underline-offset: 0.2em;
}

/* 開閉の中の引用（新聞や事例集の全文） */
.career-stop details.disclosure blockquote.quote {
  font-size: 0.9375rem;
  line-height: 1.9;
}

.career-stop .note {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--color-gray-bg);
}

@media (min-width: 768px) {
  .career-stop {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    column-gap: 48px;
    padding: 0 0 32px;
  }

  .career-stop::before {
    top: 4px;
    left: 144px;
  }

  .career-stop:not(:last-child)::after {
    top: 14px;
    bottom: -14px;
    left: calc(154px - var(--stroke-route) / 2);
  }

  .career-stop__year {
    justify-self: end;
    align-self: start;
  }

  .career-stop__body {
    margin-top: 0;
    padding: 24px 28px;
  }

  /* 画像のある駅: 画像と文を横に並べる */
  .career-stop__content--media {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .career-stop__content--media > .disclosure,
  .career-stop__content--media > .note {
    grid-column: 1 / -1;
  }
}

/* ---------- 自社メディア（外部へのリンク） ---------- */

.media-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.media-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 16px 18px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  text-decoration: none;
  transition: border-color 0.2s;
}

.media-links a:hover {
  border-color: var(--color-navy);
}

.media-links__name {
  display: block;
  color: var(--color-navy-dark);
  font-weight: 700;
}

.media-links__url {
  display: block;
  color: var(--color-text-light);
  font-size: 0.8125rem;
}

.media-links__icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 640px) {
  .media-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .media-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 個人情報（2-6 用語と説明） ---------- */

.facts {
  margin-top: 28px;
  border-top: 1px solid var(--color-line); /* 定義リストと同じ薄い 1px（REQ-023） */
}

.facts__row {
  display: grid;
  gap: 2px;
  padding-block: 14px;
  border-bottom: 1px solid var(--color-line);
}

.facts dt {
  color: var(--color-text-light);
  font-size: 0.8125rem;
  font-weight: 700;
}

.facts dd a {
  color: var(--color-link);
  text-underline-offset: 0.2em;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.skill-list li {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--color-navy-tint);
  color: var(--color-navy);
  font-size: 0.8125rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .facts__row {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
    align-items: baseline;
  }
}
