/* ============================================================================
   文字の多いページに写真を足す（2026-09-29〜）
   - 選ばれる理由などの /reason/ /flow/ /cost/ /faq/ … で使う。pages.css の後に読み込む
   - 本文の右に置く写真（.p-doc__fig--side。スマホでは本文の上）と、写真を並べる欄（.p-doc__gallery）
   - 写真ACの写真には「※写真はイメージです」を添える（.p-doc__fig-note）。
     実際のホームの写真には、何の写真かを添える（.p-doc__fig-cap）
   - 入居までの流れ（/flow/）の7つの段階に写真を添える形（.p-step--photo）と、
     体験入居のご案内を薄い面に載せる形（.p-doc__section--panel）はファイルの最後
   ========================================================================== */

.p-doc__fig {
  margin: 0;
}

.p-doc__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background-color: #efe9e0;
}

.p-doc__fig-note,
.p-doc__fig-cap {
  display: block;
  margin-top: 7px;
  line-height: 1.6;
}

.p-doc__fig-note {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: #9a938b;
}

.p-doc__fig-cap {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: #6b645e;
}

/* 本文の右に置く写真 */
.p-doc__fig--side {
  float: right;
  width: 38%;
  margin: 26px 0 14px 36px;
}

/* 写真を回り込ませた段落は、次の見出しの前で回り込みを終える */
.p-doc__section::after {
  display: block;
  clear: both;
  content: "";
}

/* 写真を並べる欄（3枚・4枚） */
.p-doc__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.p-doc__gallery--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.p-doc__gallery--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

/* 写真がリンクのとき（3ホームの外観など） */
.p-doc__gallery a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.p-doc__gallery a img {
  transition: opacity 0.3s ease;
}

.p-doc__gallery a:hover img {
  opacity: 0.85;
}

.p-doc__gallery a:hover .p-doc__fig-cap {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .p-doc__fig--side {
    float: none;
    width: auto;
    margin: 20px 0 6px;
  }

  .p-doc__gallery,
  .p-doc__gallery--2,
  .p-doc__gallery--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
    margin-top: 24px;
  }

  /* 3枚の並びは、3枚目を2列分の幅にする（1枚だけ左に残らないように） */
  .p-doc__gallery > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ============================================================================
   入居までの流れ：7つの段階に写真を添える（/flow/ の .p-step--photo）  2026-09-29
   - 番号は「STEP」を添えた金の丸。丸から次の丸まで、金から薄い色に移る縦線でつなぐ
   - PC は［番号｜見出しと本文｜写真］の3列。スマホは［番号｜見出し］の下に写真、その下に本文
   - pages.css の .p-step（写真のない形）はそのまま。ul に p-step--photo を足したときだけ効く
   ========================================================================== */

.p-step--photo {
  margin-top: 40px;
}

.p-step--photo .p-step__item {
  grid-template-columns: 64px minmax(0, 1fr) 31%;
  gap: 0 32px;
  align-items: start;
  padding-bottom: 50px;
}

