/* ============================================================
   home.css — TOP（front-page.php）専用スタイル
   イチカラカメラ。変数は tokens.css。base-reset / chrome と併読。
   記事CSS(article.css)・一覧CSS(bloom-base.css)はTOPでは読み込まれないため、
   TOPで使う部品はこのファイルで自己完結させる。
   ============================================================ */

.home {
	font-family: var(--font-main);
	color: var(--c-text);
	background: var(--c-bg);
	line-height: 1.8;
}
.home img { max-width: 100%; height: auto; }
.home-wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* 共通：ボタン（article.css の .btn と同一の見た目） */
.home .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.8em 2.2em; border-radius: 2rem; font-weight: 700; font-size: 0.98rem; letter-spacing: 0.03em; text-decoration: none; box-shadow: 0 4px 0 rgba(0,0,0,0.12); transition: all 0.15s; cursor: pointer; }
.home .btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.12); }
.home .btn.red     { background: var(--c-main); color: #fff; }
.home .btn.green   { background: var(--c-accent); color: #fff; }
.home .btn.outline { background: #fff; color: var(--c-main); border: 2px solid var(--c-main); box-shadow: 0 4px 0 rgba(249,107,107,0.18); }

/* 共通：セクション見出し */
.home-section { padding: 3.2rem 0; }
.home-section__head { text-align: center; margin-bottom: 2rem; }
.home-section__en { display: block; font-family: var(--font-deco); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-main); margin-bottom: 0.35rem; }
.home-section__title { font-size: 1.5rem; font-weight: 700; margin: 0; line-height: 1.4; }
.home-section__title small { display:block; font-size: 0.82rem; font-weight: 500; color: var(--c-text-muted); margin-top: 0.4rem; }

/* ============================================================
   1. ヒーロー
   ============================================================ */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c-main-pale), var(--c-accent-light)); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; opacity: 0.5; }
