/* ============================================================
   TOP｜落ち着きはそのまま、ひとひねりを足す
   ・和紙テープの帯（ゆっくり流れる）
   ・章の大きな抜き数字
   ・左端の縦書きしおり
   ・家紋カードの傾き
   ============================================================ */



/* ---------- 章の抜き数字 ---------- */
main{counter-reset:sec;}
.sec-head{position:relative;counter-increment:sec;}
.sec-head::after{
  content:counter(sec,decimal-leading-zero);
  position:absolute;right:0;top:-34px;z-index:0;pointer-events:none;
  font-family:var(--maru);font-weight:900;font-size:clamp(84px,13vw,150px);line-height:1;letter-spacing:-.02em;
  color:transparent;-webkit-text-stroke:1.5px var(--line);
}
.sec-head > *{position:relative;z-index:1;}

/* ---------- 左端の縦書きしおり（広い画面のみ） ---------- */
.rail{position:fixed;left:14px;top:50%;z-index:2;transform:translateY(-50%);writing-mode:vertical-rl;
  font-family:var(--mincho);font-size:12px;letter-spacing:.5em;color:var(--sub);opacity:.55;pointer-events:none;display:none;}
.rail::before{content:"";display:block;width:1px;height:56px;margin:0 auto 14px;background:var(--sub);opacity:.6;}
@media(min-width:1320px){.rail{display:block;}}

/* ---------- 家紋カードの傾き ---------- */
.hero-logo{transition:transform .25s ease;transform-style:preserve-3d;will-change:transform;}
.hero-logo .logo-img{transition:transform .25s ease;}


@media(max-width:820px){
  .sec-head::after{top:-18px;font-size:76px;}
}

/* ============================================================
   再生までの五手：ひと目で順番と中身がわかるように
   ・数字を大きく、本文は墨色でくっきり
   ・スマホでは「数字＋漢字」が左、題と説明が右の横並び。余白も詰める
   ============================================================ */
#flow .step{background:var(--cream);border:1.5px solid var(--forest);padding:22px 16px 20px;}
#flow .step .step-num{position:static;display:block;margin:0 0 12px;font-family:var(--maru);font-weight:900;font-size:13px;letter-spacing:.24em;color:var(--forest);opacity:1;}
#flow .step .step-num::after{content:"";display:block;width:28px;height:2px;margin:8px auto 0;background:var(--avocado);}
#flow .step .step-kanji{width:64px;height:64px;font-size:28px;margin-bottom:14px;}
#flow .step h3{font-size:19px;font-weight:900;letter-spacing:.06em;color:var(--ink);margin-bottom:8px;}
#flow .step p{font-size:14px;line-height:1.75;color:var(--ink);}
@media(max-width:920px){
  .voyage{display:none !important;}
  #flow .flow-grid{gap:12px;}
  #flow .step{display:grid;grid-template-columns:76px 1fr;column-gap:16px;align-items:center;text-align:left;padding:16px 18px;}
  #flow .step .step-kanji{grid-row:1 / span 3;margin:0;width:68px;height:68px;font-size:30px;}
  #flow .step .step-num{margin:0 0 2px;}
  #flow .step .step-num::after{margin:6px 0 0;}
  #flow .step h3{margin:0 0 4px;font-size:18px;}
  #flow .step p{margin:0;}
}
