/* reikai/assets/reikai.css */

.reikai-title-table {
    border: 1px solid #999;
    background-color: #f7f7f7;
    margin-bottom: 20px;
}

.breadcrumb {
    font-size: 12px;
    margin-bottom: 10px;
    color: #666;
}

.breadcrumb a {
    color: #008b35;
    text-decoration: none;
}

#sample1 tr.current td,
#sample1 tr.current a {
    font-weight: bold;
    color: #008b35;
}

#column_3 img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* =========================================
   管理画面用スタイル (UI/UX改善版)
========================================= */
.admin-body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

.admin-header {
    background: #17853b;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.admin-header a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.admin-header a:hover {
    background: rgba(255,255,255,0.2);
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
}

.admin-breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.admin-breadcrumb a {
    color: #17853b;
    text-decoration: underline;
    font-weight: bold;
}

.admin-breadcrumb a:hover {
    color: #0f5c28;
    text-decoration: none;
}

.admin-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.admin-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #222;
    border-bottom: 2px solid #17853b;
    padding-bottom: 10px;
}

/* テーブルのレスポンシブ対応 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* スマホでスクロールさせるための最小幅 */
}

.admin-table th, .admin-table td {
    border-bottom: 1px solid #eee;
    padding: 12px 15px;
    text-align: left;
}

.admin-table th {
    background: #eee;
    font-weight: bold;
    color: #000;
    white-space: nowrap;
    border-bottom: 2px solid #17853b;
}

.admin-table tr:hover {
    background-color: #fdfdfd;
}

.admin-table a {
    color: #17853b;
    text-decoration: underline;
    font-weight: bold;
}

.admin-table a:hover {
    color: #0f5c28;
    text-decoration: none;
}

/* フォームスタイル */
.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.admin-form input[type="text"]:focus,
.admin-form input[type="password"]:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: #17853b;
    outline: none;
    box-shadow: 0 0 5px rgba(23, 133, 59, 0.2);
}

.admin-form textarea {
    height: 250px;
    resize: vertical;
}

/* ボタンスタイル */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #17853b;
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.btn:hover {
    background: #126b2f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
    min-width: 60px;
}

.admin-table td .btn {
    margin-right: 5px;
}

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

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* 画像リスト */
.image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.image-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.image-item img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    margin: 0 auto 10px auto;
    display: block;
}

/* ログイン画面専用 */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f4f7f6;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    box-sizing: border-box;
    margin: 0 auto;
}

.login-box h1 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    color: #17853b;
}

.error-msg {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid #f5c6cb;
}