@charset "UTF-8";

/* 申込フロー共通スタイル
   色はパッケージ別テンプレート（Master_Package_Template）のフッククラスと
   DB 由来 <style> に委ね、ここには形状（サイズ・角丸・余白・影の形）だけを書く。
   既定色が必要な箇所は中立色（#fff / #ddd 等）に留める。 */

/* --------------------------------------------------------------------------
   1. ヘッダー
   -------------------------------------------------------------------------- */
.xm-header__logo {
	max-width: 230px;
}

/* x-style の .btn が color:#FFF を当てるため文字色を指定する */
.xm-header__contact {
	display: inline-block;
	background-color: #fff;
	border: 2px solid currentColor;
	border-radius: 20px;
	padding: 7px 18px;
	font-weight: bold;
	white-space: nowrap;
	color: #555;
	transition: background-color .2s, color .2s;
}

.xm-header__contact:hover,
.xm-header__contact:focus {
	color: #555;
}

/* --------------------------------------------------------------------------
   2. ステップバー
   -------------------------------------------------------------------------- */
.xm-step {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	position: relative;
	padding: 6px 0;
	background-image: none;
}

.xm-step::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 20px;
	right: 20px;
	height: 2px;
	background-color: #ddd;
	transform: translateY(-50%);
}

.xm-step__item {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 0;
	border: 2px solid #ddd;
	border-radius: 50%;
	font-size: 14px;
	line-height: 30px;
	font-weight: bold;
	white-space: nowrap;
}

.xm-step__item--current {
	width: auto;
	border-radius: 17px;
	padding: 0 18px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.xm-step__no {
	display: inline-block;
}

.step-name {
	display: inline-block;
	margin-left: .4em;
}

/* --------------------------------------------------------------------------
   3. 共通ボタン
   -------------------------------------------------------------------------- */
.xm-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: none;
	border-radius: 10px;
	padding: 0;
	height: 86px;
	line-height: 86px;
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 1px;
	box-shadow: 0 4px 0 rgba(0, 0, 0, .2);
	transition: transform .1s, box-shadow .1s;
}

.xm-btn:hover,
.xm-btn:focus,
.xm-btn:active {
	transform: translateY(2px);
	box-shadow: 0 2px 0 rgba(0, 0, 0, .2);
}

