@charset "UTF-8";

/* ============================================================================
 * トップページ（/）：SNS のような見た目（2026-10-04 指示。docs/decisions.md D2-7）
 *
 * 色は cmn.css の変数（生成り・紺・状態の色）とゼロすけの朱だけを使う。グラデーション・影・絵文字は使わない。
 * SNS らしさは、丸いアイコン・丸いボタン（ピル）・大きめの角丸・吹き出し・横スクロールで出す
 * （角丸は仕様書 9-1 の6pxより大きくしている。トップページだけの例外）。
 * ========================================================================== */

:root {
	--sns-orange: #B5452C;   /* ゼロすけの朱 */
	--sns-radius: 16px;
}

/* ---------- 上部のバー ---------- */

.sns-bar {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 -16px;
	padding: 8px 16px;
	border-bottom: 1px solid var(--zm-line);
	background: rgba(246, 245, 241, 0.96);
}

.sns-bar__logo {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--zm-text);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
}

/* 「0」の丸（投稿のアイコン。ゼロすけは1画面に1か所のため、ここは文字の丸にする） */
.sns-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--sns-orange);
	color: #FFFFFF;
	font-size: 18px;
	font-weight: 700;
}

.sns-mark--sm {
	width: 36px;
	height: 36px;
	font-size: 17px;
}

/* 丸いボタン */
.sns-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 6px 18px;
	border: 1px solid var(--zm-accent);
	border-radius: 999px;
	background: var(--zm-surface);
	color: var(--zm-accent);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.sns-pill:hover {
	text-decoration: none;
	background: var(--zm-accent-soft);
}

.sns-pill--primary {
	background: var(--zm-accent);
	color: #FFFFFF;
}

.sns-pill--primary:hover {
	background: #18304F;
}

.sns-pill--lg {
	min-height: 52px;
	padding: 10px 28px;
	font-size: 17px;
}

.sns-pill--block {
	display: flex;
	width: 100%;
	min-height: 52px;
	font-size: 17px;
}

/* ---------- プロフィール ---------- */

.sns-profile {
	margin: 16px 0 8px;
	border: 1px solid var(--zm-line);
	border-radius: var(--sns-radius);
	background: var(--zm-surface);
	overflow: hidden;
}

/* カバー（紺の地に「0」を並べた模様） */
.sns-profile__cover {
	display: flex;
	justify-content: space-around;
	align-items: center;
	height: 140px;
	background: var(--zm-accent);
	color: rgba(255, 255, 255, 0.12);
	font-size: 72px;
	font-weight: 700;
	overflow: hidden;
	user-select: none;
}

.sns-profile__body {
	position: relative;
	padding: 0 20px 20px;
}

.sns-profile__avatar {
	width: 112px;
	height: 112px;
	margin-top: -56px;
	border: 4px solid var(--zm-surface);
	border-radius: 50%;
	background: #FBEFEA;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* アイコン（カバーに半分かかる）と申込ボタンを1行に並べる */
.sns-profile__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.sns-profile__actions {
	align-self: flex-start;
	margin-top: 16px;
}

.sns-profile__name {
	margin: 10px 0 2px;
	font-size: 24px;
	font-weight: 700;
}

/* 何のサービスかを伝える一文（アイコンとボタンの間） */
.sns-profile__catch {
	flex: 1;
	align-self: flex-end;
	margin: 0;
	font-size: 22px;
	line-height: 1.5;
}

.sns-profile__catch-em {
	color: #B5452C;
}

.sns-sp-only {
	display: none;
}

.sns-nowrap {
	white-space: nowrap;
}

/* よくある質問（押すと開く） */
.sns-faq {
	border-top: 1px solid var(--zm-line);
}

.sns-faq__item {
	border-bottom: 1px solid var(--zm-line);
}

.sns-faq__item summary {
	position: relative;
	padding: 14px 36px 14px 0;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.sns-faq__item summary::-webkit-details-marker {
	display: none;
}

.sns-faq__item summary::after {
	content: "＋";
	position: absolute;
	right: 4px;
	top: 14px;
	color: var(--zm-accent);
}

.sns-faq__item[open] summary::after {
	content: "－";
}

.sns-faq__item p {
	margin: 0 0 14px;
}

.sns-faq__more {
	color: var(--zm-muted);
	font-size: 14px;
}

.sns-profile__handle {
	margin-left: 8px;
	color: var(--zm-muted);
	font-size: 15px;
	font-weight: 500;
}

.sns-profile__bio {
	margin: 8px 0 12px;
	font-size: 16px;
}

.sns-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--zm-muted);
	font-size: 15px;
}

