/* AMOTRA JOURNAL — 記事ページ専用のスタイル（第2版デザイン）
 *
 * 出どころ: オーナー支給の参照実装 `app/globals.css`（React 19 + Tailwind v4 + shadcn）。
 * このサイトは静的HTMLなので、依頼文の「既存が静的HTML等なら、その構成で再現してよい」に従い、
 * Tailwind と shadcn を持ち込まずに移植した。
 *
 * 🔴 このファイルは **記事ページだけ** が読む。LP（styles.css）とは完全に別系統。
 *    :root や body を触っているが、styles.css を読むページはこのファイルを読まないので影響しない。
 *
 * 移植で足した部分は「── 移植時に補ったベース ──」の1ブロックだけ。
 * それ以外は支給CSSのまま（@import と @theme inline の2つは Tailwind 専用構文なので落とした）。
 */


:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #262e29;
  --card: #ffffff;
  --primary: #285c47;
  --secondary: #f4f7f5;
  --muted-foreground: #69756e;
  --border: #e3e9e5;
}

/* ── 移植時に補ったベース ──
   支給CSSは Tailwind のリセットと shadcn の各コンポーネントが土台にある前提で書かれている。
   バニラに移すと消える分だけをここで足す。値は参照実装の見た目に合わせた。 */
:root {
  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP',
    'Yu Gothic', Meiryo, sans-serif;
}
/* 🔴 リセットは必ず :where() で包む。詳細度が 0 になるので、
   あとに来る .aj-* が確実に勝つ。
   包まずに書いたら `.amotra-journal figure`(0,1,1) が `.aj-cover`(0,1,0) を上書きして
   表紙写真が中央に来なくなり、`.aj-essentials` の上マージンも消えた（2026-08-31 実測） */
.amotra-journal :where(h1, h2, p, dl, dd, blockquote, figure) {
  margin: 0;
}
.amotra-journal :where(button) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
/* shadcn Button の土台（variant="ghost" 相当）。aj-tool / aj-reset が上から上書きする */
.amotra-journal .aj-tool,
.amotra-journal .aj-reset,
.aj-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.amotra-journal .aj-tool:hover,
.amotra-journal .aj-reset:not(:disabled):hover {
  background: var(--secondary);
}
.amotra-journal .aj-reset:disabled {
  opacity: 0.5;
  pointer-events: none;
}
/* shadcn Checkbox の土台。実体はネイティブの input[type=checkbox] */
.aj-checkbox {
  appearance: none;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
}
.aj-checkbox::after {
  content: '';
  width: 12px;
  height: 7px;
  border: 2px solid currentColor;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -2px);
  opacity: 0;
}
.aj-checkbox[data-checked]::after {
  opacity: 1;
}
/* base-ui Progress の土台。実体は div 2枚 */
.aj-progress [data-slot='progress-track'] {
  display: block;
  width: 100%;
  overflow: hidden;
}
.aj-progress [data-slot='progress-indicator'] {
  display: block;
  height: 100%;
  transition: width 0.2s;
}
/* base-ui Input の土台 */
.aj-share-url {
  width: 100%;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
}
/* base-ui Dialog の土台。実体はネイティブ <dialog>（Escape とフォーカス管理が標準でつく） */
/* 🔴 display は [open] のときだけ。ここを無条件に grid にすると、
   ブラウザ既定の `dialog:not([open]) { display:none }` を上書きしてしまい、
   閉じたはずのダイアログが出たままになる（2026-08-31 に実測して修正） */
