/* ============================================================
   home.css — TOPページ専用（front-page.php）
   変数は tokens.css。記事CSS(article.css)とは排他で読み込み。
   レイアウト幅・カード・色はテーマの作法に合わせる。
   ============================================================ */

.home { font-family: var(--font-main); color: var(--c-text); }
.home *, .home *::before, .home *::after { box-sizing: border-box; }
.home img { max-width: 100%; height: auto; display: block; }
.home a { text-decoration: none; color: inherit; }

/* 共通: セクション枠（1140px・テーマ標準幅） */
.home-section,
.home-hero__inner,
.home-pickup__inner,
.home-about__inner { max-width: 1140px; margin: 0 auto; }
.home-section { padding: 3rem 1.5rem; }

.home-section__head { text-align: center; margin-bottom: 1.8rem; }
.home-section__title {
	font-size: 1.5rem; font-weight: 700; margin: 0 0 0.4rem;
	position: relative; display: inline-block; padding-bottom: 0.5rem;
}
.home-section__title::after {
	content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
	width: 48px; height: 3px; border-radius: 3px;
	background: linear-gradient(90deg, var(--c-main), var(--c-accent));
}
.home-section__sub { font-size: 0.86rem; color: var(--c-text-muted); margin: 0; }
.home-section__more { text-align: center; margin-top: 1.8rem; }


/* ---------- 共通ボタン ---------- */
.home-btn {
	display: inline-block; font-family: var(--font-main); font-weight: 700;
	font-size: 0.92rem; padding: 0.8em 1.8em; border-radius: 2rem;
	transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s; cursor: pointer;
}
.home-btn--primary {
	color: #fff; background: linear-gradient(135deg, var(--c-main), #ff8a5b);
	box-shadow: 0 6px 18px rgba(249,107,107,0.35);
}
.home-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(249,107,107,0.45); }
.home-btn--ghost {
	color: var(--c-main); background: var(--c-white);
	border: 2px solid var(--c-main-light);
}
.home-btn--ghost:hover { background: var(--c-main-light); }


/* ---------- 1. ヒーロー ---------- */
.home-hero {
	background: linear-gradient(160deg, var(--c-main-pale) 0%, var(--c-accent-light) 100%);
}
.home-hero__inner {
	display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem;
	align-items: center; padding: 3.5rem 1.5rem;
}
.home-hero__eyebrow {
	display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--c-main);
	background: var(--c-white); padding: 0.4em 1em; border-radius: 2rem; margin: 0 0 1rem;
	box-shadow: var(--shadow);
}
.home-hero__title {
	font-size: 2.2rem; font-weight: 700; line-height: 1.35; margin: 0 0 1rem; color: var(--c-text);
}
.home-hero__lead { font-size: 0.95rem; line-height: 1.9; color: var(--c-text-muted); margin: 0 0 1.6rem; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }


/* ---------- 2. 目的別ナビ ---------- */
.home-guide {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.guide-card {
	background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
	padding: 1.6rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem;
	text-align: center; transition: transform 0.15s, box-shadow 0.15s;
	border: 1px solid var(--c-border);
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.guide-card__icon {
	font-size: 1.8rem; width: 64px; height: 64px; margin: 0 auto 0.2rem;
	display: flex; align-items: center; justify-content: center;
	background: var(--c-main-light); border-radius: 50%;
}
.guide-card__title { font-size: 1rem; font-weight: 700; color: var(--c-text); }
.guide-card__desc { font-size: 0.8rem; line-height: 1.7; color: var(--c-text-muted); }


/* ---------- 3. イチオシ訴求帯 ---------- */
.home-pickup { padding: 1rem 1.5rem 0; }
.home-pickup__inner {
	display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2rem; align-items: center;
	background: var(--c-white); border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
	padding: 2rem; border: 1px solid var(--c-border); overflow: hidden;
}
.home-pickup__media { width: 100%; }
.home-pickup__badge {
	display: inline-block; font-size: 0.74rem; font-weight: 700; color: #fff;
	background: var(--c-yellow); padding: 0.35em 1em; border-radius: 2rem; margin-bottom: 0.8rem;
}
.home-pickup__title { font-size: 1.35rem; font-weight: 700; line-height: 1.5; margin: 0 0 0.8rem; }
.home-pickup__text { font-size: 0.9rem; line-height: 1.9; color: var(--c-text-muted); margin: 0 0 1rem; }
.home-pickup__points { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.home-pickup__points li { font-size: 0.86rem; padding-left: 1.6em; position: relative; }
.home-pickup__points li::before {
	content: "✓"; position: absolute; left: 0; top: 0; color: var(--c-accent); font-weight: 800;
	background: var(--c-accent-light); width: 1.3em; height: 1.3em; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 0.7rem;
}


/* ---------- 4. 新着記事（post-grid は bloom-base 同様の2列） ---------- */
.home .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
/* post-card 自体の見た目は使い回せるよう最小再定義（home.css 単独読み込みのため） */
.home .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; }
.home .post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.home .post-card__thumb { position: relative; display: block; }
.home .post-card__thumb img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.home .post-card__thumb--empty { display: block; width: 100%; aspect-ratio: 1200 / 630; background: linear-gradient(135deg, var(--c-main-light), var(--c-accent-light)); }
.home .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; }
.home .post-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.home .post-card__title { font-size: 0.98rem; font-weight: 700; line-height: 1.5; color: var(--c-text); transition: color 0.15s; }
.home .post-card__title:hover { color: var(--c-main); }
.home .post-card__excerpt { font-size: 0.82rem; color: var(--c-text-muted); line-height: 1.7; flex: 1; }
.home .post-card__date { font-size: 0.72rem; color: var(--c-text-light); }
.home-empty { text-align: center; color: var(--c-text-muted); }


/* ---------- 5. カテゴリ ---------- */
.home-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.home-cat {
	background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-md);
	padding: 1.1rem 1.3rem; display: flex; align-items: center; justify-content: space-between;
	box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.home-cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--c-main-light); }
