@charset "UTF-8";

/*
 * トップページ専用スタイル
 * is_front_page() のときだけ読み込まれる（記事ページには影響しない）。
 * 命名はArkheの流儀（p-/c-/u-・モディファイアは別クラス）に合わせ、
 * 色は --ark-* と下記の --monodeck-band-* に乗せる。
 */

/* ヒーロー帯の配色トークン。帯は「ライトモードでも常にダーク」のデザイン要素で、
   ライト/ダーク切替（monodeck-dark-modeプラグイン）とは独立。プラグインを
   無効化しても帯が崩れないよう、色はプラグインの変数を借りずここで持つ（2026-08-21） */
:root {
	--monodeck-band-bg-deep: #17181a;
	--monodeck-band-text: #d9dbde;
	--monodeck-band-heading: #f2f3f4;
	--monodeck-band-muted: #a8adb3;
}

/* ── ① ヒーロー帯（ライトモードでも常にダークの帯） ── */
.monodeck-heroBand {
	background: linear-gradient(150deg, var(--monodeck-band-bg-deep) 0%, #20242e 55%, #233043 100%);
	/* 下余白は斜線の高低差ぶんを確保（左側のコンテンツが斜線に食われないように） */
	padding: 2.5rem 0 calc(2rem + clamp(3rem, 9vw, 8rem));
	/* 左が高く・右が低い大きな斜線。右下がNEWS領域へ食い込む */
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - clamp(3rem, 9vw, 8rem)));
}

