@charset "UTF-8";

/* =============================================================
   Contract flow page (business/contract/)
   新規お申込み / サーバー移転 の流れ。
   Shared parts (#page-hero / #faq / #news / .func-table__promo* /
   .section-ttl / btn-*) come from common.css.
   ============================================================= */

/* ---------- tab switch (新規お申込み / サーバー移転) ---------- */
/* radios sit at <main> level so both tab bars (top of #ct-flow and
   above #faq) can drive the panels via the ~ sibling combinator */
.ct-tabs__radio {
	display: none;
}
#ct-flow {
	background: var(--col-white);
	padding-top: 20px;
}
.ct-tabs-wrap {
	background: var(--col-white);
	padding-top: 48px;
	& .wrap {
		width: 100%;
		max-width: var(--wrap-width);
		margin: 0 auto;
		padding: 0 var(--pad-x);
		box-sizing: border-box;
	}
}
.ct-tabs {
	display: flex;
	gap: 8px;
	padding: 0 40px;
	border-bottom: 2px solid var(--col-primary);
}
.ct-tabs--bottom {
	border-bottom: none;
	border-top: 2px solid var(--col-primary);
	margin-top: 80px;
}
.ct-tabs__tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	border: 1px solid var(--col-border);
	border-bottom: none;
	border-radius: 10px 10px 0 0;
	background: #f7fbfc;
	font-size: 16px;
	font-weight: 600;
	color: var(--col-text-muted);
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.ct-tabs--bottom .ct-tabs__tab {
	border-bottom: 1px solid var(--col-border);
	border-top: none;
	border-radius: 0 0 10px 10px;
}
.ct-tabs__tab:hover {
	color: var(--col-text);
}
.ct-panel {
	display: none;
	padding-top: 56px;
}
#ct-tab-new:checked ~ #ct-flow .ct-tabs__tab--new,
#ct-tab-new:checked ~ .ct-tabs-wrap .ct-tabs__tab--new,
#ct-tab-move:checked ~ #ct-flow .ct-tabs__tab--move,
#ct-tab-move:checked ~ .ct-tabs-wrap .ct-tabs__tab--move {
	background: var(--col-teal);
	color: var(--col-white);
	border-color: var(--col-teal);
}
#ct-tab-new:checked ~ #ct-flow .ct-panel--new,
#ct-tab-move:checked ~ #ct-flow .ct-panel--move {
	display: block;
}

/* SEO h1 kept in markup but hidden — the visible title is the
   .page-hero__ttl text ("サーバー新規お申込み / サーバー移転の流れ") */
#page-hero .page-hero__ttl h1 {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* panel heading (font-weight/line-height come from .section-ttl--heavy in common.css) + lead */
main .ct-panel__ttl {
	text-align: center;
	color: var(--col-primary);
}
.ct-panel__lead {
	margin: 20px auto 0;
	font-size: 15px;
	line-height: 1.8;
	letter-spacing: .04em;
	text-align: center;
	color: var(--col-text);
}

/* ---------- progress bar (3 arrow steps, gradient teal, labels below) ---------- */
.ct-progress {
	max-width: 760px;
	margin: 40px auto 0;
}
.ct-progress__bar {
	display: flex;
	gap: 6px;
}
.ct-progress__step {
	flex: 1;
	min-width: 0;
	padding: 9px 16px 9px 28px;
	background: var(--col-primary);
	color: var(--col-white);
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
}
.ct-progress__step:first-child {
	padding-left: 16px;
	background: #75ccc4;
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}
.ct-progress__step:nth-child(2) {
	background: #3bb8be;
}
.ct-progress__step:last-child {
	padding: 9px 16px;
}
.ct-panel--move .ct-progress__step:nth-child(3) {
	background: var(--col-primary);
}
.ct-panel--move .ct-progress__step:last-child {
	background: var(--col-primary-dk);
}
.ct-progress__labels {
	display: flex;
	gap: 6px;
	margin-top: 8px;
	& li {
		flex: 1;
		min-width: 0;
		text-align: center;
		font-size: 13px;
		font-weight: 700;
		line-height: 1.4;
		color: var(--col-text);
	}
}

