/* common.css */
@font-face {
    font-family: 'SetoFont';
    src: url('font/setofont.ttf') format('truetype');
    font-display: block;
}

* {
    font-family: 'SetoFont', "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    box-sizing: border-box;
}

html, body {
    margin: 0; padding: 0; width: 100%; height: 100%;
    background-color: #2c3e50; 
    color: #ECDBBF;
    -webkit-user-select: none; user-select: none;
}

/* 上部タイトルバー */
.top-bar {
    position: sticky; top: 0; width: 100%;
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-left: calc(20px + env(safe-area-inset-left));
    padding-right: calc(20px + env(safe-area-inset-right));
    padding-bottom: 10px;
    background: rgba(67, 37, 23, 0.9);
    color: #ECDBBF;
    display: flex; align-items: center; justify-content: center;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.menu-icon-btn {
    position: absolute;
    left: calc(15px + env(safe-area-inset-left));
    background: transparent; border: none; color: #ECDBBF;
    font-size: 1.5rem; cursor: pointer; padding: 5px;
}

.top-bar h1 { margin: 0; font-size: 1.5rem; text-shadow: 1px 1px 2px #000; }

/* 広告と下部メニューの余白確保 */
main { padding-bottom: 140px; }

/* 広告エリア */
#ad-banner {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 50px;
    background-color: #000; z-index: 110;
    display: flex; justify-content: center; align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: content-box;
}

/* 下部メニュー */
.bottom-menu {
    position: fixed; bottom: calc(55px + env(safe-area-inset-bottom));
    left: calc(2% + env(safe-area-inset-left)); right: calc(2% + env(safe-area-inset-right));
    display: flex; justify-content: space-around; align-items: flex-end; gap: 5px;
    z-index: 100;
}

.menu-btn {
    flex: 1; height: 60px;
    border: 2px solid #432517; border-radius: 10px;
    color: #ECDBBF; font-weight: bold; font-size: 0.9rem;
    cursor: pointer; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 2px #432517;
}
.menu-btn:active { transform: scale(0.95); }

/* ボタンカラー */
.btn-schedule { background: linear-gradient(to bottom, #7B9C4B 0%, #ECDBBF 100%); }
.btn-results  { background: linear-gradient(to bottom, #4facfe 0%, #00f2fe 100%); }
.btn-calendar { background: linear-gradient(to bottom, #6C4B9C 0%, #ECDBBF 100%); }
.btn-transfer { background: linear-gradient(to bottom, #9C4B52 0%, #ECDBBF 100%); }
.btn-notes    { background: linear-gradient(to bottom, #9C804B 0%, #ECDBBF 100%); }

/* モーダル */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 200; justify-content: center; align-items: center;
}
.modal-content {
    background: #ECDBBF; border: 4px solid #432517; border-radius: 15px; padding: 20px;
    width: 80%; max-width: 300px; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); position: relative;
}
.modal-close-btn {
    position: absolute; top: 5px; right: 10px; background: transparent; border: none;
    font-size: 1.5rem; color: #432517; cursor: pointer; font-weight: bold;
}
.modal-link {
    display: block; margin: 15px 0; padding: 10px; background: #432517; color: #ECDBBF;
    text-decoration: none; border-radius: 8px; font-weight: bold;
}
