/* ============================================================
 * Sound Collective — Private Lessons ページ 専用CSS
 * Figma "/private-lessons"  PC: 1831:11234 / SP: 1822:41999
 * デザイントークンは sc-design-tokens.css の :root を利用。クラスは sc-pl-* で衝突回避。
 * ============================================================ */

.sc-pl {
	--sc-pl-margin: 80px;           /* PC ページ左右マージン (1440→内容1280) */
	--sc-pl-ink: #0b0d27;           /* foreground-invert : 明色ボタン上の濃色文字 */
	background: var(--sc-bg);
	color: var(--sc-fg);
	font-family: var(--sc-font);
	font-weight: var(--sc-fw-medium);
	line-height: var(--sc-lh);
}
.sc-pl *, .sc-pl *::before, .sc-pl *::after { box-sizing: border-box; }
.sc-pl h1, .sc-pl h2, .sc-pl h3, .sc-pl p { margin: 0; }
.sc-pl img { max-width: 100%; display: block; }

/* ===== 汎用ボタン ===== */
.sc-pl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 48px; padding: 7px 24px; width: max-content;
	border-radius: var(--sc-radius-pill); text-decoration: none; cursor: pointer;
	font-size: 18px; font-weight: var(--sc-fw-bold); line-height: 1.4;
	transition: background-color .15s ease, color .15s ease;
}
/* #98(2026-07-21): outline を .sc-btn の S トークンに寸法整合(min-height28 / padding 7px 20px /
 * font12 / line-height1.4 / radius pill=base)。配色・hover(白10%→文字primary)は現状維持=既にトークン準拠。 */
.sc-pl-btn--outline { min-height: 28px; padding: 7px 20px; font-size: 12px; line-height: var(--sc-lh);
	border: 1px solid var(--sc-border-invert); color: var(--sc-fg); background: transparent; }
.sc-pl-btn--outline:hover { background: var(--sc-bg-hover-strong); color: var(--sc-primary); }
.sc-pl-btn--filled { background: var(--sc-white); color: var(--sc-pl-ink); }
.sc-pl-btn--filled:hover { color: var(--sc-primary); }

/* ============================== Title Area ============================== */
.sc-pl-hero {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 320px; padding: 96px 16px 48px;
}
.sc-pl-hero__bg {
	position: absolute; inset: -40px 0; z-index: 0;
	background: #4d4d4d center/cover no-repeat;
	filter: blur(4px); mix-blend-mode: lighten; opacity: .3; pointer-events: none;
}
.sc-pl-hero__inner {
	position: relative; z-index: 1;
	display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
	max-width: 900px; width: 100%;
}
.sc-pl-hero__title { font-size: 40px; font-weight: var(--sc-fw-bold); line-height: 1.2; color: var(--sc-white); }
.sc-pl-hero__sub { font-size: 18px; font-weight: var(--sc-fw-medium); color: var(--sc-white); }

/* ============================== 料金カード ============================== */
.sc-pl-pricing {
	max-width: 1440px; margin-inline: auto;
	display: flex; flex-direction: column; gap: 16px;
	padding: 32px var(--sc-pl-margin);
}
.sc-pl-pricing__grid { display: flex; gap: 16px; }
.sc-pl-pricing__foot { display: flex; justify-content: flex-end; }

.sc-pl-price {
	position: relative; flex: 1 0 0; min-width: 0;
	display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
	min-height: 280px; padding: 60px 20px 20px;
	background: var(--sc-bg-bright); border-radius: 16px;
}
.sc-pl-price.is-popular { padding: 20px; }
.sc-pl-price__badge {
	align-self: flex-start;
	background: var(--sc-bg-hover-strong); border-radius: 54px; padding: 2px 8px;
	font-size: 14px; font-weight: var(--sc-fw-bold); line-height: 1.4; color: var(--sc-fg);
}
.sc-pl-price__info { display: flex; flex-direction: column; gap: 8px; }
.sc-pl-price__title { font-size: 24px; font-weight: var(--sc-fw-bold); line-height: 1.2; color: var(--sc-fg); }
.sc-pl-price__desc { font-size: 16px; font-weight: var(--sc-fw-medium); line-height: 1.4; color: var(--sc-fg-secondary); }
.sc-pl-price__foot { display: flex; flex-direction: column; gap: 16px; }
.sc-pl-price__amount { font-size: 20px; font-weight: var(--sc-fw-bold); line-height: 1.2; color: var(--sc-fg); }
.sc-pl-price__cta {
	align-self: flex-start;
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 7px 24px; border-radius: var(--sc-radius-pill);
	background: var(--sc-primary); color: var(--sc-white); text-decoration: none;
	font-size: 18px; font-weight: var(--sc-fw-bold); line-height: 1.4;
	transition: background-color .15s ease, color .15s ease;
}
.sc-pl-price__cta:hover { background-image: linear-gradient(rgba(255,255,255,.10), rgba(255,255,255,.10)); color: var(--sc-white); }