.p-step--photo .p-step__item::before {
  left: 32px;
  top: 80px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(to bottom, #c9a227, #e6ded1);
}

.p-step--photo .p-step__num {
  flex-direction: column;
  width: 64px;
  height: 64px;
  background-color: #fffdf8;
  box-shadow: 0 0 0 4px #ffffff, 0 0 0 5px #eee3cb;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.p-step--photo .p-step__num::before {
  display: block;
  margin-bottom: 3px;
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: #b39b5c;
  content: "STEP";
}

.p-step--photo .p-step__title {
  margin-bottom: 10px;
  padding-top: 17px;
  font-size: 1.1875rem;
}

.p-step__fig {
  margin: 0;
}

/* 体験入居など、ひとまとまりのご案内を薄い面に載せる ------------------------ */

.p-doc__section--panel {
  padding: 36px 40px 40px;
  border: 1px solid #e6ded1;
  background-color: #fbf8f3;
}

.p-doc__section--panel .p-doc__fig--side {
  width: 40%;
  margin-top: 24px;
}

@media screen and (max-width: 768px) {
  .p-step--photo {
    margin-top: 28px;
  }

  /* 見出しの下に写真、その下に本文（見出しと本文を包む div をほどいて並べ替える） */
  .p-step--photo .p-step__item {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "num title"
      ".   fig"
      ".   text";
    gap: 0 14px;
    padding-bottom: 36px;
  }

  .p-step--photo .p-step__item > div {
    display: contents;
  }

  .p-step--photo .p-step__item::before {
    left: 24px;
    top: 62px;
    bottom: 10px;
  }

  .p-step--photo .p-step__num {
    grid-area: num;
    width: 48px;
    height: 48px;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 4px #eee3cb;
    font-size: 1.125rem;
  }

  .p-step--photo .p-step__num::before {
    margin-bottom: 1px;
    font-size: 0.5rem;
    letter-spacing: 0.16em;
    text-indent: 0.16em;
  }

  .p-step--photo .p-step__title {
    grid-area: title;
    align-self: center;
    margin: 0;
    padding-top: 0;
    font-size: 1.0625rem;
  }

  .p-step--photo .p-step__fig {
    grid-area: fig;
    margin: 14px 0 10px;
  }

  /* 7枚続くので、スマホでは少し横長にしてページを短く。顔が切れないよう上寄りで切り抜く */
  .p-step--photo .p-step__fig img {
    aspect-ratio: 16 / 9;
    object-position: 50% 40%;
  }

  .p-step--photo .p-step__text {
    grid-area: text;
  }

  .p-doc__section--panel {
    padding: 26px 20px 28px;
  }

  .p-doc__section--panel .p-doc__fig--side {
    width: auto;
    margin-top: 18px;
  }
}

/* ============================================================================
   費用（/cost/）  2026-09-29
   - 費用の3つの部分を、写真のカードを「＋」でつないで見せる（.p-cost-parts）。言葉は下の表と同じ
   - 3つのプランの家賃相当額の払い方を横棒で見せる（.p-plan-bars）。言葉は下のプランの説明と同じ
   - 介護保険の自己負担の表2つを、PCでは左右に並べる（.p-doc__section--2tables）。スマホは今までどおり縦に
   ========================================================================== */

/* 費用の3つの部分 ------------------------------------------------------------ */

.p-cost-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 44px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.p-cost-parts__fig {
  position: relative;
}

/* カードとカードのあいだの「＋」。写真と同じ大きさの箱を左どなりに置き、その右端（すき間の中央）に描く */
.p-cost-parts__item + .p-cost-parts__item .p-cost-parts__fig::before {
  position: absolute;
  top: 0;
  right: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding-right: 13px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
  color: #c9a227;
  content: "+";
  pointer-events: none;
}

.p-cost-parts__fig .p-doc__fig-cap {
  font-size: 0.6875rem;
  color: #9a938b;
}

.p-cost-parts__name {
  margin: 12px 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: #3f3b39;
}

.p-cost-parts__text {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: #6b645e;
}

/* 3つのプラン：家賃相当額の払い方 ------------------------------------------ */

.p-plan-bars {
  margin: 26px 0 8px;
  padding: 22px 28px 20px;
  border: 1px solid #e6ded1;
  background-color: #fdfbf7;
}

.p-plan-bars__title {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: #7d5023;
}

.p-plan-bars__list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.p-plan-bars__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0 14px;
  align-items: center;
}

.p-plan-bars__row + .p-plan-bars__row {
  margin-top: 10px;
}

.p-plan-bars__plan {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #3f3b39;
}

.p-plan-bars__bar {
  display: flex;
  gap: 3px;
  min-height: 42px;
}

.p-plan-bars__seg {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
  color: #3f3b39;
}

/* 前払金は金、月払いは薄い色に斜線（色だけに頼らず見分けられるように） */
.p-plan-bars__seg--pre-full,
.p-plan-bars__seg--pre-half {
  background-color: #e3cd8d;
}

