/* =====================================================================
   inochi.html 固有スタイル（らしゅういただく）
   site.css の後に読み込む。トークン・既存ルールは変更しない（追記のみ）。
   ===================================================================== */

/* 上部「札の再掲」は site.css §26 の .karuta-hero（5下層ページ共通）を使う（2026-09-09 QA修正で inochi 独自の .karuta-hero__* を廃止） */

/* ------------------------------------------------------------------
   獲るところから：4工程を横並びにする .steps--row（PCは4列・SPは縦積み）
   ------------------------------------------------------------------ */
.steps--row{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:clamp(24px, 4vw, 40px);
  counter-reset:step;
  margin-top:clamp(28px, 4vw, 48px);
}
.steps--row .step{
  display:flex; flex-direction:column; align-items:center;
  gap:10px;
  padding:0; border:0;
  text-align:center;
  position:relative;
}
.steps--row .step__num{ margin:0 auto; grid-row:auto; }
.steps--row .step__label{ display:none; }
.steps--row .step__title{ margin-top:2px; }
.steps--row .step__body{ grid-column:auto; line-height:1.9; }  /* font-size は site.css の 1rem を継承（本文16px以上） */
@media (min-width:769px){
  .steps--row .step:not(:last-child)::after{
    content:"";
    position:absolute; right:calc(-1 * clamp(16px, 2.4vw, 24px)); top:24px;
    width:clamp(14px, 1.6vw, 20px); height:1px;
    background:var(--line);
  }
}
@media (max-width:768px){
  .steps--row{ grid-template-columns:1fr; gap:0; }
  .steps--row .step{
    flex-direction:row; align-items:flex-start; text-align:left;
    gap:16px;
    padding:20px 0; border-bottom:1px solid var(--line);
  }
  .steps--row .step:first-child{ border-top:1px solid var(--line); }
  .steps--row .step__num{ margin:2px 0 0; flex:none; }
}

/* 4工程のあとに、もう一度筆文字で締める（島でとる。島でさばく。島から送る。） */
.work-close{
  text-align:center;
  font-size:clamp(22px, 3vw, 30px);
  line-height:1.6;
  letter-spacing:.06em;
  color:var(--ink);
  margin:clamp(32px, 5vw, 56px) 0 0;
}

/* たかちゃんの言葉：.quote を大きく（ページの核） */
.quote--hero p{ font-size:clamp(19px, 2.6vw, 26px); line-height:2.15; }
.quote--hero::before{ font-size:clamp(88px, 11vw, 128px); }
.quote--hero p:last-of-type::after{ font-size:clamp(88px, 11vw, 128px); }

/* 安心のこと：本文の段組み・写真グリッド */
.safety-body{ max-width:640px; margin:0 auto; }
.safety-body p{ margin:0 0 1.4em; }
.safety-body p:last-child{ margin-bottom:0; }
.safety-photos{ margin-top:clamp(28px, 4vw, 44px); }

/* 命を使い切る：.pillars を3枚のコラボカードに流用（01/04の番号は使わない） */
.pillars--collab{ grid-template-columns:repeat(3, minmax(0,1fr)); }
.pillars--collab .pillar{ align-items:flex-start; }
.pillars--collab .pillar .placeholder,
.pillars--collab .pillar .photo{ width:100%; margin-bottom:4px; }
.pillars--collab .pillar__title{ font-size:clamp(21px, 2.2vw, 24px); }
.pillars--collab .pillar__lead .note-check{ margin-left:0; }
@media (max-width:768px){
  .pillars--collab{ grid-template-columns:1fr; }
}

/* 4工程の写真（2026-10-13 本人指示＝ラフな丸・大きく・番号を写真に重ねる） */
.steps--row .step__fig{ position:relative; width:min(100%, 250px); margin:0 auto 10px; }
.steps--row .step__photo{
  display:block; width:100%; aspect-ratio:1/1; height:auto; object-fit:cover;
  border-radius:47% 53% 50% 50% / 55% 45% 55% 45%;
}
.steps--row .step:nth-child(2) .step__photo{ border-radius:58% 42% 45% 55% / 40% 55% 45% 60%; }
.steps--row .step:nth-child(3) .step__photo{ border-radius:50% 50% 38% 62% / 62% 38% 62% 38%; }
.steps--row .step:nth-child(4) .step__photo{ border-radius:42% 58% 55% 45% / 50% 40% 60% 50%; }
.steps--row .step__fig .step__num{
  position:absolute; left:4%; bottom:4%; margin:0;
  width:52px; height:52px; font-size:1.25rem;
  background:var(--cream,#fbf7ee); border:1.5px solid var(--red); color:var(--red);
  box-shadow:0 4px 10px rgba(60,45,30,.15); z-index:2;
}
/* 校正モードの✏️は写真の右上に重ねる（並びを崩さない） */
.steps--row .step__fig > .kousei-badge--img{ position:absolute; top:4px; right:4px; margin:0; z-index:3; }
@media (min-width:769px){
  .steps--row{ gap:clamp(20px, 3vw, 36px); }
  .steps--row .step:not(:last-child)::after{ display:none; }
}
@media (max-width:768px){
  .steps--row .step{ display:block; text-align:left; }
  .steps--row .step__fig{ width:min(78%, 260px); margin:0 0 14px; }
  .steps--row .step__fig .step__num{ width:44px; height:44px; font-size:1.1rem; }
  .steps--row .step__title{ margin:0 0 6px; }
}
