@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ==========================================================
   nanairo days リデザイン Phase 1: デザイントークン + 全体スタイル
   参照: refs/nanairo_design_handoff/design_handoff_nanairo_days/README.md
   ========================================================== */

:root {
	--nn-bg: oklch(0.97 0.014 75);
	--nn-card-bg: oklch(0.99 0.006 75);
	--nn-text: oklch(0.28 0.03 50);
	--nn-text-sub: oklch(0.55 0.02 50);
	--nn-border: oklch(0.91 0.014 70);

	/* カテゴリーカラー(暫定: 3カテゴリー再編前は育児=coralを共通アクセントとして使用) */
	--nn-accent: oklch(0.6 0.13 30);
	--nn-accent-text: oklch(0.4 0.13 30);
	--nn-accent-soft: oklch(0.93 0.05 30);

	/* 将来の3カテゴリー用(Phase 2で紐付け) */
	--nn-parenting-accent: oklch(0.6 0.13 30);
	--nn-parenting-text: oklch(0.4 0.13 30);
	--nn-parenting-soft: oklch(0.93 0.05 30);
	--nn-invest-accent: oklch(0.55 0.12 150);
	--nn-invest-text: oklch(0.38 0.12 150);
	--nn-invest-soft: oklch(0.92 0.05 150);
	--nn-tech-accent: oklch(0.55 0.12 265);
	--nn-tech-text: oklch(0.4 0.12 265);
	--nn-tech-soft: oklch(0.92 0.04 265);

	/* PR/アフィリエイト用ゴールド */
	--nn-pr-accent: oklch(0.7 0.1 85);
	--nn-pr-soft: oklch(0.96 0.02 85);
	--nn-pr-border: oklch(0.85 0.03 85);

	--nn-radius-card: 14px;
	--nn-radius-pill: 22px;
	--nn-font-heading: 'Zen Maru Gothic', sans-serif;
	--nn-font-body: 'Noto Sans JP', sans-serif;
}

/* ---------- ベース ---------- */
body {
	background: var(--nn-bg);
	color: var(--nn-text);
	font-family: var(--nn-font-body);
}

a {
	transition: color 0.15s ease;
}

/* ---------- ヘッダーロゴ横の7色ドット ---------- */
.nn-logo-dots {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-right: 8px;
	vertical-align: middle;
}

.nn-logo-dots span {
	display: block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
}

/* ---------- 見出し(Zen Maru Gothic) ---------- */
h1, h2, h3, h4,
.c-postTitle__ttl,
.p-postList__title,
.l-header__logo,
.l-header__logo * {
	font-family: var(--nn-font-heading);
	font-weight: 700;
}

.c-postTitle__ttl {
	font-weight: 900;
}

/* ---------- 記事カード(トップ/アーカイブ一覧) ---------- */
.p-postList__item {
	background: var(--nn-card-bg);
	border: 1px solid var(--nn-border);
	border-radius: var(--nn-radius-card);
	overflow: hidden;
}

.p-postList__body {
	padding: 16px;
}

.p-postList__title {
	font-size: 15px;
	line-height: 1.5;
}

.p-postList__excerpt {
	font-size: 13px;
	color: var(--nn-text-sub);
	line-height: 1.6;
}

.p-postList__meta {
	font-size: 12px;
	color: var(--nn-text-sub);
}

/* ---------- カテゴリー/タグ ピルバッジ ---------- */
.c-categoryList__link {
	display: inline-block;
	padding: 5px 14px;
	border-radius: var(--nn-radius-pill);
	font-size: 13px;
	font-weight: 700;
	color: var(--nn-accent-text);
	background: var(--nn-accent-soft);
}

.c-tagList__link {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 14px;
	font-size: 12px;
	background: oklch(0.94 0.012 70);
	color: var(--nn-text-sub);
}

/* ---------- 記事本文エリア ---------- */
.post_content {
	font-size: 16px;
	line-height: 1.9;
}

.p-articleHead {
	margin-bottom: 14px;
}

/* ---------- ボタン(pill形状) ---------- */
.swell-block-button__link,
.wp-block-button__link {
	border-radius: var(--nn-radius-pill);
}

/* ==========================================================
   Phase 3: トップページ(front_top/sidebar_top)
   ========================================================== */

/* デフォルトの投稿タブ一覧はトップページでは非表示(front_topで代替) */
.home .p-homeContent {
	display: none;
}