.home-cat__name { font-weight: 700; font-size: 0.92rem; }
.home-cat__count { font-size: 0.74rem; color: var(--c-text-light); background: var(--c-bg); padding: 0.25em 0.8em; border-radius: 2rem; }


/* ---------- 6. 運営者情報 ---------- */
.home-about { padding: 1rem 1.5rem 3.5rem; }
.home-about__inner {
	display: grid; grid-template-columns: auto 1fr; gap: 1.8rem; align-items: center;
	background: var(--c-main-pale); border-radius: var(--radius-xl); padding: 2.2rem;
}
.home-about__title { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.6rem; }
.home-about__inner p { font-size: 0.88rem; line-height: 1.9; color: var(--c-text-muted); margin: 0; }
.home-about__note { margin-top: 0.8rem !important; }
.home-about__note a { color: var(--c-main); font-weight: 700; }
.home-about__note a:hover { opacity: 0.8; }


/* ============================================================
   画像プレースホルダ（★差し替え用）
   実画像が入ったら .ph ブロックを <img> に置き換えるだけ。
   ============================================================ */
.ph {
	display: flex; align-items: center; justify-content: center; text-align: center;
	background:
		repeating-linear-gradient(45deg, var(--c-main-light) 0 12px, var(--c-accent-light) 12px 24px);
	border: 2px dashed var(--c-main); border-radius: var(--radius-lg); color: var(--c-main);
	font-weight: 700;
}
.ph__label { font-size: 0.9rem; line-height: 1.6; padding: 1rem; }
.ph__label small { font-weight: 500; color: var(--c-text-muted); font-size: 0.74rem; }
.ph--hero { aspect-ratio: 880 / 620; width: 100%; }
.ph--pickup { aspect-ratio: 520 / 400; width: 100%; }
.ph--avatar { width: 120px; height: 120px; border-radius: 50%; flex: 0 0 auto; }
.ph--avatar .ph__label { font-size: 0.72rem; padding: 0.4rem; }


/* ============================================================
   レスポンシブ（テーマのブレイクポイントに合わせる：860 / 560）
   ============================================================ */
@media (max-width: 860px) {
	.home-hero__inner { grid-template-columns: 1fr; text-align: center; }
	.home-hero__actions { justify-content: center; }
	.home-hero__visual { order: -1; max-width: 460px; margin: 0 auto; }
	.home-hero__title { font-size: 1.9rem; }
	.home-guide { grid-template-columns: repeat(2, 1fr); }
	.home-pickup__inner { grid-template-columns: 1fr; }
	.home-pickup__media { max-width: 420px; margin: 0 auto; }
	.home .post-grid { grid-template-columns: repeat(2, 1fr); }
	.home-cats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.home-hero__title { font-size: 1.6rem; }
	.home-hero__inner { padding: 2.5rem 1.2rem; }
	.home-section { padding: 2.2rem 1.2rem; }
	.home-guide { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
	.guide-card { padding: 1.2rem 0.8rem; }
	.home .post-grid { grid-template-columns: 1fr; }
	.home-cats { grid-template-columns: 1fr; }
	.home-about__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 1.8rem 1.2rem; }
	.home-pickup__inner { padding: 1.3rem; }
	.home-btn { width: 100%; text-align: center; }
}