/* ---------- step block: #f7fbfc card, rounded all corners ---------- */
.ct-step {
	margin: 20px auto 0;
	padding: 0 40px 40px;
	background: #f7fbfc;
	border: 1px solid var(--col-border);
	border-radius: 20px;
	overflow: hidden;
	&:first-of-type {
		margin-top: 56px;
	}
}
.ct-step__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 20px;
}
.ct-step__badge {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 110px;
	height: 42px;
	border-radius: 8px;
	background: var(--col-logo-green);
	font-size: 22px;
	font-weight: 700;
	color: var(--col-white);
}
.ct-step__ttl {
	display: flex;
	align-items: center;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .04em;
	color: var(--col-text);
}
.ct-step__ttl-arrow {
	margin: 0 .4em;
	font-size: 18px;
	color: var(--col-primary);
}
.ct-step__lead {
	margin-top: 20px;
	font-size: 15px;
	line-height: 1.7;
	letter-spacing: .04em;
	color: var(--col-text);
}
/* light-green header band inside a .ct-step card; bleeds to the card's
   full-bleed top/left/right edges (the card's overflow:hidden + radius
   round its top corners to match) */
.ct-step--banner {
	margin: 0 -40px;
	padding: 28px 40px 32px;
	background: #edf9f3;
	border-bottom: 2px solid var(--col-teal);
	& .ct-step__lead {
		padding: 24px 0 0;
		margin-top: 0;
		border: none;
	}
}

/* ---------- sub step (numbered, with a connecting timeline line) ---------- */
.ct-substep {
	margin-top: 44px;
	padding-left: 70px;
	position: relative;
	&::after {
		content: "";
		position: absolute;
		left: 23px;
		top: 25px;
		bottom: -69px;
		width: 5px;
		background: var(--col-border);
	}
	&:last-child {
		overflow: hidden;
	}
}
.ct-substep--plain {
	margin-top: 24px;
	padding-top: 0;
	padding-left: 0;
	&::after {
		content: none;
	}
}
.ct-substep__num {
	position: absolute;
	z-index: 1;
	left: 0;
	top: 0;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--col-primary);
	color: var(--col-white);
	font-size: 22px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ct-substep__ttl {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .04em;
	color: var(--col-primary);
	padding-top: 6px;
}
.ct-substep__ttl-note {
	font-size: 15px;
	margin-left: .5em;
}
.ct-substep__body {
	margin-top: 16px;
	font-size: 14px;
	line-height: 1.6;
	letter-spacing: .04em;
	color: var(--col-text);
	& p + p {
		margin-top: 4px;
	}
}
.ct-substep__sub {
	margin-top: 24px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--col-text);
}
.ct-substep__sub + .ct-substep__body {
	margin-top: 8px;
}
.ct-note {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.7;
	letter-spacing: 0;
	color: #5b6b7b;
}

/* Step.1(移転)末尾: 申込ボタン＋新規お申込みタブへの案内リンク */
.ct-step__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 44px;
}
.ct-step__link {
	font-size: 14px;
	color: var(--col-primary);
	text-decoration: underline;
	cursor: pointer;
}

/* inline "Step.N" jump link inside ct-note / ct-card body text */
.ct-inline-link {
	color: var(--col-primary);
	text-decoration: underline;
}

/* stacked screenshot */
.ct-shot {
	display: block;
	width: 100%;
	max-width: 560px;
	height: auto;
	margin: 24px 0 0;
	border: none;
	border-radius: 0;
}
.ct-shot--wide {
	max-width: 720px;
}