.sns-stats strong {
	margin-left: 6px;
	color: var(--zm-text);
	font-size: 17px;
}

/* ---------- 業種（丸いアイコン） ---------- */

.sns-stories {
	display: flex;
	gap: 14px;
	margin: 0 -16px;
	padding: 14px 16px;
	overflow-x: auto;
	scrollbar-width: none;
}

.sns-stories::-webkit-scrollbar {
	display: none;
}

.sns-story {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 72px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--zm-text);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.sns-story__ring {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 3px solid var(--zm-line-strong);
	border-radius: 50%;
	padding: 3px;
}

.sns-story__ring span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--zm-surface);
	color: var(--zm-accent);
	font-size: 20px;
	font-weight: 700;
}

.sns-story.is-active .sns-story__ring {
	border-color: var(--sns-orange);
}

.sns-story.is-active {
	font-weight: 700;
}

/* ---------- 区切り ---------- */

.sns-section {
	padding: 20px 0 24px;
}

.sns-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sns-section__title {
	margin: 0 0 12px;
	font-size: 21px;
}

.sns-note {
	margin: 8px 0 0;
	color: var(--zm-muted);
	font-size: 13px;
}

/* ---------- 作成例（横スクロールの投稿） ---------- */

/* スマホだけ：横にスライドできることを文字で知らせる */
.sns-swipe-hint {
	display: none;
	margin: -4px 0 8px;
	color: var(--zm-muted);
	font-size: 14px;
}

.sns-swipe-hint__arrow {
	display: inline-block;
	margin-left: 6px;
	color: var(--zm-accent);
	font-weight: 700;
	animation: sns-swipe 1.6s ease-in-out infinite;
}

@keyframes sns-swipe {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(6px); }
}

/* 今どこを見ているか（点と件数） */
.sns-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 4px;
}

.sns-pager__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px;
}

.sns-pager__dot {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.sns-pager__dot::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--zm-line-strong);
	transition: width 0.2s, background 0.2s;
}

.sns-pager__dot.is-active::before {
	width: 20px;
	border-radius: 4px;
	background: var(--zm-accent);
}

.sns-pager__count {
	color: var(--zm-muted);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
	.sns-swipe-hint__arrow {
		animation: none;
	}

	.sns-fixed-cta,
	.sns-fixed-cta.is-shown {
		transition: none;
	}
}

.sns-scroll-btns {
	display: flex;
	gap: 8px;
}

.sns-round-btn {
	width: 40px;
	height: 40px;
	border: 1px solid var(--zm-line-strong);
	border-radius: 50%;
	background: var(--zm-surface);
	color: var(--zm-text);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.sns-feed {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 4px 0 12px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.sns-post {
	flex: none;
	/* 見切れないよう、横幅にちょうど3枚（タブレット2枚・スマホ1枚）収まる幅にする。送りも1画面分ずつ */
	width: calc((100% - 28px) / 3);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--zm-line);
	border-radius: var(--sns-radius);
	background: var(--zm-surface);
	overflow: hidden;
}

.sns-post.is-hidden {
	display: none;
}

.sns-post__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px 6px;
}

.sns-post__name {
	font-weight: 700;
	line-height: 1.3;
}

.sns-post__meta {
	margin-left: 6px;
	color: var(--zm-muted);
	font-size: 13px;
	font-weight: 400;
}

.sns-post__head .sns-post__meta {
	margin-left: 0;
}

.sns-post__name .sns-post__meta {
	margin-left: 6px;
}

.sns-post__quote {
	margin: 4px 14px 10px;
	color: var(--zm-muted);
	font-size: 12px;
}