.aj-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  border: 0;
  color: var(--foreground);
}
.aj-dialog[open] {
  display: grid;
}
.aj-dialog::backdrop {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
}
.aj-dialog [data-slot='dialog-title'] {
  margin: 0;
}
.aj-dialog [data-slot='dialog-description'] {
  margin: 0;
}
.aj-dialog-top button {
  width: 34px;
  height: 34px;
  padding: 0;
  color: #6d7a70;
}
.aj-dialog-top button:hover {
  background: var(--secondary);
}
.aj-dialog-actions button:first-child {
  border: 1px solid var(--border);
  background: #fff;
}
.aj-dialog-actions button:last-child {
  background: var(--primary);
  color: #fff;
}
.aj-dialog-actions button:hover {
  filter: brightness(0.95);
}
.aj-copy {
  background: var(--primary);
  color: #fff;
  width: 100%;
}
.aj-copy:hover {
  background: #1e4736;
}
/* JSが無い/失敗した環境でも記事は読める。押せない操作だけ隠す */
.amotra-journal:not(.is-ready) .aj-actions,
.amotra-journal:not(.is-ready) .aj-checklist-footer {
  display: none;
}
.amotra-journal:not(.is-ready) .aj-checkbox {
  opacity: 0.45;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 154px;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}
.amotra-journal {
  font-size: 16px;
  line-height: 1.8;
}
.amotra-journal a {
  color: inherit;
  text-decoration: none;
}
.amotra-journal button,
.amotra-journal a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.amotra-journal :is(a, button, input):focus-visible,
.aj-dialog :is(a, button, input):focus-visible {
  outline: 3px solid #6b9881;
  outline-offset: 4px;
}
.amotra-journal ::selection {
  background: #e0eee5;
}
.aj-skip {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 16px;
  padding: 12px 20px;
  background: var(--primary);
  color: white !important;
  border-radius: 8px;
}
.aj-skip:focus {
  top: 12px;
}

/* One quiet header. No decorative labels or duplicate menus. */
.aj-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 74px;
  border-bottom: 1px solid #edf0ed;
  background: #fffffff5;
  backdrop-filter: blur(16px);
}
.aj-header-inner {
  max-width: 1120px;
  height: 100%;
  width: calc(100% - 80px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.aj-brand {
  font:
    700 30px/1 Arial,
    sans-serif;
  letter-spacing: -1.9px;
  color: #244734 !important;
}
.aj-journal-link {
  padding-left: 22px;
  border-left: 1px solid var(--border);
  color: #748077 !important;
  font-size: 13px;
}
.aj-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 12px;
}
.aj-about-link {
  color: #667269 !important;
}
.aj-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 46px;
  padding: 11px 21px;
  border-radius: 8px;
  background: var(--primary);
  color: white !important;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
.aj-button:hover {
  background: #1e4736;
}
.aj-header-cta {
  min-height: 39px;
  padding: 8px 15px;
  font-size: 12px;
  gap: 12px;
}

/* The title stays readable, and the only illustration is the article's photo. */
.aj-article-header {
  max-width: 820px;
  width: calc(100% - 40px);
  margin-inline: auto;
  text-align: center;
  padding: 54px 0 29px;
}
.aj-category {
  display: inline-block;
  background: #f0f5f1;
  color: #47715a;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 5px;
  letter-spacing: 0.05em;
}
.aj-article-header h1 {
  font-size: clamp(30px, 3.55vw, 44px);
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 17px 0 16px;
}
.aj-description {
  font-size: 14px;
  color: #69756e;
  line-height: 2;
  margin: 0;
  letter-spacing: 0.015em;
}
.aj-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 15px;
  color: var(--primary) !important;
  font-size: 12px;
  font-weight: 600;
}
.aj-jump:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.aj-story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  max-width: 880px;
  width: calc(100% - 64px);
  margin: 0 auto 17px;
}
.aj-meta-text {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  color: #78837b;
}
.aj-meta-text > span:first-child {
  color: #57665c;
  font-weight: 500;
}
.aj-meta-separator {
  color: #c0c7c1;
}
.aj-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.aj-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.aj-tool {
  min-height: 40px;
  padding: 8px 10px !important;
  gap: 7px !important;
  font-size: 11px !important;
  color: #68786c !important;
  border-radius: 6px !important;
}
.aj-tool[aria-pressed='true'] {
  color: var(--primary) !important;
  background: #f1f6f2;
}
.aj-cover {
  max-width: 920px;
  width: calc(100% - 64px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f0e8;
  aspect-ratio: 3 / 1;
}
.aj-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 53%;
}