/* ============================== Discipline of Your Choice ============================== */
.sc-pl-choice {
	max-width: 1440px; margin-inline: auto;
	display: flex; flex-direction: column; gap: 24px;
	padding: 32px var(--sc-pl-margin);
}
.sc-pl-choice__head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sc-pl-choice__title { font-size: 32px; font-weight: var(--sc-fw-bold); line-height: 1.2; color: var(--sc-fg); max-width: 720px; }
.sc-pl-choice__sub { font-size: 16px; font-weight: var(--sc-fw-medium); line-height: 1.4; color: var(--sc-fg-secondary); max-width: 900px; }

/* --- 特徴カード(5列) --- */
.sc-pl-features { display: flex; gap: 16px; }
.sc-pl-feature {
	flex: 1 0 0; min-width: 0;
	display: flex; flex-direction: column; gap: 16px;
	padding: 20px; background: var(--sc-bg-bright); border-radius: 12px;
}
.sc-pl-feature > i { font-size: 32px; color: var(--sc-primary); }
.sc-pl-feature__info { display: flex; flex-direction: column; gap: 8px; }
.sc-pl-feature__title { font-size: 20px; font-weight: var(--sc-fw-bold); line-height: 1.4; color: var(--sc-fg); }
.sc-pl-feature__text { font-size: 14px; font-weight: var(--sc-fw-medium); line-height: 1.4; color: var(--sc-fg-secondary); }

/* --- Discipline カルーセル --- */
.sc-pl-disc {
	position: relative; flex: 0 0 308px; height: 224px; overflow: hidden;
	display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
	padding: 16px; text-decoration: none; scroll-snap-align: start;
	--sc-pl-acc: var(--sc-primary);
}
.sc-pl-disc__bg { position: absolute; inset: 0; z-index: 0; background: #4d4d4d center/cover no-repeat; }
.sc-pl-disc__bg::after { content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(3,0,12,0) 30%, rgba(3,0,12,.75) 100%); }
.sc-pl-disc__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.sc-pl-disc__title { font-size: 32px; font-weight: var(--sc-fw-bold); line-height: 1.2; color: var(--sc-white); }
.sc-pl-disc__chips { display: flex; gap: 5px; flex-wrap: wrap; }

/* Chip(写真上のタグ) */
.sc-pl-chip {
	display: inline-flex; align-items: center;
	background: var(--sc-bg-hover-strong); border-radius: 54px; padding: 2px 4px; overflow: hidden;
}
.sc-pl-chip i { width: 16px; font-size: 12px; text-align: center; color: var(--sc-fg); }
.sc-pl-chip span { padding: 0 4px; font-size: 14px; font-weight: var(--sc-fw-bold); color: var(--sc-fg); white-space: nowrap; }

/* ============================== Instructors ============================== */
.sc-pl-instructors {
	max-width: 1440px; margin-inline: auto;
	display: flex; align-items: stretch; gap: 24px;
	padding: 48px var(--sc-pl-margin);
}
.sc-pl-instructors__text { flex: 0 0 415px; max-width: 415px; display: flex; flex-direction: column; gap: 24px; }
.sc-pl-instructors__title { font-size: 40px; font-weight: var(--sc-fw-bold); line-height: 1.2; color: var(--sc-fg); }
.sc-pl-instructors__body { font-size: 18px; font-weight: var(--sc-fw-medium); line-height: 1.4; color: var(--sc-fg); }
.sc-pl-instructors__cards { flex: 1 1 0; min-width: 0; }

