/* Voice guide pages (generated by scripts/build_voice_guide.py).
   Layout lives in the canvas inline styles; this file only adds what the canvas cannot hold. */
html { -webkit-text-size-adjust: 100%; }
body.vg { margin: 0; background: #FDFCF9; }
/* The width/height attributes reserve space; the inline styles set the rendered size. */
.vg-root img { height: auto; }
.vg-skip { position: absolute; left: 16px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #FFFFFF; color: #5032BD; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif; font-size: 14px; font-weight: 700; transform: translateY(-200%); }
.vg-skip:focus { transform: none; }
.vg-root a:focus-visible, .vg-skip:focus-visible { outline: 2px solid #6143DF; outline-offset: 2px; }
/* Article cards on /articles (an <a> that holds a picture and an <h3>): hover feedback.
   The canvas inline styles cannot hold :hover, so it lives here; the motion matches the LP cards (lp-cards.css).
   border-color needs !important because the card's border is set inline. The picture grows from its bottom
   edge so it never covers the text below it. A browser without :has() shows no hover effect. */
.vg-root a:has(> img):has(h3) { transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s, border-color .15s; }
.vg-root a:has(> img):has(h3) > img { transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.2, .7, .3, 1); }
.vg-root a:has(> img):has(h3) h3 { transition: color .15s; }
.vg-root a:has(> img):has(h3) h3 span[aria-hidden="true"] { transition: transform .25s cubic-bezier(.2, .7, .3, 1); }
.vg-root a:has(> img):has(h3):focus-visible { border-color: #6143DF !important; box-shadow: 0 12px 30px rgba(97, 67, 223, .14); transform: translateY(-4px); }
.vg-root a:has(> img):has(h3):focus-visible > img { transform: scale(1.03); }
.vg-root a:has(> img):has(h3):focus-visible h3 { color: #5032BD; }
.vg-root a:has(> img):has(h3):focus-visible h3 span[aria-hidden="true"] { transform: translateX(4px); }
@media (hover: hover) {
  .vg-root a:has(> img):has(h3):hover { border-color: #6143DF !important; box-shadow: 0 12px 30px rgba(97, 67, 223, .14); transform: translateY(-4px); }
  .vg-root a:has(> img):has(h3):hover > img { transform: scale(1.03); }
  .vg-root a:has(> img):has(h3):hover h3 { color: #5032BD; }
  .vg-root a:has(> img):has(h3):hover h3 span[aria-hidden="true"] { transform: translateX(4px); }
}
.vg-root a:has(> img):has(h3):active { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .vg-root a:has(> img):has(h3), .vg-root a:has(> img):has(h3) > img, .vg-root a:has(> img):has(h3) h3 span[aria-hidden="true"] { transition: none; }
  .vg-root a:has(> img):has(h3):hover, .vg-root a:has(> img):has(h3):focus-visible, .vg-root a:has(> img):has(h3):active, .vg-root a:has(> img):has(h3):hover > img, .vg-root a:has(> img):has(h3):focus-visible > img,
  .vg-root a:has(> img):has(h3):hover h3 span[aria-hidden="true"], .vg-root a:has(> img):has(h3):focus-visible h3 span[aria-hidden="true"] { transform: none; }
}
/* 「次に読むなら」 rows in the articles (an <a> whose direct children are a thumbnail, a title and an arrow):
   hover feedback, a quieter version of the cards'. A row does not lift: the thumbnail grows a little, the title
   and the rule under the row turn purple, and the arrow moves forward. The colours need !important because
   the row's colour and both borders are set inline. */
.vg-root main a:has(> img):has(> span[aria-hidden="true"]) { transition: color .15s, border-color .15s; }
.vg-root main a:has(> img):has(> span[aria-hidden="true"]) > img { transition: transform .35s cubic-bezier(.2, .7, .3, 1), border-color .15s; }
.vg-root main a:has(> img):has(> span[aria-hidden="true"]) > span[aria-hidden="true"] { transition: transform .25s cubic-bezier(.2, .7, .3, 1); }
.vg-root main a:has(> img):has(> span[aria-hidden="true"]):focus-visible { color: #5032BD !important; border-bottom-color: #6143DF !important; }
.vg-root main a:has(> img):has(> span[aria-hidden="true"]):focus-visible > img { border-color: #6143DF !important; transform: scale(1.05); }
.vg-root main a:has(> img):has(> span[aria-hidden="true"]):focus-visible > span[aria-hidden="true"] { transform: translateX(4px); }
@media (hover: hover) {
  .vg-root main a:has(> img):has(> span[aria-hidden="true"]):hover { color: #5032BD !important; border-bottom-color: #6143DF !important; }
  .vg-root main a:has(> img):has(> span[aria-hidden="true"]):hover > img { border-color: #6143DF !important; transform: scale(1.05); }
  .vg-root main a:has(> img):has(> span[aria-hidden="true"]):hover > span[aria-hidden="true"] { transform: translateX(4px); }
}
.vg-root main a:has(> img):has(> span[aria-hidden="true"]):active > img { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) {
  .vg-root main a:has(> img):has(> span[aria-hidden="true"]), .vg-root main a:has(> img):has(> span[aria-hidden="true"]) > img, .vg-root main a:has(> img):has(> span[aria-hidden="true"]) > span[aria-hidden="true"] { transition: none; }
  .vg-root main a:has(> img):has(> span[aria-hidden="true"]):hover > img, .vg-root main a:has(> img):has(> span[aria-hidden="true"]):focus-visible > img, .vg-root main a:has(> img):has(> span[aria-hidden="true"]):active > img,
  .vg-root main a:has(> img):has(> span[aria-hidden="true"]):hover > span[aria-hidden="true"], .vg-root main a:has(> img):has(> span[aria-hidden="true"]):focus-visible > span[aria-hidden="true"] { transform: none; }
}
.vg-footer { box-sizing: border-box; max-width: 720px; margin: 0 auto; padding: 20px 16px 28px; border-top: 1px solid #E4DEF2; color: #5E5A78; font-size: 13px; text-align: center; }
.vg-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.vg-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #5E5A78; }
.vg-footer small { display: block; margin-top: 6px; font-size: 12px; }
/* About page */
.vg-about-lead { margin: 0; }
.vg-about-list { margin: 24px 0 0; padding: 0 0 36px; }
.vg-about-row { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 2px 20px; padding: 14px 0; border-top: 1px solid #E4DEF2; }
.vg-about-row:last-child { border-bottom: 1px solid #E4DEF2; }
.vg-about-row dt { color: #5E5A78; font-size: 13px; font-weight: 700; line-height: 1.75; padding-top: 0.2em; }
.vg-about-row dd { margin: 0; overflow-wrap: break-word; }
.vg-about-row a { color: #5032BD; }
/* 幅360前後の端末: 表の列に6文字の語が入るよう、左右の余白を詰める。
   !important の宣言は後から来る通常の宣言（ページごとの <style> の :root、main のインライン style）に勝つ。 */
@media (max-width: 379px) {
  html { --vg-figPad: 10px !important; }
  .vg-root main { padding-left: 12px !important; padding-right: 12px !important; }
}
/* 外郎売の全文: ふりがなは本文の6割（既定の5割だと16pxの本文で8pxになり読みにくい）。 */
.vg-root rt { font-size: 0.6em; }
/* ふりがなが親文字より長いとき、親文字の間を広げず、まとまりのまま中央に置く（対応していないブラウザは既定のまま）。 */
.vg-root ruby { ruby-align: center; }
/* 幅360未満: ロゴ・記事一覧へのリンク・「アプリを見る」が1行に収まるよう、ヘッダーの余白と文字を詰める
   （どれも折り返さない指定なので、詰めないと右へはみ出して横スクロールが出る）。 */
@media (max-width: 359px) {
  html { --vg-barPad: 12px !important; }
  .vg-root > header { gap: 8px !important; }
  .vg-root > header > a { gap: 6px !important; font-size: 15px !important; }
  .vg-root > header nav { gap: 4px !important; }
  .vg-root > header nav a { font-size: 12px !important; }
  .vg-root > header nav a:last-child { padding: 0 9px !important; }
}
/* 幅360〜374: リンクとボタンの間を 16px にすると右の余白へ食い込むので、10px にとどめる。 */
@media (min-width: 360px) and (max-width: 374px) {
  .vg-root > header nav { gap: 10px !important; }
}
@media (max-width: 560px) {
  .vg-about-row { grid-template-columns: 1fr; }
}