/* A small, single navigation follows the reader on every screen size. */
.aj-section-nav {
  position: sticky;
  top: 74px;
  z-index: 30;
  background: #fffffff5;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  margin-top: 21px;
}
.aj-section-nav > div {
  max-width: 680px;
  width: calc(100% - 48px);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  margin-inline: auto;
}
.aj-section-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  font-size: 12px;
  white-space: nowrap;
  color: #849085;
  padding: 0 4px;
}
.aj-section-nav a.is-active {
  color: var(--primary);
  font-weight: 600;
}
.aj-section-nav a.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}
.aj-section-nav a:hover {
  color: var(--primary);
}
.aj-content {
  max-width: 680px;
  width: calc(100% - 48px);
  margin-inline: auto;
}
.aj-section {
  margin: 0;
  padding: 57px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 16px;
}
.aj-section h2 {
  font-size: 26px;
  line-height: 1.65;
  letter-spacing: -0.035em;
  font-weight: 650;
  margin: 0 0 20px;
}
.aj-section p {
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.012em;
  color: #626f65;
  margin: 0 0 19px;
}
.aj-section p strong {
  font-weight: 600;
  color: var(--foreground);
}
.aj-section p:last-child {
  margin-bottom: 0;
}

/* Each entire label is a touch target. Details are kept out of the checklist. */
.aj-checklist-section {
  padding-top: 45px;
}
.aj-checklist {
  background: white;
  border: 1px solid #dbe5dc;
  border-radius: 12px;
  margin-top: 28px;
  overflow: hidden;
}
.aj-checklist-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 24px 14px;
  gap: 12px;
  font-size: 12px;
}
.aj-checklist-top > span {
  color: #637568;
}
.aj-checklist-top > strong {
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
}
.aj-checklist-top > strong > span {
  color: #839087;
  font-size: 11px;
  font-weight: 400;
}
.aj-progress {
  padding-inline: 24px;
}
.aj-progress [data-slot='progress-track'] {
  background: #edf2ee;
  height: 3px;
  border-radius: 2px;
}
.aj-progress [data-slot='progress-indicator'] {
  background: #568567;
}
.aj-checklist-items {
  padding: 4px 24px 0;
}
.aj-check-row {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 23px 0;
  cursor: pointer;
  scroll-margin-top: 16px;
}
.aj-check-row + .aj-check-row {
  border-top: 1px solid #edf0ec;
}
.aj-checkbox {
  margin-top: 3px;
  height: 22px !important;
  width: 22px !important;
  border: 1px solid #bfcfc1 !important;
  border-radius: 6px !important;
  cursor: pointer;
  background: white;
}
.aj-checkbox[data-checked] {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: white;
}
.aj-check-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.aj-check-copy > strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: -0.015em;
}
.aj-check-copy > span {
  color: #869086;
  font-size: 12px;
  line-height: 1.9;
}
.aj-check-row:hover .aj-check-copy > strong {
  color: var(--primary);
}
.aj-check-row.is-checked .aj-check-copy > strong {
  color: #64816b;
  text-decoration: line-through;
  text-decoration-color: #aac1ac;
  text-decoration-thickness: 1px;
}
.aj-check-row.is-checked .aj-check-copy > span {
  color: #919b92;
}
.aj-checklist.is-complete {
  border-color: #9fbaa5;
}
.aj-section .aj-complete-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  margin: 0;
  background: #f0f7f1;
  color: #477354;
  font-size: 12px;
}
.aj-checklist-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}
.aj-checklist-footer > span {
  color: #8a938b;
  font-size: 11px;
  line-height: 1.8;
}
.aj-reset {
  min-height: 36px;
  padding: 6px !important;
  font-size: 11px !important;
  gap: 5px !important;
  color: #77877b !important;
  flex-shrink: 0;
}

