/*
Theme Name: Massage Theme v2
Description: 一个简洁的按摩主题，适用于移动端和桌面端
Author: 小凡
Version: 1.0
Requires at least: 6.0
Tested up to: 6.8.1
Requires PHP: 8.1
*/

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', '游ゴシック', Arial, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

/* メインコンテナ */
.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.site-header {
    background-color: #000;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.navigation-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #000;
    border-top: 1px solid #333;
    display: none;
    z-index: 999;
}

.navigation-menu.active {
    display: block;
}

.navigation-menu ul {
    list-style: none;
    padding: 20px;
}

.navigation-menu li {
    margin-bottom: 15px;
}

.navigation-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-bottom: 1px solid #333;
}

.navigation-menu a:hover {
    background-color: #333;
}

/* ヒーローセクション */
.hero-section {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-content {
    max-width: 800px;
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* セカンドセクション */
.second-section {
    max-width: 800px;
    margin: 20px auto 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.second-content {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    width: 100%;
    text-align: center;
    color: #fff;
}

/* 記事リストセクション */
.posts-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #fff;
}

.posts-list {
    list-style: none;
}

.post-item {
    border-bottom: 1px solid #333;
    padding: 20px 0;
}

.post-item:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.post-title a {
    color: #fff;
    text-decoration: none;
}

.post-title a:hover {
    color: #ccc;
}

.post-meta {
    color: #999;
    font-size: 14px;
}

/* ショートコードセクション */
.shortcode-section {
    padding: 60px 0;
    border-top: 1px solid #333;
}

/* ソーシャルセクション */
.social-section {
    padding: 60px 0;
    border-top: 1px solid #333;
    text-align: center;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}

.social-icon:hover {
    background-color: #555;
}

/* フッター */
.site-footer {
    background-color: #111;
    padding: 40px 0;
    border-top: 1px solid #333;
    text-align: center;
    color: #999;
}

/* ページネーション */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.pagination a:hover {
    background-color: #555;
}

.pagination .current {
    background-color: #666;
}

/* h2标题样式优化 */
h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 20px 0;
    padding: 15px 0;
    position: relative;
    text-align: left;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #fff, #999);
    border-radius: 2px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #333, transparent);
}

/* 中央对齐的h2标题 */
.section-title,
h2.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    padding: 20px 0;
}

.section-title::before,
h2.section-title::before {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
}

.section-title::after,
h2.section-title::after {
    background: linear-gradient(90deg, transparent, #333, transparent);
}

/* 表格样式优化 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #111;
    /*border-radius: 8px;*/
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

table th {
    background: linear-gradient(135deg, #333, #222);
    color: #fff;
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    border-bottom: 2px solid #444;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #333;
    color: #fff;
    vertical-align: top;
    transition: background-color 0.3s ease;
}

table tr:hover td {
    background-color: #222;
}

table tr:nth-child(even) td {
    background-color: #0f0f0f;
}

table tr:last-child td {
    border-bottom: none;
}

/* 表格链接样式 */
table a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

table a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 表格响应式设计 */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    /*border-radius: 8px;*/
}

.table-responsive table {
    min-width: 600px;
    margin: 0;
}

/* 移动端表格样式 */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }
    
    table th,
    table td {
        padding: 10px 8px;
    }
    
    /* 垂直表格布局（可选） */
    .table-stack {
        display: block;
    }
    
    .table-stack thead {
        display: none;
    }
    
    .table-stack tbody,
    .table-stack tr,
    .table-stack td {
        display: block;
        width: 100%;
    }
    
    .table-stack tr {
        margin-bottom: 15px;
        border: 1px solid #333;
        /*border-radius: 8px;*/
        padding: 10px;
        background-color: #111;
    }
    
    .table-stack td {
        border: none;
        padding: 8px 0;
        position: relative;
        padding-left: 30%;
    }
    
    .table-stack td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 25%;
        font-weight: 600;
        color: #ccc;
        text-transform: uppercase;
        font-size: 12px;
    }
    
    h2 {
        font-size: 20px;
        margin: 20px 0 15px 0;
    }
    
    .section-title,
    h2.section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .section-title::before,
    h2.section-title::before {
        width: 60px;
    }
}

/* 特殊表格样式 */
.table-striped tr:nth-child(odd) td {
    background-color: #111;
}

.table-striped tr:nth-child(even) td {
    background-color: #0a0a0a;
}

.table-bordered {
    border: 1px solid #333;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #333;
}

/* 表格内的按钮样式 */
table .button,
table .btn {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    transition: all 0.3s ease;
}

table .button:hover,
table .btn:hover {
    background-color: #555;
    border-color: #777;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .main-container {
        padding: 0 15px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 30px 15px;
    }
    
    .second-content {
        padding: 20px;
        width: 100%;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
