/* オンライン赤筆先生のバナー（a・b・c の3案）2026-10-17。inc/akafude.php の ks_akafude_banner。
   お手本の一覧・言葉のページ・硬筆プリントだけで読む。wp_build を通さないので k の単位は calc(Npx*var(--k))。
   決まりごと：箱の片側だけの色の線は使わない・濃い面に長い文は置かない */
.af3 { --shu: #D9412B; --shu-d: #A92E1B; --shu-l: #FDECE8; --gshu: linear-gradient(135deg, #D9412B 0%, #F0704F 55%, #FFA463 100%); --gsh: linear-gradient(135deg, #2F9C6A 0%, #6FC27E 55%, #C9E86A 100%);
  display: block; margin: calc(30px*var(--k)) 0 0; text-decoration: none; color: var(--ink); transition: transform .15s; }
.af3:hover { color: var(--ink); transform: translateY(-2px); }
.af3 em { font-style: normal; }
.af3 svg { flex: none; }

/* ===== A：LP の帯 ===== */
.af3-a { padding: 6px; border-radius: 30px; background: var(--gsh); box-shadow: 0 6px 0 #1D7049, var(--shadow-s); }
.af3-a .af3-in { display: grid; grid-template-columns: 92px minmax(0, 1fr) 236px; gap: 16px; align-items: center; border-radius: 25px; padding: 16px 18px 16px 14px;
  background-color: var(--cream); background-image: radial-gradient(color-mix(in srgb, #2F9C6A 18%, transparent) 1.4px, transparent 1.6px); background-size: 20px 20px; }
.af3-a .af3-wk { width: 100%; height: auto; display: block; }
.af3-a .af3-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.af3-a .af3-tag { align-self: flex-start; background: var(--shodo); color: #fff; font-family: var(--maru); font-weight: 900; font-size: 13px; letter-spacing: .06em; border-radius: 999px; padding: 3px 14px; }
.af3-a .af3-h { font-family: var(--maru); font-weight: 900; font-size: 23px; line-height: 1.45; }
.af3-a .af3-h em { color: var(--shu-d); background: linear-gradient(transparent 60%, var(--yellow) 60%); padding: 0 .04em; }
.af3-a .af3-sub { font-size: 13.5px; color: var(--ink2); line-height: 1.65; }
.af3-a .af3-side { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.af3-a .af3-price { display: flex; align-items: baseline; justify-content: center; gap: 2px; font-family: var(--maru); font-weight: 900; color: var(--ink); background: #fff; border-radius: 16px; padding: 6px 10px; box-shadow: var(--shadow-s); }
.af3-a .af3-price small { font-size: 13px; color: var(--ink2); }
.af3-a .af3-price b { font-size: 30px; color: var(--shodo-d); letter-spacing: .02em; line-height: 1.1; margin: 0 2px; }
.af3-a .af3-go { display: flex; align-items: center; gap: 8px; background: var(--gshu); color: #fff; border-radius: 18px; padding: 8px 10px 8px 8px; box-shadow: 0 5px 0 var(--shu-d); font-family: var(--maru); font-weight: 900; font-size: 14px; white-space: nowrap; line-height: 1.35; }
.af3-a .af3-go .burst { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-size: 14px; clip-path: polygon(50% 0%, 61% 12%, 77% 6%, 80% 22%, 96% 26%, 89% 41%, 100% 54%, 86% 63%, 90% 80%, 74% 81%, 66% 97%, 52% 88%, 37% 99%, 30% 83%, 13% 85%, 15% 68%, 0% 59%, 11% 45%, 3% 30%, 19% 25%, 21% 8%, 37% 13%); }
.af3-a .af3-go .tx { flex: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.af3-a .af3-go svg { width: 18px; height: 18px; }

/* ===== B：スマホに届く ===== */
.af3-b { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 22px 18px 18px; border-radius: 28px;
  border: 4px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gshu) border-box; box-shadow: 0 6px 0 var(--shu-l), var(--shadow-s); }
.af3-b .af3-phone { display: block; background: #2C2622; border-radius: 22px; padding: 7px; transform: rotate(-4deg); box-shadow: 0 8px 18px rgba(70, 45, 25, .18); }
.af3-b .af3-phone .scr { display: block; background: var(--shu-l); border-radius: 16px; padding: 10px 6px 6px; }
.af3-b .af3-phone svg { display: block; width: 100%; height: auto; }
.af3-b .af3-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.af3-b .af3-note { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2.5px solid var(--shu); border-radius: 14px; padding: 4px 12px 4px 6px; font-family: var(--maru); font-weight: 900; font-size: 14px; color: var(--ink); box-shadow: 0 4px 0 var(--shu-l); }
.af3-b .af3-note svg { width: 28px; height: 28px; padding: 6px; box-sizing: border-box; border-radius: 50%; background: var(--shu); color: #fff; }
.af3-b .af3-note span { display: grid; line-height: 1.3; }
.af3-b .af3-note small { font-size: 11px; color: var(--shu-d); }
.af3-b .af3-name { font-family: var(--maru); font-weight: 900; font-size: 27px; line-height: 1.25; margin-top: 4px; }
.af3-b .af3-name span { color: var(--shu); }
.af3-b .af3-copy { font-family: var(--maru); font-weight: 700; font-size: 17px; line-height: 1.5; }
.af3-b .af3-copy em { color: var(--shu); font-size: 1.45em; letter-spacing: .02em; }
.af3-b .af3-sub { font-size: 13.5px; color: var(--ink2); line-height: 1.65; }
.af3-b .af3-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; background: var(--gshu); color: #fff; border-radius: 999px; padding: 10px 20px; box-shadow: 0 5px 0 var(--shu-d); font-family: var(--maru); font-weight: 900; font-size: 15px; }
.af3-b .af3-go svg { width: 18px; height: 18px; }

/* ===== C：半紙と朱墨 ===== */
.af3-c .af3-paper { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 26px 22px 20px; border-radius: 22px; border: 2px solid var(--line); overflow: hidden;
  background-color: #FFFDF7;
  background-image: linear-gradient(90deg, transparent calc(50% - .5px), rgba(217, 65, 43, .14) calc(50% - .5px), rgba(217, 65, 43, .14) calc(50% + .5px), transparent calc(50% + .5px)), linear-gradient(transparent calc(50% - .5px), rgba(217, 65, 43, .14) calc(50% - .5px), rgba(217, 65, 43, .14) calc(50% + .5px), transparent calc(50% + .5px));
  box-shadow: 0 10px 0 -4px #F3EADB, var(--shadow-s); }
.af3-c .af3-mark { position: relative; display: grid; place-items: center; width: 120px; height: 120px; }
.af3-c .af3-maru { position: absolute; inset: 0; width: 100%; height: 100%; }
.af3-c .af3-mark b { position: relative; font-family: var(--maru); font-weight: 900; font-size: 30px; color: var(--ink); letter-spacing: .04em; }
.af3-c .af3-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.af3-c .af3-ey { font-family: var(--maru); font-weight: 700; font-size: 12.5px; color: var(--ink3); letter-spacing: .08em; }
.af3-c .af3-h { font-family: var(--maru); font-weight: 900; font-size: 27px; line-height: 1.4; letter-spacing: .04em; }
.af3-c .af3-h em { color: var(--shu); }
.af3-c .af3-copy { font-family: var(--maru); font-weight: 700; font-size: 15px; color: var(--ink); }
.af3-c .af3-copy b { color: var(--shu-d); }
.af3-c .af3-copy em { color: var(--shu); font-size: 1.35em; }
.af3-c .af3-sub { font-size: 13px; color: var(--ink2); line-height: 1.65; }
.af3-c .af3-go { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 3px solid var(--shu); color: var(--shu-d); border-radius: 999px; padding: 10px 18px; font-family: var(--maru); font-weight: 900; font-size: 15px; line-height: 1.35; white-space: nowrap; box-shadow: 0 4px 0 var(--shu-l); }
.af3-c .af3-go svg { width: 18px; height: 18px; }
.af3-c .af3-seal { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; background: var(--shu); color: #fff; border-radius: 5px; font-family: var(--maru); font-weight: 900; font-size: 12px; line-height: 1.05; writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center; transform: rotate(5deg); opacity: .92; }

@media (max-width: 680px) {
  .af3-a .af3-in { grid-template-columns: 64px minmax(0, 1fr); gap: 10px 12px; padding: 14px 12px; }
  .af3-a .af3-wk { align-self: start; }
  .af3-a .af3-h { font-size: 19px; }
  .af3-a .af3-side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .af3-a .af3-price { flex: none; flex-direction: column; align-items: center; gap: 0; padding: 4px 12px; line-height: 1.2; }
  .af3-a .af3-price b { font-size: 24px; }
  .af3-a .af3-go { flex: 1; font-size: 13.5px; }
  .af3-b { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 14px 14px 16px 12px; align-items: start; }
  .af3-b .af3-name { font-size: 22px; }
  .af3-b .af3-copy { font-size: 15.5px; }
  .af3-b .af3-go { grid-column: 1 / -1; }
  .af3-b .af3-body { display: contents; }
  .af3-b .af3-note, .af3-b .af3-name, .af3-b .af3-copy, .af3-b .af3-sub { grid-column: 2; }
  .af3-b .af3-phone { grid-row: 1 / span 3; align-self: start; }
  .af3-b .af3-note { justify-self: start; font-size: 12.5px; }
  .af3-b .af3-sub { grid-column: 1 / -1; }
  .af3-b .af3-go { justify-self: stretch; justify-content: center; }
  .af3-c .af3-paper { grid-template-columns: 84px minmax(0, 1fr); gap: 12px 14px; padding: 18px 16px; }
  .af3-c .af3-mark { width: 84px; height: 84px; align-self: start; }
  .af3-c .af3-mark b { font-size: 22px; }
  .af3-c .af3-h { font-size: 22px; }
  .af3-c .af3-go { grid-column: 1 / -1; justify-content: center; }
  .af3-c .af3-go br { display: none; }
}