.sns-post__quote span {
	display: block;
	margin-top: 2px;
	color: var(--zm-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

/* 画面のイメージ（スマホ縦・PC横の違いがあるため、高さをそろえて中に収める） */
.sns-post__img {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 300px;
	padding: 12px;
	background: #EFEDE7;
}

.sns-post__img img {
	display: block;
	max-width: 100%;
	max-height: 100%;
}

.sns-post__body {
	padding: 12px 14px 14px;
}

.sns-post__title {
	font-size: 17px;
	font-weight: 700;
}

.sns-post__text {
	margin: 4px 0 6px;
	font-size: 14px;
}

.sns-post__tags {
	margin: 0;
	color: var(--zm-accent);
	font-size: 14px;
	font-weight: 700;
}

/* ---------- 流れ（吹き出し） ---------- */

.sns-chat {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sns-msg {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.sns-msg--me {
	justify-content: flex-end;
}

.sns-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--zm-accent);
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 700;
}

/* 会話は横幅いっぱいに使い、社長は左・ゼロすけは右に寄せる（吹き出しは読みやすい幅まで） */
.sns-bubble {
	max-width: min(80%, 560px);
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--zm-line);
	border-radius: 18px 18px 18px 4px;
	background: var(--zm-surface);
	font-size: 15px;
}

.sns-msg--me .sns-bubble {
	border-color: var(--zm-accent);
	border-radius: 18px 18px 4px 18px;
	background: var(--zm-accent-soft);
}

/* ---------- 料金 ---------- */

.sns-price {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
}

/* 開発費0円を目立たせる（朱。大規模は要相談の注記を必ず添える） */
.sns-price__item--zero {
	border: 2px solid #B5452C;
	background: #FBEFEA;
}

.sns-price__item--zero .sns-price__value {
	color: #B5452C;
	font-size: 34px;
	line-height: 1.2;
}

.sns-zero {
	margin: 0 0 14px;
	padding: 12px 16px;
	border: 2px solid #B5452C;
	border-radius: 12px;
	background: #FBEFEA;
}

.sns-zero p {
	margin: 0;
}

.sns-zero__main {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0 10px;
}

.sns-zero__label {
	font-size: 17px;
	font-weight: 700;
}

.sns-zero__value {
	color: #B5452C;
	font-size: 40px;
	line-height: 1.1;
}

.sns-zero__mark {
	margin-left: 2px;
	font-size: 0.5em;
	font-weight: 700;
	vertical-align: super;
}

.sns-zero__main .sns-zero__mark {
	margin-left: -6px;
	color: #B5452C;
	font-size: 20px;
	vertical-align: baseline;
}

.sns-zero__note {
	margin: 4px 0 0;
	color: var(--zm-muted);
	font-size: 14px;
}

.sns-section .sns-zero__note {
	margin-top: 10px;
}

.sns-price__item {
	padding: 16px 18px;
	border: 1px solid var(--zm-line);
	border-radius: var(--sns-radius);
	background: var(--zm-surface);
}

.sns-price__item p {
	margin: 0;
	font-size: 15px;
}

.sns-price__label {
	color: var(--zm-muted);
	font-weight: 700;
}

.sns-price__value {
	margin: 2px 0 6px;
	color: var(--zm-accent);
	font-size: 26px;
	font-weight: 700;
}

.sns-last {
	text-align: center;
}

/* ---------- スマホ ---------- */

.sns-fixed-cta {
	display: none;
}

@media (min-width: 761px) and (max-width: 960px) {

	.sns-post {
		width: calc((100% - 14px) / 2);
	}

	.sns-price {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {

	.sns-profile__top {
		flex-direction: column;
		align-items: flex-start;
	}

	.sns-profile__actions {
		width: 100%;
		margin-top: 16px;
	}

	.sns-profile__catch {
		margin-top: 10px;
		font-size: 20px;
	}

	.sns-sp-only {
		display: inline;
	}

	.sns-profile__actions .sns-pill {
		display: flex;
		width: 100%;
	}

	.sns-profile__cover {
		height: 110px;
		font-size: 56px;
	}

	.sns-swipe-hint {
		display: block;
	}

	/* スマホは指でスライドするため、左右のボタンは出さない（案内の文と位置の点で分かる） */
	.sns-scroll-btns {
		display: none;
	}

	.sns-post {
		width: 100%;
	}

	.sns-price {
		grid-template-columns: 1fr;
	}

	/* 画面の下に固定する申込ボタン
	   上の「無料で試作品を頼む」を過ぎてから、最後の申込ボタンに着くまでの間だけ出す（top.js が is-shown を付ける） */
	.sns-fixed-cta {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--zm-line);
		background: rgba(246, 245, 241, 0.97);
		transform: translateY(110%);
		visibility: hidden;
		transition: transform 0.25s ease, visibility 0s linear 0.25s;
	}

	.sns-fixed-cta.is-shown {
		transform: translateY(0);
		visibility: visible;
		transition: transform 0.25s ease, visibility 0s;
	}
}
