/* DMMスタイルのTOPページ専用スタイル */
body {
    background-color: #f8f8f8;
}

.main-container {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-top: 20px;
    flex-direction: row; /* 明示的に設定 */
}

.main-content {
    flex: 1;
    min-width: 0;
    order: 2; /* 表示順序を2に設定（右側に表示） */
}

.side-menu {
    width: 220px;
    flex-shrink: 0;
    order: 1; /* 表示順序を1に設定（左側に表示） */
}

/* サイドバーのスタイル */
.side-menu {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px; /* フッターとの間隔を追加 */
}

.side-menu-header {
    background-color: #333;
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 16px;
}

.side-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu-list li {
    border-bottom: 1px solid #eee;
}

.side-menu-list li:last-child {
    border-bottom: none;
    margin-bottom: 15px; /* 最後の項目の下に余白を追加 */
}

/* 「すべて見る」ボタンのスタイル */
.side-menu-list li.view-all {
    background-color: transparent;
    text-align: right;
    border-top: 1px dotted #ddd;
    padding: 5px 0;
}

.side-menu-list li.view-all a {
    color: #e2264d;
    font-size: 12px;
    padding: 8px 12px;
    display: inline-block;
    border-radius: 3px;
    transition: all 0.2s ease;
    margin-right: 5px;
}

.side-menu-list li.view-all a:hover {
    background-color: #e2264d;
    color: white;
    text-decoration: none;
}

.side-menu-list a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.side-menu-list a:hover {
    background-color: #f5f5f5;
    color: #e2264d;
}

.side-menu-list .count {
    float: right;
    color: #999;
    font-size: 12px;
}

/* ブログ記事のスタイル */
.blog-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    overflow: hidden;
}

/* ブログ記事ヘッダー */
.blog-header {
    padding: 30px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    border-radius: 5px 5px 0 0;
}

.blog-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 1px;
    background: linear-gradient(to right, rgba(226, 38, 77, 0.1), rgba(226, 38, 77, 0.8), rgba(226, 38, 77, 0.1));
}

.blog-title {
    font-size: 32px;
    color: #111;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 20px;
}

.blog-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 5px;
    background-color: #e2264d;
    border-radius: 3px;
}

.blog-date {
    color: #666;
    font-size: 14px;
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 15px;
}

/* ブログコンテンツ */
.blog-content {
    padding: 30px 25px;
    line-height: 1.8;
    color: #333;
    font-size: 16px;
    background-color: #fff;
}

/* WordPress互換ビジュアルエディタスタイル */
.blog-content p {
    margin-bottom: 1.5em;
}

.blog-content h1 {
    font-size: 2em;
    margin: 0.67em 0;
    clear: both;
}

.blog-content h2 {
    font-size: 1.5em;
    margin: 1.5em 0 0.8em;
    clear: both;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eaecef;
    position: relative;
    color: #222;
}

.blog-content h2::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #e2264d;
    border-radius: 2px;
}

.blog-content h3 {
    font-size: 1.25em;
    margin: 1.2em 0 0.8em;
    clear: both;
    color: #333;
    padding-left: 12px;
    border-left: 3px solid #e2264d;
}

.blog-content h4 {
    font-size: 1em;
    margin: 1.33em 0;
    clear: both;
}

.blog-content h5 {
    font-size: 0.83em;
    margin: 1.67em 0;
    clear: both;
}

.blog-content h6 {
    font-size: 0.75em;
    margin: 2.33em 0;
    clear: both;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    display: block;
    border-radius: 4px;
}

/* 画像配置 */
.blog-content .alignleft {
    float: left;
    margin: 0.5em 1em 0.5em 0;
}

.blog-content .alignright {
    float: right;
    margin: 0.5em 0 0.5em 1em;
}

.blog-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* キャプション */
.blog-content .wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.blog-content .wp-caption img {
    margin-bottom: 0.5em;
}

.blog-content .wp-caption-text {
    font-size: 0.8em;
    color: #666;
    text-align: center;
    margin-top: 0.2em;
}

.blog-content blockquote {
    border-left: 4px solid #e2264d;
    padding: 15px 20px;
    margin: 0 0 1.5em 0;
    color: #555;
    font-style: italic;
    background-color: #f9f9f9;
}

.blog-content pre {
    background-color: #f6f8fa;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
    line-height: 1.6;
    overflow: auto;
    padding: 1em;
    margin: 0 0 1.5em;
}

.blog-content code {
    background-color: #f6f8fa;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
}

.blog-content ul, .blog-content ol {
    margin: 0 0 1.5em 1.5em;
    padding-left: 1em;
}

.blog-content ul {
    list-style: disc;
}

.blog-content ol {
    list-style: decimal;
}

.blog-content li {
    margin-bottom: 0.5em;
}

.blog-content dl {
    margin: 0 0 1.5em;
}

.blog-content dt {
    font-weight: bold;
    margin-bottom: 0.5em;
}

.blog-content dd {
    margin: 0 0 1.5em 1.5em;
}