/* Bootstrap の .btn:active:focus と x-style の .btn:active を打ち消す */
.xm-btn:focus,
.xm-btn:active,
.xm-btn.active,
.xm-btn:active:focus,
.xm-btn.active:focus {
	outline: none;
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

/* x-style の .btn が color:#FFF を当てるため文字色を指定する */
.xm-btn--back {
	background-color: #fff;
	border: 2px solid #ddd;
	line-height: 82px;
	box-shadow: 0 4px 0 #ddd;
	color: #555;
}

.xm-btn--back:hover,
.xm-btn--back:focus,
.xm-btn--back:active {
	color: #555;
}

.xm-btn--back:hover,
.xm-btn--back:focus,
.xm-btn--back:active {
	box-shadow: 0 2px 0 #ddd;
}

/* スマホ調整の .xm-btn に負けないよう詳細度を上げる */
.xm-btn.xm-btn--modal {
	height: 48px;
	line-height: 48px;
	font-size: 16px;
}

.xm-btn--back.xm-btn--modal {
	line-height: 44px;
}

/* テンプレート色を grayscale で落とすため色は書かない */
.btn[disabled],
.btn.disabled {
	filter: grayscale(1);
	box-shadow: none;
	transform: none;
	cursor: default;
}

/* --------------------------------------------------------------------------
   4. 共通カード
   -------------------------------------------------------------------------- */
/* 白い面には文字色を明示する。パッケージが body に白文字を設定する場合があるため */
.xm-card {
	position: relative;
	box-sizing: border-box;
	background-color: #fff;
	color: #333;
	border: 3px solid #ddd;
	border-radius: 10px;
	padding: 34px 8px;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

.xm-card:active {
	box-shadow: none;
}

/* 既定の選択色。パッケージ別テンプレートが同じセレクタで上書きする */
input:checked + label .xm-card,
input:checked + label .xm-panel--agree {
	border-color: #c3d613;
	box-shadow: 0 0 0 1px #c3d613, 0 2px 10px rgba(195, 214, 19, .35);
}

input:checked + label .xm-panel--agree .xm-card--agree {
	box-shadow: none;
}

/* --------------------------------------------------------------------------
   4-2. プランカード（step_plan）
   -------------------------------------------------------------------------- */
.xm-card--plan {
	overflow: hidden;
	text-align: center;
	padding: 0;
	border-color: #b5b5b5;
}

.xm-card--plan .xm-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 10px 0;
	background-color: #fff;
}

.xm-card--plan .xm-card__image img {
	max-width: 72%;
	max-width: min(72%, 300px);
	height: auto;
}

.xm-card--plan .xm-card__body {
	padding: 18px 10px 22px;
}

.xm-plan__name {
	font-size: 24px;
	font-weight: bold;
	white-space: nowrap;
}

.xm-plan__price {
	font-size: 36px;
	font-weight: bold;
	margin-top: 4px;
	white-space: nowrap;
}

.xm-plan__yen {
	font-size: 20px;
	color: #333;
}

.xm-plan__tax {
	font-size: 14px;
	font-weight: normal;
	color: #999;
	margin-left: 6px;
}

.xm-plan__soldout {
	font-size: 16px;
	color: #c00;
}

.xm-card--lg {
	padding: 20px 10px;
}

/* バッジの cqw 基準にカード幅を使う */
.xm-card--packet {
	container-type: inline-size;
	text-align: center;
}

/* --------------------------------------------------------------------------
   4-2b. アイコン付きの選択カード（支払方法・請求先名義・出荷方法）
   -------------------------------------------------------------------------- */
.xm-card--payway {
	padding: 24px 10px;
	text-align: center;
}

.xm-payway__icon {
	font-size: 34px;
	line-height: 1;
	margin-bottom: 10px;
}

.xm-payway__name {
	font-size: 18px;
	font-weight: bold;
}

/* --------------------------------------------------------------------------
   4-3. お申込み時に必要なもの（step_plan）
   -------------------------------------------------------------------------- */
.ekyc-req-outer {
	background: #f0f0f0;
	color: #333;
	border-radius: 10px;
	padding: 20px 15px 15px;
	text-align: center;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ekyc-req-outer .ekyc-req-title {
	font-weight: bold;
	font-size: 14px;
	margin-bottom: 12px;
}

.ekyc-req-outer .ekyc-req-icon {
	font-size: 48px;
	margin-bottom: 10px;
}

.ekyc-req-outer .ekyc-req-desc {
	font-size: 12px;
	color: #666;
	margin-bottom: 12px;
}

.ekyc-req-inner {
	background: #fff;
	border-radius: 8px;
	padding: 12px;
	font-size: 12px;
	text-align: left;
	flex: 1;
}

.ekyc-req-row {
	display: flex;
	flex-wrap: wrap;
}

.ekyc-req-row > [class*="col-"] {
	display: flex;
	flex-direction: column;
}

/* --------------------------------------------------------------------------
   5. パネル・情報ボックス
   -------------------------------------------------------------------------- */
.xm-panel {
	box-sizing: border-box;
	background-color: #fff;
	color: #333;
	border: 3px solid #ddd;
	border-radius: 10px;
	padding: 34px 8px;
}

.xm-panel--agree {
	padding: 0;
	overflow: hidden;
	border-color: #ddd;
	transition: border-color .2s;
}

.xm-panel--agree .row {
	margin: 0;
}

.xm-card--agree {
	padding: 0;
	border: 0;
	border-top: 2px solid #ddd;
	border-radius: 0;
}

.xm-panel--agree > :first-child .xm-card--agree {
	border-top: 0;
}

/* x-style の input + label .select-area が付ける下角の丸みを打ち消す */
.xm-panel--agree .xm-card--agree .select-area {
	align-items: center;
	justify-content: center;
	padding: 16px;
	border-radius: 0;
}

.xm-note {
	box-sizing: border-box;
	background-color: #e9e9e9;
	color: #333;
	border-radius: 10px;
	padding: 20px 26px;
	margin-bottom: 10px;
}

/* ポイントカード入力（お客様情報・プラン選択で共通）。表を端まで見せるため余白は表側に持たせる */
.xm-panel--point {
	padding: 0;
	overflow: hidden;
}

.xm-panel--point .table {
	margin-bottom: 0;
}

/* テンプレート既定の th/td 色（CSS_TABLE_HEADER_COLOR / CSS_TABLE_DATA_COLOR の !important）より優先して白にする */
.xm-panel--point .table.table-var th,
.xm-panel--point .table.table-var td {
	background-color: #fff !important;
	color: #333 !important;
	border-bottom: 1px solid #eee;
	padding: 20px 16px;
}

.xm-panel--point .table.table-var th {
	font-size: 20px;
	font-weight: bold;
}

.xm-point-note {
	margin-top: 10px;
	font-size: 15px;
	color: #c00;
}

.xm-panel--point .table.table-var tr:last-child th,
.xm-panel--point .table.table-var tr:last-child td {
	border-bottom: none;
}

.xm-point-input {
	height: 60px;
	font-size: 20px;
	font-weight: bold;
}

.xm-point-check {
	max-width: 360px;
	margin: 0 auto;
	padding: 6px 0;
}

/* --------------------------------------------------------------------------
   6. サマリー帯
   -------------------------------------------------------------------------- */
.xm-summary {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	box-sizing: border-box;
	gap: 6px 14px;
	margin-top: 30px;
	padding: 34px 20px;
	background-color: #fff;
	color: #333;
	border: 2px solid #ddd;
	border-radius: 10px;
	text-align: center;
}

.xm-summary__label {
	display: inline-block;
	border-radius: 12px;
	padding: 5px 12px;
	font-size: 15px;
	font-weight: bold;
	line-height: 1;
	white-space: nowrap;
}

.xm-summary__name {
	font-size: 26px;
	font-weight: bold;
	white-space: nowrap;
}

.xm-summary__price {
	font-size: 26px;
	font-weight: bold;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   6-2. モーダル共通（privacy_modal / Package/agreement_modal / 注意喚起）
   -------------------------------------------------------------------------- */
.xm-modal {
	background: rgba(0, 0, 0, .45);
}

.xm-modal .modal-content {
	border: none;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
	overflow: hidden;
}

.xm-modal .modal-header {
	background-color: #fff;
	border-bottom: none;
	padding: 22px 26px 0;
}

.xm-modal .modal-title {
	margin: 0;
	font-size: 26px;
	font-weight: bold;
	color: #333;
}

.xm-modal--alert .modal-title {
	color: #d9534f;
}

.xm-modal .modal-body {
	padding: 16px 26px;
	color: #333;
	text-align: left;
}

.xm-modal .modal-footer {
	border-top: none;
	padding: 0 26px 26px;
	text-align: left;
}

.xm-modal-note {
	max-height: 65vh;
	overflow-y: auto;
}

.xm-modal-note__title {
	margin-bottom: 14px;
	font-size: 24px;
	font-weight: bold;
	color: #333;
}

.xm-modal-note__heading {
	margin: 20px 0 6px;
	font-size: 20px;
	font-weight: bold;
	color: #333;
}

.xm-modal-note__text {
	margin-bottom: 20px;
	font-size: 17px;
	line-height: 1.9;
	color: #555;
}

.xm-modal-actions {
	display: flex;
	gap: 10px;
}

.xm-modal-actions > .xm-btn {
	flex: 1 1 0;
}

.xm-modal-actions > .btn-success {
	flex: 1.6 1 0;
}

/* --------------------------------------------------------------------------
   7. おすすめバッジ（共通部分）
   固定値を先に書き、clamp() / cqw 非対応ブラウザではそちらにフォールバックする
   -------------------------------------------------------------------------- */
.recommend-badge {
	position: absolute;
	z-index: 2;
	top: -38px;
	left: -14px;
	width: 98px;
	top: clamp(-38px, -7cqw, -20px);
	left: clamp(-14px, -2.5cqw, -7px);
	width: clamp(68px, 22cqw, 98px);
	height: auto;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25));
	pointer-events: none;
	transform: rotate(-10deg);
}

/* .is-shown が付くまで伏せる */
.xm-card--anim .recommend-badge {
	opacity: 0;
}

.xm-card--anim.is-shown .recommend-badge {
	opacity: 1;
	animation: xm-badge-bob 1.6s ease-in-out 1.2s infinite;
}

/* 登場（種別ごと1回）＋共通の待機アニメ */
.xm-anim-drop-in.is-shown .recommend-badge {
	opacity: 1;
	animation:
		xm-badge-drop-in .8s cubic-bezier(.22, .9, .35, 1.2) .4s backwards,
		xm-badge-bob 1.6s ease-in-out 1.2s infinite;
}

.xm-anim-fade-in.is-shown .recommend-badge {
	opacity: 1;
	animation:
		xm-badge-fade-in .8s cubic-bezier(.22, .9, .35, 1.2) .4s backwards,
		xm-badge-bob 1.6s ease-in-out 1.2s infinite;
}

.xm-anim-shrink-in.is-shown .recommend-badge {
	opacity: 1;
	animation:
		xm-badge-shrink-in .8s cubic-bezier(.22, .9, .35, 1.2) .4s backwards,
		xm-badge-bob 1.6s ease-in-out 1.2s infinite;
}

.xm-anim-pop-in.is-shown .recommend-badge {
	opacity: 1;
	animation:
		xm-badge-pop-in .8s cubic-bezier(.22, .9, .35, 1.2) .4s backwards,
		xm-badge-bob 1.6s ease-in-out 1.2s infinite;
}

.xm-anim-slide-in.is-shown .recommend-badge {
	opacity: 1;
	animation:
		xm-badge-slide-in .8s cubic-bezier(.22, .9, .35, 1.2) .4s backwards,
		xm-badge-bob 1.6s ease-in-out 1.2s infinite;
}

@keyframes xm-badge-drop-in {
	0% {
		opacity: 0;
		transform: translateY(-90px) rotate(-10deg) scale(.6);
	}

	55% {
		opacity: 1;
		transform: translateY(7px) rotate(-10deg) scale(1.1, .9);
	}

	75% {
		transform: translateY(-5px) rotate(-10deg) scale(.96, 1.04);
	}

	100% {
		opacity: 1;
		transform: translateY(0) rotate(-10deg) scale(1);
	}
}

@keyframes xm-badge-fade-in {
	0% {
		opacity: 0;
		transform: rotate(-10deg);
	}

	100% {
		opacity: 1;
		transform: rotate(-10deg);
	}
}

@keyframes xm-badge-shrink-in {
	0% {
		opacity: 0;
		transform: rotate(-10deg) scale(1.6);
	}

	60% {
		opacity: 1;
		transform: rotate(-10deg) scale(.95);
	}

	100% {
		opacity: 1;
		transform: rotate(-10deg) scale(1);
	}
}

@keyframes xm-badge-pop-in {
	0% {
		opacity: 0;
		transform: rotate(-10deg) scale(.4);
	}

	55% {
		opacity: 1;
		transform: rotate(-10deg) scale(1.15);
	}

	75% {
		transform: rotate(-10deg) scale(.95);
	}

	100% {
		opacity: 1;
		transform: rotate(-10deg) scale(1);
	}
}

@keyframes xm-badge-slide-in {
	0% {
		opacity: 0;
		transform: translateX(-40px) rotate(-10deg);
	}

	100% {
		opacity: 1;
		transform: translateX(0) rotate(-10deg);
	}
}

@keyframes xm-badge-bob {
	0%,
	100% {
		transform: translateY(0) rotate(-10deg);
	}

	50% {
		transform: translateY(-8px) rotate(-10deg);
	}
}

@media (prefers-reduced-motion: reduce) {

	.xm-card--anim .recommend-badge,
	.xm-card--anim.is-shown .recommend-badge,
	.xm-anim-drop-in.is-shown .recommend-badge,
	.xm-anim-fade-in.is-shown .recommend-badge,
	.xm-anim-shrink-in.is-shown .recommend-badge,
	.xm-anim-pop-in.is-shown .recommend-badge,
	.xm-anim-slide-in.is-shown .recommend-badge {
		opacity: 1;
		animation: none;
	}
}

/* --------------------------------------------------------------------------
   8. スマホ調整（767px 以下）
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.xm-card--plan .xm-card__image {
		padding: 12px 8px 0;
	}

	.xm-card--payway {
		padding: 16px 6px;
	}

	.xm-payway__icon {
		font-size: 28px;
	}

	.xm-payway__name {
		font-size: 14px;
	}

	.xm-card--plan .xm-card__body {
		padding: 10px 6px 14px;
	}

	.xm-plan__name {
		font-size: 18px;
	}

	.xm-plan__price {
		font-size: 28px;
	}

	.xm-plan__tax {
		font-size: 12px;
	}

	.xm-header__logo {
		max-width: 165px;
	}

	.xm-header__contact {
		border-width: 2px;
		border-radius: 12px;
		padding: 2px 11px;
		font-size: 10px;
		line-height: 17px;
	}

	.xm-step__item {
		width: 21px;
		height: 21px;
		border-width: 2px;
		font-size: 10px;
		line-height: 17px;
	}

	.xm-step__item--current {
		width: auto;
		border-radius: 12px;
		padding: 0 9px;
		font-size: 11px;
	}

	.xm-btn {
		height: 80px;
		line-height: 80px;
		font-size: 16px;
	}

	.xm-btn--back {
		line-height: 76px;
		font-size: 15px;
	}

	.xm-panel--point .table.table-var th,
	.xm-panel--point .table.table-var td {
		padding: 12px 10px;
	}

	.xm-panel--point .table.table-var th {
		font-size: 16px;
	}

	/* 「※majica番号とは…」が 1 行に収まるサイズ */
	.xm-point-note {
		font-size: 11px;
		white-space: nowrap;
	}

	.xm-point-input {
		height: 50px;
		font-size: 17px;
	}

	.xm-modal .modal-title {
		font-size: 19px;
	}

	.xm-modal-note__title {
		font-size: 18px;
	}

	.xm-modal-note__heading {
		font-size: 15px;
	}

	.xm-modal-note__text {
		font-size: 14px;
	}

	.xm-summary {
		margin-top: 20px;
		padding: 22px 12px;
	}

	.xm-summary__label {
		font-size: 13px;
	}

	.xm-summary__name,
	.xm-summary__price {
		font-size: 19px;
	}
}

/* --------------------------------------------------------------------------
   9. PC 調整（768px 以上）
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.xm-modal .modal-dialog {
		width: 90%;
		max-width: 960px;
	}

	.xm-modal .modal-title {
		font-size: 30px;
	}

	.xm-modal .xm-btn--modal {
		font-size: 18px;
	}
}

@media (max-width: 359px) {
	.xm-point-note {
		font-size: 10px;
	}
}