/* The rest of the article uses plain text and fine rules, not nested cards. */
.aj-essentials {
  margin-top: 29px;
  border-top: 1px solid var(--border);
}
.aj-essentials > div {
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
}
.aj-essentials dt {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
}
.aj-essentials dt svg {
  color: #688a72;
  stroke-width: 1.5;
}
.aj-essentials dd {
  color: #7a867b;
  font-size: 14px;
  line-height: 2;
  margin: 9px 0 0 33px;
}
.aj-essentials dd strong {
  font-weight: 600;
  color: #596e60;
}
.aj-section .aj-note {
  color: #8a948b;
  font-size: 11px;
  line-height: 1.9;
  margin: 16px 0 0;
}
.aj-section blockquote {
  border-left: 2px solid #8bad94;
  margin: 31px 0;
  padding: 4px 0 4px 23px;
  font-size: 19px;
  line-height: 2;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #365640;
}
.aj-experience-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 29px;
  padding: 21px 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.aj-experience-link > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.aj-experience-link small {
  color: #899287;
  font-size: 11px;
}
.aj-experience-link strong {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.8;
}
.aj-experience-link > svg {
  flex-shrink: 0;
  color: #758b78;
}
.aj-experience-link:hover {
  border-color: #a4baa8;
}
.aj-product {
  border: 0;
  margin-top: 51px;
  padding: 38px 39px;
  border-radius: 12px;
  background: #f3f7f3;
}
.aj-product-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #728c76;
  font:
    500 11px/1.5 Arial,
    sans-serif;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.aj-product h2 {
  margin-bottom: 19px;
  font-size: 29px;
}
.aj-product p {
  font-size: 14px;
}
.aj-product .aj-button {
  margin-top: 7px;
}
.aj-product-note {
  display: block;
  color: #829182;
  font-size: 11px;
  margin-top: 17px;
  line-height: 1.8;
}
.aj-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 38px 0;
  margin-top: 8px;
}
.aj-author-mark {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eff4ef;
  color: #55745b;
  font:
    700 27px Arial,
    sans-serif;
}
.aj-author strong {
  font-size: 12px;
  font-weight: 600;
}
.aj-author p {
  color: #8a9389;
  font-size: 11px;
  margin: 5px 0 0;
}
.aj-related {
  padding: 29px 0 53px;
  border-top: 1px solid var(--border);
}
.aj-related > span {
  font-size: 12px;
  color: #879285;
}
.aj-related > a:not(.aj-back) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-block: 17px 27px;
}
.aj-related strong {
  font-weight: 500;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: -0.02em;
}
.aj-related > a > svg {
  color: #74907a;
  flex-shrink: 0;
}
.aj-related > a:hover strong {
  color: var(--primary);
}
.aj-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  min-height: 44px;
  color: #7d8b7e !important;
}
.aj-footer {
  max-width: 1120px;
  width: calc(100% - 80px);
  margin-inline: auto;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 32px 0;
}
.aj-footer .aj-brand {
  font-size: 26px;
}
.aj-footer > span {
  color: #8c988c;
  font-size: 11px;
}
.aj-footer > small {
  margin-left: auto;
  color: #909b90;
  font-size: 10px;
  font-family: Arial, sans-serif;
}

