@charset "UTF-8";

/* ============================================
   MOパワー ブログ CSS
   既存サイトデザイン踏襲
   ============================================ */

/* --- ヘッダー h1 リンク色修正 --- */
header h1 a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #124074;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
}
header h1 a:hover {
    color: #124074;
    text-decoration: none;
    opacity: 1;
    filter: none;
}

/* --- 共通リセット --- */
.blogMain {
    padding-top: 120px;
    min-height: 60vh;
}
@media (max-width: 767px) {
    .blogMain {
        padding-top: 90px;
        padding-bottom: 80px;
    }
}

/* --- ヘッダーナビ（TOPページと同じsiteNavを使用） --- */
.siteNav {
    display: flex;
    align-items: center;
    margin-right: 20px;
}
.siteNav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}
.siteNav ul li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s;
}
.siteNav ul li a:hover {
    color: #e60012;
}
@media (max-width: 767px) {
    .siteNav { display: none; }
}

/* ============================================
   ブログ公開ページ
   ============================================ */

/* --- ページヘッダー --- */
.blog-page-header {
    margin-bottom: 40px;
}
.blog-page-title {
    display: inline-block;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin-bottom: 20px;
}
.blog-page-title::after {
    content: "";
    display: block;
    width: 65px;
    height: 3px;
    background: #ccc;
    margin-top: 15px;
    border-left: 35px solid #e60012;
}

/* --- 記事カード --- */
.blog-grid {
    margin-bottom: 60px;
}
.blog-card {
    display: block;
    text-decoration: none;
    color: #333;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s, transform 0.3s;
    margin-bottom: 30px;
}
.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: #333;
}
.blog-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f5f5;
}
.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.blog-card:hover .blog-card__thumb img {
    transform: scale(1.05);
}
.blog-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #aaa;
    font-size: 14px;
}
.blog-card__body {
    padding: 20px;
}
.blog-card__date {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
.blog-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    line-height: 1.5;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__title::after {
    display: none;
}
.blog-card__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* --- ページネーション --- */
.blog-pagination {
    text-align: center;
    margin: 40px 0 60px;
}
.blog-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}
.blog-pagination ul li a,
.blog-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.blog-pagination ul li a:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}
.blog-pagination ul li.active span {
    background: #e60012;
    border-color: #e60012;
    color: #fff;
}

/* --- 空状態 --- */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

/* ============================================
   記事詳細
   ============================================ */

/* --- パンくずリスト --- */
.blog-breadcrumb {
    margin-bottom: 30px;
}
.blog-breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}
.blog-breadcrumb ul li {
    color: #999;
}
.blog-breadcrumb ul li + li::before {
    content: ">";
    margin: 0 8px;
}
.blog-breadcrumb ul li a {
    color: #666;
    text-decoration: none;
}
.blog-breadcrumb ul li a:hover {
    color: #e60012;
}

/* --- 記事本体 --- */
.blog-article {
    display: block;
    max-width: 800px;
    width: 100%;
    margin: 0 auto 60px;
    position: relative;
}
.blog-article__header {
    display: block !important;
    width: 100%;
    margin-bottom: 30px;
    text-align: left;
    position: static !important;
    justify-content: initial !important;
    align-items: initial !important;
    padding: 0 !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.blog-article__header::after,
.blog-article__header::before {
    display: none !important;
}
.blog-article__date {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}
.blog-article__title {
    display: block !important;
    width: 100% !important;
    font-size: 28px;
    font-weight: 700;
    color: #000;
    line-height: 1.5;
    margin: 0;
    white-space: normal;
    position: static !important;
}
.blog-article__title::after {
    display: none !important;
}
@media (max-width: 767px) {
    .blog-article__title {
        font-size: 22px;
    }
}
.blog-article__title::after {
    display: none;
}
.blog-article__thumb {
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
}
.blog-article__thumb img {
    width: 100%;
    height: auto;
    display: block;
}
.blog-article__no-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #aaa;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
}
.blog-article__body {
    font-size: 16px;
    line-height: 2;
    color: #333;
}
.blog-article__body h2,
.blog-article__body h3,
.blog-article__body h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #000;
}
.blog-article__body h3::after {
    display: none;
}
.blog-article__body p {
    margin-bottom: 1.5em;
}
.blog-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1em 0;
}
.blog-article__body a {
    color: #e60012;
    text-decoration: underline;
}
.blog-article__footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.blog-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: background 0.3s;
}
.blog-btn:hover {
    background: #e60012;
    color: #fff;
}

