/* ============================================================
   ボタン・入力フォーム共通コンポーネント
   ============================================================ */
.title-img {
    display: block;
    margin: 0 auto;
}

.title {
    font-family: var(--font-pixel);
    text-align: center;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.subtitle {
    text-align: center;
    color: var(--primary-color);
}

/* ボタン周りのレイアウト */
.top-action-group {
    /* 【横画面】ノート・アイデアボタン周りの余白調整 */
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
    margin-top: 15px;
    /* バトルスタートボタンとの間隔 */
    margin-bottom: 0px;
    /* 画面下部との間隔 */
    padding: 0 0px;
}

.top-action-group button {
    flex: 1;
    margin: 0;
}

/* ボタン類 */
.primary-btn,
.secondary-btn,
.orange-btn,
.green-btn {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    box-sizing: border-box;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    font-family: var(--font-pixel);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    vertical-align: middle;
    line-height: 1;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.primary-btn {
    color: #c8deff;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: none;
    position: relative;
    padding: 0;
}

button#start-btn {
    /* 【横画面】バトルスタートボタンのサイズ調整用 */
    height: 80px !important;
    font-size: 40px !important;
    padding: 10px 20px;
    /* width: 250px; などを追加して調整してください */
}

button#note-btn {
    /* 【横画面】モンスターノートボタンのサイズ調整用 */
    height: 50px !important;
    font-size: 20px !important;
    padding: 10px 20px;
}

.secondary-btn {
    color: #9a9080;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: none;
    position: relative;
    padding: 0;
}

.orange-btn {
    color: #f0d090;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: none;
    position: relative;
    padding: 0;
}

.green-btn {
    color: #c0e8c5;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: none;
    position: relative;
    padding: 0;
}

/* ボタン背景画像 */
.btn-bg-img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

/* ボタンテキストオーバーレイ */
.btn-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-family: var(--font-pixel);
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.05em;
}

.primary-btn:active,
.secondary-btn:active,
.orange-btn:active,
.green-btn:active {
    transform: translateY(3px);
    box-shadow: none;
}

.secondary-btn:hover {
    color: #c8b890;
}

/* 入力フォーム共通 */
.input-group label {
    display: block;
    font-weight: bold;
    color: #a0aabf;
}

input[type="text"] {
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: rgba(8, 10, 22, 0.9);
    color: white;
    text-align: center;
    outline: none;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 12px rgba(79, 172, 254, 0.3);
}

.toggle-group,
.checkbox-group {
    display: flex;
    gap: 10px;
}

.toggle-btn,
.checkbox-btn {
    flex: 1;
    background: #252b42;
    border: 2px solid var(--border-color);
    color: #888;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.toggle-btn.active,
.checkbox-btn.active {
    background: linear-gradient(180deg, #5dbeff 0%, #3399f5 50%, #1580e8 100%);
    color: #fff;
    border-color: rgba(79, 172, 254, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