.hero::before { width: 320px; height: 320px; background: radial-gradient(circle, rgba(249,107,107,0.22), transparent 70%); top: -120px; right: -80px; }
.hero::after  { width: 280px; height: 280px; background: radial-gradient(circle, rgba(91,200,175,0.22), transparent 70%); bottom: -120px; left: -60px; }
.hero__inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 4rem 1.5rem 3.6rem; text-align: center; }
.hero__lead { display:inline-block; font-family: var(--font-deco); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; color: var(--c-main); background: var(--c-white); padding: 0.4em 1.2em; border-radius: 2rem; box-shadow: var(--shadow); margin-bottom: 1.3rem; }
.hero__title { font-size: 2.1rem; font-weight: 700; line-height: 1.5; margin: 0 0 1rem; }
.hero__title .grad { background: linear-gradient(135deg, var(--c-main), var(--c-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__sub { font-size: 1rem; color: var(--c-text-muted); margin: 0 auto 2rem; max-width: 620px; }
.hero__cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ヒーロー下：検索フォーム */
.hero__search { margin: 2rem auto 0; max-width: 520px; }
.hero__search form { display: flex; background: var(--c-white); border-radius: 2rem; box-shadow: var(--shadow-md); overflow: hidden; padding: 0.35rem 0.35rem 0.35rem 1.2rem; }
.hero__search input[type="search"] { flex: 1; border: 0; outline: 0; font-size: 0.95rem; font-family: var(--font-main); background: transparent; color: var(--c-text); }
.hero__search button { border: 0; cursor: pointer; background: var(--c-main); color: #fff; font-weight: 700; padding: 0 1.4rem; border-radius: 2rem; font-size: 0.9rem; }

/* ============================================================
   2. 2大テーマ（クラスター入口）
   ============================================================ */
.pillars { margin-top: -2rem; position: relative; z-index: 2; }
.pillars__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pillar-card { display: block; text-decoration: none; color: var(--c-text); background: var(--c-white); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 2.2rem 2rem; position: relative; overflow: hidden; transition: transform 0.18s, box-shadow 0.18s; border: 2px solid transparent; }
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.pillar-card--sell:hover  { border-color: var(--c-main); }
.pillar-card--learn:hover { border-color: var(--c-accent); }
.pillar-card__icon { font-size: 2.2rem; line-height: 1; margin-bottom: 0.8rem; }
.pillar-card__label { font-family: var(--font-deco); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.pillar-card--sell  .pillar-card__label { color: var(--c-main); }
.pillar-card--learn .pillar-card__label { color: var(--c-accent); }
.pillar-card__title { font-size: 1.3rem; font-weight: 700; margin: 0.2rem 0 0.6rem; }
.pillar-card__desc { font-size: 0.86rem; color: var(--c-text-muted); margin: 0 0 1rem; }
.pillar-card__more { font-size: 0.85rem; font-weight: 700; }
.pillar-card--sell  .pillar-card__more { color: var(--c-main); }
.pillar-card--learn .pillar-card__more { color: var(--c-accent); }

/* ============================================================
   3. 注目記事（ピラー/ハブのカード）
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { display: flex; flex-direction: column; background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--c-text); transition: transform 0.15s, box-shadow 0.15s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card__thumb { position: relative; aspect-ratio: 1200 / 630; background: linear-gradient(135deg, var(--c-main-light), var(--c-accent-light)); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.feature-card__badge { position: absolute; top: 0.7rem; left: 0.7rem; font-size: 0.68rem; font-weight: 700; padding: 0.25em 0.8em; border-radius: 2rem; color: #fff; }
.badge-sell  { background: var(--c-main); }
.badge-learn { background: var(--c-accent); }
.feature-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.feature-card__title { font-size: 1rem; font-weight: 700; line-height: 1.5; }
.feature-card__desc { font-size: 0.82rem; color: var(--c-text-muted); flex: 1; }
.feature-card__more { font-size: 0.8rem; font-weight: 700; color: var(--c-main); }

/* ============================================================
   4. 買取CTAバンド
   ============================================================ */
.cta-band { background: linear-gradient(135deg, var(--c-main), #ff8a6b); color: #fff; border-radius: var(--radius-xl); padding: 2.6rem 2rem; text-align: center; box-shadow: var(--shadow-md); }
.cta-band__title { font-size: 1.4rem; font-weight: 700; margin: 0 0 0.6rem; }
.cta-band__desc { font-size: 0.92rem; opacity: 0.95; margin: 0 auto 1.5rem; max-width: 560px; }
.cta-band .btn.white { background: #fff; color: var(--c-main); }
.cta-band .btn.white:hover { box-shadow: 0 2px 0 rgba(0,0,0,0.12); }
.cta-band__note { display:block; font-size: 0.72rem; opacity: 0.85; margin-top: 0.9rem; }

/* ============================================================
   5. カテゴリーから探す
   ============================================================ */
.cat-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.cat-chip { text-decoration: none; font-size: 0.86rem; font-weight: 700; color: var(--c-text-muted); background: var(--c-white); border: 1.5px solid var(--c-border); padding: 0.55em 1.3em; border-radius: 2rem; transition: all 0.15s; }
.cat-chip:hover { color: var(--c-main); border-color: var(--c-main); background: var(--c-main-light); }
.cat-chip .count { font-size: 0.72rem; color: var(--c-text-light); margin-left: 0.3em; }

/* ============================================================
   6. 新着記事グリッド（post-card 部品を流用）
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card__thumb { position: relative; display: block; }
.post-card__thumb img { width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; display: block; }
.post-card__thumb--empty { display: block; width: 100%; aspect-ratio: 1200 / 630; background: linear-gradient(135deg, var(--c-main-light), var(--c-accent-light)); }
.post-card__cat { position: absolute; top: 0.7rem; left: 0.7rem; font-size: 0.68rem; font-weight: 700; padding: 0.25em 0.8em; border-radius: 2rem; background: var(--c-main); color: #fff; }
.post-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.post-card__title { font-size: 0.98rem; font-weight: 700; line-height: 1.5; color: var(--c-text); transition: color 0.15s; text-decoration: none; }
.post-card__title:hover { color: var(--c-main); }
.post-card__excerpt { font-size: 0.82rem; color: var(--c-text-muted); line-height: 1.7; flex: 1; }
.post-card__date { font-size: 0.72rem; color: var(--c-text-light); }

.home-more { text-align: center; margin-top: 2rem; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 900px) {
	.feature-grid { grid-template-columns: repeat(2, 1fr); }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.hero__title { font-size: 1.6rem; }
	.hero__cta { flex-direction: column; }
	.hero__cta .btn { width: 100%; }
	.pillars__grid { grid-template-columns: 1fr; }
	.feature-grid { grid-template-columns: 1fr; }
	.post-grid { grid-template-columns: 1fr; }
	.home-section { padding: 2.4rem 0; }
	.home-section__title { font-size: 1.3rem; }
}
