/* P-Support 会員TOP */

.psupport-member-home {
	--psupport-mh-black: #0a0a0a;
	--psupport-mh-gray: #6b6b6b;
	--psupport-mh-gap: clamp(12px, 2vw, 24px);
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* 非会員（未ログイン）：案内＋ログインフォーム */
.psupport-member-home--guest {
	padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 24px);
}

.psupport-member-home__guest-message {
	margin: 0 0 1.25rem;
	font-size: clamp(15px, 1.8vw, 17px);
	line-height: 1.65;
	color: #111;
}

.psupport-member-home__login-error {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #664d03;
	font-size: 0.95em;
}

.psupport-member-home__login-form {
	max-width: 360px;
	margin-top: 0.5rem;
}

.psupport-member-home__login-field {
	margin: 0 0 1rem;
}

.psupport-member-home__login-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	font-size: 0.95em;
	color: #111;
}

.psupport-member-home__login-input {
	width: 100%;
	max-width: 100%;
	padding: 0.55rem 0.65rem;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.psupport-member-home__login-remember {
	margin: 0 0 1rem;
	font-size: 0.9em;
	color: #333;
}

.psupport-member-home__login-submit {
	margin: 0;
}

.psupport-member-home__login-button {
	display: inline-block;
	padding: 0.6rem 1.4rem;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: #1a1a1a;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.psupport-member-home__login-button:hover,
.psupport-member-home__login-button:focus {
	background: #333;
}

/* 非会員：BuddyX ヘッダー（ナビ・会員向けアイコン）を非表示 */
body.psupport-member-home-guest .site-header-wrapper {
	display: none !important;
}

/* 上部：白背景 */
.psupport-member-home__hero {
	background: #fff;
	color: #111;
	padding: clamp(16px, 3vw, 28px);
	border-radius: 0;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.psupport-member-home__hero-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: stretch;
	gap: var(--psupport-mh-gap);
}

.psupport-member-home__intro {
	align-self: start;
	font-size: clamp(14px, 1.6vw, 16px);
	line-height: 1.65;
}

.psupport-member-home__intro p {
	margin: 0 0 0.75em;
}

.psupport-member-home__qr {
	align-self: center;
	display: flex;
	justify-content: center;
	align-items: center;
}

.psupport-member-home__qr-img {
	max-width: min(122px, 28vw);
	height: auto;
	display: block;
}

/* 会友紹介：管理画面で設定したバナー画像をそのまま表示 */
.psupport-member-home__member-intro {
	display: flex;
	flex-direction: column;
	width: 100%;
	align-self: stretch;
}

.psupport-member-home__member-intro-inner {
	display: block;
	width: 100%;
	line-height: 0;
	text-decoration: none;
	color: inherit;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
}

.psupport-member-home__member-intro-img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	vertical-align: top;
}

.psupport-member-home__member-intro-placeholder {
	width: 100%;
	min-height: min(120px, 28vw);
	background: linear-gradient(180deg, #c5ddf5 0%, #e8eef2 100%);
	opacity: 0.6;
	border-radius: inherit;
}

/* 事務局寄りのお知らせ（投稿カテゴリー） */
.psupport-member-home__office-notices {
	margin-bottom: clamp(28px, 5vw, 40px);
	padding-bottom: clamp(20px, 3vw, 32px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.psupport-member-home__office-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 3vw, 22px);
}

.psupport-member-home__office-card {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: clamp(14px, 2.5vw, 18px) clamp(16px, 3vw, 20px);
	background: #fafafa;
}

.psupport-member-home__office-card-head {
	margin: 0 0 0.65rem;
}

.psupport-member-home__office-date {
	display: block;
	font-size: 0.85rem;
	color: var(--psupport-mh-gray);
	margin-bottom: 0.35rem;
}

.psupport-member-home__office-title {
	font-size: clamp(16px, 1.9vw, 18px);
	font-weight: 700;
	margin: 0;
	line-height: 1.35;
}

.psupport-member-home__office-title a {
	color: #111;
	text-decoration: none;
}

.psupport-member-home__office-title a:hover,
.psupport-member-home__office-title a:focus {
	text-decoration: underline;
	color: #1a1a1a;
}

.psupport-member-home__office-excerpt {
	font-size: 0.95rem;
	line-height: 1.65;
	color: #222;
	margin-bottom: 0.5rem;
}

.psupport-member-home__office-excerpt p {
	margin: 0 0 0.5em;
}

.psupport-member-home__office-excerpt p:last-child {
	margin-bottom: 0;
}

.psupport-member-home__office-files {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	font-size: 0.92rem;
}

.psupport-member-home__office-files li {
	margin: 0.35rem 0 0;
}

.psupport-member-home__office-file-link {
	color: #0b5cab;
	text-decoration: underline;
	word-break: break-all;
}

.psupport-member-home__office-file-link:hover,
.psupport-member-home__office-file-link:focus {
	color: #094a8f;
}

.psupport-member-home__office-more {
	margin: 0.65rem 0 0;
	font-size: 0.92rem;
}

.psupport-member-home__office-more a {
	font-weight: 600;
	color: #111;
	text-decoration: underline;
}

.psupport-member-home__office-more a:hover,
.psupport-member-home__office-more a:focus {
	color: #333;
}

/* スケジュール・広告（白背景・モックアップ準拠） */
.psupport-member-home__content {
	background: #fff;
	color: #111;
	padding: clamp(20px, 4vw, 40px) clamp(12px, 3vw, 24px) clamp(28px, 5vw, 48px);
	margin-top: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.psupport-member-home__content .psupport-member-home__heading {
	font-size: clamp(18px, 2.2vw, 22px);
	font-weight: 700;
	margin: 0 0 1rem;
	text-align: left;
	letter-spacing: 0.02em;
	color: #111;
}

.psupport-member-home__content .psupport-member-home__heading:not(:first-child) {
	margin-top: clamp(24px, 4vw, 36px);
}

/* スケジュール／広告：PCは横並び、スマホは Swiper で横スワイプ */
.psupport-member-home__swiper {
	width: 100%;
	margin-bottom: clamp(28px, 5vw, 40px);
	overflow: hidden;
	box-sizing: border-box;
}

.psupport-member-home__swiper--ads {
	margin-bottom: 0;
}

.psupport-member-home__swiper .swiper-slide {
	height: auto;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.psupport-member-home__swiper .swiper-slide > .psupport-member-home__tile {
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
}

/* スマホ：ドット用の下余白（PC は JS でページネーション無効のため余白なし） */
@media (max-width: 899px) {
	.psupport-member-home__swiper {
		padding-bottom: 36px;
	}

	.psupport-member-home__swiper--ads {
		margin-bottom: 0;
	}

	.psupport-member-home__swiper .swiper-pagination {
		bottom: 4px;
	}

	.psupport-member-home__swiper .swiper-pagination-bullet {
		background: #bbb;
		opacity: 1;
	}

	.psupport-member-home__swiper .swiper-pagination-bullet-active {
		background: #222;
	}

	.psupport-member-home__swiper .swiper-pagination-bullet-active-main {
		background: #222;
	}
}

/* PC：ドット非表示（Swiper の breakpoint と併用） */
@media (min-width: 900px) {
	.psupport-member-home__swiper .psupport-member-home__swiper-pagination {
		display: none !important;
	}
}

.psupport-member-home__tile {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 4px;
	background: #e0e0e0;
}

.psupport-member-home__tile--ad {
	aspect-ratio: 1 / 1;
}

.psupport-member-home__tile-link {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}

.psupport-member-home__tile-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.psupport-member-home__tile-nolink {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}

.psupport-member-home__placeholder {
	background: #d0d0d0;
	opacity: 0.85;
}

.psupport-member-home__placeholder--square {
	width: min(160px, 28vw);
	aspect-ratio: 1 / 1;
	border-radius: 4px;
}

.psupport-member-home__placeholder--tile {
	width: 100%;
	height: 100%;
	min-height: 120px;
}

/* フッター Instagram */
.psupport-member-home__foot {
	background: var(--psupport-mh-black);
	padding: 24px 16px 40px;
	text-align: center;
}

.psupport-member-home__instagram {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #e1306c;
	font-weight: 600;
	font-size: 1.05rem;
}

.psupport-member-home__instagram:hover,
.psupport-member-home__instagram:focus {
	opacity: 0.9;
}

.psupport-member-home__instagram-icon svg {
	display: block;
}

@media (max-width: 900px) {
	.psupport-member-home__hero-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.psupport-member-home__member-intro {
		width: 100%;
		max-width: none;
		margin-left: 0;
		margin-right: 0;
	}
}