/* ---------- option card grids ---------- */
.ct-cards {
	display: grid;
	gap: 8px;
	margin-top: 20px;
}
.ct-cards--2 {
	grid-template-columns: repeat(2, 1fr);
}
.ct-cards--3 {
	grid-template-columns: 1fr 1fr;
	& .ct-card:first-child {
		grid-row: 1 / span 2;
	}
}
.ct-card__shot {
	display: block;
	width: 100%;
	height: auto;
	margin-top: 12px;
	border: 1px solid var(--col-border);
	border-radius: 4px;
}
.ct-card {
	border: 1px solid var(--col-border);
	border-radius: 10px;
	overflow: hidden;
	background: var(--col-white);
}
.ct-card__head {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 45px;
	padding: 8px 16px;
	background: #d4f5e0;
	border-bottom: 1px solid var(--col-border);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--col-primary);
}
.ct-card__badge {
	position: absolute;
	top: 50%;
	right: 12px;
	margin-right: 0;
	transform: translateY(-50%);
	padding: 2px 14px;
	border-radius: 999px;
	background: #ffd175;
	font-size: 12px;
	font-weight: normal;
	color: var(--col-text);
}
.ct-card__body {
	padding: 16px 16px 20px;
	font-size: 13px;
	line-height: 1.55;
	letter-spacing: .04em;
	color: var(--col-text);
}
.ct-card__who {
	color: var(--col-primary);
	font-weight: 700;
}
.ct-card__perk {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
	font-weight: 700;
	color: #ff5874;
	&::before {
		content: "";
		width: 18px;
		height: 18px;
		background: url(/business/img/order/check_pink.svg) center / contain no-repeat;
		flex: none;
	}
}

/* ---------- callout box ---------- */
.ct-callout {
	margin-top: 20px;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid #ffd175;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.6;
	letter-spacing: .04em;
	color: var(--col-text);
	& .ct-note {
		margin-top: 8px;
	}
}
.ct-callout--warn {
  position: relative;
  padding-left: 28px;
	margin-top: 20px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	color: #f4b22e;
  font-size: 14px;
	font-weight: 700;
	&::before {
    position: absolute;
		content: "!";
		flex: none;
    top: 2px;
    left: 0;
		width: 18px;
		height: 18px;
		border-radius: 50%;
		border: 2px solid #f4b22e;
		font-size: 12px;
		font-weight: 900;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* ---------- payment methods card ---------- */
.ct-pay {
	margin-top: 20px;
	padding: 8px 32px;
	background: var(--col-white);
	border: none;
	border-radius: 16px;
}
.ct-pay__row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 8px 24px;
	padding: 22px 0;
	& + .ct-pay__row {
		border-top: 1px solid var(--col-primary);
	}
}
.ct-pay__name {
	font-size: 18px;
	font-weight: 700;
	color: var(--col-primary);
}
.ct-pay__confirm {
	grid-column: 1;
	font-size: 13px;
	color: var(--col-text);
	margin-top: -4px;
}
.ct-pay__detail {
	grid-column: 2;
	grid-row: 1 / span 2;
}
.ct-pay__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
.ct-pay__logos img {
	height: 28px;
	width: auto;
	border: none;
}
.ct-pay__note {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--col-text);
}

/* ---------- migration compare cards ---------- */
.ct-compare {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 20px;
}
.ct-compare__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--col-white);
	border: 1px solid var(--col-border);
	border-radius: 20px;
}
.ct-compare__name {
	padding: 16px 20px;
	background: #edf9f3;
	border-bottom: 1px solid var(--col-teal);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--col-primary);
}
.ct-compare__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px 20px 24px;
}
.ct-compare__meta {
	display: inline-flex;
	justify-content: center;
	align-self: flex-start;
	align-items: center;
	width: 100%;
	gap: 8px;
	padding: 6px 20px;
	background: #f7fbfc;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 700;
	color: var(--col-text-muted);
}
.ct-compare__stars {
	font-size: 18px;
	letter-spacing: 2px;
	color: var(--col-border);
	& .is-on {
		color: var(--col-logo-green);
	}
}
.ct-compare__who {
	margin-top: 16px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--col-text);
	& span {
		color: var(--col-primary);
		font-weight: 700;
	}
}
.ct-compare__tag {
	display: inline-block;
	align-self: flex-start;
	margin-top: 20px;
	padding: 2px 16px;
	border-radius: 999px;
	background: #ffd175;
	font-size: 13px;
	color: var(--col-text);
}
.ct-compare__price {
	margin-top: auto;
	font-size: 13px;
	color: var(--col-text-muted);
}

