/**
 * Filename : post.css
 * 投稿用（投稿シングル・お知らせ一覧・リフォーム実例）
 */

/* ==================================================
   投稿シングル（#Single）
================================================== */

#Single {
  padding: 60px 0;
  font-family: var(--font-family-primary);
  color: var(--primary-text-color);
  line-height: 1.8;
}

#Single .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 投稿ヘッダー */
#Single .post-header {
  margin-bottom: 10px;
}

#Single .post-date {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 10px;
}

#Single .post-title {
  font-size: 1.8em;
  font-weight: bold;
  margin: 0;
}

/* 投稿カテゴリメタ情報 */
#Single .post-meta {
  font-size: 0.8em;
  color: #828282;
  margin-bottom: 30px;
}

/* アイキャッチ画像 */
#Single .post-thumbnail {
  text-align: center;
  margin-bottom: 40px;
}

#Single .post-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
}

/* 本文 */
#Single .post-content {
  font-size: 1em;
  margin-bottom: 60px;
}

#Single .post-content p {
  margin-bottom: 1.6em;
}

/* ナビゲーション（前後ページリンク） */
#Single .post-navigation {
  text-align: center;
}

#Single .post-nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

#Single .post-nav-links li a {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: var(--btn-text-color);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-size: 0.95em;
  transition: background-color var(--transition-duration) ease;
}

#Single .post-nav-links li a:hover {
  background-color: #2a89b4;
}

/* ==================================================
   お知らせ一覧（#PostArchive、.notice-list）
================================================== */

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-color);
}

.notice-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding: 25px;
  gap: 20px;
  font-size: 0.95em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ホバー効果 */
.notice-item:hover {
  background-color: rgba(var(--color-white-rgb), 0.3);
}

.notice-date {
  flex: 0 0 120px;
  font-size: 0.8rem;
  color: #666;
}

.notice-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  font-size: 0.8em;
  font-weight: bold;
  color: var(--color-white);
  flex-shrink: 0;
}

.category-topics {
  background-color: #3db4a0;
}

.category-1 {
  background-color: #716aca;
}

.category-2 {
  background-color: #d59b53;
}

.notice-title {
  flex: 1;
  color: var(--primary-text-color);
  text-decoration: none;
  transition: color var(--transition-duration) ease;
}

.notice-title:hover {
  color: var(--secondary-color);
}

/* ==================================================
   リフォーム実例（#Single-works）
================================================== */

#Single-work .headline2 {
  margin-bottom: 60px;
  text-align: center;
  position: relative;
}

/* 日付 */
#Single-work .headline2 .date {
  font-size: 0.9em;
  color: var(--border-color);
  margin-bottom: 8px;
  display: block;
}


/* メインスライダーラッパー */
#slider-items {
  width: 100%;
  max-width: calc(100% - 120px - 50px);
  /* max-width: 700px; */
}

/* slickの内部リストに強制高さをつける */
#slider-items .slick-list,
#slider-items .slick-track {
  height: 100% !important;
}

/* slick内の画像にもサイズ指定 */
#slider-items .slick-slide img {
  max-width: 100%;
  width: 100%;
  height: 800px;
  object-fit: cover;
  object-position: center;
}
/* 左右スライダー構成ラッパー */
.slider-wrapper {
  gap: 50px;
  align-items: flex-start;
  justify-content: center;
}

/* サムネイルスライダー（縦型） */
.thumbs_dots {
  width: 120px;
}
.thumbs_list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.thumbs_list li {
  width: 100%;
  height: 100px;
  opacity: 0.4;
  cursor: pointer;
  transition: all var(--transition-duration) ease;
}

.thumbs_list li.slick-active {
  opacity: 1;
}

.thumbs_list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: all var(--transition-duration) ease;
}

.thumbs_list li.slick-active img {
  border-color: var(--secondary-color); /* ←色を目立つカラーに変更 */
  box-shadow: 0 0 8px rgba(var(--secondary-color-rgb), 0.4);
  transform: scale(1.05); /* ←少し拡大 */
  filter: brightness(1.2); /* ←明るさアップ */
}

/* コンテンツエリア（本文＋データ） */
.work-content {
  width: 100%;
  padding: 100px 0 50px;
  position: relative;
}
.work-content .textarea {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 10px 0; 
  font-size: 1.05em;
  line-height: 2;
  letter-spacing: 0.03em;
  color: var(--primary-text-color);
  text-align: justify;
}
/* タグ全体のスタイル */
.tags {
  width: 100%;
  padding: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.9em;
}

