/*
Theme Name:   Twenty Twenty-Five Child
Theme URI:    https://wordpress.org/themes/twentytwentyfive/
Description:  Twenty Twenty-Five の子テーマ。親テーマのスタイルを継承し、Laravel プロジェクトの Tailwind 設定に基づく theme.json を読み込みます。
Author:       MyTreasure
Template:     twentytwentyfive
Version:      1.0.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:   twentytwentyfive-child
*/

/* 追加のグローバル CSS が必要な場合はここに記述してください。 */

/* 自作ヘッダーの表示維持と、管理バーの重なり調整だけに絞る */
#my-treasure-header {
    display: flex !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    background-color: white !important;
    border-bottom: 1px solid #e2e8f0;
}

body.admin-bar #my-treasure-header {
    top: 32px !important;
}

cat >> style.css << 'EOF'

/* 関連記事セクション */
.related-posts-section {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post-item {
  display: flex;
  flex-direction: row-reverse;
  gap: 15px;
  align-items: flex-start;
}

.related-post-image {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}

.related-post-content {
  flex: 1;
}

.related-post-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
}

.related-post-content {
    flex: 1;
}

.related-post-content h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.related-post-content h3 a {
    text-decoration: none;
    color: #333;
}

.related-post-content h3 a:hover {
    text-decoration: underline;
}

.related-post-date {
    display: block;
    font-size: 12px;
    color: #999;
}
EOF