/* ---------- small tag buttons ---------- */
.ct-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}
.ct-tag {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	border: 1px solid var(--col-primary);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: var(--col-primary);
	background: var(--col-white);
	transition: background .2s ease, color .2s ease;
	&:hover {
		background: var(--col-primary);
		color: var(--col-white);
	}
}

/* ---------- nameserver card (reuses .ct-card head/body scaffolding) ---------- */
.ct-ns {
	max-width: 420px;
	margin-top: 16px;
}

/* ---------- support section ---------- */
#ct-support {
	background: var(--col-white);
	text-align: center;
	& .ct-support__lead {
		--lead-mt: 16px;
		--lead-mb: 0px;
	}
	& .ct-support__foot {
		margin-top: 40px;
		font-size: 18px;
		font-weight: 700;
		line-height: 1.6;
		color: var(--col-primary);
	}
}
.ct-support__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 496px));
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}
.ct-support__card {
	padding: 20px 24px;
	border: 1px solid var(--col-border);
	border-radius: 10px;
	background: var(--col-white);
	text-align: left;
}
.ct-support__card-head {
	display: flex;
	align-items: center;
	gap: 10px;
}
.ct-support__card-icon {
	flex: none;
	width: 40px;
	height: 40px;
}
.ct-support__card-ttl {
	font-size: 20px;
	font-weight: 700;
	color: var(--col-primary);
}
.ct-support__card-box {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 7px;
	background: #f7fbfc;
	font-size: 14px;
	line-height: 1.6;
	color: var(--col-text);
	text-align: center;
	& strong {
		display: block;
		font-size: 15px;
	}
}

/* ---------- consult band ---------- */
#ct-consult {
	background: #e9f8ef;
	text-align: center;
	& .ct-consult__eyebrow {
		font-size: 20px;
		font-weight: 700;
		color: var(--col-text);
	}
	& .ct-consult__ttl {
		margin-top: 6px;
		font-size: 32px;
		font-weight: 700;
		color: var(--col-primary);
	}
	& .ct-consult__txt {
		margin-top: 20px;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.6;
		color: var(--col-text);
	}
	& .ct-consult__btn {
		margin: 28px auto 0;
	}
}

/* ---------- tablet ---------- */
@media screen and (max-width: 1024px) {
	.ct-pay {
		padding: 8px 20px;
	}
	.ct-pay__row {
		grid-template-columns: 1fr;
	}
	.ct-pay__detail {
		grid-column: 1;
		grid-row: auto;
	}
	.ct-compare {
		grid-template-columns: 1fr;
	}
	.ct-step__badge {
		width: 90px;
		height: 36px;
		font-size: 18px;
	}
	.ct-step__ttl {
		font-size: 22px;
	}
	.ct-step__ttl-arrow {
		font-size: 15px;
	}
}

