/*
Theme Name: Totonoko Child
Template: generatepress
Version: 1.0
*/

/* --- ナビゲーションメニューのスタイル --- */
.main-navigation .main-nav ul li {
    display: inline-block;
    margin: 0 5px;
}
.main-navigation .main-nav ul li a {
    display: block;
    padding: 10px 10px;
    background-color: #fffff7;
    color: #333;
    border-radius: 3px;
    text-decoration: none;
    line-height: 1.2;
    text-align: center;
    /* 📝 追加: ボタンのサイズを固定化 */
    width: 165px; /*  適切な幅を設定 */
    height: 60px; /*  適切な高さを設定 */
    /* ✅ Flexboxを使い、中身を中央に配置する */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.main-navigation .main-nav ul li a strong {
    font-size: 18px;
    font-weight: bold;
    display: block;
}
.main-navigation .main-nav ul li a .menu-item-description {
    font-size: 10px;
    display: block;
    margin-top: 3px;
    color: #777;
}
.main-navigation .main-nav ul li a:hover {
    background-color: #e0e0e0;
    color: #000;
}
.main-navigation {
    margin-left: 0px;
}
.site-header {
    display: flex;
    align-items: center;
    padding: 1px;
    justify-content: space-between;
}
@media (max-width: 768px) {
    .main-navigation .main-nav ul li {
        margin-bottom: 10px;
    }
}

/* --- 最新記事グリッドのスタイル --- */
.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
}
.post-item {
    text-align: center;
}
.post-item a {
    text-decoration: none;
    color: #333;
}
.post-thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}
.latest-post-title {
    font-size: 14px;
    padding: 5px;
}

/* --- カテゴリーページ用カスタムCSS --- */
.category-organize .page-header {
    background-image: url('http://totonoko.com/wp-content/uploads/2025/08/整える背景画像１２００×３００.png');
}
.category-prepare .page-header {
    background-image: url('http://totonoko.com/wp-content/uploads/2025/08/備える背景画像１２００×３００.png');
}
.category-enjoy .page-header {
    background-image: url('http://totonoko.com/wp-content/uploads/2025/08/楽しむ背景画像１２００×３００.png');
}
.category .page-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10px 5px;
    border-radius: 10px;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    min-height: 100px;
    width: 100%;
}
.category .page-header .page-title {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 44px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/*
.category .page-header {
  position: relative;
  min-height: 150px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  text-align: center;
}*/

/* 擬似要素を使って半透明のオーバーレイを適用 *//*
.category .page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5); /* 白色を50%透過 *//*
  z-index: 0; /* タイトルより背面に配置 *//*
  border-radius: 10px;
}

.category-organize .page-header {
  background-image: url('http://totonoko.com/wp-content/uploads/2025/08/整える背景画像１２００×３００.png');
}

.category-prepare .page-header {
  background-image: url('http://totonoko.com/wp-content/uploads/2025/08/備える背景画像１２００×３００.png');
}

.category-enjoy .page-header {
  background-image: url('http://totonoko.com/wp-content/uploads/2025/08/楽しむ背景画像１２００×３００.png');
}

.category .page-header .page-title {
  position: relative;
  z-index: 1; *//* オーバーレイより前面に配置 *//*
  display: block;
  font-size: 44px;
  font-weight: bold;
  color: gray;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  margin: 0;
}
*/


/* --- 記事タイトルと抜粋のスタイル --- */
.archive .inside-article .entry-title {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #333;
    width: 100%;
    white-space: normal;
    word-break: break-word;
}
@media (min-width: 768px) {
    .archive .site-main {
        display: flex;
        flex-wrap: wrap;
        gap: 2%;
        justify-content: space-between;
    }
    .archive .site-main article.post {
        width: 48%;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border-radius: 8px;
        padding: 15px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }
    .archive .site-main article.post .entry-summary {
        flex-grow: 1;
        margin-bottom: 10px;
    }
    .archive .site-main article.post .entry-meta,
    .archive .site-main article.post footer.entry-meta {
        margin-top: auto;
    }
}
@media (max-width: 767px) {
    .archive .site-main {
        display: block;
    }
    .archive .site-main > article {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* --- ブロックの余白調整 --- */
.wp-block-paragraph {
    padding-left: 50px !important;
}
.list-style-none {
    list-style-type: none;
}
.entry-content, .post-content, .single-content {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
h2, h3 {
    margin-top: 0px;
    margin-bottom: 0px;
}
.entry-content p {
    margin-top: 12px;
    margin-bottom: 2px;
}
.wp-block-group {
    padding: 0 !important;
    margin: 0 !important;
}
.wp-block-group h2, .wp-block-group h3, .wp-block-group h4 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.entry-content h2, .entry-content h3, .entry-content h4 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.no-gap-bg {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

