/* Header language switcher styles */
.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header__languages {
  display: flex;
  gap: 10px;
  font-size: 14px;
  margin-right: 15px;
}

.header__lang-link {
  color: #333;
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.header__lang-link:hover {
  background-color: #e22d30;
  color: white;
  border-color: #e22d30;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .header__top {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .header__languages {
    align-self: flex-end;
  }
}

/* タグ一覧ページ用スタイル */
.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-header__title {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: #333;
}

.page-header__description {
  color: #666;
  font-size: 1rem;
  margin-bottom: 0;
}

.tags-page {
  max-width: 100%;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  align-items: center;
}

.tag-item {
  display: inline-block;
  margin: 0.25rem;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.tag-link:hover {
  background-color: var(--highlight-color, #e22d30);
  color: white;
  border-color: var(--highlight-color, #e22d30);
  text-decoration: none;
}

.tag-name {
  font-weight: 500;
}

.tag-count {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: #888;
}

.tag-link:hover .tag-count {
  color: rgba(255, 255, 255, 0.8);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .page-header__title {
    font-size: 1.5rem;
  }
  
  .tag-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .tags-cloud {
    gap: 0.3rem;
  }
  
  .tag-item {
    margin: 0.2rem;
  }
}

/* 記事のカテゴリー表示スタイル */
.meta__item-categories {
  margin-right: 1rem;
}

.meta__item-categories .meta__link {
  background-color: #f8f9fa;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  border: 1px solid #dee2e6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.meta__item-categories .meta__link:hover {
  background-color: var(--highlight-color, #e22d30);
  color: white;
  border-color: var(--highlight-color, #e22d30);
  text-decoration: none;
}

/* メタ情報の項目間スペーシング */
.meta__item + .meta__item {
  margin-left: 1rem;
}

/* メタ情報の表示調整 */
.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* 一覧ページの記事タイトルリンクに下線を追加 */
.list__title a {
  text-decoration: underline;
}

.list__title a:hover {
  text-decoration: underline;
}

/* 記事本文の文字サイズを大きく */
.content.post__content.clearfix {
  font-size: 1.2em;
  line-height: 1.8;
}

.content.post__content.clearfix p {
  font-size: 1.1em;
  line-height: 1.7;
}

.content.post__content.clearfix h1 {
  font-size: 2.2em;
}

.content.post__content.clearfix h2 {
  font-size: 1.8em;
}

.content.post__content.clearfix h3 {
  font-size: 1.5em;
}

.content.post__content.clearfix ul,
.content.post__content.clearfix ol {
  font-size: 1.1em;
  line-height: 1.7;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .content.post__content.clearfix {
    font-size: 1.1em;
    line-height: 1.7;
  }
  
  .content.post__content.clearfix p {
    font-size: 1.05em;
    line-height: 1.6;
  }
}

/* SNS共有ボタンのスタイル */
.sns-share-wrapper {
  margin-bottom: 2rem;
}

.sns-share {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sns-share__header {
  margin-bottom: 1rem;
}

.sns-share__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  text-align: center;
}

.sns-share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.sns-share__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  min-width: 80px;
  justify-content: center;
}

.sns-share__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.sns-share__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* 各SNSボタンの色設定 */
.sns-share__button--twitter {
  background-color: #000000;
  color: white;
}

.sns-share__button--twitter:hover {
  background-color: #1a1a1a;
  color: white;
}

.sns-share__button--line {
  background-color: #00c300;
  color: white;
}

.sns-share__button--line:hover {
  background-color: #00a500;
  color: white;
}

.sns-share__button--facebook {
  background-color: #1877f2;
  color: white;
}

.sns-share__button--facebook:hover {
  background-color: #166fe5;
  color: white;
}

.sns-share__button--hatena {
  background-color: #0087bd;
  color: white;
}

.sns-share__button--hatena:hover {
  background-color: #006b94;
  color: white;
}

.sns-share__button--reddit {
  background-color: #ff4500;
  color: white;
}

.sns-share__button--reddit:hover {
  background-color: #e03d00;
  color: white;
}

.sns-share__button--pinterest {
  background-color: #bd081c;
  color: white;
}

.sns-share__button--pinterest:hover {
  background-color: #9d0717;
  color: white;
}

.sns-share__button--favorite {
  background-color: #6c757d;
  color: white;
}

.sns-share__button--favorite:hover {
  background-color: #5a6268;
  color: white;
}

.sns-share__button--favorited {
  background-color: #dc3545;
  color: white;
}

.sns-share__button--favorited:hover {
  background-color: #c82333;
  color: white;
}

.sns-share__button--favorited .sns-share__icon--favorite {
  fill: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .sns-share {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .sns-share__buttons {
    gap: 0.5rem;
  }
  
  .sns-share__button {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    min-width: 70px;
  }
  
  .sns-share__icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .sns-share__buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .sns-share__button {
    width: 100%;
    justify-content: center;
  }
}

/* SNSとタグの間の画像スタイル（3×2グリッド） */
.post-image-between {
  margin: 2rem 0;
}

.post-image-between__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* grid-template-rows: repeat(2, 1fr); */
  gap: 0.75rem;
  max-width: 100%;
}

.post-image-between__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 16 / 9;
}

.post-image-between__figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.post-image-between__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .post-image-between__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .post-image-between {
    margin: 1.5rem 0;
  }
  
  .post-image-between__figure {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 768px) {
  .post-image-between__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .post-image-between {
    margin: 1rem 0;
  }
  
  .post-image-between__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 0.3rem;
  }
  
  .post-image-between__figure {
    border-radius: 4px;
    aspect-ratio: 16 / 9;
  }
}

/* Page Resources based image grid (new implementation) */
.post-image-resources {
  margin: 2rem 0;
  padding: 1rem;
  background-color: #f0f8ff;
  border: 2px dashed #4a90e2;
  border-radius: 10px;
}

.post-image-resources__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 100%;
}

.post-image-resources__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 16 / 9;
  background-color: #ffffff;
}

.post-image-resources__figure:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.post-image-resources__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .post-image-resources__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .post-image-resources {
    margin: 1.5rem 0;
    padding: 0.75rem;
  }
  
  .post-image-resources__figure {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 768px) {
  .post-image-resources__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .post-image-resources {
    margin: 1rem 0;
    padding: 0.5rem;
  }
  
  .post-image-resources__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 0.3rem;
  }
  
  .post-image-resources__figure {
    border-radius: 4px;
    aspect-ratio: 16 / 9;
  }
}

/* 個別記事ページのアイキャッチ画像サイズ調整 */
/* .post__thumbnail {
  max-width: 600px;
  margin: 0 auto 20px;
}

.post__thumbnail .thumbnail__image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
} */

/* ロゴとメニューのtext-transform無効化 */
.logo__text,
.menu__btn-title,
.menu__link {
	text-transform: none !important;
}
.menu__link {
  padding: 10px 8px;

}

.logo__tagline{
  text-align: left;
}

div.header__top div.logo{
  padding-bottom: 6px;
}