.p-plan-bars__seg--month-full,
.p-plan-bars__seg--month-half {
  background-color: #f3ece0;
  background-image: repeating-linear-gradient(135deg, rgba(125, 80, 35, 0.07) 0 6px, transparent 6px 12px);
}

.p-plan-bars__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: #6b645e;
}

.p-plan-bars__key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.p-plan-bars__key::before {
  display: inline-block;
  width: 14px;
  height: 10px;
  content: "";
}

.p-plan-bars__key--pre::before {
  background-color: #e3cd8d;
}

.p-plan-bars__key--month::before {
  background-color: #f3ece0;
  background-image: repeating-linear-gradient(135deg, rgba(125, 80, 35, 0.12) 0 3px, transparent 3px 6px);
  outline: 1px solid #e6ded1;
}

/* 介護保険の自己負担：表2つを左右に（PCだけ） -------------------------------- */

@media screen and (min-width: 769px) {
  .p-doc__section--2tables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    align-items: start;
  }

  .p-doc__section--2tables > * {
    grid-column: 1 / -1;
  }

  .p-doc__section--2tables > .p-doc__h3 {
    grid-column: auto;
    grid-row: 3;
  }

  .p-doc__section--2tables > .p-doc__tablewrap {
    grid-column: auto;
    grid-row: 4;
  }

  .p-doc__section--2tables .p-doc__table {
    min-width: 0;
  }

  .p-doc__section--2tables::after {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  /* 費用の3つの部分：写真を左、言葉を右にした横長のカードを縦に並べる */
  .p-cost-parts {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px 0;
    margin-top: 24px;
  }

  .p-cost-parts__item {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 16px;
    align-content: start;
  }

  .p-cost-parts__fig {
    grid-row: 1 / span 3;
  }

  .p-cost-parts__name {
    margin-top: 0;
    font-size: 1rem;
  }

  /* 「＋」はカードとカードのあいだ、写真の上に */
  .p-cost-parts__item + .p-cost-parts__item .p-cost-parts__fig::before {
    top: auto;
    right: auto;
    bottom: 100%;
    left: 0;
    justify-content: center;
    height: 30px;
    aspect-ratio: auto;
    padding-right: 0;
    font-size: 1.875rem;
  }

  .p-plan-bars {
    padding: 18px 16px 16px;
  }

  .p-plan-bars__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px 0;
  }

  .p-plan-bars__row + .p-plan-bars__row {
    margin-top: 14px;
  }

  .p-plan-bars__plan {
    font-size: 0.875rem;
  }

  .p-plan-bars__seg {
    font-size: 0.75rem;
  }
}

/* ============================================================================
   コラムのカードのサムネイル（.p-column__thumb）  2026-09-30
   - コラム一覧・関連する記事・費用シミュレーションのカードの上に置く写真。カードの余白いっぱいに広げる
   - 写真は 3:2 で作り、ここで 16:10 に切り取る（人の顔が切れないよう、少し上寄り）
   ========================================================================== */

.p-column__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  margin: -22px -22px 16px;
  overflow: hidden;
  background-color: #efe9e0;
}

.p-column__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 0.5s ease-out;
}

.p-column__link:hover .p-column__thumb img,
.p-column__link:focus-visible .p-column__thumb img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .p-column__thumb img {
    transition: none;
  }

  .p-column__link:hover .p-column__thumb img,
  .p-column__link:focus-visible .p-column__thumb img {
    transform: none;
  }
}

/* コラムのカードの公開日（.p-column__cat--dated）  2026-09-30
   分類を左、公開日を右に */
.p-column__cat--dated {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
}

.p-column__cat--dated time {
  letter-spacing: 0.08em;
  color: #9a938b;
}

/* ============================================================================
   コラムの図と表  2026-09-30
   - .p-bars（横棒グラフ）.p-lanes（契約などの図）.p-tiles（ポイントの一覧）.p-timeline（時間の流れ）
     .p-stack（積み上げ棒）.p-form-table（記入表）。数字と文言は、どれもそのコラムの本文にあるものだけ
   - 色は金（#c9a227）と、その薄い色。色だけに頼らず、値や文字を必ず添える
   ========================================================================== */