/* 各タグリンク */
.tags a {
  color: var(--primary-text-color);
  background-color: rgba(var(--color-white-rgb), 0.5);
  border: 1px solid rgba(var(--shadow-color), 0.2);
  border-radius: 30px;
  padding: 6px 14px;
  position: relative;
  line-height: 1.4;
  transition: all 0.3s ease;
  font-weight: 400;
}

/* #記号の装飾（控えめに） */
.tags a::before {
  content: "#";
  margin-right: 4px;
  color: rgba(var(--secondary-color-rgb), 0.5);
  font-weight: normal;
}

/* ホバー時の変化（ほんのり） */
.tags a:hover {
  background-color: rgba(var(--secondary-color-rgb), 0.1);
  border-color: rgba(var(--secondary-color-rgb), 0.2);
}

ul.post-nav-links {
  margin : 50px auto;
  width: fit-content;
}

#Single-work .headline2 h5 {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  position: relative;
  padding-bottom: 12px;
  display: inline-block;
  margin: 0 auto;
}

#Single-work .headline2 h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}


#Single-work .headline h6 {
  font-family: var(--font-family-dancing);
  font-weight: 600;
  font-size: 2em;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 8px;
  display: inline-block;
}

#Single-work .headline h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
  border-radius: 1px;
  opacity: 0.8;
}
/* ==================================================
   レスポンシブ対応（スマホ・タブレット用）
================================================== */

@media screen and (max-width: 1024px) {
  #Single-works {
    flex-direction: column;
    align-items: center;
  }

  #Single-works #slider-items {
    width: 100%;
    height: auto;
  }

  #slider-items img {
    height: auto;
  }

  .work-content {
    flex-direction: column;
    gap: 50px 0;
  }

  .works-text,
  .works-data {
    width: 100%;
    margin: 0;
  }

  .works-text .textarea {
    width: 100%;
  }

  .work-content .circle-img {
    position: static;
    width: 150px;
    margin: 30px auto 0;
    z-index: 1;
  }
}

@media screen and (max-width: 600px) {
  .thumbs_list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .thumbs_list li {
    width: 100px;
    height: 60px;
  }

  .tags {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ==================================================
   * リフォーム実例一覧ページ
================================================== */
#Archive-works {
  padding: 60px 0;
}

#Archive-works .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ▼ Gridレイアウトで3カラム固定幅 + 自然な折り返し */
.archive-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.archive-items li {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.archive-items li:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 各要素のパディング・装飾 */
.archive-items .thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.archive-items .date {
  padding: 15px 10px 5px;
}

.archive-items .tags {
  padding: 10px;
  font-size: 0.8rem;
}

.archive-items .title {
  padding: 5px 10px 10px;
  font-weight: 600;
  font-size: 1.1rem;
}

.archive-items .excerpt {
  padding: 10px 10px 15px;
  color: #666;
  font-size: 0.95em;
  margin-top: auto; /* 下に押し出す */
}

/* ======== ページネーション ======== */
.pagination {
  margin-top: 40px;
  text-align: center;
}

.page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 14px;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.page-numbers:hover {
  background-color: #eee;
}

.page-numbers.current {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

/* ======== レスポンシブ対応 ======== */
@media (max-width: 1024px) {
  .archive-items {
      grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
  }
}

@media (max-width: 600px) {
  .archive-items {
      grid-template-columns: 1fr;
      gap: 20px;
  }

  .archive-items .title {
      font-size: 1.1em;
  }

  .archive-items .excerpt {
      font-size: 0.9em;
  }
}

/* ==================================================
   * タグ検索
================================================== */
#Taglist {
  padding: 40px 0;
}

#Taglist .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  background-color: #eeeeee;
  border-radius: 15px;
}

#Taglist form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#Taglist fieldset {
  border: none;
  padding: 0;
}

#Taglist legend {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 10px;
}

.category-group,
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.category-group label,
.tag-group label {
  display: inline-flex;
  align-items: center;
  font-size: 0.95em;
  cursor: pointer;
}

.category-group input[type="radio"],
.tag-group input[type="checkbox"] {
  margin-right: 6px;
}

#Taglist button[type="submit"] {
  align-self: flex-start;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

#Taglist button[type="submit"]:hover {
  background-color: #1e430c;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  .category-group,
  .tag-group {
      flex-direction: column;
      gap: 8px;
  }

  #Taglist button[type="submit"] {
      width: 100%;
  }
}