/* --- 404 --- */
.blog-not-found {
    text-align: center;
    padding: 80px 20px;
}
.blog-not-found h2 {
    font-size: 24px;
    margin-bottom: 20px;
}
.blog-not-found h2::after {
    display: none;
}

/* ============================================
   管理画面
   ============================================ */

/* --- ログイン画面 --- */
.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f5f5f5;
    font-family: "Noto Sans JP", sans-serif;
}
.admin-login__box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    margin: 20px;
}
.admin-login__box h1 {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin: 0 0 25px 0;
}
.admin-login__desc {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

/* --- 管理画面レイアウト --- */
.admin-wrap {
    font-family: "Noto Sans JP", sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
@media (max-width: 767px) {
    .admin-header {
        flex-wrap: wrap;
        gap: 10px;
    }
}
.admin-header h1 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.admin-header h1 a {
    color: #000;
    text-decoration: none;
}
.admin-header__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.admin-body {
    padding-bottom: 60px;
}
.admin-body h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

/* --- ツールバー --- */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.admin-count {
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

/* --- ボタン --- */
.admin-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    line-height: 1.5;
    font-family: "Noto Sans JP", sans-serif;
}
.admin-btn--primary {
    background: #e60012;
    color: #fff;
    border-color: #e60012;
}
.admin-btn--primary:hover {
    background: #c5000f;
    color: #fff;
}
.admin-btn--outline {
    background: #fff;
    color: #333;
    border-color: #ccc;
}
.admin-btn--outline:hover {
    background: #f5f5f5;
    color: #333;
}
.admin-btn--text {
    background: none;
    color: #666;
    padding: 8px 12px;
}
.admin-btn--text:hover {
    color: #e60012;
}
.admin-btn--danger {
    background: #fff;
    color: #e60012;
    border-color: #e60012;
}
.admin-btn--danger:hover {
    background: #e60012;
    color: #fff;
}
.admin-btn--sm {
    padding: 4px 12px;
    font-size: 13px;
}

/* --- テーブル --- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 14px;
}
.admin-table th {
    background: #fafafa;
    font-weight: 600;
    color: #666;
    font-size: 13px;
}
.admin-table td a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}
.admin-table td a:hover {
    color: #e60012;
}
.admin-table__thumb {
    width: 80px;
}
.admin-table__thumb img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
}
.admin-table__no-image {
    width: 70px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #aaa;
}

/* --- バッジ --- */
.admin-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.admin-badge--published {
    background: #e8f5e9;
    color: #2e7d32;
}
.admin-badge--draft {
    background: #fff3e0;
    color: #e65100;
}

/* --- 操作ボタン群 --- */
.admin-actions {
    display: flex;
    gap: 5px;
}

/* --- アラート --- */
.admin-alert {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}
.admin-alert--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.admin-alert--error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
}
.admin-alert p {
    margin: 0;
}

/* --- 空状態 --- */
.admin-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    background: #fafafa;
    border-radius: 5px;
}

/* --- フォーム --- */
.admin-form {
    max-width: 800px;
}
.admin-form-group {
    margin-bottom: 20px;
}
.admin-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.admin-form-group input[type="text"],
.admin-form-group input[type="password"],
.admin-form-group input[type="email"],
.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: "Noto Sans JP", sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    border-color: #e60012;
    outline: none;
}
.admin-form-group select {
    max-width: 200px;
}
.admin-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}
.admin-form-group textarea {
    font-family: "Noto Sans JP", monospace;
    line-height: 1.7;
    resize: vertical;
}
.admin-form-group input[type="file"] {
    font-size: 14px;
}

/* --- エディターツールバー --- */
.admin-editor-toolbar {
    display: flex;
    gap: 3px;
    margin-bottom: 5px;
    padding: 5px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}
.admin-editor-toolbar button {
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-family: "Noto Sans JP", sans-serif;
    transition: all 0.2s;
}
.admin-editor-toolbar button:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}
.admin-editor-toolbar + textarea {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* --- 現在のサムネイル --- */
.admin-form__current-thumb {
    margin-bottom: 10px;
}
.admin-form__current-thumb img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #eee;
}
.admin-form__current-thumb p {
    font-size: 12px;
    color: #999;
    margin: 5px 0 0 0;
}

/* --- 画像アップロードエリア --- */
.admin-upload-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.admin-upload-area input[type="file"] {
    font-size: 14px;
}
#upload-status {
    font-size: 13px;
    color: #666;
}

/* --- フォームアクション --- */
.admin-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