.p-bars,
.p-lanes,
.p-tiles,
.p-timeline,
.p-stack,
.p-bars-pair {
  clear: both;
}

.p-bars,
.p-lanes,
.p-timeline,
.p-stack {
  margin: 28px 0 0;
  padding: 22px 26px 20px;
  border: 1px solid #e6ded1;
  background-color: #fdfbf7;
}

.p-bars__title,
.p-lanes__title,
.p-timeline__title,
.p-stack__title {
  display: block;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: #7d5023;
}

/* 横棒グラフ ------------------------------------------------------------- */

.p-bars__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-bars__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 92px;
  gap: 0 14px;
  align-items: center;
}

.p-bars__row + .p-bars__row {
  margin-top: 10px;
}

.p-bars__label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #3f3b39;
}

.p-bars__track {
  display: block;
  height: 24px;
  background-color: #f3ece0;
}

.p-bars__bar {
  display: block;
  height: 100%;
  background-color: #e3cd8d;
}

.p-bars__row.is-main .p-bars__bar {
  background-color: #c9a227;
}

.p-bars__value {
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  color: #3f3b39;
}

.p-bars__note,
.p-timeline__note,
.p-stack__note,
.p-lanes__note {
  margin: 14px 0 0;
  font-size: 0.75rem;
  line-height: 1.85;
  color: #7a736c;
}

/* 横棒グラフを2つ並べる（幅がせまいので、ラベルを棒の上に） */
.p-bars-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.p-bars-pair .p-bars {
  margin-top: 0;
  padding: 20px 20px 18px;
}

.p-bars-pair .p-bars__row {
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 4px 12px;
}

.p-bars-pair .p-bars__label {
  grid-column: 1 / -1;
}

/* 契約などの図 ------------------------------------------------------------- */

.p-lane {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 8px 20px;
  padding: 16px 0;
  border-top: 1px solid #e6ded1;
}

.p-lane__name {
  grid-row: 1 / span 2;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.6;
  color: #3f3b39;
}

.p-lane.is-main .p-lane__name {
  color: #7d5023;
}

.p-lane__body {
  display: grid;
  gap: 10px;
}

.p-lane__flow {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.p-node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 1 auto;
  min-height: 62px;
  padding: 9px 14px;
  border: 1px solid #d9cfbd;
  background-color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  color: #3f3b39;
}

.p-node small {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: #6b645e;
}

.p-node--main {
  border-color: #c9a227;
  background-color: #fffaf0;
}

/* 左のカード（入居者）と右のカードは、どの行でも同じ幅にそろえる */
.p-lane__flow > .p-node:first-child {
  flex: 0 0 96px;
}

.p-lane__flow > .p-node:last-child {
  flex: 0 0 272px;
}

.p-arrow {
  position: relative;
  align-self: center;
  flex: 1 1 90px;
  min-width: 70px;
  padding-bottom: 12px;
  font-size: 0.6875rem;
  line-height: 1.3;
  text-align: center;
  color: #7d5023;
}

.p-arrow::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background-color: #c9a227;
  content: "";
}

.p-arrow::before {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 7px;
  height: 7px;
  border-top: 1px solid #c9a227;
  border-right: 1px solid #c9a227;
  transform: rotate(45deg);
  content: "";
}

.p-lane__result {
  grid-column: 2;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #6b645e;
}

/* 2つを並べて比べる図（夜間の体制） */
.p-compare2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.p-compare2__col {
  padding: 14px 16px;
  border: 1px solid #d9cfbd;
  background-color: #ffffff;
}

.p-compare2__head {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.6;
  color: #7d5023;
}

.p-compare2__list {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
  font-size: 0.875rem;
  line-height: 1.9;
  color: #3f3b39;
}

/* ポイントの一覧 ----------------------------------------------------------- */

