/* 共通ヘッダー */
.site-header {
    background: #0066cc;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    font-size: 16px;
    z-index: 1000;
}
.site-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    flex: 1;
    text-align: center;
}
.site-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
} /* 閉じカッコを追加 */

.main-content {
    min-height: calc(100vh - 160px); /* header+footer分 */
    box-sizing: border-box;
}
body {
    margin: 0;
    padding-top: 64px; /* headerの高さ分。必要に応じて調整 */
    box-sizing: border-box;
    background: #f9f9f9; /* コンテンツ背景色を明示 */
}
.menu-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #0066cc;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
}
.side-menu {
    position: fixed;
    top: 0;
    left: -240px;
    width: 240px;
    height: 100%;
    background: #333;
    color: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transition: left 0.3s;
    z-index: 1001;
    padding: 32px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.side-menu.open {
    left: 0;
}
.menu-title {
    margin-top: 0;
    font-size: 20px;
}
.side-menu a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 16px 0;
}
.close-menu {
    background: #fff;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
}

/* 共通フッター */
.site-footer {
    background: #0066cc;
    color: #fff !important;
    text-align: center;
    padding: 16px 0;
    margin-top: 32px;
    position: relative;
    width: 100%;
    z-index: 10;
}
.footer-text {
    margin: 0;
    color: #fff !important;
}

/* ページ全体の余白調整 */
body {
    margin: 0;
    padding-top: 80px;
    min-height: 100vh;
    box-sizing: border-box;
}

/* ログインページ用スタイル */
.page-style .center-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    width: 100%;
}
.page-style .card {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    text-align: center;
    background: #fff;
}
.page-style form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}
.page-style label {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}
.page-style input[type="text"], .page-style input[type="email"], .page-style input[type="password"] {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f7f7f7;
    transition: border-color 0.2s;
}
.page-style input[type="text"]:focus, .page-style input[type="email"]:focus, .page-style input[type="password"]:focus {
    border-color: #0066cc;
    outline: none;
}
.page-style .errors {
    background: #fee;
    border: 1px solid #fbb;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 15px;
}
.page-style .errors {
    background: #fee;
    border: 1px solid #fbb;
    color: #b00;
}
.page-style .success {
    background: #efe;
    border: 1px solid #bfb;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 15px;
}
.page-style .success {
    background: #efe;
    border: 1px solid #bfb;
    color: #080;
}
.page-style .actions {
    margin-top: 12px;
}
.page-style .btn {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 24px;
    background: linear-gradient(90deg, #0066cc 60%, #0055aa 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.btn:hover, .btn:focus {
    background: linear-gradient(90deg, #0055aa 60%, #003366 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px) scale(1.03);
}
.btn.secondary {
    background: #6c757d;
    color: #fff;
    margin-left: 8px;
}
.btn.secondary:hover, .btn.secondary:focus {
    background: #5a6268;
}

/* ヘッダー直下の帯状リンク */
.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ff9800;
    padding: 16px 0;
    gap: 24px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 0px;
}
.top-bar-link {
    color: #fff;
    background: #ffb74d;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}
.top-bar-link:hover, .top-bar-link:focus {
    background: #ff9800;
    transform: scale(1.05);
}
