/* オンライン赤筆先生 /akafude/・/en/akafude/ だけの見た目（2026-10-17 v2・inc/akafude.php が このページだけ読む）
   ページの骨組みは LP の部品（.lp-*・site.css）。ここは赤筆先生だけの部品 .af2-*。
   wp_build.py を通さないので、k の単位は calc(Npx*var(--k)) で書く（--k はスマホで .64）。
   決まりごと：箱の片側だけの色の線は使わない・濃い面に長い文は置かない・赤（朱墨）は「赤字」のところだけ */
.lp-akafude, .af2-float { --shu: #D9412B; --shu-d: #A92E1B; --shu-l: #FDECE8; --gshu: linear-gradient(135deg, #D9412B 0%, #F0704F 55%, #FFA463 100%); }
.lp-akafude .af-red { color: var(--shu); }
.lp-akafude .mk.af-red { color: var(--shu-d); }

/* 最初の画面 */
.af2-trust { display: flex; gap: 8px; align-items: center; margin: 16px 0 0; font-size: 14px; color: var(--ink2); line-height: 1.6; }
.af2-trust svg { width: 22px; height: 22px; flex: none; color: var(--shodo-d); }
.af2-trust b { color: var(--ink); font-family: var(--maru); }
.af2-collage .p1 { left: 0; top: 9%; width: 80%; height: 58%; transform: rotate(-3deg); }
.af2-collage .p2 { right: 0; left: auto; top: auto; bottom: 2%; width: 44%; height: 52%; transform: rotate(4deg); z-index: 3; }
.af2-collage .wkb { left: 2%; right: auto; bottom: -1%; flex-direction: row-reverse; }
.af2-collage .wkb .lp-say { margin-bottom: calc(60px*var(--k)); }
.af2-notice { position: absolute; top: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--shu); border-radius: 18px; padding: 9px 14px 9px 10px; box-shadow: 0 6px 0 var(--shu-l), var(--shadow-s); transform: rotate(3deg); max-width: 62%; }
.af2-notice .ic { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--shu); color: #fff; display: grid; place-items: center; }
.af2-notice .ic svg { width: 20px; height: 20px; }
.af2-notice span:last-child { display: grid; line-height: 1.35; }
.af2-notice small { font-family: var(--maru); font-weight: 700; font-size: 12px; color: var(--shu-d); }
.af2-notice b { font-family: var(--maru); font-weight: 900; font-size: 16px; color: var(--ink); white-space: nowrap; }
.af2-seal { position: absolute; left: 66%; top: 50%; z-index: 4; width: 52px; height: 52px; background: var(--shu); color: #fff; border-radius: 8px; font-family: var(--maru); font-weight: 900; font-size: 17px; line-height: 1.05; writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center; transform: rotate(-8deg); box-shadow: 0 4px 0 var(--shu-d); }

/* 返ってくるPDF：スマホの絵＋4つのポイント */
.af2-pdf { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: calc(44px*var(--k)); align-items: center; max-width: 1000px; margin: 0 auto; }
.af2-phone { margin: 0 auto; width: 100%; max-width: 320px; }
.af2-screen { background: #fff; border: 12px solid #2C2622; border-radius: 40px; overflow: hidden; box-shadow: 0 14px 30px rgba(70, 45, 25, .18); }
.af2-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px 10px; background: var(--shu-l); }
.af2-bar .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--shu); flex: none; }
.af2-bar b { font-family: var(--maru); font-weight: 900; font-size: 14px; color: var(--shu-d); }
.af2-bar small { margin-left: auto; font-size: 11px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af2-screen svg { display: block; width: 100%; height: auto; padding: 10px; box-sizing: border-box; }
.af2-cap { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--ink3); }
.af2-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.af2-points li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; background: #fff; border: 2.5px solid color-mix(in srgb, var(--shu) 30%, #fff); border-radius: 22px; padding: 14px 18px 14px 14px; box-shadow: 0 4px 0 color-mix(in srgb, var(--shu) 12%, #fff); }
.af2-points .mk2 { width: 52px; height: 52px; border-radius: 50%; background: var(--shu); color: #fff; font-family: var(--maru); font-weight: 900; font-size: 22px; display: grid; place-items: center; }
.af2-points h3 { margin: 4px 0 2px; font-size: 18px; line-height: 1.45; }
.af2-points p { margin: 0; font-size: 15px; color: var(--ink2); line-height: 1.75; }

/* しくみ（lp-road を4つ・さいごは赤） */
.af2-road li:last-child .dot { background: var(--gshu); border-color: #fff; color: #fff; }
.af2-road .dot { font-size: 26px; }
.af2-howpdf { display: flex; gap: 10px; align-items: flex-start; max-width: 820px; margin: calc(28px*var(--k)) auto 0; background: #fff; border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow-s); font-size: 15px; line-height: 1.7; color: var(--ink2); }
.af2-howpdf svg { width: 24px; height: 24px; flex: none; color: var(--shodo-d); margin-top: 2px; }
.af2-howpdf b { color: var(--ink); font-family: var(--maru); }

/* ベテラン講師 */
.af2-teacher { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: calc(36px*var(--k)); align-items: center; max-width: 1000px; margin: 0 auto; }
.af2-teacher img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; border: 8px solid #fff; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.af2-teacher p { margin: 0 0 14px; font-size: 17px; line-height: 1.9; }
.af2-teacher .sm { font-size: 14px; color: var(--ink2); margin: 0; }

/* 料金 */
.af2-plans { max-width: 820px; margin: 0 auto; }
.lp-akafude .af-plans { gap: 22px; }
.lp-akafude .af-plan { border-radius: 28px; box-shadow: var(--shadow-s); padding: 30px 22px 22px; }
.lp-akafude .af-plan.star { border: 4px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gshu) border-box; box-shadow: var(--shadow); }
.lp-akafude .af-plan.star .af-plan-yen b { color: var(--shu-d); }
.lp-akafude .af-plan-yen b { font-size: calc(52px*var(--k)); }
.af2-fee { max-width: 820px; margin: calc(22px*var(--k)) auto 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; background: #fff; border: 2.5px solid var(--line); border-radius: 20px; padding: 12px 20px; }
.af2-fee b { font-family: var(--maru); font-weight: 900; font-size: 16px; }
.af2-fee .y { font-family: var(--maru); font-weight: 900; font-size: 26px; color: var(--ink); letter-spacing: .02em; }
.af2-fee small { flex: 1 1 260px; font-size: 13.5px; color: var(--ink2); line-height: 1.6; }
.af2-fee small b { font-size: inherit; font-weight: 700; color: var(--shu-d); }   /* 教室の生徒は入会金なし（10/17） */
.af2-zero { list-style: none; padding: 0; margin: 12px auto 0; max-width: 820px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.af2-zero li { background: var(--cream); border-radius: 18px; padding: 12px 8px; text-align: center; font-family: var(--maru); font-weight: 700; font-size: 14px; color: var(--ink2); line-height: 1.4; }
.af2-zero b { display: block; font-size: 26px; font-weight: 900; color: var(--shu-d); line-height: 1.2; }

/* 海外の方へ */
.af2-abroad { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: calc(32px*var(--k)); align-items: center; max-width: 960px; margin: 0 auto; background: #fff; border-radius: 30px; padding: calc(30px*var(--k)) calc(32px*var(--k)); box-shadow: var(--shadow-s); }
.af2-abroad > img { width: 100%; height: auto; display: block; border-radius: 16px; border: 2px solid var(--line); }
.af2-abroad-ey { display: inline-block; margin: 0 0 8px; background: var(--blue); color: #fff; font-family: var(--maru); font-weight: 900; font-size: 13px; letter-spacing: .06em; border-radius: 999px; padding: 3px 14px; }
.af2-abroad h2 { margin: 0 0 14px; font-size: calc(30px*var(--k)); line-height: 1.45; font-weight: 900; }
.af2-abroad ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.af2-abroad li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.af2-abroad li svg { width: 40px; height: 40px; padding: 8px; box-sizing: border-box; border-radius: 50%; background: var(--blue-l); color: var(--blue-d); }
.af2-abroad li span { font-size: 14.5px; color: var(--ink2); line-height: 1.65; }
.af2-abroad li b { display: block; font-family: var(--maru); font-size: 16px; color: var(--ink); }
.af2-en { margin: 16px 0 0; }
.af2-en a { display: inline-flex; gap: 8px; align-items: center; border: 2px solid var(--blue); border-radius: 999px; padding: 6px 16px; font-family: var(--maru); font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--blue-d); background: #fff; }
.af2-en svg { width: 18px; height: 18px; }

/* 英語のページ：名前の意味と ことばの説明 */
.af2-gloss { max-width: 880px; margin: 0 auto; background: #fff; border-radius: 28px; padding: calc(26px*var(--k)) calc(28px*var(--k)); box-shadow: var(--shadow-s); }
.af2-gloss > p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.85; }
.af2-gloss .af-gloss div { background: var(--cream); border: 0; }

/* よくある質問・申込 */
.af2-faq { max-width: 820px; }
.af2-final h2 { margin-top: 10px; }
.af2-formbox { max-width: 760px; margin: 0 auto; text-align: left; background: #fff; border-radius: 26px; padding: calc(24px*var(--k)) calc(26px*var(--k)); box-shadow: var(--shadow-s); }
.af2-formbox .wpcf7 { margin: 0; }
.af2-formbox input[type="submit"], .af2-formbox .wpcf7-submit { background: var(--gshu); color: #fff; border: 0; box-shadow: 0 6px 0 var(--shu-d); font-family: var(--maru); font-weight: 900; }
.af2-formbox input[type="submit"]:hover, .af2-formbox .wpcf7-submit:hover { filter: brightness(1.05); }

/* 浮きボタン（inc/akafude.php が出す。フォームが見えている間は .off でかくす） */
.af2-float { position: fixed; right: 14px; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--gshu); color: #fff; text-decoration: none; border-radius: 999px; padding: 8px 16px 8px 8px; box-shadow: 0 5px 0 var(--shu-d), 0 10px 22px rgba(120, 40, 20, .22); transition: opacity .25s, transform .25s; }
.af2-float:hover { color: #fff; transform: translateY(-2px); }
.af2-float .b { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-family: var(--maru); font-weight: 900; font-size: 15px; }
.af2-float .t { font-family: var(--maru); font-weight: 900; font-size: 14.5px; line-height: 1.3; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.af2-float svg { width: 18px; height: 18px; flex: none; }
.af2-float.off { opacity: 0; transform: translateY(20px); pointer-events: none; }

@media (max-width: 960px) {
  .af2-collage { max-width: 520px; margin: 10px auto 0; width: 100%; }
}
@media (max-width: 860px) {
  .af2-pdf, .af2-teacher { grid-template-columns: 1fr; }
  .af2-pdf { max-width: 560px; }
  .af2-teacher { max-width: 560px; }
}
@media (max-width: 680px) {
  .af2-notice { padding: 7px 10px 7px 8px; gap: 8px; }
  .af2-notice .ic { width: 32px; height: 32px; }
  .af2-notice { max-width: 74%; right: 2%; }
  .af2-notice b { font-size: 13.5px; white-space: normal; }
  .af2-seal { width: 42px; height: 42px; font-size: 14px; }
  .af2-points li { grid-template-columns: 44px minmax(0, 1fr); padding: 12px 14px 12px 12px; }
  .af2-points .mk2 { width: 44px; height: 44px; font-size: 19px; }
  .af2-points h3 { font-size: 17px; }
  .af2-points p { font-size: 14.5px; }
  .af2-teacher p { font-size: 16px; }
  .af2-zero li { font-size: 12.5px; padding: 10px 4px; }
  .af2-zero b { font-size: 21px; }
  .af2-abroad { grid-template-columns: 1fr; padding: 22px 18px; }
  .af2-abroad > img { max-width: 120px; }
  .af2-abroad h2 { font-size: 22px; }
  .lp-akafude .af-plan-yen b { font-size: 40px; }
  .af2-float { right: 10px; padding: 6px 14px 6px 6px; }
  .af2-float .b { width: 40px; height: 40px; font-size: 13.5px; }
  .af2-float .t { font-size: 13.5px; }
}