.p-tiles {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.p-tiles--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p-tiles__item {
  padding: 16px 18px 16px;
  border: 1px solid #e6ded1;
  border-top: 2px solid #c9a227;
  background-color: #fbf8f3;
}

.p-tiles__num {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  color: #c9a227;
}

.p-tiles__name {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  color: #3f3b39;
}

.p-tiles__text {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  line-height: 1.85;
  color: #6b645e;
}

/* 時間の流れ ---------------------------------------------------------------- */

.p-timeline__bar {
  display: flex;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-timeline__seg {
  display: flex;
  flex-direction: column;
  flex-basis: 0;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
}

.p-timeline__seg--a {
  background-color: #f3ece0;
}

.p-timeline__seg--b {
  background-color: #e3cd8d;
}

.p-timeline__seg--c {
  border: 1px dashed #c9b98f;
  background-color: #ffffff;
}

.p-timeline__when {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: #7d5023;
}

.p-timeline__what {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #3f3b39;
}

/* 積み上げ棒 ---------------------------------------------------------------- */

.p-stack__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-stack__row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 96px;
  gap: 0 14px;
  align-items: center;
}

.p-stack__row + .p-stack__row {
  margin-top: 12px;
}

.p-stack__label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #3f3b39;
}

.p-stack__track {
  display: block;
}

.p-stack__bar {
  display: flex;
  height: 34px;
}

.p-stack__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.p-stack__seg--1 {
  background-color: #c9a227;
}

.p-stack__seg--2 {
  background-color: #e3cd8d;
}

.p-stack__seg--3 {
  background-color: #f3ece0;
}

.p-stack__num {
  font-size: 0.75rem;
  white-space: nowrap;
  color: #3f3b39;
}

.p-stack__total {
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  color: #3f3b39;
}

.p-stack__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 0;
  font-size: 0.75rem;
  color: #6b645e;
}

.p-stack__key::before {
  display: inline-block;
  width: 14px;
  height: 10px;
  margin-right: 6px;
  content: "";
}

.p-stack__key--1::before {
  background-color: #c9a227;
}

.p-stack__key--2::before {
  background-color: #e3cd8d;
}

.p-stack__key--3::before {
  background-color: #f3ece0;
  outline: 1px solid #e6ded1;
}

/* 記入表 -------------------------------------------------------------------- */

.p-form-table caption {
  padding: 0 0 10px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-align: left;
  color: #7d5023;
}

.p-form-table td {
  height: 46px;
}

.p-form-table__box {
  width: 96px;
  text-align: center;
}

.p-form-table__box::before {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 1px solid #c9a227;
  background-color: #ffffff;
  vertical-align: middle;
  content: "";
}

.p-form-table__memo {
  min-width: 220px;
}

@media screen and (max-width: 768px) {
  .p-bars,
  .p-lanes,
  .p-timeline,
  .p-stack {
    padding: 18px 16px 16px;
  }

  .p-bars__row {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 4px 12px;
  }

  .p-bars__label {
    grid-column: 1 / -1;
  }

  .p-bars-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .p-lane {
    grid-template-columns: minmax(0, 1fr);
  }

  .p-lane__name {
    grid-row: auto;
  }

  .p-lane__result {
    grid-column: 1;
  }

  .p-lane__flow {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .p-lane__flow > .p-node:first-child,
  .p-lane__flow > .p-node:last-child {
    flex: none;
    min-height: 0;
  }

  .p-arrow {
    flex: none;
    min-width: 0;
    padding: 4px 0 2px;
  }

  .p-arrow::before {
    display: none;
  }

  .p-arrow::after {
    position: static;
    display: block;
    height: auto;
    background: none;
    font-size: 1rem;
    line-height: 1.3;
    color: #c9a227;
    content: "↓";
  }

  .p-compare2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .p-tiles--3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .p-timeline__bar {
    flex-direction: column;
  }

  .p-timeline__seg {
    flex-basis: auto;
  }

  .p-stack__row {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 4px 12px;
  }

  .p-stack__label {
    grid-column: 1 / -1;
  }

  .p-stack__num {
    font-size: 0.625rem;
  }
}
