/*
Theme Name: trylog-1
Description: TRYLOGのオリジナルテーマです。
Version: 1.0
Author: TATOOL
*/

/* ------------------------------------
   全体レイアウト（フッターを固定風に）
------------------------------------- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', sans-serif;
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 画面高さいっぱい */
}

/* メインを縦伸縮可能にする */
main {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

/* ------------------------------------
   投稿サムネイル
------------------------------------- */
.post-thumbnail {
  margin-bottom: 1.5rem;
}

.post-thumbnail img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------
   ヘッダー
------------------------------------- */
header {
  text-align: center;
  margin-bottom: 2rem;
}

/* ヘッダーのリンク（下線なし） */
header a {
  text-decoration: none;
  color: inherit;
}

/* ------------------------------------
   フッター
------------------------------------- */
footer {
  text-align: center;
  padding: 2rem 0;
  background-color: #f0f0f0;
  font-size: 0.9rem;
  color: #555;
}

/* ------------------------------------
   投稿一覧（トップページなど）
------------------------------------- */
.post-list a {
  text-decoration: none;
  color: inherit;
}

.post-list h2 {
  text-decoration: none;
  border-bottom: none; /* タイトル下の下線を消す */
}


/* ------------------------------------
   コンテンツとサイドバーを横並び 
------------------------------------- */
.content-wrapper {
  flex: 1;
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* メインコンテンツを広く */
main {
  flex: 3;
}

/* サイドバーを狭く */
aside {
  flex: 1;
}
/* ------------------------------------
   サイドバーの色
------------------------------------- */

aside {
  background-color: #F6FBF6; /* 鉛白 / えんぱく / Enpaku */
  padding: 1.5rem;
  border-radius: 8px;
  color: #333;
  font-size: 0.95rem;
}

/* スマホ対応：縦並び */
@media screen and (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }

  .content-wrapper .sidebar {
    margin-top: 2rem;
  }
}