/* Portaled controls need their own scope. */
.aj-dialog {
  width: calc(100% - 32px) !important;
  max-width: 430px !important;
  padding: 26px !important;
  gap: 16px !important;
  border-radius: 12px !important;
  background: white !important;
  font-family: var(--font-sans);
}
.aj-dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.aj-dialog [data-slot='dialog-title'] {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.aj-dialog [data-slot='dialog-description'] {
  font-size: 13px;
  line-height: 1.9;
  color: #7b897e;
}
.aj-input-label {
  font-size: 12px;
  color: #738176;
  margin-bottom: -9px;
}
.aj-share-url {
  height: 42px !important;
  font:
    12px Arial,
    sans-serif !important;
  border-color: #d5e0d7 !important;
  background: #fafcf9 !important;
}
.aj-copy {
  height: 43px !important;
  font-size: 13px !important;
  gap: 9px !important;
}
.aj-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 8px;
}
.aj-dialog-actions button {
  min-height: 40px;
  font-size: 12px;
  padding-inline: 15px;
}
.aj-toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 100;
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 13px 20px;
  border-radius: 9px;
  background: #294734;
  color: white;
  font-size: 12px;
  line-height: 1.8;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.aj-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 132px;
  }
  .aj-header {
    height: 65px;
  }
  .aj-header-inner {
    width: calc(100% - 40px);
    gap: 13px;
  }
  .aj-brand {
    font-size: 28px;
    letter-spacing: -1.8px;
  }
  .aj-journal-link {
    padding: 0;
    border: 0;
    font-size: 11px;
  }
  .aj-header nav {
    gap: 0;
  }
  .aj-about-link {
    display: none;
  }
  .aj-header-cta {
    min-height: 37px;
    padding: 8px 11px;
    font-size: 11px;
    gap: 7px;
  }
  .aj-article-header {
    padding-top: 40px;
    padding-bottom: 25px;
    width: calc(100% - 32px);
  }
  .aj-article-header h1 {
    font-size: clamp(25px, 6.85vw, 38px);
    line-height: 1.7;
    letter-spacing: -0.05em;
    margin-block: 16px;
  }
  .aj-description {
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0;
  }
  .aj-category {
    font-size: 10px;
  }
  .aj-jump {
    margin-top: 13px;
    font-size: 12px;
  }
  .aj-story-meta {
    width: calc(100% - 40px);
    margin-bottom: 13px;
    gap: 8px;
  }
  .aj-meta-text {
    gap: 8px;
    font-size: 10px;
    flex-wrap: wrap;
  }
  .aj-meta-separator {
    display: none;
  }
  .aj-reading-time {
    display: none;
  }
  .aj-tool {
    padding: 6px 7px !important;
    min-height: 40px;
    gap: 5px !important;
    font-size: 10px !important;
  }
  .aj-actions {
    gap: 0;
    flex-shrink: 0;
  }
  .aj-cover {
    width: calc(100% - 40px);
    border-radius: 9px;
    aspect-ratio: 1.95;
  }
  .aj-section-nav {
    top: 65px;
    margin-top: 18px;
  }
  .aj-section-nav > div {
    width: calc(100% - 40px);
    gap: 8px;
  }
  .aj-section-nav a {
    font-size: 11px;
    min-height: 53px;
    padding-inline: 2px;
  }
  .aj-content {
    width: calc(100% - 40px);
  }
  .aj-section {
    padding-block: 39px;
    scroll-margin-top: 12px;
  }
  .aj-section h2 {
    font-size: 23px;
    margin-bottom: 17px;
  }
  .aj-section p {
    font-size: 15px;
    line-height: 2.1;
  }
  .aj-checklist-section {
    padding-top: 32px;
  }
  .aj-checklist {
    margin-top: 23px;
    border-radius: 10px;
  }
  .aj-checklist-top {
    padding: 17px 18px 13px;
    font-size: 11px;
  }
  .aj-checklist-top > strong {
    font-size: 17px;
  }
  .aj-progress {
    padding-inline: 18px;
  }
  .aj-checklist-items {
    padding: 3px 18px 0;
  }
  .aj-check-row {
    gap: 13px;
    padding-block: 20px;
    scroll-margin-top: 12px;
  }
  .aj-check-copy > strong {
    font-size: 14px;
    line-height: 1.9;
  }
  .aj-check-copy > span {
    font-size: 12px;
    line-height: 1.9;
  }
  .aj-checkbox {
    width: 21px !important;
    height: 21px !important;
  }
  .aj-checklist-footer {
    align-items: flex-start;
    gap: 6px;
  }
  .aj-checklist-footer > span {
    padding-top: 7px;
    font-size: 10px;
  }
  .aj-reset {
    font-size: 10px !important;
    min-height: 36px;
  }
  .aj-section .aj-complete-message {
    padding: 13px 18px;
    font-size: 11px;
  }
  .aj-essentials {
    margin-top: 23px;
  }
  .aj-essentials > div {
    padding-block: 21px;
  }
  .aj-essentials dt {
    font-size: 14px;
  }
  .aj-essentials dd {
    font-size: 13px;
    margin-left: 33px;
    line-height: 2;
  }
  .aj-section .aj-note {
    font-size: 10px;
    line-height: 2;
  }
  .aj-section blockquote {
    font-size: 16px;
    padding-left: 18px;
    line-height: 2;
    margin-block: 27px;
  }
  .aj-desktop-break {
    display: none;
  }
  .aj-experience-link {
    padding: 17px 15px;
    gap: 17px;
  }
  .aj-experience-link strong {
    font-size: 12px;
  }
  .aj-experience-link small {
    font-size: 10px;
  }
  .aj-product {
    margin-top: 36px;
    padding: 29px 25px;
    border-radius: 10px;
  }
  .aj-product h2 {
    font-size: 27px;
  }
  .aj-product p {
    font-size: 13px;
  }
  .aj-product-note {
    font-size: 10px;
  }
  .aj-product .aj-button {
    min-height: 46px;
    font-size: 12px;
  }
  .aj-author {
    padding-block: 29px;
    gap: 12px;
  }
  .aj-author strong {
    font-size: 11px;
  }
  .aj-author p {
    font-size: 10px;
    line-height: 1.9;
  }
  .aj-related {
    padding-bottom: 33px;
  }
  .aj-related strong {
    font-size: 15px;
  }
  .aj-related > span {
    font-size: 11px;
  }
  .aj-related > a:not(.aj-back) {
    padding-bottom: 20px;
  }
  .aj-footer {
    width: calc(100% - 40px);
    padding-block: 26px;
    gap: 16px;
  }
  .aj-footer .aj-brand {
    font-size: 24px;
  }
  .aj-footer > span {
    font-size: 10px;
  }
  .aj-footer > small {
    font-size: 9px;
  }
  .aj-dialog {
    padding: 22px !important;
  }
}
@media (max-width: 359px) {
  .aj-header-inner {
    gap: 10px;
  }
  .aj-brand {
    font-size: 26px;
  }
  .aj-journal-link {
    font-size: 10px;
  }
  .aj-header-cta {
    padding-inline: 9px;
    font-size: 10px;
  }
  .aj-article-header h1 {
    font-size: 24px;
  }
  .aj-description {
    font-size: 11px;
  }
  .aj-meta-text {
    gap: 5px;
    font-size: 9px;
  }
  .aj-tool {
    padding-inline: 6px !important;
  }
  .aj-checklist-items {
    padding-inline: 15px;
  }
  .aj-check-row {
    gap: 10px;
  }
  .aj-check-copy > strong {
    font-size: 13px;
  }
  .aj-check-copy > span {
    font-size: 11px;
  }
  .aj-footer {
    flex-wrap: wrap;
  }
  .aj-footer > small {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .amotra-journal *,
  .aj-dialog {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .aj-header,
  .aj-section-nav,
  .aj-actions,
  .aj-jump,
  .aj-cover,
  .aj-reset,
  .aj-footer,
  .aj-related,
  .aj-toast,
  .aj-button {
    display: none !important;
  }
  .aj-article-header {
    padding-block: 0 20px;
  }
  .aj-article-header h1 {
    font-size: 26px;
  }
  .aj-story-meta,
  .aj-content {
    width: 100%;
    max-width: none;
  }
  .aj-section {
    padding-block: 24px;
    break-inside: avoid;
  }
  .aj-section h2 {
    font-size: 19px;
  }
  .aj-section p {
    font-size: 11pt;
  }
  .aj-checklist {
    break-inside: avoid;
  }
  .aj-checkbox[data-checked] {
    background: white !important;
    color: black;
    border-color: black !important;
  }
  .aj-product {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
  }
}

/* ── 移植で足したもの② 姉妹サイトへのリンク ──
   参照実装では amopost.app へのリンクが本文中の1本だけになっていた。
   いま公開中の版は「本文中の体験記」＋「姉妹サイトのカード」の2本ある。
   被リンクを作るために書いた記事なので、フッターに1本戻した。
   （本文中のカードほど強くはない。本文へ戻すかはオーナー判断） */
.aj-sister {
  color: #6d7d70 !important;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #c3cec6;
}
.aj-sister:hover {
  color: var(--primary) !important;
  text-decoration-color: currentColor;
}
@media (max-width: 760px) {
  .aj-sister {
    font-size: 10px;
  }
}
@media print {
  .aj-sister {
    display: none;
  }
}
