/*
Theme Name: developer-site
Author: びんびんぎん
Description: エンジニア学習ブログ&ポートフォリオ紹介サイト
Version: 1.0
*/

* {
  margin: 0px; 
  padding: 0px; 
}

/* カラーの配色
#3D4049
#EFEFF5 
#B4D8E4
#38A4BC
*/

/* ヘッダー */

.banner {
  position: relative;
  max-width: 100vw;
  overflow: hidden; 
}

.site-header {
  background-image: url('image/header_banner.jpg');
  background-size: cover;
  background-position: center;
  height: 20vh;
  display: flex;
  justify-content: center;
  align-items: center; 
  color: #3D4049;
  text-align: center;
}

.header-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 300;
}

.github-icon {
  background-image: url('image/github-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  bottom: 16px;
  right: 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.github-icon:hover {
  opacity: 1;
}

/* ナビゲーション */
.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0px;
  background-color: #B4D8E4;
  height: 50px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 50px;
  text-decoration: none;
  color: #3D4049;
  font-weight: 600;ff
  transition: color 0.4s ease-in, background-color 0.4s ease-in;
}

.nav-list a:hover {
  color: #38A4BC;
}

.body-space {
  height: 1000px;
}

/* フッター */
.site-footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  font-size: clamp(1.5rem, 1vw, 3rem);
  font-weight: 300;
}

a.privacy {
  text-decoration: none;
  color: white;
  transition: color 0.4s ease-in;
  padding-top: 16px;
  display: inline-block; 
}

a.privacy:hover {
  color: #38A4BC;
}

/* 固定ページ */
.privacy-policy {
  margin: 40px auto;
  padding: 20px;
  max-width: 1000px;
  box-sizing: border-box;
}

.entry-content {
  padding-top: 40px;
}

.entry-content p {
  margin-bottom: 1.5em;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
}

.entry-content h2 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.75rem;
  color: #3D4049;
  font-weight: 700;
}

.entry-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-size: 1.25rem;
  color: #3D4049;
  font-weight: 600;
}

.entry-content ul,
.entry-content ol {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 1em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

/* 投稿一覧 */
.post-page-container {
  display: flex;
  padding: clamp(8px, 5vw, 100px);
  background-color: #F8F8FB;
  gap: 24px;
}

.post-page-container > div {
  flex: 0 0 75%;
}

.post-page-container > aside {
  flex: 0 0 25%;
}

.archive-title {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 3px solid #ddd;
  padding-bottom: 8px;
  margin-bottom: 24px;
  margin-right: 24px;
  letter-spacing: 0.05em;
}

.post-list-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: clamp(8px, 5vw, 48px);
  background-color: white;
  border-radius: 2px;
}

.post-item {
  text-decoration: none;
  color:#3D4049;
}

.post-item p {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: small;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  object-fit: cover;
}

.post-text {
  padding: 8px;
  height: auto;
  padding-bottom: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.post-item:hover .post-text {
  background-color: #F7F7F7;
}

.no-posts-message {
  text-align: center;
  align-content: center;
  font-size: 1.2rem;
  color: #555;
  padding: 20px;
  height: clamp(40px, 10vw, 100px);
  width: 100%;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 2px;
  flex: 0 0 75%;
  box-sizing: border-box;
}

/* サイドバー */
.sidebar {
  background-color: white;
  border-radius: 2px;
}

.sidebar-title {
  margin: 0px 16px;
  padding: 8px 16px;
  background-color: #F0F0F0;
  color: #3D4049;
  padding-bottom: 8px;
  border-radius: 2px;
}

.search-box {
  padding: 32px 16px;
}

.search-field {
  height: 48px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 1em;
  background: url(image/ic-search.png) no-repeat right center / auto 100%;
  background-size: 24px 24px;
  background-position: right 12px center;
}

.search-field::placeholder {
  color: #888;
  font-size: 1em;
}

.search-field::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.sidebar-nav {
  padding: 0px 16px;
}

.profile-box img {
  display: block;
  padding: 24px 24px;
  margin: 0 auto;
  object-fit: cover;
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.profile-box span {
  display: block;
  padding-bottom: 24px;
  text-align: center;
}

.profile-box p {
  padding-bottom: 32px;
  padding-left: 32px;
  padding-right: 32px;
}

/* 記事詳細 */
.article-page-container {
  display: flex;
  padding: clamp(8px, 5vw, 100px);
  background-color: #F8F8FB;
  gap: 24px;
}

.article-page-container > div {
  flex: 0 0 75%;
}

.article-page-container > aside {
  flex: 0 0 25%;
}

.article-detail-container {
  background-color: white;
  height: auto;
  padding: clamp(24px, 5vw, 40px);
  box-sizing: border-box;
}

.article-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 8px;
  background: url(image/ic-clock.png) no-repeat left center / auto 100%;
  background-size: 16px 16px;
  padding-left: 20px;
  background-position: left 2px;
}

.article-title {
  font-size: clamp(1.6rem, 3vw, 1.5rem);
  margin: 32px 0px;
  font-weight: 700;
}

.article-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 2px;
  margin-bottom: 48px;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  padding: 0% 16px;
  box-sizing: border-box;
}

.article-content img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 24px 0px;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  padding: 0% 16px;
  box-sizing: border-box;
}

.article-content h2 {
  color: #3D4049;
  border-left: 8px solid #B4D8E4;
  padding-left: 8px;
  margin: 32px 0px;
}

.article-content h3 {
    position: relative;
    border: 2px solid #2c3e50;
    padding: 8px 12px;
    margin: 1.5em 0 1.2em;
    font-weight: bold;
    border-radius: 4px;
    background: white;
}

.article-content h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #2c3e50;
}

.article-content h3::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 21px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid white;
}

.article-content h4.wp-block-heading {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

.article-content p {
  margin-block: 1.2em;
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-content li {
    position: relative;
    margin: 12px 32px;
    line-height: 1.6;
    transition: transform 0.2s;
}

.article-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    transition: background-color 0.2s, transform 0.2s;
}

.article-content li:hover::before {
    transform: scale(1.4);
}

.article-content li:hover {
    transform: translateX(4px);
}

/* Easy Table of Contents */
#ez-toc-container .ez-toc-list{
  margin: 20px 0;
}

div#ez-toc-container {
  border-color: transparent;
  width: auto;
}

div#ez-toc-container .ez-toc-title {
  color: #2c3e50;
  text-align: center;
  font-size: 18px;
}

#ez-toc-container .ez-toc-list{
  margin: 12px;
}

#ez-toc-container .ez-toc-list a {
  color: #2c3e50;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 500;
  font-size: normal;
}

.wp-block-separator {
  border: none;
  height: 2px;
  background-color: #DDDDDD;
  margin: 2% 0; 
}