/* ---------- sp ---------- */
@media screen and (max-width: 640px) {
  .ct-callout--warn {
    font-size: 14px;
    padding-left: 23px;
    &::before {
      width: 15px;
      height: 15px;
      font-size: 10px;
    }
  }
	.ct-tabs--bottom {
    margin-top: 50px;
		margin-bottom: 0;
	}
	#ct-flow {
		padding-top: 10px;
	}
	#ct-flow .ct-tabs__tab {
		font-size: 14px;
	}
	.ct-tabs {
		padding: 0 20px;
	}
	.ct-progress {
		margin-top: 30px;
	}
	.ct-panel__lead,
	.ct-step__lead {
		font-size: 14px;
	}
	.ct-progress__bar {
		gap: 3px;
	}
	.ct-progress__step {
		padding: 8px 10px 8px 18px;
		font-size: 14px;
		clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%);
	}
	.ct-progress__step:first-child {
		clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
    padding-left: 8px;
	}
	.ct-progress__step:last-child {
		padding: 8px 10px;
	}
	.ct-progress__labels {
		gap: 4px;
		& li {
			font-size: 12px;
		}
	}
	.ct-step {
		margin-top: 30px;
		padding: 0 20px 32px;
	}
	.ct-step__badge {
		width: 82px;
		height: 32px;
		font-size: 16px;
	}
	.ct-step__head {
		gap: 8px;
	}
	.ct-step__ttl {
		flex-wrap: wrap;
		font-size: 18px;
	}
	.ct-step__ttl-arrow {
		font-size: 13px;
	}
	.ct-step--banner {
		margin: 0 -20px;
		padding: 16px 13px;
    & .ct-step__lead {
      padding-top: 13px;
    }
	}
	.ct-substep {
    margin-top: 30px;
		display: grid;
		grid-template-columns: 30px 1fr;
		column-gap: 12px;
		padding-left: 0;
		padding-top: 0;
		&::after {
			content: none;
		}
		& > .ct-substep__body,
		& > .ct-substep__sub,
		& > .ct-note,
		& > .ct-shot,
		& > .ct-pay,
		& > .ct-cards,
		& > .ct-card,
		& > .ct-callout,
		& > .ct-callout--warn,
		& > .ct-compare,
		& > .ct-tags {
			grid-column: 1 / -1;
		}
	}
	.ct-substep--plain {
		padding-top: 0;
	}
	.ct-substep__num {
		position: static;
		width: 30px;
		height: 30px;
		font-size: 14px;
	}
	.ct-substep__ttl {
		align-self: center;
		font-size: 18px;
		padding-top: 0;
	}
	.ct-cards--2,
	.ct-cards--3,
	.ct-compare {
		grid-template-columns: 1fr;
	}
	.ct-compare {
		gap: 10px;
		margin-top: 16px;
	}
	.ct-compare__card {
		border-radius: 14px;
	}
	.ct-compare__name {
		padding: 10px 16px;
		font-size: 15px;
	}
	.ct-compare__body {
		padding: 14px 16px 18px;
	}
	.ct-compare__meta {
		padding: 6px 16px;
		font-size: 12px;
	}
	.ct-compare__stars {
		font-size: 16px;
	}
	.ct-compare__who {
		margin-top: 12px;
		font-size: 14px;
	}
	.ct-compare__tag {
		margin-top: 14px;
		font-size: 12px;
	}
	.ct-compare__price {
		font-size: 12px;
	}
	.ct-cards--3 .ct-card:first-child {
		grid-row: auto;
	}
	.ct-support__grid {
		grid-template-columns: 1fr;
	}
	.ct-support__card {
		padding: 16px 20px;
	}
	.ct-support__card-icon {
		width: 32px;
		height: 32px;
	}
	.ct-support__card-ttl {
		font-size: 16px;
	}
	.ct-support__card-box {
		font-size: 13px;
		& strong {
			font-size: 14px;
		}
	}
	#ct-support {
		padding-bottom: 0;
		& .ct-support__foot {
			font-size: 16px;
		}
	}
	#ct-consult .ct-consult__ttl {
		font-size: 24px;
	}
	#ct-consult .ct-consult__txt {
		font-size: 14px;
	}

  .ct-pay__name {
    font-size: 16px;
  }
  .ct-pay__logos img {
    height: 30px;
  }
}
