/*
Theme Name: Arkhe Child
Theme URI: 
Template: arkhe
Author: Antigravity
Author URI: 
Description: Arkhe Child Theme for Tech x Apparel Media (RENDERADIAN)
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arkhe-child
*/

/* 
 * 1. カスタム変数定義 (Tech × Apparel) 
 * モノトーン基調 + Tech系アクセントカラー
 */
:root {
  --color-accent: #00EEFF;
  /* Tech Color Accent */
  --color-base: #FFFFFF;
  --color-text: #000000;
  --color-border: #EEEEEE;
}

/*
 * 2. 全体タイポグラフィの調整
 * 日本語: Noto Sans JP または 游ゴシック
 * 英数字: モダンなサンセリフ体
 */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", "Yu Gothic", "游ゴシック", sans-serif;
  color: var(--color-text);
  background-color: var(--color-base);
}

/*
 * 3. レイアウトと余白 (Negative Space と 1pxライン)
 */
.l-container {
  padding: 0 5%;
}

a {
  color: var(--color-text);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

/*
 * 4. 記事一覧（アーカイブ）のミニマル・グリッドレイアウト
 * デフォルトのカードレイアウトを上書きし、ミニマルなスタイルに
 */
.c-entries__item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  background: transparent;
  box-shadow: none;
  /* デフォルトの影を削除 */
}

/* グリッドレイアウト時の調整 */
.l-grid .c-entries__item {
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  margin-bottom: 0;
  border-bottom: none;
}

.c-entryCard__title {
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 1.6;
}

/*
 * 5. Front Page (Web Design Clip 風 2カラムレイアウト)
 */

/* 全体レイアウト */
.p-wdcLayout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 900px) {
  .p-wdcLayout {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* 左サイドバー */
.p-wdcSidebar {
  width: 100%;
  background: var(--color-base);
  border-right: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  z-index: 10;
}

@media (min-width: 900px) {
  .p-wdcSidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 60px; /* Arkheのヘッダー分のオフセット値（必要に応じて調整） */
    height: calc(100vh - 60px);
    overflow-y: auto;
  }
}

.p-wdcTitle {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.p-wdcConcept {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.p-wdcNav {
  margin-bottom: 2.5rem;
}

.p-wdcNav__heading {
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.15em;
  color: #999;
  margin-bottom: 1rem;
}

.p-wdcNav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-wdcNav__list li {
  margin-bottom: 0.5rem;
}

.p-wdcNav__list a {
  font-size: 0.9rem;
  color: var(--color-text);
  text-decoration: none;
  display: block;
  padding: 0.2rem 0;
  position: relative;
  transition: padding-left 0.3s ease, color 0.3s ease;
}

.p-wdcNav__list a:hover,
.p-wdcNav__list a.is-active {
  color: var(--color-accent);
  padding-left: 0.5rem;
  font-weight: bold;
}

.p-wdcTag__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.p-wdcTag__list a {
  font-size: 0.75rem;
  background: #f5f5f5;
  padding: 0.2rem 0.5rem;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}
.p-wdcTag__list a:hover {
  background: var(--color-text);
  color: var(--color-accent);
}

/* 右メインエリア（グリッド一覧） */
.p-wdcMain {
  flex-grow: 1;
  background: #fdfdfd;
  padding: 2rem 1.5rem;
}

@media (min-width: 900px) {
  .p-wdcMain {
    padding: 3rem 2.5rem;
  }
}

.p-frontGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* カードデザイン (WDC風・モノクロ->カラー変化) */
.p-frontCard {
  background: var(--color-base);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  overflow: hidden;
}

.p-frontCard:hover {
  border-color: var(--color-text);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.p-frontCard__link {
  text-decoration: none;
  color: var(--color-text);
  display: block;
}

.p-frontCard__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f5f5f5;
  border-bottom: 1px solid var(--color-border);
}

.p-frontCard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%); /* モノクロ */
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.p-frontCard:hover .p-frontCard__img {
  filter: grayscale(0%); /* ホバーでカラー */
  transform: scale(1.05);
}

.p-frontCard__noImg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.p-frontCard__overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.p-frontCard:hover .p-frontCard__overlay {
  opacity: 1;
}

.p-frontCard__viewBtn {
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.p-frontCard:hover .p-frontCard__viewBtn {
  transform: translateY(0);
}

.p-frontCard__body {
  padding: 1.25rem 1rem;
}

.p-frontCard__title {
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-frontCard__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.p-frontCard__cat {
  background: var(--color-text);
  color: var(--color-accent);
  padding: 0.15rem 0.6rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.p-frontCard__date {
  color: #999;
  letter-spacing: 0.05em;
}