/* ───────── 日本語ページ: 履歴書・職務経歴書 ───────── */

.tpl--ja {
  --ja-label: 11rem; /* 見出し列の幅 */
  font-feature-settings: 'palt' 0;
  line-height: 1.85;
}
.tpl--ja a {
  text-decoration-color: var(--line-strong);
  text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.tpl--ja a:hover {
  text-decoration-color: currentColor;
}
.ja-ext {
  display: inline-block;
  margin-left: 0.25em;
  font-size: 0.8em;
  color: var(--ink-3);
  transition: transform 0.2s ease, color 0.2s ease;
}
a:hover > .ja-ext {
  transform: translate(2px, -2px);
  color: inherit;
}

/* ── ヒーロー / 基本情報 ── */
.ja-hero {
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
}
.ja-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  letter-spacing: 0.18em;
}
.ja-hero__date {
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ja-hero__lead {
  margin-top: clamp(2rem, 6vw, 4.5rem);
  margin-bottom: clamp(2.5rem, 7vw, 5rem);
}
.ja-hero__hello {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-2xl);
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.ja-hero__tagline {
  margin-top: var(--sp-4);
  max-width: 34em;
  font-size: var(--fs-lg);
  color: var(--ink-2);
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.ja-id {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.ja-id__row {
  display: grid;
  grid-template-columns: var(--ja-label) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--sp-4);
}
.ja-id__label,
.ja-id__facts dt {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  letter-spacing: 0.2em;
}
.ja-id__row--kana {
  padding-block: 0.55rem;
  border-bottom: 1px dashed var(--line);
}
.ja-id__kana {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  letter-spacing: 0.42em;
}
.ja-id__row--name {
  padding-block: clamp(1.25rem, 3.5vw, 2.25rem);
}
.ja-id__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-3xl);
  line-height: 1.2;
  letter-spacing: 0.06em;
}
.ja-id__name > span {
  display: inline-block;
}

/* 印影 — 朱の一点 */
.ja-seal {
  display: grid;
  place-items: center;
  width: clamp(3.25rem, 2.4rem + 3.6vw, 4.75rem);
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.7rem + 1vw, 1.35rem);
  line-height: 1.02;
  transform: rotate(-5deg);
  opacity: 0.92;
  user-select: none;
}
.ja-seal > span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0;
}

.ja-id__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.ja-id__facts > div {
  display: grid;
  grid-template-columns: var(--ja-label) minmax(0, 1fr);
  column-gap: var(--sp-4);
  align-items: baseline;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.ja-id__facts > div:nth-child(even) {
  grid-template-columns: 6rem minmax(0, 1fr);
  padding-left: var(--sp-5);
  border-left: 1px solid var(--line);
}
.ja-id__facts > div:last-child,
.ja-id__facts > div:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}
.ja-id__facts > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.ja-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem var(--sp-5);
}

/* ── セクション共通 ── */
.ja-sec {
  display: grid;
  grid-template-columns: var(--ja-label) minmax(0, 1fr);
  column-gap: var(--sp-4);
  margin-top: clamp(4rem, 9vw, 7rem);
  align-items: start;
}
.ja-sec__head {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ja-sec__no {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1;
}
.ja-sec__no::after {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  margin-top: 0.7rem;
  background: var(--line-strong);
}
.ja-sec__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: 1.4;
  letter-spacing: 0.08em;
}

/* ── 罫線の表 ── */
.ja-t {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}
.ja-t + .ja-t {
  margin-top: var(--sp-6);
}
.ja-t th,
.ja-t td {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-weight: 400;
}
.ja-t th:first-child,
.ja-t td:first-child {
  border-left: 0;
}
.ja-t tbody tr:last-child > * {
  border-bottom: 0;
}
.ja-t thead th {
  padding-block: 0.5rem;
  border-bottom-color: var(--line-strong);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  letter-spacing: 0.2em;
  text-align: center;
  background: var(--paper);
}
.ja-t .ja-t__y {
  width: 5.5rem;
  padding-inline: 0.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ja-t .ja-t__m {
  width: 3.5rem;
  padding-inline: 0.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ja-t__ad {
  display: block;
  line-height: 1.3;
}
.ja-t__era {
  display: block;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.ja-t__sub {
  display: block;
  margin-top: 0.1rem;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: 1.6;
}
.ja-t .ja-t__center th {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.ja-t__center th span {
  letter-spacing: 1.5em;
  margin-right: -1.5em;
}
.ja-t .ja-t__end .ja-t__body {
  text-align: right;
  padding-right: 2rem;
  letter-spacing: 0.3em;
}
.ja-t .ja-t__k {
  width: 13.5rem;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}
.ja-t thead .ja-t__k {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  letter-spacing: 0.2em;
}
.ja-t .ja-t__issuer {
  width: 32%;
  color: var(--ink-2);
  font-size: var(--fs-sm);
}
.ja-t thead .ja-t__issuer {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.ja-t tbody tr {
  transition: background-color 0.2s ease;
}
.ja-t tbody tr:not(.ja-t__center):not(.ja-t__end):hover {
  background: var(--paper);
}

/* 区切り付きの横並びリスト（使用技術など） */
.ja-inline {
  display: flex;
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}
.ja-inline li:not(:last-child)::after {
  content: '／';
  margin-inline: 0.35em;
  color: var(--line);
  color: color-mix(in srgb, var(--ink-3) 55%, transparent);
}

/* ── 職務経歴・制作実績 ── */
.ja-entries {
  border-top: 1px solid var(--line-strong);
}
.ja-entry {
  padding-block: var(--sp-6) var(--sp-6);
  border-bottom: 1px solid var(--line);
}
.ja-entry:last-child {
  border-bottom-color: var(--line-strong);
}
.ja-entry__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem var(--sp-5);
  margin-bottom: var(--sp-4);
}
.ja-entry__head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: 1.45;
  letter-spacing: 0.04em;
}
.ja-entry__period {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ja-dl__row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  column-gap: var(--sp-4);
  align-items: baseline;
  padding-block: 0.3rem;
}
.ja-dl dt {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  letter-spacing: 0.2em;
}
.ja-bullets li {
  position: relative;
  padding-left: 1.1em;
}
.ja-bullets li::before {
  content: '';
  position: absolute;
  left: 0.15em;
  top: 0.85em;
  width: 0.45em;
  height: 1px;
  background: var(--ink-3);
}

/* ── 自己PR ── */
.ja-prose {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--sp-6);
  font-size: var(--fs-lg);
  line-height: 2.1;
  letter-spacing: 0.03em;
}
.ja-prose p {
  max-width: 40em;
}
.ja-prose p + p {
  margin-top: 1.2em;
}

/* ── お問い合わせ ── */
.ja-contact {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--sp-6);
}
.ja-contact__lead {
  color: var(--ink-2);
}
.ja-contact__mail {
  margin-block: var(--sp-4) var(--sp-5);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-2xl);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.ja-contact__mail a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* ── タブレット以下 ── */
@media (max-width: 860px) {
  .tpl--ja {
    --ja-label: 6.5rem;
  }
  .ja-sec {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--sp-5);
  }
  .ja-sec__head {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: var(--sp-3);
  }
  .ja-sec__no::after {
    display: none;
  }
  .ja-sec__no {
    font-size: var(--fs-md);
  }
  .ja-sec__no::before {
    content: none;
  }
  .ja-t .ja-t__k {
    width: 9.5rem;
  }
}