.sc-pl-inst {
	flex: 0 0 348px; max-width: 348px;
	display: flex; flex-direction: column; gap: 8px;
	padding: 16px; background: var(--sc-bg-bright); border: 1px solid var(--sc-border-dim); border-radius: 8px; scroll-snap-align: start;
}
/* #106: 実データ化に伴い講師詳細へリンク化(a 要素・見た目は article と同一 + hover)。 */
.sc-pl-inst--link { text-decoration: none; color: inherit; transition: background .15s ease, transform .15s ease, color .15s ease; }
.sc-pl-inst--link:hover { background: var(--sc-bg-hover-strong); transform: translateY(-2px); }
.sc-pl-inst--link:hover .sc-pl-inst__name { color: var(--sc-primary); }
.sc-pl-inst__pic { width: 100%; aspect-ratio: 1 / 1; background: #4d4d4d center/cover no-repeat; border-radius: 8px; }
.sc-pl-inst__info { display: flex; flex-direction: column; gap: 4px; }
.sc-pl-inst__name { font-size: 16px; font-weight: var(--sc-fw-bold); line-height: 1.4; color: var(--sc-fg);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-pl-inst__role { font-size: 14px; font-weight: var(--sc-fw-medium); line-height: 1.4; color: var(--sc-fg-secondary); }

/* ============================== Carousel(共通) ============================== */
.sc-pl-car { position: relative; }
.sc-pl-car__track {
	display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px;
	scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -ms-overflow-style: none;
}
.sc-pl-car__track::-webkit-scrollbar { display: none; }

.sc-pl-navbtn {
	display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 36px;
	border: none; border-radius: var(--sc-radius-pill); cursor: pointer;
	background: var(--sc-white); color: var(--sc-pl-ink); font-size: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,.35);
	transition: background-color .15s ease, color .15s ease;
}
.sc-pl-navbtn:hover { color: var(--sc-primary); }

/* overlay: ナビをトラック左右端に重ねて縦中央(Discipline カルーセル) */
.sc-pl-car--overlay .sc-pl-navbtn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.sc-pl-car--overlay .sc-pl-navbtn--prev { left: -16px; }
.sc-pl-car--overlay .sc-pl-navbtn--next { right: -16px; }

/* nav-bottom: ナビをトラック下・右寄せで横並び(Instructors カルーセル) */
.sc-pl-car--nav-bottom { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 8px; }
.sc-pl-car--nav-bottom .sc-pl-car__track { flex: 0 0 100%; width: 100%; }
.sc-pl-car--nav-bottom .sc-pl-navbtn { position: static; transform: none; }

/* ============================================================
 * SP (Figma 1822:41999) — max-width:1024px
 * ============================================================ */
@media (max-width: 1024px) {
	.sc-pl { --sc-pl-margin: 16px; overflow-x: clip; }

	.sc-pl-hero { padding: 64px 16px 40px; min-height: 260px; }
	.sc-pl-hero__title { font-size: 32px; }
	.sc-pl-hero__sub { font-size: 16px; }

	/* 料金カードは縦積み。
	 * .sc-pl-price は PC(行方向)用に flex:1 0 0(flex-basis:0)を持つが、そのまま
	 * 列方向コンテナ(高さ auto)に持ち込むとカードの高さが 0 起点で潰れ、中身だけが
	 * ボックス外にはみ出して次のカードと重なる(3枚の料金カードが重なるバグの原因)。
	 * 列方向では高さをコンテンツ基準に戻す。 */
	.sc-pl-pricing__grid { flex-direction: column; }
	.sc-pl-price { flex: none; min-height: 0; padding: 20px; }
	.sc-pl-pricing__foot { justify-content: stretch; }
	.sc-pl-btn--outline { width: 100%; }

	.sc-pl-choice__title { font-size: 24px; }

	/* #167: 特徴カードは全幅で縦積み(Figma 1822-43652)。横スクロール/scroll-snap/負マージンは撤去。
	 * カード内はアイコン左・テキスト右の行レイアウト。 */
	.sc-pl-features { flex-direction: column; }
	.sc-pl-feature { flex: none; width: 100%; flex-direction: row; align-items: center; gap: 16px; }
	.sc-pl-feature > i { flex: 0 0 auto; }

	/* Instructors は縦積み */
	.sc-pl-instructors { flex-direction: column; padding: 40px var(--sc-pl-margin); }
	.sc-pl-instructors__text { flex: 1 1 auto; max-width: none; }
	.sc-pl-instructors__title { font-size: 32px; }
	.sc-pl-btn--filled { width: 100%; }
	.sc-pl-inst { flex: 0 0 280px; max-width: 280px; }

	/* overlay ナビは端で見切れないよう内側へ */
	.sc-pl-car--overlay .sc-pl-navbtn--prev { left: 4px; }
	.sc-pl-car--overlay .sc-pl-navbtn--next { right: 4px; }
}

/* ===== #259: Private Lessons の HubSpot 注文フォーム(オーバーレイ) =====
 * WooCommerce 商品を廃止し、価格表の CTA クリックで同一ページ内にフォームを開く
 * (クライアント指定「like the /nyc-spaces day pass flow」)。
 * ⚠️ Elementor 製ページ(#629510)に対して `wp_footer` から出すので、
 *    レイアウト依存を避けるため **fixed のオーバーレイ**にしている(ページ構造に触らない)。 */
.sc-pl-order { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.sc-pl-order[hidden] { display: none; }
.sc-pl-order__backdrop { position: absolute; inset: 0; background: rgba(3, 0, 12, .72); }
.sc-pl-order__panel {
  position: relative; z-index: 1; width: 100%; max-width: 720px; max-height: 86vh; overflow: auto;
  background: var(--sc-white, #fff); color: #0b1222; border-radius: 16px; padding: 32px 24px 24px;
}
.sc-pl-order__close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: inline-flex;
  align-items: center; justify-content: center; border: 0; border-radius: 50%;
  background: transparent; color: #0b1222; font-size: 20px; cursor: pointer;
}
.sc-pl-order__close:hover { background: rgba(11, 18, 34, .08); }
/* HubSpot 側の iframe は幅 100% に */
.sc-pl-order__body .hs-form-frame,
.sc-pl-order__body iframe { width: 100% !important; max-width: 100%; }

@media (max-width: 767px) {
  .sc-pl-order { padding: 12px; }
  .sc-pl-order__panel { max-height: 92vh; padding: 28px 16px 16px; border-radius: 12px; }
}
