/* 
 * デスクトップ版ボタンコンポーネント
 * BEM命名規則に基づくボタン構造
 */

/* Block: 基本ボタン */
.button {
    display: inline-block;
    padding: 10px 20px;
    min-width: 160px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #f5f5f5;
    color: #333;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Element: ボタンテキスト */
.button__text {
    display: inline-block;
    vertical-align: middle;
}

/* Element: ボタンアイコン */
.button__icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Element: ボタンアイコン（右側配置） */
.button__icon--right {
    margin-right: 0;
    margin-left: 8px;
}

/* Modifier: プライマリボタン */
.button--primary {
    background-color: rgb(164, 11, 94);
    color: white;
    border-color: rgb(164, 11, 94);
}

.button--primary:hover {
    background-color: rgb(134, 9, 77);
    border-color: rgb(134, 9, 77);
}

/* Modifier: セカンダリボタン */
.button--secondary {
    background-color: transparent;
    color: rgb(164, 11, 94);
    border-color: rgb(164, 11, 94);
}

.button--secondary:hover {
    background-color: rgba(164, 11, 94, 0.1);
}

/* Modifier: リンクボタン */
.button--link {
    background-color: transparent;
    color: rgb(164, 11, 94);
    border-color: transparent;
    padding: 5px 10px;
    min-width: auto;
    text-decoration: underline;
}

.button--link:hover {
    background-color: transparent;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

/* Modifier: 大きいボタン */
.button--large {
    padding: 12px 30px;
    font-size: 18px;
    min-width: 200px;
}

/* Modifier: 小さいボタン */
.button--small {
    padding: 6px 15px;
    font-size: 14px;
    min-width: 120px;
}

/* Modifier: フルワイドボタン */
.button--full-width {
    width: 100%;
    display: block;
}

/* Modifier: 無効化ボタン */
.button--disabled,
.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* 
 * レガシーコード互換部分
 * 既存のコードとの互換性を保つための非BEMセレクタ
 */

/* ニュース「もっと見る」ボタン互換性 */
.news-view-all-link {
    /* .button.button--link と同等 */
    display: inline-block;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: underline;
    color: rgb(164, 11, 94);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-view-all-link:hover {
    text-decoration: none;
}

/* 送信ボタン互換性 */
.submit-btn {
    /* .button.button--primary と同等 */
    display: inline-block;
    padding: 10px 20px;
    min-width: 160px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid rgb(164, 11, 94);
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: rgb(164, 11, 94);
    color: white;
}

.submit-btn:hover {
    background-color: rgb(134, 9, 77);
    border-color: rgb(134, 9, 77);
}

/* 戻るボタン互換性 */
.back-btn {
    /* .button.button--secondary と同等 */
    display: inline-block;
    padding: 10px 20px;
    min-width: 160px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid rgb(164, 11, 94);
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: transparent;
    color: rgb(164, 11, 94);
}

.back-btn:hover {
    background-color: rgba(164, 11, 94, 0.1);
}