/*
Theme Name: MyTheme
Theme URI: http://yourwebsite.com
Author: Your Name
Author URI: http://yourwebsite.com
Description: Simple custom WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mytheme
*/

/* ここからスタイルを追加します */
.content-wrapper {
    display: flex;
    align-items: flex-start;
    /* color: rgb(59 130 246 / .5); */
    background-color: #000022;
}

.outer-container {
    padding-left: 100px;
    padding-right: 100px;
    color: #fff;
}

.main-content {
    flex: 0 0 60%; /* flex-grow, flex-shrink, flex-basis */
    padding: 0 30px 0 0; /* For spacing between content and sidebar */
}
/* モバイルデバイス向けのスタイル */
@media (max-width: 768px) {
    .smart-main-content {
        width: 100%;
        margin: 10px 0 0;
        padding: 0;
        color: #fff;
    }
    .post-item .post-image img {
        max-width: 100%;
        width: 100%;
        height: auto;
        color: #fff;
    }
}
#sidebar {
    flex: 0 0 30%;
}
.posts-container {
    display: flex;
    flex-direction: column;  /* 縦方向に並べる */
    gap: 20px; /* 各投稿の間隔 */
}

.post-item {
    flex: 1 1 100%; /* 1つの投稿が1行全体を占める */
    box-sizing: border-box;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
}

.post-item h2 {
    margin-top: 0;
}

.post-item h2 a {
    color: #FF3366;
    text-decoration: none;
}

.post-item h2 a:hover {
    text-decoration: underline;
}

.post-item p {
    color: #fff;
}

.post-item a {
    color: #FF3366;
}

.post-item a:visited {
    color: #FF3366;
}

.post-item .post-meta {
    text-align: right;
    font-size: 0.85em;
    color: #ccc;
}

.custom-comments-list {
    font-size: 0.9em;
}

.custom-comments-list li {
    margin-bottom: 8px;
}

.custom-comments-list strong {
    font-size: 0.95em;
}

.custom-comments-list p {
    font-size: 0.9em;
}

.custom-comments-list small {
    font-size:0.8em;
}

.comment-container {
    display: flex;
    align-items: center;
    gap :10px;
    margin: 0; /* マージンを0に設定 */
    padding: 0; /* パディングを0に設定 */
}

.comment-container > * {
    flex: 1;
    margin: 0; /* 子要素のマージンも0に設定 */
}
#ranking {
    flex: 0 0 30%;
}

.custom-image-size {
    width: 300px;
    height: 300px;
    object-fit: cover;  /* 画像のアスペクト比を維持しつつ、指定されたサイズにフィットさせる */
}

.gallery {
    z-index: 1; /* これは低いz-indexの例です。 */
}

body, html {
    margin: 0;
    padding: 0;
    background-color: #000022;
    overflow-x: hidden;
}

.pc_header {
    background: url('background.png') center/cover no-repeat;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}
.pc_header h1 {
    font-family: 'MEIRYOB', sans-serif;
    font-size: 80px;
    margin: 0;
}
.pc_header p {
    margin: 10px 0 0;
}
.pc_header nav {
    margin-top: 15px;
}
.pc_header nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}
.pc_header a:visited {
    color: inherit; /* 既存の色を維持 */
}

.smart_header {
    position: sticky;
    top: 0;
    z-index: 1000;    /* 他の要素より前面に表示 */
    background-color: #000022;   /* 背景色をテーマカラーに */
    text-align: center;
    padding: 10px 0;
}

.smart_header h1 {
    margin: 0;
    font-size: 1.4em;
}

.smart_header nav {
    margin-top: 10px;
}

/* Reset default list spacing and center menu items on mobile */
.smart_header nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.smart_header form {
    margin-top: 10px;
}

.smart_header form input[type="search"] {
    width: 80%;
    padding: 6px 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #111;
    color: #fff;
}

.smart_header form input[type="submit"] {
    margin-left: 5px;
    padding: 6px 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #FF3366;
    color: #fff;
}

.smart-ad {
    text-align: center;
    background-color: #000022;
}

.smart-ad img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

header h2 {
    background-color: #808080;
    margin: 0;    /* マージンをリセット */
}
/* 白色にする */
#sidebar a, #sidebar a:visited, #sidebar a:active {
    color: #ffffff; /* 白色 */
}

@media (max-width: 768px) {
    .smart-body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .smart-body .smart_header,
    .smart-body .smart-main-content,
    .smart-body .smart-ad {
        width: 100%;
        max-width: 480px;
    }
}