/* ---------- ヒーロー ---------- */
.nn-hero {
	position: relative;
	padding: 36px 0 44px;
	text-align: center;
	overflow: hidden;
}

.nn-hero__arcs {
	position: absolute;
	top: -30px;
	left: 50%;
	transform: translateX(-50%);
	width: 560px;
	max-width: 90vw;
	height: 220px;
	overflow: hidden;
	opacity: 0.4;
	pointer-events: none;
}

.nn-hero__arcs span {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	border-bottom: none;
	box-sizing: border-box;
	border-style: solid;
	border-width: 16px;
}

.nn-hero__arcs span:nth-child(1) { width: 560px; height: 280px; border-radius: 280px 280px 0 0; border-color: oklch(0.78 0.1 25); }
.nn-hero__arcs span:nth-child(2) { width: 480px; height: 240px; border-radius: 240px 240px 0 0; border-color: oklch(0.8 0.1 75); }
.nn-hero__arcs span:nth-child(3) { width: 400px; height: 200px; border-radius: 200px 200px 0 0; border-color: oklch(0.78 0.09 145); }
.nn-hero__arcs span:nth-child(4) { width: 320px; height: 160px; border-radius: 160px 160px 0 0; border-color: oklch(0.78 0.09 195); }
.nn-hero__arcs span:nth-child(5) { width: 240px; height: 120px; border-radius: 120px 120px 0 0; border-color: oklch(0.72 0.1 265); }
.nn-hero__arcs span:nth-child(6) { width: 160px; height: 80px; border-radius: 80px 80px 0 0; border-color: oklch(0.72 0.1 320); }

.nn-hero__inner {
	position: relative;
}

.nn-hero__title {
	font-family: var(--nn-font-heading);
	font-weight: 700;
	font-size: 34px;
	line-height: 1.5;
	margin: 0 0 12px;
}

.nn-hero__sub {
	font-size: 15px;
	color: var(--nn-text-sub);
	margin: 0 0 24px;
}

.nn-hero__search {
	max-width: 480px;
	margin: 0 auto;
	display: flex;
	gap: 8px;
}

.nn-hero__searchInput {
	flex: 1;
	padding: 12px 16px;
	border-radius: var(--nn-radius-pill);
	border: 1px solid var(--nn-border);
	font-size: 14px;
	font-family: inherit;
	background: var(--nn-card-bg);
	color: inherit;
}

.nn-hero__searchBtn {
	padding: 12px 22px;
	border-radius: var(--nn-radius-pill);
	border: none;
	background: oklch(0.45 0.03 50);
	color: oklch(0.98 0.008 75);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

/* ---------- カテゴリーセクション見出し ---------- */
.nn-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin: 48px 0 18px;
}

.nn-section-head:first-of-type {
	margin-top: 8px;
}