/* ── スマートフォン ── */
@media (max-width: 560px) {
  .tpl--ja {
    --ja-label: 4.5rem;
  }
  .ja-hero__top {
    letter-spacing: 0.1em;
  }
  .ja-id__row {
    column-gap: var(--sp-2);
  }
  .ja-id__label,
  .ja-id__facts dt,
  .ja-dl dt {
    letter-spacing: 0.08em;
  }
  .ja-id__kana {
    letter-spacing: 0.3em;
  }
  .ja-id__name {
    font-size: clamp(1.9rem, 9.2vw, 2.6rem);
    letter-spacing: 0.02em;
  }
  .ja-id__facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .ja-id__facts > div,
  .ja-id__facts > div:nth-child(even) {
    grid-template-columns: var(--ja-label) minmax(0, 1fr);
    column-gap: var(--sp-2);
    padding-left: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .ja-id__facts > div:last-child {
    border-bottom: 0;
  }
  .ja-t th,
  .ja-t td {
    padding: 0.65rem 0.7rem;
    font-size: var(--fs-sm);
    line-height: 1.7;
  }
  .ja-t .ja-t__y {
    width: 3.4rem;
    padding-inline: 0.15rem;
  }
  .ja-t .ja-t__m {
    width: 2.1rem;
    padding-inline: 0.15rem;
  }
  .ja-t__era {
    font-size: 0.62rem;
  }
  .ja-t .ja-t__k {
    width: 6.6rem;
    letter-spacing: 0;
  }
  .ja-t .ja-t__issuer {
    width: 28%;
    font-size: var(--fs-xs);
  }
  .ja-t .ja-t__end .ja-t__body {
    padding-right: 1rem;
  }
  .ja-dl__row {
    grid-template-columns: var(--ja-label) minmax(0, 1fr);
    column-gap: var(--sp-2);
  }
  .ja-entry {
    padding-block: var(--sp-5);
  }
  .ja-prose {
    font-size: var(--fs-md);
    line-height: 2;
  }
}

/* ── 印刷: 履歴書として ── */
@media print {
  .tpl--ja {
    --ja-label: 6rem;
    line-height: 1.6;
  }
  .ja-hero {
    padding-top: 0;
  }
  .ja-hero__lead {
    margin-block: 1.2rem 1.4rem;
  }
  .ja-hero__hello {
    font-size: 15pt;
  }
  .ja-hero__tagline {
    font-size: 10.5pt;
    margin-top: 0.3rem;
  }
  .ja-id__name {
    font-size: 24pt;
  }
  .ja-id__row--name {
    padding-block: 0.8rem;
  }
  .ja-seal {
    width: 3rem;
    font-size: 0.85rem;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .ja-sec {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.6rem;
    margin-top: 1.8rem;
  }
  .ja-sec__head {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 0.6rem;
    break-after: avoid;
  }
  .ja-sec__no::after {
    display: none;
  }
  .ja-sec__head h2 {
    font-size: 13pt;
  }
  .ja-t,
  .ja-t thead th {
    background: none;
  }
  .ja-t th,
  .ja-t td {
    padding: 0.4rem 0.7rem;
  }
  .ja-t .ja-t__k {
    width: 11.5rem;
  }
  .ja-t tr,
  .ja-entry {
    break-inside: avoid;
  }
  .ja-entry {
    padding-block: 0.9rem;
  }
  .ja-entry__head h3 {
    font-size: 12pt;
  }
  .ja-prose {
    font-size: 10.5pt;
    line-height: 1.8;
    padding-top: 0.8rem;
  }
  .ja-prose p {
    max-width: none;
  }
  .ja-contact {
    padding-top: 0.8rem;
  }
  .ja-contact__mail {
    font-size: 14pt;
    margin-block: 0.4rem;
  }
  .ja-ext {
    display: none;
  }
}
