/*
 Theme Name: EVERY TCD Child
Theme URI: https://surf-ok.com/
 Description: WordPressTCD「EVERY」用の子テーマ。Surf-OK向けカスタマイズをまとめる。
 Author: Surf-OK Project
 Template: every_tcd075
Version: 1.1.0
 Text Domain: every_tcd075_child
*/

/* ここに子テーマ固有のスタイルを追加します。 */

/* すべてのカテゴリIDのデフォルトカラー設定 */
[class*="cat_id_"] {
  background: #ff7f00 !important;
}

[class*="cat_id_"]:hover {
  background: #e66f00 !important;
}

/* カテゴリ表示部分の左右の余白を増やす */
.category {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

body .post_content,
body .post_content p,
body .post_content li,
body .post_content dt,
body .post_content dd,
body .post_content th,
body .post_content td {
  font-size: 16px;
  line-height: 1.75;
}
body .cb_contents .desc {
  line-height: 2;
}

/* [PATCH-ANCHOR:mobile-article-font] スマホ閲覧時の記事本文フォント調整 */
@media screen and (max-width: 650px) {
  body .post_content,
  body .post_content p,
  body .post_content li,
  body .post_content dt,
  body .post_content dd,
  body .post_content th,
  body .post_content td {
    font-size: 16px;
    line-height: 1.75;
  }

  body .post_content ul,
  body .post_content ol {
    margin-left: 1.4em;
  }
}

@media screen and (max-width: 1210px) {
  body .design_headline {
    margin: 0 0 30px 0;
  }
}

/* [PATCH-ANCHOR:column-page-styles] コラムページ専用スタイル */
/* セクションタイトル */
.p-column-section-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: bold;
}

/* 注目コラム */
.p-column-featured {
  padding: 30px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
}

.p-column-featured__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.p-column-featured__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.p-column-featured__link {
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

.p-column-featured__link:hover {
  opacity: 0.8;
}

.p-column-featured__thumb {
  flex-shrink: 0;
}

.p-column-featured__thumb img {
  display: block;
  width: 260px;
  height: auto;
  border-radius: 4px;
}

.p-column-featured__body {
  flex: 1;
}

.p-column-featured__title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: bold;
}

.p-column-featured__meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 12px;
}

.p-column-featured__excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #555;
}

/* コラム一覧 */
.p-column-list {
  padding: 30px 0;
  margin-bottom: 30px;
}

.p-column-list__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.p-column-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.p-column-card {
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}

.p-column-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.p-column-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.p-column-card__thumb {
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

.p-column-card__thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.p-column-card:hover .p-column-card__thumb img {
  transform: scale(1.05);
}

.p-column-card__body {
  padding: 16px;
}

.p-column-card__title {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: bold;
  line-height: 1.4;
}

.p-column-card__meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 8px;
}

.p-column-card__excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

/* CTAセクション */
.p-column-cta {
  padding: 40px 0 20px;
  border-top: 1px solid #eee;
  margin-top: 20px;
  text-align: center;
  background: #f9f9f9;
}

.p-column-cta__inner {
  max-width: 800px;
  margin: 0 auto;
}

.p-column-cta__title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: bold;
}

.p-column-cta__text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555;
}

.p-column-cta__button-wrap {
  margin: 0;
}

/* ボタンスタイル（EVERYテーマのボタンクラスを補完） */
.c-button {
  display: inline-block;
  padding: 12px 24px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.c-button:hover {
  background: #005a87;
  color: #fff;
}

.c-button--more {
  display: inline-block;
  padding: 8px 16px;
  background: transparent;
  color: #0073aa;
  border: 1px solid #0073aa;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
}

.c-button--more:hover {
  background: #0073aa;
  color: #fff;
}

.c-button--primary {
  display: inline-block;
  padding: 14px 28px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s;
}

.c-button--primary:hover {
  background: #005a87;
  color: #fff;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  /* セクションタイトル */
  .p-column-section-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    padding: 0 15px;
  }

  /* 注目コラム */
  .p-column-featured {
    padding: 20px 0;
    margin-bottom: 20px;
  }

  .p-column-featured__inner {
    padding: 0 15px;
  }

  .p-column-featured__item {
    flex-direction: column;
    gap: 0;
  }

  .p-column-featured__link {
    flex-direction: column;
    gap: 12px;
  }

  .p-column-featured__thumb {
    width: 100%;
  }

  .p-column-featured__thumb img {
    width: 100%;
    max-width: 100%;
  }

  .p-column-featured__body {
    padding: 0;
  }

  .p-column-featured__title {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .p-column-featured__meta {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .p-column-featured__excerpt {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  /* コラム一覧 */
  .p-column-list {
    padding: 20px 0;
    margin-bottom: 20px;
  }

  .p-column-list__inner {
    padding: 0 15px;
  }

  .p-column-list__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* CTAセクション */
  .p-column-cta {
    padding: 30px 15px 15px;
  }

  .p-column-cta__title {
    font-size: 1.1rem;
  }

  .p-column-cta__text {
    font-size: 0.9rem;
  }
}
