@charset "UTF-8";
/*
Theme Name: My Blog Theme
Theme URI: https://example.com/
Author: Nagi
Author URI: https://example.com/
Description: 高速軽量・SEO最適化・ブロックエディタ＆Elementor完全対応のブログ用オリジナル親テーマです。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, two-columns, right-sidebar, responsive-layout, custom-menu
Text Domain: my-blog-theme
*/

/* ==========================================================================
   1. 基本のリセット CSS と要素のスタイル設定
   ========================================================================== */
* {
  box-sizing: border-box; /* 要素の幅に padding と border を含める設定 */
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
  background-color: #f9f9f9;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%; /* 画像が親要素からはみ出すのを防ぐ */
  height: auto;
  vertical-align: bottom;
}

/* ==========================================================================
   2. レイアウト構造（PC表示時の2カラム設定）
   ========================================================================== */
.site-container {
  max-width: 1200px; /* サイト全体の最大幅 */
  margin: 0 auto;    /* 中央寄せ */
  padding: 0 20px;
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0;
  margin-bottom: 30px;
}

.site-title {
  font-size: 28px;
  font-weight: bold;
}

.site-title a {
  color: #111111;
}

.site-description {
  font-size: 14px;
  color: #666666;
  margin-top: 5px;
}

/* メインコンテンツとサイドバーの2カラムコンテナ */
.content-area {
  display: flex;
  flex-wrap: wrap;
  gap: 40px; /* メインとサイドバーの間隔 */
}

.main-content {
  flex: 1 1 700px; /* メイン領域の伸縮設定（基本幅700px） */
  min-width: 0;    /* フレックスアイテムのはみ出し防止 */
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-area {
  flex: 0 0 320px; /* サイドバーの幅を320pxに固定 */
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.site-footer {
  background-color: #222222;
  color: #ffffff;
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
}

.site-footer a {
  color: #cccccc;
}

/* ==========================================================================
   3. 記事カード・ブロックエディタ対応スタイル
   ========================================================================== */
.post-card {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eeeeee;
}

.post-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.post-meta {
  font-size: 13px;
  color: #888888;
  margin-bottom: 15px;
}

.post-thumbnail {
  margin-bottom: 15px;
}

/* ブロックエディタの全幅・広幅対応 */
.alignwide {
  margin-left: -50px;
  margin-right: -50px;
  max-width: 1000px;
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

/* ==========================================================================
   4. レスポンシブ対応（スマートフォン・タブレット）
   ========================================================================== */
@media screen and (max-width: 768px) {
  .content-area {
    flex-direction: column; /* スマホ表示時は1カラムに縦並び */
    gap: 20px;
  }

  .sidebar-area {
    flex: 1 1 100%; /* スマホ時は幅100%に拡張 */
    width: 100%;
  }

  .main-content {
    padding: 20px;
  }

  .alignwide,
  .alignfull {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}
/* ==========================================================================
   フッターナビゲーションのスタイル
   ========================================================================== */
.footer-navigation {
  margin-bottom: 20px;
}

.footer-navigation ul {
  display: flex;
  justify-content: center; /* 中央寄せ */
  flex-wrap: wrap;
  gap: 20px;               /* メニュー同士の間隔 */
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-navigation a {
  color: #cccccc;
  font-size: 14px;
}

.footer-navigation a:hover {
  color: #ffffff;
  text-decoration: underline;
}