/* 帯の中身はコンテナ幅に収める（alignfullで端まで伸びるのを防ぐ） */
.monodeck-heroBand .ark-block-postList,
.monodeck-heroBand .monodeck-term {
	max-width: var(--ark-container_width, 1200px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.monodeck-heroBand .p-postList__title {
	color: var(--monodeck-band-heading);
}

.monodeck-heroBand .p-postList__body {
	color: var(--monodeck-band-muted);
}

/* ── ヒーローの「1大＋3小」グリッド ── */
.-monodeck-hero .p-postList.-type-card {
	display: grid;
	gap: 1.25rem;
	margin-left: 0;
	margin-right: 0;
}

.-monodeck-hero .p-postList.-type-card .p-postList__item {
	flex-basis: auto;
	margin: 0;
	padding: 0;
}

/* PC: 左に大カード・右に小3本 */
@media (min-width: 1000px) {
	.-monodeck-hero .p-postList.-type-card {
		grid-template-columns: 5fr 3fr;
		grid-template-rows: repeat(3, auto);
		column-gap: 2rem;
	}

	.-monodeck-hero .p-postList__item:first-child {
		grid-row: 1 / span 3;
	}

	.-monodeck-hero .p-postList__item:first-child .p-postList__title {
		font-size: 1.5rem;
		font-weight: 700;
		line-height: 1.45;
	}
}

/* 2本目以降はサムネ左の横並びカード（PC・SP共通） */
.-monodeck-hero .p-postList__item:not(:first-child) .p-postList__link {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.-monodeck-hero .p-postList__item:not(:first-child) .p-postList__thumb {
	width: 38%;
	flex-shrink: 0;
}

.-monodeck-hero .p-postList__item:not(:first-child) .p-postList__body {
	padding-top: 0;
}

.-monodeck-hero .p-postList__item:not(:first-child) .p-postList__title {
	font-size: 0.95rem;
	line-height: 1.5;
}

/* SP: 1本目も含めて縦積み */
@media (max-width: 999px) {
	.-monodeck-hero .p-postList.-type-card {
		grid-template-columns: 1fr;
	}

	.-monodeck-hero .p-postList__item:first-child .p-postList__title {
		font-size: 1.15rem;
		font-weight: 700;
	}
}

/* ── ② 最新ニュース: 上位2本は画像付きで大きく・3本目以降は詰めたリスト ── */

/* 上位2本: 横並びのカード風（サムネ上・タイトル下） */
@media (min-width: 600px) {
	.-monodeck-news .p-postList.-type-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 2rem;
	}

	.-monodeck-news .p-postList__item:nth-child(-n+2) {
		grid-column: span 1;
		margin-bottom: 1.5rem;
	}

	.-monodeck-news .p-postList__item:nth-child(-n+2) .p-postList__link {
		display: block;
	}

	.-monodeck-news .p-postList__item:nth-child(-n+2) .p-postList__thumb {
		width: 100%;
		max-width: none;
	}

	.-monodeck-news .p-postList__item:nth-child(-n+2) .p-postList__body {
		padding-left: 0;
		padding-top: 0.75rem;
	}

	.-monodeck-news .p-postList__item:nth-child(-n+2) .p-postList__title {
		font-size: 1.1rem;
		font-weight: 700;
	}

	/* 3本目以降: 全幅・小サムネの詰めた行 */
	.-monodeck-news .p-postList__item:nth-child(n+3) {
		grid-column: 1 / -1;
		margin-bottom: 0;
		padding: 0.7rem 0;
		border-top: 1px solid var(--ark-color--border);
	}

	.-monodeck-news .p-postList__item:nth-child(n+3) .p-postList__thumb {
		width: 96px;
		max-width: 96px;
	}

	.-monodeck-news .p-postList__item:nth-child(n+3) .p-postList__body {
		padding-left: 1rem;
	}

	.-monodeck-news .p-postList__item:nth-child(n+3) .p-postList__title {
		font-size: 0.95rem;
		font-weight: 500;
	}
}

/* SP: 上位2本はそのまま縦カード、3本目以降は小サムネ行 */
@media (max-width: 599px) {
	.-monodeck-news .p-postList__item:nth-child(-n+2) .p-postList__link {
		display: block;
	}

	.-monodeck-news .p-postList__item:nth-child(-n+2) .p-postList__thumb {
		width: 100%;
		max-width: none;
	}

	.-monodeck-news .p-postList__item:nth-child(-n+2) .p-postList__body {
		padding-left: 0;
		padding-top: 0.6rem;
	}

	.-monodeck-news .p-postList__item:nth-child(n+3) {
		margin-bottom: 0;
		padding: 0.6rem 0;
		border-top: 1px solid var(--ark-color--border);
	}

	.-monodeck-news .p-postList__item:nth-child(n+3) .p-postList__thumb {
		width: 72px;
		max-width: 72px;
	}

	.-monodeck-news .p-postList__item:nth-child(n+3) .p-postList__title {
		font-size: 0.9rem;
		font-weight: 500;
	}
}

/* ── ③ タブ内のカードはPCで4列に ── */
@media (min-width: 1000px) {
	.arkb-tabBody .p-postList.-type-card .p-postList__item {
		flex-basis: 25%;
	}
}

/* ═══ 見た目強化パック＋遊び心（2026-08-15 v4） ═══ */

/* ── 英字ラベルの見出しシステム ── */
.ark-block-heading.-monodeck-label {
	text-align: left;
	margin-top: 4rem;
}

/* ヒーロー帯直後のNEWS見出しは、帯左側の切れ上がりに滑り込ませる */
.monodeck-heroBand + .ark-block-heading.-monodeck-label {
	margin-top: calc(-1 * clamp(1rem, 4vw, 3.5rem));
	position: relative;
	z-index: 1;
}

/* 大胆な英字のみ・装飾は文字色（currentColor）ベースで無彩色（コーラル不使用） */
.ark-block-heading.-monodeck-label .ark-block-heading__main {
	font-size: 2.6rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	display: inline-block;
	line-height: 1.05;
}

@media (max-width: 599px) {
	.ark-block-heading.-monodeck-label .ark-block-heading__main {
		font-size: 1.9rem;
	}
}

/* 記事用H2装飾（typography.cssの全幅線＋短線）はこの見出しでは打ち消す */
.c-postContent .ark-block-heading.-monodeck-label .ark-block-heading__main::before {
	content: none;
}

/* 装飾は末尾のピリオドだけ（文字色に追従する無彩色・「NEWS.」の形） */
.c-postContent .ark-block-heading.-monodeck-label .ark-block-heading__main::after {
	content: ".";
	position: static;
	display: inline;
	width: auto;
	height: auto;
	margin-left: 0.06em;
	background: none;
	color: currentColor;
	opacity: 0.35;
}

.ark-block-heading.-monodeck-label .ark-block-heading__line,
.ark-block-heading.-monodeck-label .ark-block-heading__sub {
	display: none;
}

/* ── カテゴリカラーシステム（ピル型・IDで色分け） ── */
.p-postList__category {
	border-radius: 999px;
	padding: 0.1em 0.75em;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.p-postList__category .c-postMetas__icon {
	display: none;
}

.p-postList__category:has(span[data-cat-id="30"]) { background: rgba(64, 140, 255, 0.16); color: #5a9cff; }   /* ニュース */
.p-postList__category:has(span[data-cat-id="31"]) { background: rgba(52, 199, 123, 0.16); color: #34c77b; }   /* お得情報 */
.p-postList__category:has(span[data-cat-id="33"]) { background: rgba(175, 130, 255, 0.16); color: #af82ff; }  /* レビュー */
.p-postList__category:has(span[data-cat-id="34"]) { background: rgba(242, 169, 126, 0.18); color: #f2a97e; }  /* おすすめ */
.p-postList__category:has(span[data-cat-id="35"]) { background: rgba(120, 210, 220, 0.15); color: #6cc9d4; }  /* ガイド */

/* ── ヒーロー帯の背景演出（微細グリッド＋グロー） ── */
.monodeck-heroBand {
	background:
		radial-gradient(ellipse 60% 50% at 78% 0%, rgba(90, 156, 255, 0.16), transparent 70%),
		linear-gradient(150deg, var(--monodeck-band-bg-deep) 0%, #20242e 55%, #233043 100%);
}

/* ── ホバー演出（サムネズームのみ・2026-08-16にタイトル色変化とopacity打ち消しを撤去し、本文減光はArkhe標準の opacity .75 に委ねる〔通常記事一覧と挙動統一・Kazuya指示〕） ── */
.p-postList__thumb {
	overflow: hidden;
}

.p-postList__thumb img {
	transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.p-postList__item:hover .p-postList__thumb img {
	transform: scale(1.05);
}

/* Arkhe標準の本文減光(main.cssの :is(...)>.p-postList__item:hover .p-postList__body {opacity:.75})が
   WP RocketのRUCSSでトップの使用CSSから落とされるため、同値を単純セレクタで明示（2026-08-16） */
.p-postList__item:hover .p-postList__body {
	opacity: 0.75;
}

/* ── ターミナルブロック（今日のApple史・本物のターミナル風演出） ── */
.monodeck-term {
	font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85rem;
	color: var(--monodeck-band-muted);
	margin-bottom: 1.75rem;
}

.monodeck-term[hidden] {
	display: none;
}

.monodeck-term__line {
	margin: 0 0 0.35em;
	min-height: 1.4em;
	line-height: 1.4;
}

.monodeck-term__line.-out,
.monodeck-term__line.-prompt2 {
	visibility: hidden;
}

.monodeck-term__line.is-visible {
	visibility: visible;
}

.monodeck-term__line.-out {
	color: var(--monodeck-band-text);
}

.monodeck-term__ps {
	color: #34c77b;
}

.monodeck-term__cmd {
	color: #34c77b;
}

.monodeck-term__caret {
	color: var(--monodeck-band-muted);
	margin-left: 2px;
}

.monodeck-term__caret.is-blinking {
	animation: monodeckCaret 1.1s step-end infinite;
}

.monodeck-term__caret[hidden] {
	display: none;
}

@keyframes monodeckCaret {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

/* 入場アニメはダークモードプラグインのページカーテンと被るため廃止（2026-08-15赤入れ） */

/* ── アニメーションを止めたい環境への配慮 ── */
@media (prefers-reduced-motion: reduce) {
	.-monodeck-hero .p-postList__item,
	.monodeck-termLine__out,
	.monodeck-termLine__out::after,
	.p-postList__thumb img {
		animation: none;
		transition: none;
	}
}

/* ═══ 赤入れ3巡目（2026-08-15 v8） ═══ */

/* ── ④相当: 「もっと見る」テキストリンク（右寄せ・控えめだが分かる・2026-08-16） ── */
.monodeck-moreLink {
	text-align: right;
	font-size: 0.85rem;
	margin-top: 0.25rem;
}

/* カード型リストの後は、カード自身の下マージン(2.5rem)が効きすぎるため引き寄せる */
.ark-block-postList:has(.-type-card) + .monodeck-moreLink {
	margin-top: -1.5rem;
}

.monodeck-moreLink a {
	color: var(--ark-color--text);
	opacity: 0.7;
	text-decoration: none;
	border-bottom: 1px solid var(--ark-color--border);
	padding-bottom: 0.15em;
	transition: opacity 0.15s ease;
}

.monodeck-moreLink a:hover {
	opacity: 1;
}

/* ── ⑥: タブ＝スライドするピル型セグメント（front-top.jsのインジケータと連動） ── */
/* paddingはArkheの .ark-block-tab>.arkb-tabList{padding:0} に勝つ特異度で指定（2026-08-15実測） */
.ark-block-tab > ul.arkb-tabList {
	position: relative;
	display: inline-flex;
	margin-bottom: 1.5rem;
	background: var(--ark-color--gray);
	border: 1px solid var(--ark-color--border);
	border-radius: 999px;
	padding: 4px;
	gap: 2px;
}

.arkb-tabList__item {
	margin: 0;
	position: relative;
	z-index: 1;
}

.arkb-tabList__button {
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	line-height: 1;
	padding: 0.65em 1.4em;
	border-radius: 999px;
	color: var(--ark-color--text);
	opacity: 0.5;
	border-bottom: none;
	transition: opacity 0.2s ease;
}

.arkb-tabList__button:hover {
	opacity: 0.8;
}

.arkb-tabList__button[aria-selected="true"] {
	opacity: 1;
}

/* JSインジケータが無い場合のフォールバック（選択中ボタン自身に面を付ける） */
.arkb-tabList:not(.has-monodeck-indicator) .arkb-tabList__button[aria-selected="true"] {
	background: var(--ark-color--bg);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

/* スライドする選択面 */
.monodeck-tabIndicator {
	position: absolute;
	top: 4px;
	bottom: 4px;
	border-radius: 999px;
	background: var(--ark-color--bg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.1);
	transition: left 0.28s cubic-bezier(0.3, 0.9, 0.3, 1), width 0.28s cubic-bezier(0.3, 0.9, 0.3, 1);
	z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
	.monodeck-tabIndicator {
		transition: none;
	}
}

/* ── A: ヘッダーをヒーロー帯に溶かす（トップページのみ・2026-08-15） ── */

/* 最上部ではヘッダーを透過し、ヒーロー帯をヘッダー裏まで引き上げる */
body.home .l-header:not(.monodeck-scrolled) {
	background: transparent;
	box-shadow: none;
	color: #f2f3f4; /* 帯は常にダークなので、ライトモードでも文字は明色 */
}

body.home .l-header {
	transition: background 0.25s ease, color 0.25s ease;
}

/* テーマの .c-postContent>:first-child{margin-top:0!important} に対抗するため!important必須 */
body.home .c-postContent > .monodeck-heroBand {
	margin-top: calc(-1 * var(--ark-header_height, 64px)) !important;
	padding-top: calc(2.5rem + var(--ark-header_height, 64px));
}

/* ── Apple史の概要パネル（プロンプトのタップで展開・Apple風の角丸面） ── */
.monodeck-term__line.-prompt2.is-clickable {
	cursor: pointer;
}

.monodeck-term__line.-prompt2.is-clickable:hover .monodeck-term__caret {
	color: #34c77b;
}

.monodeck-term__detail {
	margin: 0.35em 0 0.6em;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.monodeck-term__detail[hidden] {
	display: none;
}

.monodeck-term__detail.is-open {
	opacity: 1;
	transform: translateY(0);
}

/* manページ風のターミナル出力（太字見出し＋字下げ本文・面なし・2026-08-15確定） */
.monodeck-term__detailText {
	margin: 0.2em 0 0.5em;
	padding: 0 0 0 2ch;
	font-size: 0.85rem;
	line-height: 2.0;
	color: var(--monodeck-band-muted);
}

.monodeck-term__detailLead {
	display: block;
	margin-left: -2ch;
	color: var(--monodeck-band-heading);
	font-weight: 700;
	letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
	.monodeck-term__detail {
		transition: none;
	}
}

/* --today出力のman様式（日付ヘッダ＋字下げの現在目線文・2026-08-15確定） */
.monodeck-term__outHead {
	display: block;
	color: var(--monodeck-band-heading);
	font-weight: 700;
	letter-spacing: 0.04em;
}

.monodeck-term__outBody {
	display: block;
	padding-left: 2ch;
	color: var(--monodeck-band-text);
}

/* ── PICK UP: ヒーロー帯内の見出しと、シャッフル用の表示制御（2026-08-15） ── */

/* 帯内の英字見出し（帯は常にダークなので明色固定・コンテナ幅に収める） */
.monodeck-heroBand .ark-block-heading.-monodeck-inBand {
	max-width: var(--ark-container_width, 1200px);
	margin: 0 auto 1.5rem;
	padding: 0 1.5rem;
}

.monodeck-heroBand .ark-block-heading.-monodeck-inBand .ark-block-heading__main {
	color: var(--monodeck-band-heading);
}

/* PICK UPは12本出力し、JSシャッフル後も常に先頭4本だけ表示
   （JS無効時も最新4本が出るフォールバックを兼ねる） */
.-monodeck-hero .p-postList .p-postList__item:nth-child(n+5) {
	display: none;
}
