/* CSS変数でボタン色を一元管理。単色フラット仕上げ。
 * --theme-color / --theme-color-glow は macro.ks の [init_theme_style] が
 * pipeline_config.yaml の theme_color から動的に注入する（first.ks 起動時に1回）。
 */
:root {
    --button-bg: #222222;
    --button-hover-bg: var(--theme-color, #E4007F);
}

/* ボタンスタイル（単色フラット・影なし）。
 * glink.css 側がデフォルトで box-shadow を掛けるため !important で確実に消す。 */
.glink_button, .custom-submit-button {
    background: var(--button-bg);
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;

    /* 基本プロパティ（重要！） */
    display: inline-block;
    border: 2px solid #ffffff;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
    font-family: var(--font-main);
    text-decoration: none;
    vertical-align: baseline;
    outline: none;
    /* hover時の border 2px→4px 増分で長いラベルが折り返されないよう改行禁止 (2026-05-26) */
    white-space: nowrap;
}

/* glink color="black" 等で glink.css 内 .black:hover と同 specificity になるため
 * !important で確実に上書き。 */
.glink_button:hover, .custom-submit-button:hover {
    background: var(--button-hover-bg) !important;
    border: 4px solid var(--theme-color, #E4007F) !important;
    transform: scale(1.05) translateY(-3px) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.glink_button:active, .custom-submit-button:active {
    transform: translateY(0);
    box-shadow: none;
}