.nn-section-head__label {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.nn-section-head__desc {
	font-size: 13px;
	color: var(--nn-text-sub);
}

.nn-section-head__more {
	font-size: 13px;
	white-space: nowrap;
}

.nn-pill {
	display: inline-block;
	padding: 5px 14px;
	border-radius: var(--nn-radius-pill);
	font-size: 13px;
	font-weight: 700;
}

.nn-pill--parenting { color: var(--nn-parenting-text); background: var(--nn-parenting-soft); }
.nn-pill--invest    { color: var(--nn-invest-text);    background: var(--nn-invest-soft); }
.nn-pill--tech      { color: var(--nn-tech-text);      background: var(--nn-tech-soft); }

.nn-section-head--parenting .nn-section-head__more { color: var(--nn-parenting-accent); }
.nn-section-head--invest .nn-section-head__more    { color: var(--nn-invest-accent); }
.nn-section-head--tech .nn-section-head__more       { color: var(--nn-tech-accent); }

/* ---------- サイドバーウィジェット共通カード化 ---------- */
.c-widget {
	background: var(--nn-card-bg);
	border: 1px solid var(--nn-border);
	border-radius: var(--nn-radius-card);
	padding: 20px;
}

/* ==========================================================
   Phase 4: 記事詳細ページ
   ========================================================== */

/* サイドバーをデスクトップで追尾させる(記事ページのみ) */
@media (min-width: 960px) {
	.single .l-sidebar {
		position: sticky;
		top: 20px;
		align-self: flex-start;
	}
}

/* ---------- 著者ボックス ---------- */
.p-authorBox {
	background: var(--nn-card-bg);
	border: 1px solid var(--nn-border);
	border-radius: var(--nn-radius-card);
	padding: 20px;
}

.p-authorBox__name {
	font-family: var(--nn-font-heading);
	font-weight: 700;
}

.p-authorBox__moreLink {
	display: inline-block;
	padding: 8px 18px;
	border-radius: var(--nn-radius-pill);
	background: var(--nn-card-bg);
	border: 1px solid var(--nn-border);
}

/* ---------- セクション見出し(あわせて読みたい / この記事を書いた人) ---------- */
.c-secTitle {
	font-family: var(--nn-font-heading);
	font-weight: 700;
}

/* ---------- 関連記事(あわせて読みたい)カード ---------- */
.p-relatedPosts .p-postList__item {
	background: var(--nn-card-bg);
	border: 1px solid var(--nn-border);
	border-radius: var(--nn-radius-card);
}

/* ---------- 章立てパターン用の画像(記事本文, wp:image alignleft/alignright) ---------- */
.post_content .wp-block-image.alignleft,
.post_content .wp-block-image.alignright {
	max-width: 120px;
	margin-top: 4px;
}

.post_content .wp-block-image.alignleft img,
.post_content .wp-block-image.alignright img {
	border-radius: 10px;
}

/* ==========================================================
   Phase 5: 人気記事ランキングページ / Aboutページ
   ========================================================== */

/* ---------- ランキングリスト ---------- */
.nn-ranking-list {
	display: flex;
	flex-direction: column;
}

.nn-ranking-list__row {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var(--nn-border);
	color: inherit;
}

.nn-ranking-list__rank {
	font-family: var(--nn-font-heading);
	font-weight: 900;
	font-size: 26px;
	min-width: 44px;
	text-align: center;
	flex: none;
}

.nn-ranking-list__rank--parenting { color: var(--nn-parenting-accent); }
.nn-ranking-list__rank--invest    { color: var(--nn-invest-accent); }
.nn-ranking-list__rank--tech      { color: var(--nn-tech-accent); }

.nn-ranking-list__thumb {
	width: 72px;
	height: 72px;
	flex: none;
	border-radius: 10px;
	overflow: hidden;
}

.nn-ranking-list__thumbImg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nn-ranking-list__body {
	min-width: 0;
	flex: 1;
}

.nn-ranking-list__cat {
	font-size: 11px;
	font-weight: 700;
}

.nn-ranking-list__cat--parenting { color: var(--nn-parenting-text); }
.nn-ranking-list__cat--invest    { color: var(--nn-invest-text); }
.nn-ranking-list__cat--tech      { color: var(--nn-tech-text); }

.nn-ranking-list__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	margin: 4px 0;
}

.nn-ranking-list__date {
	font-size: 12px;
	color: var(--nn-text-sub);
}

/* ---------- Aboutページ ---------- */
.nn-about {
	max-width: 760px;
	margin: 0 auto;
}

.nn-about__intro {
	display: flex;
	gap: 24px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 32px;
}

.nn-about__avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	flex: none;
	object-fit: cover;
	background: var(--nn-card-bg);
	border: 1px solid var(--nn-border);
}

.nn-about h2 {
	font-size: 18px;
	margin: 0 0 14px;
}

.nn-about__catList {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 32px;
}

.nn-about__catItem {
	display: flex;
	gap: 14px;
	align-items: center;
	background: var(--nn-card-bg);
	border: 1px solid var(--nn-border);
	border-radius: var(--nn-radius-card);
	padding: 16px 18px;
	color: inherit;
}

.nn-about__catDesc {
	font-size: 14px;
	color: var(--nn-text-sub);
}

.nn-about__profileList {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nn-about__profileList li {
	display: flex;
	gap: 16px;
	font-size: 14px;
	line-height: 1.8;
}

.nn-about__profileLabel {
	color: var(--nn-text-sub);
	min-width: 88px;
	flex: none;
}

.nn-about__contact {
	background: var(--nn-card-bg);
	border: 1px solid var(--nn-border);
	border-radius: var(--nn-radius-card);
	padding: 24px;
}

.nn-about__contactBtn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: var(--nn-radius-pill);
	background: oklch(0.45 0.03 50);
	color: oklch(0.98 0.008 75) !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
}
