/* 村東商店の事例ページだけの見た目（2026-11-10）
   モバイルファースト：基準は iPhone の Safari（幅375px）。パソコンは 961px 以上で上書きする。
   共通の notes.css のあとに読む。うまくいったら notes.css へ移して他の記事にも使う。 */
/* ── 0. 写真・表の基本 ── */
.note-case .photo{margin:20px 0 26px;border:1px solid var(--line);overflow:hidden;background:#fff}
.note-case .photo img{display:block;width:100%;height:auto}
.note-case .photo figcaption{padding:8px 14px;font-size:13.5px;line-height:1.7;color:var(--sub);border-top:1px solid var(--line)}
.note-case .timeline th{width:26%;white-space:nowrap}
:root{--ease:cubic-bezier(.22,.61,.36,1);--ease-pop:cubic-bezier(.34,1.56,.64,1)}

/* ── 1. 左右の余白をそろえる ──
   notes.css は見出しを「バランスよく折る」設定で、スマホだと右が大きく空く。
   見出しは普通に折り返し、本文は両端そろえ（日本語は文字の間で調整）にする。 */
.note-case h1{word-break:normal;text-wrap:wrap}
.note-case article p,.note-case article li,.note-case .voice p{text-align:justify;text-justify:inter-character;text-wrap:wrap}
.note-case .crumb,.note-case .meta,.note-case figcaption,.note-case .cta{text-align:left}

/* ── 2. ヘッダーを小さく、下に読み進めたら隠す ── */
.note-case .site-header{position:sticky;top:0;z-index:40;transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.note-case .site-header.is-hidden{transform:translateY(-100%)}
.note-case .site-header.is-scrolled{box-shadow:0 2px 12px rgba(15,31,51,.12)}
.note-case .head-row{min-height:48px;padding-top:4px;padding-bottom:4px}
.note-case .logo small{display:none}
.note-case .gnav .wrap{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;-webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent)}
.note-case .gnav .wrap::-webkit-scrollbar{display:none}
.note-case .gnav a{white-space:nowrap;font-size:13px;padding:7px 10px}
.note-case .ticker{display:none}

/* ── 3. ファーストビューに写真：記事のいちばん上、端から端まで ── */
.note-case .hero{margin:-20px -16px 18px;border:0;border-radius:0;overflow:hidden;background:#dfe5ea}
.note-case .hero img{aspect-ratio:1600/1128;object-fit:cover;transform-origin:50% 40%;animation:hero-in 1.4s var(--ease) both}
.note-case .hero figcaption{border:0;padding:6px 16px 0;background:#fff;font-size:12.5px}
@keyframes hero-in{from{transform:scale(1.06);filter:saturate(.7) brightness(1.05)}to{transform:none;filter:none}}
.note-case .crumb{font-size:12px;margin-bottom:4px}
.note-case h1{font-size:22px;line-height:1.5;margin:2px 0 8px}
.note-case .meta{font-size:12.5px;margin-bottom:16px}
.note-case .trust{display:none}

/* ── 4. お客様の言葉：丸い顔と名前を左上に ── */
.note-case .voice{position:relative;margin:20px 0 26px;border-left:0;border-radius:14px;padding:14px 16px 6px;background:var(--teal-soft);box-shadow:0 1px 0 rgba(14,143,134,.12)}
.note-case .voice::after{content:"";display:none;position:absolute;width:16px;height:16px;background:var(--teal-soft);transform:rotate(45deg);border-radius:3px}
.note-case .voice .who{display:flex;align-items:center;gap:10px;font-style:normal;margin:0 0 10px;color:var(--ink);font-size:14px;line-height:1.35;position:relative;z-index:1}
.note-case .voice .who img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none;border:2px solid #fff;box-shadow:0 2px 6px rgba(15,31,51,.18)}
.note-case .voice .who b{display:block;font-size:14.5px}
.note-case .voice .who small{display:block;color:var(--sub);font-size:12px}
.note-case .voice p{font-size:16.5px;line-height:1.95;margin:0 0 10px}
.note-case .voice.big{background:#0f1f33}
.note-case .voice.big::after{background:#0f1f33}
.note-case .voice.big p{color:#fff;font-size:18.5px;font-weight:700}
.note-case .voice.big .who{color:#fff}
.note-case .voice.big .who small{color:#b9c7d6}

/* ── 5. 写真：読み込むまでは淡い面を光らせて待つ ── */
.note-case .photo{border-radius:10px}
.note-case .photo img{background:linear-gradient(100deg,#e6eaee 30%,#f3f5f7 50%,#e6eaee 70%) 0 0/300% 100%;animation:sk-shine 1.4s linear infinite}
.note-case .photo img.is-loaded{animation:none;background:none}
.note-case .hero img.is-loaded{animation:hero-in 1.4s var(--ease) both}
.note-case .photo.small{max-width:600px}

/* ── 6. 読み進めると、ふわっと出る ── */
.note-case .rv{opacity:0;transform:translateY(18px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.note-case .rv.in{opacity:1;transform:none}
.note-case .voice.rv{transform:translateY(18px) scale(.97)}
.note-case .voice.rv.in{transform:none}
.note-case .voice.rv .who img{transform:scale(.4);opacity:0;transition:transform .55s var(--ease-pop) .15s,opacity .3s ease .15s}
.note-case .voice.rv.in .who img{transform:none;opacity:1}
.note-case article h2.rv{transform:translateX(-14px)}
.note-case article h2.rv.in{transform:none}
.note-case .cta{transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.note-case .cta:active{transform:scale(.97)}
.note-case .head-cta{transition:transform .2s var(--ease)}
.note-case .head-cta:active{transform:scale(.95)}

/* ── 7. 開いた瞬間の全画面スケルトン（head の中の小さなCSSで先に出し、ここで消し方を決める） ── */
.sk{position:fixed;inset:0;z-index:100;background:#fff;transition:opacity .45s var(--ease),visibility 0s linear .45s}
.sk.out{opacity:0;visibility:hidden}
@keyframes sk-shine{from{background-position:100% 0}to{background-position:0 0}}

/* ── 8. 事例の動画（縦）：スマホは幅いっぱいに近く、パソコンは360px ── */
.note-case .reel{margin:24px auto 30px;max-width:360px}
.note-case .reel video{display:block;width:100%;height:auto;aspect-ratio:9/16;border-radius:14px;background:#0d2238;box-shadow:0 10px 30px rgba(15,31,51,.18)}
.note-case .reel figcaption{font-size:13.5px;line-height:1.7;color:var(--sub);margin-top:10px;text-align:left}

/* ── パソコン（961px以上） ── */
@media (min-width:961px){
  .note-case .logo small{display:block}
  .note-case .ticker{display:block}
  .note-case .gnav .wrap{-webkit-mask-image:none;mask-image:none}
  .note-case .gnav a{font-size:14px;padding:10px 12px}
  .note-case .head-row{min-height:60px}
  .note-case .hero{margin:-26px -32px 22px;border-radius:6px 6px 0 0}
  .note-case .hero img{aspect-ratio:2/1;object-position:50% 48%}
  .note-case h1{font-size:28px}
  .note-case .trust{display:grid}
  /* 顔は吹き出しの左の外に */
  .note-case .voice{margin:22px 0 28px 72px;padding:16px 22px 8px}
  .note-case .voice::after{display:block;left:-7px;top:24px}
  .note-case .voice .who{position:static;margin-bottom:8px}
  .note-case .voice .who img{position:absolute;left:-72px;top:4px;width:56px;height:56px}
  .note-case .voice p{font-size:17px}
  .note-case .voice.big p{font-size:20px}
}
@media (min-width:601px) and (max-width:960px){
  .note-case .hero{margin:-26px -32px 22px}
}

/* 動きを減らす設定の人には、動かさない */
@media (prefers-reduced-motion:reduce){
  .note-case *,.sk{animation:none!important;transition:none!important}
  .note-case .rv{opacity:1;transform:none}
}
@media print{.sk{display:none}.note-case .rv{opacity:1;transform:none}.note-case .site-header{position:static}}