.blog-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 0 1.5em;
}

.blog-content th, .blog-content td {
    border: 1px solid #ddd;
    padding: 0.5em;
}

.blog-content th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.blog-content a {
    color: #e2264d;
    text-decoration: none;
}

.blog-content a:hover {
    text-decoration: underline;
}

/* ==== 新しい装飾スタイル ==== */

/* テキスト装飾 */
.text-red {
    color: #dc3545;
}

.text-blue {
    color: #007bff;
}

.text-large {
    font-size: 1.25em;
}

.text-small {
    font-size: 0.875em;
}

/* チェックリスト */
.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    position: relative;
    padding-left: 30px;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.checklist li:nth-child(2)::before {
    content: "✗";
    color: #dc3545;
}

.checklist li:nth-child(3)::before {
    content: "◯";
    color: #ffc107;
}

/* ボックス装飾 */
.box-info,
.box-warning,
.box-error,
.box-success,
.box-tips {
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    position: relative;
}

.box-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.box-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.box-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.box-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.box-tips {
    background-color: #f0f9ff;
    border: 1px solid #90cdf4;
    color: #1e40af;
}

.box-info h4,
.box-warning h4,
.box-error h4,
.box-success h4,
.box-tips h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: #e2264d;
    color: white;
}

.btn-primary:hover {
    background-color: #c91b3f;
    color: white;
    text-decoration: none;
}

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

.btn-secondary:hover {
    background-color: #545b62;
    color: white;
    text-decoration: none;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    color: white;
    text-decoration: none;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    color: #212529;
    text-decoration: none;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    color: white;
    text-decoration: none;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
    background-color: #e2264d;
    color: white;
}

.btn-large:hover {
    background-color: #c91b3f;
    color: white;
    text-decoration: none;
}

/* ストライプテーブル */
.table-striped tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

/* 引用ブロックのバリエーション */
.quote-with-author {
    position: relative;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #e2264d;
}

.quote-with-author cite {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

.quote-styled {
    background-color: #333;
    color: white;
    padding: 30px;
    border-radius: 5px;
    border-left: none;
    font-size: 1.1em;
    margin: 30px 0;
}

.quote-styled cite {
    display: block;
    text-align: right;
    margin-top: 15px;
    color: #ccc;
    font-size: 0.9em;
}

/* お知らせ・告知 */
.notice {
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    position: relative;
    padding-left: 100px;
}

.notice-badge {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
}

.notice-new {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
}

.notice-new .notice-badge {
    background-color: #2196f3;
}

.notice-important {
    background-color: #ffebee;
    border: 1px solid #ef9a9a;
}

.notice-important .notice-badge {
    background-color: #f44336;
}

.notice-update {
    background-color: #f3e5f5;
    border: 1px solid #ce93d8;
}

.notice-update .notice-badge {
    background-color: #9c27b0;
}

.notice-campaign {
    background-color: #fff3e0;
    border: 1px solid #ffcc80;
}

.notice-campaign .notice-badge {
    background-color: #ff9800;
}

.notice h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* その他の装飾 */
.page-break {
    page-break-after: always;
    display: block;
    height: 0;
}

.spacer-small {
    display: block;
    height: 20px;
}

.spacer-medium {
    display: block;
    height: 40px;
}

.spacer-large {
    display: block;
    height: 60px;
}

/* ギャラリー */
.blog-content .gallery {
    margin: 0 0 1.5em;
}

.blog-content .gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    margin: 0 0 1.5em;
}

.blog-content .gallery-columns-2 .gallery-item {
    width: 50%;
}

.blog-content .gallery-columns-3 .gallery-item {
    width: 33.33%;
}

.blog-content .gallery-columns-4 .gallery-item {
    width: 25%;
}

.blog-content .gallery-columns-5 .gallery-item {
    width: 20%;
}

.blog-content .gallery-columns-6 .gallery-item {
    width: 16.66%;
}

.blog-content .gallery-columns-7 .gallery-item {
    width: 14.28%;
}

.blog-content .gallery-columns-8 .gallery-item {
    width: 12.5%;
}

.blog-content .gallery-columns-9 .gallery-item {
    width: 11.11%;
}

.blog-content .gallery-caption {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-top: 0.5em;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
    }
    
    .side-menu {
        width: 100%;
        order: 2; /* 順序を2に変更（メインコンテンツの後） */
        margin-bottom: 40px; /* モバイル表示時のフッターとの間隔をさらに増やす */
    }
    
    .main-content {
        order: 1; /* 順序を1に変更（最初に表示） */
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 20px 15px;
    }
    
    .blog-title {
        font-size: 24px;
        padding-left: 15px;
    }
    
    .blog-content {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 15px 12px;
    }
    
    .blog-title {
        font-size: 20px;
        padding-left: 12px;
    }
    
    .blog-content {
        padding: 15px 12px;
    }
    
    .blog-content h2 {
        font-size: 1.3em;
    }
    
    .blog-content h3 {
        font-size: 1.1em;
    }
}