@charset "utf-8";
/* =============================================================
   stage6-fix.css
   1) .fit      : 本文幅(右カラム)からはみ出す表・ギャラリーを枠内に収める
   2) .cta-bar  : 長いページの途中に置く「お問い合わせ」「ページTOPへ」
                  (画面右下の固定ボタン .fixed-nav と同じデザイン)
   使うページの head 領域から直接読み込みます。
   ============================================================= */

/* ---- 1) はみ出し防止 ---- */
#right table.fit { max-width: 100%; }
#right table.fit td { width: auto; }
#right table.fit img,
#right .rt.fit img { max-width: 100%; height: auto; }
#right .rt.fit { width: auto; min-width: 0; max-width: 680px; }

/* ---- 2) ページ途中のボタン ---- */
.cta-bar {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 2em 0 1.5em;
    padding: 0;
}
.cta-bar a:link,
.cta-bar a:visited,
.cta-bar a:active,
.cta-bar a:hover {
    display: block;
    box-sizing: border-box;
    width: 160px;
    padding: 9px 10px;
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
    line-height: 1.3;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    opacity: 1;
}
.cta-bar a.cta-contact:link,
.cta-bar a.cta-contact:visited,
.cta-bar a.cta-contact:active {
    background-color: #D9005F;
    color: #fff;
    border: 2px solid #D9005F;
}
.cta-bar a.cta-contact:hover,
.cta-bar a.cta-contact:focus-visible {
    background-color: #A8004A;
    border-color: #A8004A;
    color: #fff;
}
.cta-bar a.cta-top:link,
.cta-bar a.cta-top:visited,
.cta-bar a.cta-top:active {
    background-color: #fff;
    color: #1a2a8f;
    border: 2px solid #1a2a8f;
}
.cta-bar a.cta-top:hover,
.cta-bar a.cta-top:focus-visible {
    background-color: #1a2a8f;
    color: #fff;
}
.cta-bar a.cta-top::before { content: "\2191\00a0"; }
.cta-bar a:focus-visible { outline: 3px solid #1a1aff; outline-offset: 2px; }
@media print { .cta-bar { display: none; } }
