/* 3つの公開規約ページの本文リンクだけに適用。
   ヘッダー「明日へ！」の下線と同じ：中央から左右へ0.23秒で伸びる。
   共通CSS・管理画面・公開ページの本文データは変更しない。 */
.policy-document a:link,
.policy-document a:visited,
.policy-document a:hover {
    color: #0000EE;
    text-decoration: none;
}

.policy-document a {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    vertical-align: baseline;
    text-decoration: none;
}

.policy-document a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #A68A6A;  /* 本文と同じ茶色 */
    transform: translateX(-50%);
    transition: width 0.23s ease;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .policy-document a:hover::after {
        width: 100%;
    }
}

/* キーボード操作でもリンクを認識できるようにする。 */
.policy-document a:focus-visible::after {
    width: 100%;
}
.policy-document a:focus-visible {
    outline: 2px solid #8B6B4A;
    outline-offset: 4px;
}

/* ホバー中にクリックしても、従来どおり押下中だけ赤文字。 */
.policy-document a:active {
    color: #FF0000;
}

